]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
003302317913ae30d355ebeca23d3b4519ace083
[thirdparty/glibc.git] / ChangeLog
1 2019-06-12 Florian Weimer <fweimer@redhat.com>
2
3 * misc/sys/cdefs.h (__glibc_has_include): Define.
4
5 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
6
7 * string/memmem.c (__memmem): Rewrite to improve performance.
8
9 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
10
11 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
12 warning.
13 (two_way_long_needle): Block inlining.
14 * string/strstr.c (strstr2): Add new function.
15 (strstr3): Likewise.
16 (STRSTR): Completely rewrite strstr to improve performance.
17
18 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
19
20 * benchtests/bench-strstr.c (test_hard_needle): New function.
21
22 2019-06-10 Joseph Myers <joseph@codesourcery.com>
23
24 * malloc/tst-calloc.c: Include <libc-diag.h>.
25 (null_test): Ignore -Wunused-result around calls to calloc.
26 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
27 (do_test): Ignore -Wunused-result around call to malloc.
28
29 2019-06-07 Florian Weimer <fweimer@redhat.com>
30
31 Linux: Add getdents64 system call.
32 * include/dirnent.h (getdents): Add comment and change buffer
33 argument type to void *.
34 (getdents64): Likewise. Add hidden prototype.
35 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
36 getdents64.
37 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
38 Add tst-getdents64.
39 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
40 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
41 argument type to void *.
42 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
43 Add hidden definition and getdents64 alias.
44 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
45 Likewise.
46 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
47 * manual/filesys.texi (Accessing Directories): Add Low-level
48 Directory Access node reference.
49 (Opening a Directory): Cross-reference it.
50 (Low-level Directory Access): New node.
51 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
52 getdents64.
53 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
54 Likewise.
55 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
56 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
57 Likewise.
58 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
59 Likewise.
60 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
61 Likewise.
62 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
63 Likewise.
64 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
65 Likewise.
66 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
67 Likewise.
68 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
69 Likewise.
70 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
71 (GLIBC_2.30): Likewise.
72 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
73 (GLIBC_2.30): Likewise.
74 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
75 (GLIBC_2.30): Likewise.
76 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
77 (GLIBC_2.30): Likewise.
78 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
79 Likewise.
80 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
81 (GLIBC_2.30): Likewise.
82 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
83 (GLIBC_2.30): Likewise.
84 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
85 (GLIBC_2.30): Likewise.
86 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
87 (GLIBC_2.30): Likewise.
88 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
89 Likewise.
90 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
91 Likewise.
92 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
93 Likewise.
94 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
95 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
96 Likewise.
97 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
98 Likewise.
99 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
100 Likewise.
101 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
102 Likewise.
103
104 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
105
106 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
107 (__FPU_MFFS): New.
108 (__FPU_MFFSL): New.
109 (_FPU_GET_RC): New.
110 (_FPU_GETCW): Use __FPU_MFFS().
111 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
112
113 2019-06-06 Florian Weimer <fweimer@redhat.com>
114
115 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
116 internal GCC preprocessor identifier __has_include__.
117
118 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
119
120 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
121 with call to equivalent function.
122
123 2019-06-04 Florian Weimer <fweimer@redhat.com>
124
125 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
126 (do_release_shlib): Adjust for __twalk_r.
127 (__gconv_release_shlib): Call __twalk_r.
128
129 2019-06-04 Andreas Schwab <schwab@suse.de>
130
131 [BZ #18830]
132 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
133 no irreversible characters occurred.
134 * iconv/gconv_simple.c (internal_ucs4_loop)
135 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
136 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
137 (ucs4_internal_loop_single, internal_ucs4le_loop)
138 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
139 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
140 (ucs4le_internal_loop_single): Add const to outend.
141 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
142 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
143 * iconv/Makefile (tests): Add tst-iconv7.
144 * iconv/tst-iconv7.c: New file.
145
146 2019-06-03 Joseph Myers <joseph@codesourcery.com>
147
148 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
149
150 2019-06-01 Florian Weimer <fweimer@redhat.com>
151
152 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
153 * sysdeps/unix/sysv/linux/arm/Makefile
154 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
155 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
156 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
157 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
158 compatibility symbols.
159
160 2019-05-31 Florian Weimer <fweimer@redhat.com>
161
162 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
163 system calls for the arm architecture: breakpoint, get_tls,
164 set_tls, usr26, usr32.
165
166 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
167
168 * sysdeps/powerpc/Makefile
169 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
170 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
171 Declare '.machine power7' to get support for ldbrx.
172 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
173 directive based on the directory of the file.
174 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
175 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
176 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
177 '.machine' directive.
178 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
179 (VADDUQM_V7_V8): Remove.
180 (__STRCASECMP): Replace macros with actual instructions.
181 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
182 '.machine' directive.
183 (VCLZD_V8_v7): Remove.
184 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
185
186 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
187
188 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
189 Remove file.
190 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
191
192 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
193
194 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
195 NEARBYINT handling.
196 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
197 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
198 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
199 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
200 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
201 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
202
203 2019-05-28 mansayk <6688000@gmail.com>
204
205 [BZ #24370]
206 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
207
208 2019-05-28 mansayk <6688000@gmail.com>
209
210 [BZ #24369]
211 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
212 (abmon): Likewise, but remove the trailing dots.
213
214 2019-05-28 Joseph Myers <joseph@codesourcery.com>
215
216 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
217
218 2019-05-27 Florian Weimer <fweimer@redhat.com>
219
220 * nptl/nptl-init.c: Add comment.
221
222 2019-05-24 Florian Weimer <fweimer@redhat.com>
223
224 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
225 struct in_addr/struct in6_addr alignment.
226
227 2019-05-23 Joseph Myers <joseph@codesourcery.com>
228
229 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
230 (F_SEAL_FUTURE_WRITE): New macro.
231
232 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
233
234 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
235 * elf/tst-ldconfig-bad-aux-cache.c: New file.
236 * elf/tst-ldconfig_aux-cache.root: New directory.
237 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
238 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
239 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
240
241 2019-05-22 Zack Weinberg <zackw@panix.com>
242
243 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
244 host type.
245 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
246 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
247
248 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
251 Delete.
252
253 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
254 Issue an #error if used with a compiler in SPE-float mode.
255 * sysdeps/powerpc/powerpc32/__longjmp_common.S
256 * sysdeps/powerpc/powerpc32/setjmp_common.S
257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
263 Remove code to preserve SPE register state.
264
265 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
266 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
267 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
268 Remove __SPE__ ifndefs.
269
270 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
271
272 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
273 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
274 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
275 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
276 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
277 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
278 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
279 (INNER_LOOP_ITERS_MEDIUM): New define.
280 (INNER_LOOP_ITERS_SMALL): New define.
281 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
282 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
283 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
284 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
285 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
286
287 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
288
289 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
290 New define.
291 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
292 (SEMTIMEDOP_IPC_ARGS): Likewise.
293
294 2019-05-21 Florian Weimer <fweimer@redhat.com>
295
296 [BZ #24584]
297 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
298 before updating __counter field and release it afterwards. Add
299 overflow check.
300 * iconv/gconv.h (struct __gconv_step): Mention synchronization
301 requirement for __counter member.
302
303 2019-05-21 Florian Weimer <fweimer@redhat.com>
304
305 [BZ #24583]
306 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
307 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
308 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
309 instead of __gconv_release_step.
310 * libio/Makefile (tests): Add tst-wfile-gconv.
311 (tests-container): Add tst-wfile-ascii.
312 (tst-wfile-gconv-ENV): Enable mtrace.
313 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
314 (tests-special): Add tst-wfile-gconv-mem.out.
315 (tst-wfile-gconv.out): Depend on locales.
316 (tst-wfile-gconv-mem.out): Add mtrace rule.
317 * libio/tst-wfile-ascii.c: New file.
318 * libio/tst-wfile-gconv.c: Likewise.
319
320 2019-05-20 Florian Weimer <fweimer@redhat.com>
321
322 [BZ #24588]
323 libio: Remove codecvt vtable.
324 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
325 __libio_codecvt.
326 * libio/iofgetpos.c (_IO_new_fgetpos): Call
327 __libio_codecvt_encoding.
328 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
329 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
330 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
331 * libio/iofwide.c (__libio_codecvt): Remove variable.
332 (_IO_fwide): Do not copy __libio_codecvt.
333 (__libio_codecvt_out): Rename from do_out and export.
334 (do_unshift): Remove function.
335 (__libio_codecvt_in): Rename from do_in and export.
336 (__libio_codecvt_encoding): Rename from do_encoding and export.
337 (do_always_noconv): Remove function.
338 (__libio_codecvt_length): Rename from do_length and export.
339 (do_max_length): Remove function.
340 * libio/libio.h (enum __codecvt_result): Remove definition; moved
341 to libioP.h.
342 (struct _IO_codecvt): Remove fields __codecvt_destr,
343 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
344 __codecvt_do_encoding, __codecvt_do_always_noconv,
345 __codecvt_do_length, __codecvt_do_max_length.
346 * libio/libioP.h (enum __codecvt_result): Define; moved from
347 libio.h.
348 (__libio_codecvt_out, __libio_codecvt_in)
349 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
350 functions.
351 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
352 (_IO_wfile_underflow): Call __libio_codecvt_in.
353 (_IO_wfile_underflow): Likewise.
354 (_IO_wfile_underflow_mmap): Likewise.
355 (_IO_wfile_sync): Call __libio_codecvt_encoding,
356 __libio_codecvt_length.
357 (adjust_wide_data): Call __libio_codecvt_encoding,
358 __libio_codecvt_in.
359 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
360 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
361 __libio_codecvt_length.
362
363 2019-05-20 Florian Weimer <fweimer@redhat.com>
364
365 * support/support.h (support_sbindir_prefix): Declare.
366 (support_install_rootsbindir): Update comment.
367 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
368 * support/support_paths.c (support_sbindir_prefix): Define.
369
370 2019-05-20 Mike Crowe <mac@mcrowe.com>
371
372 * support/timespec.c: Add backslash to correct newline in failure
373 message.
374
375 * support/timespec.h: Correct confusing comment.
376
377 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
378
379 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
380 define.
381 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
382 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
383 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
384 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
385
386 [BZ #24570]
387 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
388 usage.
389
390 2019-05-20 Joseph Myers <joseph@codesourcery.com>
391
392 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
393 (NT_ARM_PACG_KEYS): Likewise.
394
395 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
396
397 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
398 (tcache_put): Remove redundant assert.
399 (tcache_get): Remove redundant asserts.
400 (__libc_malloc): Check tcache count is not zero.
401 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
402
403 2019-05-17 Florian Weimer <fweimer@redhat.com>
404
405 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
406
407 2019-05-16 Joseph Myers <joseph@codesourcery.com>
408
409 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
410 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
411 0x050100].
412 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
413 Likewise.
414 * sysdeps/unix/sysv/linux/sh/kernel-features.h
415 (__ASSUME_STATX): Likewise.
416
417 2019-05-16 Florian Weimer <fweimer@redhat.com>
418
419 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
420 flags argument.
421 (LINE_PARSER): Do not map IPv4 addresses.
422 (internal_nis_gethostent_r): Remove flags argument. Adjust call
423 to parse_line.
424 (_nss_nis_gethostent_r): Always pass AF_INET to
425 internal_nis_gethostent_r.
426 (internal_gethostbyname2_r): Remove flags argument. Adjust call
427 to parse_line.
428 (_nss_nis_gethostbyname2_r): Adjust call to
429 internal_nis_gethostent_r.
430 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
431 call to internal_nis_gethostent_r.
432 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
433 from parse_line.
434 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
435 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
436 Remove flags argument. Do not map IPv4 addresses.
437 (internal_nisplus_gethostent_r): Adjust call to
438 _nss_nisplus_parse_hostent.
439 (internal_gethostbyname2_r): Remove flags argument. Adjust call
440 to _nss_nisplus_parse_hostent.
441 (_nss_nisplus_gethostbyname2_r): Adjust call to
442 internal_gethostbyname2_r.
443 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
444 Adjust call to internal_gethostbyname2_r.
445 (_nss_nisplus_gethostbyaddr_r): Adjust call to
446 _nss_nisplus_parse_hostent.
447 (_nss_nisplus_gethostbyname4_r): Adjust call to
448 internal_gethostbyname2_r.
449
450 2019-05-16 Florian Weimer <fweimer@redhat.com>
451
452 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
453 Remove flags.
454 (LINE_PARSER): Remove address mapping.
455 (EXTRA_ARGS_VALUE): Remove flags argument.
456 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
457 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
458 gethostbyname3_multi.
459 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
460 _nss_files_gethostbyname3_r.
461 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
462
463 2019-05-16 Florian Weimer <fweimer@redhat.com>
464
465 * support/support_test_compare_blob.c (report_blob): Report
466 incorrect NULL blobs.
467
468 2019-05-15 Mark Wielaard <mark@klomp.org>
469
470 [BZ# 24476]
471 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
472 __libc_once_get (once) and static_buf == NULL.
473 (__dlerror): Check we have a valid key, set result to static_buf
474 otherwise.
475
476 2019-05-15 Andreas Schwab <schwab@suse.de>
477
478 [BZ #20568]
479 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
480 __codecvt_do_length.
481 * libio/Makefile (tests): Add tst-wfile-sync.
482 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
483 * libio/tst-wfile-sync.c: New file.
484 * libio/tst-wfile-sync.input: New file.
485
486 2019-05-15 Florian Weimer <fweimer@redhat.com>
487
488 nss: Turn __nss_database_lookup into a compatibility symbol.
489 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
490 __nss_database_lookup.
491 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
492 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
493 __nss_database_lookup.
494 (__nss_next): Move to …
495 * nss/compat-lookup.c (nss_next): … here. Change it to fail
496 unconditionally.
497 (__nss_database_lookup): New function.
498 * nss/Versions (GLIBC_2.0): Update comment.
499 (GLIBC_PRIVATE): Export __nss_database_lookup2.
500 * grp/initgroups.c (internal_getgrouplist): Call
501 __nss_database_lookup2 instead of __nss_database_lookup.
502 * nscd/aicache.c (addhstaiX): Likewise.
503 * nscd/initgrcache.c (addinitgroupsX): Likewise.
504 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
505 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
506 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
507 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
508 Likewise.
509 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
510 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
511 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
512
513 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
514
515 * support/support.h (support_install_rootsbindir): New variable.
516 * support/support_paths.c: Likewise.
517 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
518
519 2019-05-15 Florian Weimer <fweimer@redhat.com>
520
521 * iconv/gconv.h (__gconv_transliterate): Move declaration …
522 * iconv/gconv_int.h (__gconv_transliterate): … here.
523 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
524 * iconv/skeleton.c: Likewise.
525
526 2019-05-14 Florian Weimer <fweimer@redhat.com>
527
528 Linux: Add the tgkill function.
529 * bits/signal_ext.h: New file.
530 * manual/signal.texi (Signaling Another Process): Document tgkill.
531 * signal/Makefile (headers): Add bits/signal_ext.h.
532 * signal/signal.h: Include <bits/signal_ext.h>.
533 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
534 (tst-tgkill): Link with libpthread.
535 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
536 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
537 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
538 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
539 tgkill.
540 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
541 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
542 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
543 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
544 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
545 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
546 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
547 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
548 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
549 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
550 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
551 Likewise.
552 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
553 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
554 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
556 Likewise.
557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
558 Likewise.
559 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
560 Likewise.
561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
562 Likewise.
563 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
564 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
565 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
566 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
567 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
568 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
569 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
570 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
571
572 2019-05-14 Carlos O'Donell <carlos@redhat.com>
573
574 * manual/search.texi (Tree Search Function): Adjust twalk_r
575 documentation.
576
577 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
578
579 [BZ #24544]
580 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
581 pre-defined value.
582
583 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
584 * support/support.h (support_bindir_prefix): New variable.
585 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
586
587 * config.make.in (bindir): New variable.
588
589 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
590 (lll_trylock): Call __lll_trylock.
591 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
592 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
593 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
594 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
595 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
596 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
597 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
598 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
599 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
600 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
601 lowlevellock-futex.h.
602
603 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
604 initialization for LLL_LOCK_INITIALIZER different than 0.
605 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
606 Assume LLL_LOCK_INITIALIZER being 0.
607 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
608 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
609 Likewise.
610 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
611 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
612
613 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
614 Optimize futex call and add systemtap probe.
615
616 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
617 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
618 __libc_disable_asynccancel, __librt_enable_asynccancel,
619 __libc_disable_asynccancel, __librt_enable_asynccancel,
620 __librt_disable_asynccancel): Move to ...
621 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
622 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
623 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
624 * sysdeps/generic/single-thread.h: New file.
625 * sysdeps/unix/sysdep.h: Include single-thread.h.
626 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
627 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
628
629 2019-05-08 Mike FABIAN <mfabian@redhat.com>
630
631 [BZ #24535]
632 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
633 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
634 Unicode 12.1.0.
635 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
636 * localedata/unicode-gen/PropList.txt: Likewise.
637 * localedata/unicode-gen/UnicodeData.txt: Likewise.
638 * localedata/charmaps/UTF-8: Regenerate.
639 * localedata/locales/i18n_ctype: Likewise.
640 * localedata/locales/tr_TR: Likewise.
641 * localedata/locales/translit_circle: Likewise.
642 * localedata/locales/translit_cjk_compat: Likewise.
643 * localedata/locales/translit_combining: Likewise.
644 * localedata/locales/translit_compat: Likewise.
645 * localedata/locales/translit_font: Likewise.
646 * localedata/locales/translit_fraction: Likewise.
647
648 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
649
650 [BZ #24531]
651 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
652 (do_set_tcache_count): Only update if count is small enough.
653 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
654
655 2019-05-10 Florian Weimer <fweimer@redhat.com>
656
657 * nptl/sem_close.c (struct walk_closure): Define.
658 (walker): Adjust for __twalk_r.
659 (sem_close): Call __twalk_r.
660
661 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
662
663 * support/timespec.c (test_timespec_before_impl,
664 test_timespec_equal_or_after_impl): print timespec member as intmax_t
665 insted of long int.
666
667 2019-05-09 Mike Crowe <mac@mcrowe.com>
668
669 * nptl/tst-abstime.c: Use libsupport.
670
671 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
672 small bug where only tv.tv_usec was checked which could cause an
673 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
674 than a second.
675
676 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
677 libsupport.
678
679 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
680 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
681
682 * nptl/tst-cond11.c: Use libsupport.
683
684 * support/timespec.h: New file. Provide timespec helper functions
685 along with macros in the style of those in check.h.
686 * support/timespec.c: New file. Implement check functions declared
687 in support/timespec.h.
688 * support/timespec-add.c: New file from gnulib containing
689 timespec_add implementation that handles overflow.
690 * support/timespec-sub.c: New file from gnulib containing
691 timespec_sub implementation that handles overflow.
692 * support/README: Mention timespec.h.
693
694 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
695
696 [BZ #24537]
697 * nptl/Makefile: Move tst-eintr1 to xtests.
698
699 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
700
701 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
702 TRUNC handling.
703 (round_mode): Add definition for TRUNC.
704 * sysdeps/powerpc/fpu/s_trunc.c: New file.
705 * sysdeps/powerpc/fpu/s_truncf.c: New file.
706 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
707 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
708 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
709 Likewise.
710 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
711 Likewise.
712 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
713 Likewise.
714 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
715 Likewise.
716 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
717 file.
718 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
719 Likewise.
720 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
721 Likewise.
722 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
723 Likewise.
724 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
725 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
726 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
727 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
728 s_truncf-power5+, and s_truncf-ppc64.
729 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
730 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
731 file.
732 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
733 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
734 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
735 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
736 file.
737 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
738 Likewise.
739 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
740 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
741 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
742 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
743 s_truncf-power5+, and s_truncf-ppc64.
744 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
745 file.
746 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
747 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
748 Likewise.
749 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
750 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
751 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
752 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
753 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
754
755 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
756 ROUND handling.
757 (round_mode): Add definition for ROUND.
758 (round_to_integer_float): Likewise.
759 * sysdeps/powerpc/fpu/s_round.c: New file.
760 * sysdeps/powerpc/fpu/s_roundf.c: New file.
761 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
762 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
763 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
764 Likewise.
765 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
766 Likewise.
767 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
768 Likewise.
769 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
770 Likewise.
771 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
772 file.
773 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
774 Likewise.
775 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
776 Likewise.
777 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
778 Likewise.
779 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
780 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
781 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
782 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
783 s_roundf-power5+, and s_roundf-ppc64.
784 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
785 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
786 file.
787 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
789 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
790 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
791 file.
792 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
793 Likewise.
794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
795 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
796 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
797 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
798 s_roundf-power5+, and s_roundf-ppc64.
799 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
800 file.
801 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
802 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
803 Likewise.
804 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
805 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
806 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
807 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
808 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
809
810 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
811 Add FLOOR option.
812 (round_mode): Add definition for FLOOR.
813 * sysdeps/powerpc/fpu/s_floor.c: New file.
814 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
815 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
816 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
818 Remove file.
819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
820 Likewise
821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
822 Likewise.
823 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
824 Likewise.
825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
826 New file.
827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
828 Likewise.
829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
830 Likewise.
831 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
832 Likewise.
833 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
834 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
835 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
836 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
837 s_floorf-power5+, and s_floorf-ppc64.
838 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
839 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
840 file.
841 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
843 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
844 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
845 file.
846 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
847 Likewise.
848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
849 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
850 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
851 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
852 s_floorf-power5+, and s_floorf-ppc64.
853 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
854 file.
855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
856 file.
857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
858 Likewise.
859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
860 Likewise.
861 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
862 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
863 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
864 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
865
866 2019-05-08 Mike Crowe <mac@mcrowe.com>
867
868 * support/xclock_gettime.c (xclock_gettime): New file. Provide
869 clock_gettime wrapper for use in tests that fails the test rather
870 than returning failure.
871
872 * support/xtime.h: New file to declare xclock_gettime.
873
874 * support/Makefile: Add xclock_gettime.c.
875
876 * support/README: Mention xtime.h.
877
878 2019-05-08 Florian Weimer <fweimer@redhat.com>
879
880 malloc/tst-mallocfork2: Use process-shared barriers.
881 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
882 (signal_count, sigusr1_sender_pid): Remove.
883 (iterations): Define constant.
884 (shared): New variable.
885 (sigusr1_received): Update comment.
886 (sigusr1_handler): Do not send SIGSTOP to the sender process.
887 (signal_sender): Optional use barriers to avoid sending signals
888 during irrelevant times.
889 (do_it): Initialize variable shared. Use xfork for error
890 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
891 the iteration count, independent of signal delivery. Check for
892 deadlocks in fork. Introduce barriers for reducing signal
893 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
894 replaced by the barriers. Count signals during fork/free/malloc
895 and report them.
896 * malloc/Makefile (tst-mallocfork): Link with libpthread.
897
898 2019-05-07 Joseph Myers <joseph@codesourcery.com>
899
900 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
901 version to 5.1.
902 (clock_adjtime64) New syscall.
903 (clock_getres_time64) Likewise.
904 (clock_gettime64) Likewise.
905 (clock_nanosleep_time64) Likewise.
906 (clock_settime64) Likewise.
907 (futex_time64) Likewise.
908 (io_pgetevents_time64) Likewise.
909 (io_uring_enter) Likewise.
910 (io_uring_register) Likewise.
911 (io_uring_setup) Likewise.
912 (mq_timedreceive_time64) Likewise.
913 (mq_timedsend_time64) Likewise.
914 (pidfd_send_signal) Likewise.
915 (ppoll_time64) Likewise.
916 (pselect6_time64) Likewise.
917 (recvmmsg_time64) Likewise.
918 (rt_sigtimedwait_time64) Likewise.
919 (sched_rr_get_interval_time64) Likewise.
920 (semtimedop_time64) Likewise.
921 (timer_gettime64) Likewise.
922 (timer_settime64) Likewise.
923 (timerfd_gettime64) Likewise.
924 (timerfd_settime64) Likewise.
925 (utimensat_time64) Likewise.
926
927 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
928 version to 9 branch.
929
930 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
931
932 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
933 __memmove_thunderx2 to the list of implementations
934 * sysdeps/aarch64/multiarch/memmove.c: Likewise
935 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
936 (__memmove_thunderx2): Rewritten using SIMD ld/st
937 (__memcpy_thunderx2): Fixed handling overlapping cases.
938 Used ldp/stp instead of ldr/str if possible. Made loops
939 tails branchless.
940
941 2019-05-03 Florian Weimer <fweimer@redhat.com>
942
943 * misc/tst-tsearch.c (walk_tree): Add more error checking.
944
945 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
946
947 [BZ #24506]
948 * elf/tst-pldd.c (in_str_list): New function.
949 (do_test): Add default names for ld and libc as one option.
950
951 2019-05-02 Florian Weimer <fweimer@redhat.com>
952
953 misc: Add twalk_r function.
954 * include/search.h (__twalk_r): Declare.
955 * manual/examples/twalk.c: New file.
956 * manual/search.texi (Tree Search Function): Document twalk_r.
957 * misc/Versions (2.30): Export twalk_r.
958 (GLIBC_PRIVATE): Export __twalk_r.
959 * misc/search.h [__USE_GNU] (twalk_r): Declare.
960 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
961 (twalk_r): Add weak alias.
962 * misc/tst-tsearch.c (struct walk_trace_element): Define.
963 (walk_trace): New variable.
964 (struct twalk_with_twalk_r_closure): Define.
965 (twalk_with_twalk_r_action): New function.
966 (twalk_with_twalk_r): Likewise.
967 (walk_action): Call walk_trace_add.
968 (walk_tree_with): Rename from walk_tree. Add walk argument.
969 (walk_tree): New function.
970 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
971 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
972 Likewise.
973 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
974 Likewise.
975 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
976 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
977 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
978 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
979 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
980 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
981 Likewise.
982 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
983 Likewise.
984 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
985 Likewise.
986 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
987 (GLIBC_2.30): Likewise.
988 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
989 (GLIBC_2.30): Likewise.
990 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
991 (GLIBC_2.30): Likewise.
992 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
993 (GLIBC_2.30): Likewise.
994 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
995 Likewise.
996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
997 (GLIBC_2.30): Likewise.
998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
999 (GLIBC_2.30): Likewise.
1000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1001 (GLIBC_2.30): Likewise.
1002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1003 (GLIBC_2.30): Likewise.
1004 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1005 Likewise.
1006 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1007 Likewise.
1008 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1009 Likewise.
1010 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1011 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1012 Likewise.
1013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1014 Likewise.
1015 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1016 Likewise.
1017 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1018 Likewise.
1019
1020 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1021
1022 Make mktime etc. compatible with __time64_t
1023 Keep these functions compatible with Gnulib while adding
1024 __time64_t support. The basic idea is to move private API
1025 declarations from include/time.h to time/mktime-internal.h, since
1026 the former file cannot easily be shared with Gnulib whereas the
1027 latter can.
1028 Also, do some other minor cleanup while in the neighborhood.
1029 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1030 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1031 since Gnulib needs it.
1032 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1033 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1034 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1035 (in_time_t_range): New static function.
1036 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1037 so that glibc users are not tempted to use __time64_t.
1038 * time/mktime-internal.h: Rewrite so that it does both glibc
1039 and Gnulib work. Include time.h if not _LIBC.
1040 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1041 (__time64_t): New type or macro, moved here from
1042 posix/bits/types.h.
1043 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1044 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1045 from include/time.h.
1046 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1047 New macros, taken from GNulib.
1048 (__mktime_internal): New prototype, moved here from include/time.h.
1049 * time/mktime.c (mktime_min, mktime_max, convert_time)
1050 (ranged_convert, __mktime_internal, __mktime64):
1051 * time/timegm.c (__timegm64):
1052 Use __time64_t, not time_t.
1053 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1054 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1055 Rename from mktime.
1056 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1057 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1058 for libc_hidden_def.
1059 Include errno.h.
1060 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1061 Rename from timegm.
1062 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1063
1064 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1065
1066 [BZ #19444]
1067 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1068 from `-Wmaybe-uninitialized'.
1069 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1070
1071 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1072
1073 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1074 function.
1075 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1076 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1077 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1078 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1079 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1081 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1083 Remove file.
1084 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1085 Likewise.
1086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1087 Likewise.
1088 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1089 Likewise.
1090 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1091 New file.
1092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1093 Likewise.
1094 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1095 Likewise.
1096 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1097 Likewise.
1098 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1099 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1100 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1101 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1102 Likewise.
1103 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1104 Likewise.
1105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1106 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1107 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1108 file.
1109 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1110 Likewise.
1111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1112 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1113 * here.
1114 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1115 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1116 s_ceilf-power5+, and s_ceilf-ppc64.
1117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1118 file.
1119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1122 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1123 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1124 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1125 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1126
1127 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1128 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1129 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1130
1131 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1132
1133 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1134 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1135 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1136 (sem_getvalue): Likewise.
1137
1138 2019-04-26 Florian Weimer <fweimer@redhat.com>
1139
1140 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1141 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1142
1143 2019-04-26 Florian Weimer <fweimer@redhat.com>
1144
1145 Makeconfig: Move -Wl,-rpath-link options before library references.
1146 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1147 (link-libc): Remove $(link-libc-rpath-link).
1148
1149 2019-04-25 Florian Weimer <fweimer@redhat.com>
1150
1151 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1152 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1153 (+link-static-before-libc): Remove $(CC).
1154 (+link-static, +link-static-tests): Add $(CC).
1155 (+link-before-libc): Remove $(CC).
1156 (+link, +link-pie, +link-pie-printers): Add $(CC).
1157
1158 2019-04-26 Florian Weimer <fweimer@redhat.com>
1159
1160 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1161 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1162 (+link-static-before-libc): Remove $(CC).
1163 (+link-static, +link-static-tests): Add $(CC).
1164 (+link-before-libc): Remove $(CC).
1165 (+link, +link-pie, +link-pie-printers): Add $(CC).
1166
1167 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1168
1169 [BZ#24484]
1170 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1171
1172 2019-04-25 Florian Weimer <fweimer@redhat.com>
1173
1174 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1175 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1176 (bench-link-targets): New variable.
1177 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1178
1179 2019-04-25 Florian Weimer <fweimer@redhat.com>
1180
1181 Also enable BIND_NOW for programs if --enable-bind-now.
1182 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1183 (+link-pie): Use $(link-extra-flags).
1184 (+link-static): Likewise.
1185 [! $(build-pie-default)] (+link): Likewise.
1186 * manual/install.texi (Configuring and compiling): Update
1187 --enable-bind-now description.
1188 * INSTALL: Regenerated.
1189
1190 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1191
1192 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1193 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1194
1195 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1196
1197 [BZ #18465]
1198 * malloc/Makefile (others): Add memusagestat.
1199 ($(objpfx)memusagestat): Delete rule.
1200 (LDLIBS-memusagestat): New variable.
1201
1202 2019-04-24 Florian Weimer <fweimer@redhat.com>
1203
1204 * locale/Makefile (tests-special): Guard setting by
1205 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1206 to run while cross-compiling.
1207
1208 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1209
1210 [BZ #18035]
1211 * elf/Makefile (tests-container): Add tst-pldd.
1212 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1213 (E(find_maps)): Avoid use alloca, use default read file operations
1214 instead of explicit LFS names, and fix infinite loop.
1215 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1216 (get_process_info): Use _Static_assert instead of assert, use default
1217 directory operations instead of explicit LFS names, and free some
1218 leadek pointers.
1219 * elf/tst-pldd.c: New file.
1220
1221 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1222
1223 * malloc/arena.c (do_set_mallopt_check): Removed.
1224
1225 2019-04-23 Florian Weimer <fweimer@redhat.com>
1226
1227 locale: Add LOCPATH diagnostics to the locale program.
1228 * locale/programs/locale.c (setlocale_failed): New variable.
1229 (try_setlocale): New function.
1230 (quote_string): Likewise.
1231 (setlocale_diagnostics): Likewise.
1232 (main): Call try_setlocale instead of setlocale. Call
1233 setlocale_diagnostics.
1234 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1235 (tst-locale-locpath.out): New target.
1236 * locale/tst-locale-locpath.sh: New file.
1237
1238 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1239
1240 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1241 to 2.30 notes.
1242
1243 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1244
1245 [BZ #23741]
1246 * malloc/hooks.c (malloc_check, realloc_check): Use
1247 __builtin_add_overflow on overflow check and adapt to
1248 checked_request2size change.
1249 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1250 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1251 allocation size to PTRDIFF_MAX.
1252 (REQUEST_OUT_OF_RANGE): Remove macro.
1253 (checked_request2size): Change to inline function and limit maximum
1254 requested size to PTRDIFF_MAX.
1255 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1256 maximum allocation size to PTRDIFF_MAX.
1257 (_mid_memalign): Use _int_memalign call for overflow check.
1258 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1259 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1260 limit maximum requested size to PTRDIFF_MAX.
1261 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1262 valloc, pvalloc): Add __attribute_alloc_size__.
1263 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1264 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1265 larger than PTRDIFF_MAX.
1266 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1267 around tests of malloc with negative sizes.
1268 * malloc/tst-posix_memalign.c (do_test): Likewise.
1269 * malloc/tst-pvalloc.c (do_test): Likewise.
1270 * malloc/tst-valloc.c (do_test): Likewise.
1271 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1272 with resulting size allocation larger than PTRDIFF_MAX with
1273 reallocarray_nowarn.
1274 (reallocarray_nowarn): New function.
1275 * NEWS: Mention the malloc function semantic change.
1276
1277 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1278
1279 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1280 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1281
1282 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1283 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1284 * sysdeps/powerpc/fpu/s_fma.c: New file.
1285 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1286
1287 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1288 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1289
1290 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1291 the magic flag store.
1292 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1293 Likewise.
1294 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1295 Likewise.
1296 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1297 Remove rt_sigreturn call.
1298
1299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1300 Remove rt_sigreturn call.
1301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1302 Likewise.
1303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1305
1306 * support/Makefile (libsupport-routines): Add support_subprocess,
1307 xposix_spawn, xposix_spawn_file_actions_addclose, and
1308 xposix_spawn_file_actions_adddup2.
1309 (tst-support_capture_subprocess-ARGS): New rule.
1310 * support/capture_subprocess.h (support_capture_subprogram): New
1311 prototype.
1312 * support/support_capture_subprocess.c (support_capture_subprocess):
1313 Refactor to use support_subprocess and support_capture_poll.
1314 (support_capture_subprogram): New function.
1315 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1316 str_to_write_mode, test_common, parse_int, handle_restart,
1317 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1318 (do_test): Add support_capture_subprogram tests.
1319 * support/subprocess.h: New file.
1320 * support/support_subprocess.c: Likewise.
1321 * support/xposix_spawn.c: Likewise.
1322 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1323 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1324 * support/xspawn.h: Likewise.
1325
1326 2019-04-17 Mike Gerow <gerow@google.com>
1327
1328 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1329 groups limit.
1330
1331 2019-04-11 Florian Weimer <fweimer@redhat.com>
1332
1333 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1334 domain with empty string.
1335 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1336
1337 2019-04-11 Florian Weimer <fweimer@redhat.com>
1338
1339 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1340 comment.
1341 (alloc_buffer_next): Change return type to non-const. Update
1342 comment.
1343
1344 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1345
1346 * manual/time.texi (Formatting Calendar Time): Add missing percent
1347 sign to conversion specifier.
1348
1349 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1350 Kwok Cheung Yeung <kcy@codesourcery.com>
1351
1352 [BZ #16573]
1353 * malloc/mtrace.c: Define prototypes for all hooks.
1354 (set_default_hooks): New function.
1355 (set_trace_hooks): Likewise.
1356 (save_default_hooks): Likewise.
1357 (tr_freehook): Use new s*_hooks functions.
1358 (tr_mallochook): Likewise.
1359 (tr_reallochook): Likewise.
1360 (tr_memalignhook): Likewise.
1361 (mtrace): Likewise.
1362 (muntrace): Likewise.
1363
1364 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1365
1366 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1367 (generic_stpcpy): New function.
1368 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1369 (generic_stpncpy): New function.
1370 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1371 (generic_strcat): New function.
1372 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1373 (generic_strcpy): New function.
1374 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1375 (STUPID_STRNCAT): Remove function.
1376 (generic_strncat): New function.
1377 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1378 (STUPID_STRNCPY): Remove function.
1379 (generic_strncpy): New function.
1380 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1381 (generic_strnlen): New function.
1382 (memchr_strnlen): New function.
1383 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1384 (memchr_strlen): Likewise.
1385
1386 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1387
1388 * benchtests/bench-strstr.c (input): Add realistic input text.
1389 (stupid_strstr): Remove function.
1390 (basic_strstr): Add function.
1391 (twoway_strstr): Add function.
1392 (do_one_test): Add result checking.
1393 (do_test): Use new input text. Remove accidental early matches.
1394 (test_main): Improve range of tests, reduce unaligned cases.
1395
1396 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1397
1398 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1399 (basic_memmem): Add function.
1400 (twoway_memmem): Add function.
1401
1402 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1403
1404 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1405 * benchtests/bench-malloc-thread.c: Likewise.
1406 * benchtests/bench-skeleton.c: Likewise.
1407 * benchtests/bench-strtod.c: Likewise.
1408 * benchtests/bench-timing.h: Likewise.
1409
1410 2019-04-08 Florian Weimer <fweimer@redhat.com>
1411
1412 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1413 definitions.
1414 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1415 RES_INSECURE2 security checks.
1416 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1417 RES_INSECURE2 handling.
1418
1419 2019-04-08 Florian Weimer <fweimer@redhat.com>
1420
1421 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1422 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1423 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1424 GETHOSTBYNAME.
1425 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1426 (tests-internal): Update justification for tst-resolv-res_init,
1427 tst-resolv-res_init-thread.
1428 (tst-res_use_inet6): Remove target.
1429 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1430 * resolv/res_debug.c (p_option): Remove "inet6" support.
1431 * resolv/res_init.c (res_setoptions): Likewise.
1432 * resolv/res_use_inet6.h: Remove file.
1433 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1434 definition.
1435 (res_use_inet6): Always return false.
1436 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1437 * resolv/resolv_context.h: Adjust file comment.
1438 (struct resolv_context): Update comment on __next field.
1439 (__resolv_context_put): Update comment.
1440 * resolv/tst-res_use_inet6.c: Remove file.
1441 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1442 "inet6" support.
1443 (test_cases): Adjust test case.
1444 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1445 (thread_byname2_af_inet6): Use old byname_inet6 code.
1446 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1447 (gai): Remove do_inet6 argument.
1448 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1449 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1450 (thread_gai_unspec_inet6): Remove functions.
1451 (do_test): Adjust thread_funcs.
1452 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1453 RES_USE_INET6 flag.
1454 (gaih_inet): Do not disable RES_USE_INET6 flag.
1455
1456 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1457
1458 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1459 and remove redundant code.
1460
1461 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1462
1463 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1464 New rule.
1465 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1466 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1467 Likewise.
1468 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1469 Likewise.
1470 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1471 Likewise.
1472 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1473 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1474 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1475 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1476 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1477 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1478 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1479 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1480 wcsrchr-power7.
1481 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1482 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1483 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1484 Remove wcsrchr optimizations.
1485 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1486
1487 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1488 the loop unroll.
1489
1490 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1491 New rule.
1492 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1493 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1494 Likewise.
1495 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1496 Likewise.
1497 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1498 Likewise.
1499 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1500 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1501 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1502 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1503 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1504 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1505 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1506 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1507 wcschr-power7.
1508 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1509 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1510 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1511 Remove wcschr optimizations.
1512 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1513
1514 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1515 the loop unroll.
1516
1517 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1518 New rule.
1519 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1520 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1521 Likewise.
1522 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1523 Likewise.
1524 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1525 Likewise.
1526 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1527 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1528 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1529 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1530 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1531 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1532 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1533 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1534 wcscpy-power7.
1535 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1536 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1537 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1538 Remove wcscpy optimizations.
1539 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1540
1541 * include/loop_unroll.h: New file.
1542 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1543 besides generic implementation.
1544
1545 2019-04-03 DJ Delorie <dj@redhat.com>
1546
1547 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1548 snprintf truncating output.
1549
1550 2019-04-02 DJ Delorie <dj@redhat.com>
1551
1552 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1553 warning.
1554
1555 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1556
1557 [BZ #22964]
1558 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1559 era.
1560 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1561 (mkreftable): Add rules for the new Japanese era and the new dates.
1562
1563 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1564 Rafal Luzynski <digitalfreak@lingonborough.com>
1565
1566 * time/tst-strftime2.c (date_t): Explicitly define the type.
1567 (dates): Use natural month and year numbers to express a date.
1568 (is_before): New function to compare dates.
1569 (mkreftable): Minor improvements to simplify maintenance.
1570 (do_test): Reflect the changes in dates array.
1571
1572 [BZ #24293]
1573 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1574 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1575 * time/tst-strftime2.c (locales): Likewise.
1576 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1577 2010-04-01, and 2011-04-01.
1578 (mkreftable): Add rules for the new locales and the new dates.
1579
1580 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1581
1582 * localedata/locales/ja_JP: Add comments to era entries.
1583
1584 2019-04-01 DJ Delorie <dj@redhat.com>
1585
1586 [BZ #24394]
1587 * time/strptime_l.c (%Ey): Fix fencepost error.
1588 * time/tst-strftime3.c: New.
1589 * time/Makefile (tests): Add tst-strftime3.
1590
1591 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1592
1593 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1594 conditional branch to DIVBYZERO. Fix unwind info.
1595 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1596 excb after conditional branch to $powerof2. Add missing unop
1597 instructions and .align directives and reorder instructions to
1598 match __divqu.
1599
1600 2019-04-01 Richard Henderson <rth@twiddle.net>
1601
1602 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1603 Do not redefine.
1604 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1605 Do not redefine.
1606
1607 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1608
1609 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1610 $libc_cv_riscv_float_abi in `test' invocation.
1611 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1612
1613 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1614
1615 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1616 asm with builtin.
1617 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1618 Likewise.
1619 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1620 (_GET_SI_FPSCR): Likewise.
1621 (_SET_SI_FPSCR): Likewise.
1622
1623 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1624
1625 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1626 clang 2.8.
1627 (signbit): Use builtin for clang 3.3.
1628 (isinf): Use builtin for clang 3.7.
1629
1630 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1631
1632 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1633
1634 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1635
1636 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1637 quote in printf.
1638
1639 2019-03-25 Mike Crowe <mac@mcrowe.com>
1640
1641 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1642 pthread_rwlock_timedrdlock with calls to
1643 pthread_rwlock_timedwrlock to ensure that the latter is tested
1644 too. Use new function name in diagnostic messages too.
1645
1646 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1647 (do_test) Use libsupport test macros rather than hand-coded
1648 conditionals and error messages. Ensure that sem_init returns zero
1649 rather than not -1. Use <support/test-driver.c> rather than
1650 test-skeleton.c.
1651
1652 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1653 test macros rather than hand-coded conditionals and error messages.
1654 Use <support/test-driver.c> rather than test-skeleton.c.
1655
1656 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1657
1658 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1659
1660 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1661 (NT_MIPS_MSA): Likewise.
1662
1663 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1664
1665 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1666 * benchtests/README: Update description.
1667 * benchtests/bench-timing.h: Default to hp-timing.
1668 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1669 HP_TIMING_PRINT): Remove.
1670 (HP_TIMING_NOW): Add generic implementation.
1671 (hp_timing_t): Change to uint64_t.
1672
1673 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1674 HP_TIMING_INLINE.
1675 * nptl/descr.h: Likewise.
1676 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1677 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1678 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1679 Abstract hp-timing usage with RTLD_* macros.
1680 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1681 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1682 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1683 HP_TIMING_NONAVAIL): Likewise.
1684 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1685 Likewise.
1686 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1687 HP_SMALL_TIMING_AVAIL): Likewise.
1688 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1689 HP_SMALL_TIMING_AVAIL): Likewise.
1690 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1691 HP_SMALL_TIMING_AVAIL): Likewise.
1692 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1693 HP_SMALL_TIMING_AVAIL): Likewise.
1694 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1695 Likewise.
1696 * sysdeps/generic/hp-timing-common.h: Update comment with
1697 HP_TIMING_AVAIL removal.
1698
1699 * include/random-bits.h: New file.
1700 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1701 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1702 random_bits.
1703 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1704 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1705 Likewise.
1706
1707 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1708 * rt/Makefile (clock-routines): Remove get_clockfreq.
1709 * rt/get_clockfreq.c: Remove file.
1710 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1711 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1712 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1713 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1714 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1715
1716 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1717 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1718 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1719 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1720 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1721
1722 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1723 pthread_clock_settime.
1724 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1725 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1726 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1727 * elf/rtld.c (_dl_start_final): Likewise.
1728 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1729 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1730 Remove.
1731 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1732 (_dl_cpuclock_offset): Remove.
1733 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1734 cpuclock_offset_ununsed.
1735 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1736 cpuclock_offset set.
1737 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1738 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1739 * nptl/pthread_clock_gettime.c: Remove file.
1740 * nptl/pthread_clock_settime.c: Likewise.
1741 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1742 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1743 and CLOCK_PROCESS_CPUTIME_ID support.
1744 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1745 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1746 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1747 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1748 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1749 Likewise.
1750 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1751
1752 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1753
1754 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1755 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1756 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1757 New defines.
1758 * sysdeps/s390/memmem-arch13.S: New file.
1759 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1760 if it is only used as fallback.
1761 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1762 * sysdeps/s390/multiarch/ifunc-impl-list.c
1763 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1764
1765 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1766
1767 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1768 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1769 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1770 New defines.
1771 * sysdeps/s390/multiarch/ifunc-impl-list.c
1772 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1773 * sysdeps/s390/strstr-arch13.S: New file.
1774 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1775 if it is only used as fallback.
1776 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1777
1778 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1779
1780 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1781 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1782 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1783 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1784 ifunc selector.
1785 * sysdeps/s390/multiarch/ifunc-impl-list.c
1786 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1787 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1788 S390_IS_ARCH13_MIE3): New defines.
1789
1790 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1791
1792 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1793 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1794 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1795 * sysdeps/s390/configure: Regenerated.
1796
1797 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1798
1799 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1800 Add vxe2, vxp, dflt, sort flags.
1801 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1802 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1803 capabilities.
1804 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1805 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1806 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1807 HWCAP_S390_DFLT): Define.
1808
1809 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1810
1811 [BZ #24372]
1812 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1813 of compiler warning.
1814 * locale/programs/ld-collate.c (collate_output): Likewise.
1815
1816 2019-03-21 DJ Delorie <dj@redhat.com>
1817
1818 [BZ #24372]
1819 * iconv/iconvconfig.c (write_output): Replace floating point math
1820 with integer math to avoid imprecise results.
1821 * locale/programs/ld-collate.c (collate_output): Likewise.
1822
1823 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1824
1825 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1826 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1827
1828 2019-03-20 mansayk <6688000@gmail.com>
1829
1830 [BZ #24296]
1831 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1832 (abday): Likewise, but remove the trailing dots.
1833
1834 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1835
1836 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1837 macro.
1838 (HWCAP_PACA): Likewise.
1839 (HWCAP_PACG): Likewise.
1840 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1841 Increase to 32.
1842 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1843
1844 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1845
1846 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1847 should be handled.
1848
1849 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1850
1851 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1852 version to 5.0.
1853 (old_getpagesize): New syscall.
1854
1855 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1856
1857 [BZ #24293]
1858 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1859 * localedata/locales/cmn_TW (era): Likewise.
1860 * localedata/locales/hak_TW (era): Likewise.
1861 * localedata/locales/lzh_TW (era): Likewise.
1862 * localedata/locales/nan_TW (era): Likewise.
1863
1864 2019-03-14 Adam Maris <amaris@redhat.com>
1865
1866 * malloc/malloc.c (_int_malloc): Check for large bin list
1867 corruption when inserting unsorted chunk.
1868
1869 2019-03-14 Florian Weimer <fweimer@redhat.com>
1870
1871 Remove obsolete, never-implemented XSI STREAMS declarations.
1872 * manual/terminal.texi (Allocation): Remove portability note and
1873 adjust example.
1874 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1875 _SC_STREAMS.
1876 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1877 * sysdeps/unix/inet/Subdirs (streams): Remove.
1878 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1879 (conformtest-headers-UNIX98): Likewise.
1880 (conformtest-headers-XOPEN2K): Likewise.
1881 (conformtest-headers-POSIX2008): Likewise.
1882 * posix/compat-streams.c: New file.
1883 * posix/Makefile (routines): Add it.
1884 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1885 getpmsg, isastream, putmsg, putpmsg.
1886 (GLIBC_2.30): New section.
1887 * bits/stropts.h: Remove file.
1888 * bits/xtitypes.h: Likewise.
1889 * conform/data/stropts.h-data: Likewise.
1890 * include/stropts.h: Likewise.
1891 * include/sys/stropts.h: Likewise.
1892 * include/xtitypes.h: Likewise.
1893 * streams/Makefile: Likewise.
1894 * streams/fattach.c: Likewise.
1895 * streams/fdetach.c: Likewise.
1896 * streams/getmsg.c: Likewise.
1897 * streams/getpmsg.c: Likewise.
1898 * streams/isastream.c: Likewise.
1899 * streams/putmsg.c: Likewise.
1900 * streams/putpmsg.c: Likewise.
1901 * streams/stropts.h: Likewise.
1902 * streams/sys/stropts.h: Likewise.
1903 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1904 * sysdeps/s390/bits/xtitypes.h: Likewise.
1905 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1906 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1907 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1908 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1909 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1910 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1911 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1912 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1913 * sysdeps/x86/bits/xtitypes.h: Likewise.
1914
1915 2019-03-14 Florian Weimer <fweimer@redhat.com>
1916
1917 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1918 libnss_files.
1919 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1920 but not with libnss_files.
1921 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1922
1923 2019-03-14 Zack Weinberg <zackw@panix.com>
1924
1925 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1926 Specify encoding="utf-8" when opening headers to check.
1927
1928 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1929
1930 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1931 version to 5.0.
1932 (Context.checkout_tar): Handle variable major version for Linux
1933 kernel.
1934
1935 2019-03-13 Florian Weimer <fweimer@redhat.com>
1936
1937 [BZ #24047]
1938 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1939
1940 2019-03-13 Zack Weinberg <zackw@panix.com>
1941
1942 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1943 Move to stdlib.
1944 * include/inttypes.h: Adjust to match.
1945 * include/stdint.h: New wrapper.
1946
1947 2019-03-13 Zack Weinberg <zackw@panix.com>
1948
1949 * scripts/check-obsolete-constructs.py: New test script.
1950 * scripts/check-installed-headers.sh: Remove tests for
1951 obsolete typedefs, superseded by check-obsolete-constructs.py.
1952 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1953 as a special test. Update commentary.
1954 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1955 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1956 Update commentary.
1957 * posix/sys/types.h (__u_intN_t): Remove.
1958 (u_int8_t): Typedef using __uint8_t.
1959 (u_int16_t): Typedef using __uint16_t.
1960 (u_int32_t): Typedef using __uint32_t.
1961 (u_int64_t): Typedef using __uint64_t.
1962
1963 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1964
1965 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1966 call _dl_procinfo.
1967 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1968 Ignore types other than AT_HWCAP.
1969 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1970 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1971 Likewise.
1972 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1973 in the case of falling back to generic output mechanism.
1974 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1975 Likewise.
1976
1977 2019-03-12 Florian Weimer <fweimer@redhat.com>
1978
1979 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1980
1981 2019-03-12 Florian Weimer <fweimer@redhat.com>
1982
1983 [BZ #24047]
1984 resolv: Enable full ICMP errors for UDP DNS sockets
1985 * resolv/res_enable_icmp.c: New file.
1986 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1987 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1988 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1989 socket.
1990
1991 2019-03-11 Mao Han <han_mao@c-sky.com>
1992
1993 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1994 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1995
1996 2019-03-11 Mao Han <han_mao@c-sky.com>
1997
1998 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1999 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2000 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2001
2002 2019-03-11 Mao Han <han_mao@c-sky.com>
2003
2004 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2005 directly.
2006 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2007 definition.
2008
2009 2019-03-11 Mao Han <han_mao@c-sky.com>
2010
2011 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2012 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2013 in mcontext_t
2014
2015 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2016
2017 [BZ #24307]
2018 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2019 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2020 Unicode 12.0.0.
2021 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2022 * localedata/unicode-gen/PropList.txt: Likewise.
2023 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2024 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2025 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2026 * localedata/charmaps/UTF-8: Regenerate.
2027 * localedata/locales/i18n_ctype: Likewise.
2028 * localedata/locales/tr_TR: Likewise.
2029 * localedata/locales/translit_circle: Likewise.
2030 * localedata/locales/translit_cjk_compat: Likewise.
2031 * localedata/locales/translit_combining: Likewise.
2032 * localedata/locales/translit_compat: Likewise.
2033 * localedata/locales/translit_font: Likewise.
2034 * localedata/locales/translit_fraction: Likewise.
2035
2036 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2037
2038 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2039 than after operators.
2040 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2041 (setitimer_locked): Likewise.
2042 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2043 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2044 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2045 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2046 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2047 (PPC_CPU_SUPPORTED): Likewise.
2048 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2049 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2050 (stat_overflow): Likewise.
2051 (statfs_overflow): Likewise.
2052 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2053 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2054 (eq_ttyname_r): Likewise.
2055 (run_chroot_tests): Likewise.
2056
2057 2019-03-07 Florian Weimer <fweimer@redhat.com>
2058
2059 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2060 header check.
2061
2062 2019-03-07 Martin Liska <mliska@suse.cz>
2063
2064 * math/Makefile: Change location where math-vector-fortran.h is
2065 installed.
2066 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2067 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2068 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2069 * scripts/check-installed-headers.sh: Skip Fortran header files.
2070 * scripts/check-wrapper-headers.py: Likewise.
2071
2072 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2073
2074 * nptl/nptl-init.c (__have_futex_clock_realtime,
2075 __have_futex_clock_realtime): Remove definition.
2076 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2077 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2078 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2079 __ASSUME_FUTEX_CLOCK_REALTIME support.
2080 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2081 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2082 * sysdeps/unix/sysv/linux/kernel-features.h
2083 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2084 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2085 Adjust comment.
2086
2087 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2088
2089 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2090 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2091 __GI___wcscpy and wcscpy.
2092
2093 2019-03-04 Florian Weimer <fweimer@redhat.com>
2094
2095 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2096 declaration.
2097 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2098 defined.
2099
2100 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2101
2102 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2103 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2104
2105 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2106
2107 [BZ #24162]
2108 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2109 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2110
2111 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2112
2113 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2114 tests.
2115 (do_test): Likewise.
2116 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2117 (do_test_call_varg): Likewise.
2118 (do_test_call_rarg): Likewise.
2119 * sysdeps/ieee754/ldbl-opt/Makefile
2120 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2121 tst-nldbl-error.
2122 ($(objpfx)tst-nldbl-warn.c): New rule.
2123 ($(objpfx)tst-nldbl-error.c): Likewise.
2124 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2125 New variables.
2126
2127 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2128
2129 [BZ #23984]
2130 * include/bits/error-ldbl.h: New file.
2131 * include/error.h: Include stdarg.h. Declare internal functions
2132 __error_internal and __error_at_line_internal.
2133 * misc/Makefile (headers): Add bits/error-ldbl.h.
2134 * misc/bits/error-ldbl.h: New file.
2135 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2136 avoid the inclusion of bits/error.h.
2137 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2138 and __nldbl_error_at_line.
2139 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2140 (__nldbl_error, __ndlbl_error_at_line): New functions.
2141 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2142 Redirect error and error_at_line.
2143 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2145 Likewise.
2146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2147 Likewise.
2148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2149 Likewise.
2150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2151 Likewise.
2152 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2153 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2154 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2155
2156 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2157
2158 [BZ #23984]
2159 * include/bits/err-ldbl.h: New file.
2160 * include/err.h: Add prototypes for the internal functions:
2161 __vwarnx_internal and __vwarn_internal.
2162 * misc/Makefile (headers): Add bits/err-ldbl.h.
2163 * misc/bits/err-ldbl.h: New file.
2164 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2165 defined, i.e.: when -mlong-double-64 is in use.
2166 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2167 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2168 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2169 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2170 (VA_CALL): New macro.
2171 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2172 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2173 functions.
2174 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2175 declare prototypes for the new functions.
2176 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2178 Likewise.
2179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2180 Likewise.
2181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2182 Likewise.
2183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2184 Likewise.
2185 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2186 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2187 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2188
2189 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2190
2191 * sysdeps/ieee754/ldbl-opt/Makefile
2192 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2193 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2194 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2195
2196 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2197
2198 [BZ #23983]
2199 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2200 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2201 * argp/bits/argp-ldbl.h: New file.
2202 * include/argp.h: Include stdarg.h. Add prototypes for internal
2203 functions: __argp_error_internal and __argp_failure_internal.
2204 * include/bits/argp-ldbl.h: New file.
2205 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2206 __nldbl_argp_error and __nldbl_argp_failure.
2207 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2208 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2209 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2210 Redirect argp_error and argp_failure calls.
2211 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2212 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2213 Likewise.
2214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2215 Likewise.
2216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2217 Likewise.
2218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2219 Likewise.
2220 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2221 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2222 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2223
2224 2019-03-01 Florian Weimer <fweimer@redhat.com>
2225
2226 [BZ #20419]
2227 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2228 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2229 code, to avoid creating an ABI tag note.
2230 (modules-names-nobuild): Add tst-big-note-lib.
2231
2232 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2233
2234 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2235 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2236
2237 2019-03-01 Florian Weimer <fweimer@redhat.com>
2238
2239 [BZ #20271]
2240 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2241 (__netlink_assert_response): Add additional missing newlines.
2242
2243 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2244
2245 * sysdeps/powerpc/powerpc32/dl-machine.c
2246 (__elf_machine_fixup_plt): Use space before '('.
2247 (__process_machine_rela): Likewise.
2248 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2249 Likewise.
2250 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2251 Likewise.
2252 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2253 Likewise.
2254 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2255 (pattern): Likewise.
2256 (delta): Likewise.
2257 (check_result): Likewise.
2258 (check_excepts): Likewise.
2259 (check_op): Likewise.
2260 (fail_xr): Likewise.
2261 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2262 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2263 (SCNHSZ): Likewise.
2264 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2265 Likewise.
2266 (ARGS): Likewise.
2267 (__makecontext): Likewise.
2268 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2269 Likewise.
2270
2271 2019-02-28 Florian Weimer <fweimer@redhat.com>
2272
2273 [BZ #23937]
2274 elf: Add test with a local IFUNC resolver.
2275 * elf/ifuncmain9.c: New file.
2276 * elf/ifuncmain9pic.c: Likewise.
2277 * elf/ifuncmain9picstatic.c: Likewise.
2278 * elf/ifuncmain9pie.c: Likewise.
2279 * elf/ifuncmain9static.c: Likewise.
2280 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2281 ifuncmain9static, ifuncmain9picstatic.
2282 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2283 Add ifuncmain9, ifuncmain9pic.
2284 * elf/Makefile [multi-arch && build-shared && have-fpie]
2285 (ifunc-pie-tests): Add ifuncmain9pie.
2286 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2287 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2288 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2289
2290 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2291
2292 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2293 * configure: Regenerated.
2294 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2295
2296 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2297
2298 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2299 symbol as __wcspcy instead of wcscpy.
2300
2301 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2302
2303 * include/stdio.h (__renameat2): New hidden prototype.
2304 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2305 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2306 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2307 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2308
2309 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2310
2311 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2312 if statement.
2313
2314 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2315 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2316 * benchtests/bench-strlen.c (do_test): Likewise.
2317 (test_main): Likewise.
2318 * catgets/gencat.c (read_old): Likewise.
2319 * elf/cache.c (load_aux_cache): Likewise.
2320 * iconvdata/bug-iconv8.c (do_test): Likewise.
2321 * math/test-tgmath-ret.c (do_test): Likewise.
2322 * nis/nis_call.c (rec_dirsearch): Likewise.
2323 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2324 * nptl/tst-audit-threads.c (do_test): Likewise.
2325 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2326 * nss/nss_test1.c (init): Likewise.
2327 * nss/test-netdb.c (test_hosts): Likewise.
2328 * posix/execvpe.c (maybe_script_execute): Likewise.
2329 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2330 * stdio-common/tst-printf.c (do_test): Likewise.
2331 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2332 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2333 * stdlib/qsort.c (STACK_SIZE): Likewise.
2334 * stdlib/test-canon.c (do_test): Likewise.
2335 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2336 * string/memcmp.c (OPSIZ): Likewise.
2337 * string/test-strcpy.c (do_test): Likewise.
2338 (do_random_tests): Likewise.
2339 * string/test-strlen.c (do_test): Likewise.
2340 (test_main): Likewise.
2341 * string/test-strrchr.c (do_test): Likewise.
2342 (do_random_tests): Likewise.
2343 * string/tester.c (test_memrchr): Likewise.
2344 (test_memchr): Likewise.
2345 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2346 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2347 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2348 (read_encoded_value_with_base): Likewise.
2349 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2350 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2351 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2352 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2353 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2354 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2355 Likewise.
2356 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2357 Likewise.
2358 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2359 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2360 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2361 Likewise.
2362 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2363 Likewise.
2364 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2365 Likewise.
2366 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2367 Likewise.
2368 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2369 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2370 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2371 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2372 * time/test_time.c (main): Likewise.
2373
2374 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2375
2376 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2377
2378 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2379 wmemcpy.
2380
2381 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2382 wmemcpy.
2383
2384 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2385
2386 * include/wchar.h (__wcscpy): New prototype.
2387 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2388 (__wcscpy): Route internal symbol to generic implementation.
2389 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2390 Add internal __wcscpy alias.
2391 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2392 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2393 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2394 * wcsmbs/wcscpy.c (wcscpy): Add
2395 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2396 use generic implementation.
2397 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2398
2399 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2400 wmemset.
2401
2402 * sysdeps/m68k/wcpcpy.c: Remove file.
2403 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2404
2405 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2406
2407 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2408 than after operators.
2409 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2410 * sysdeps/mach/hurd/getcwd.c
2411 (__hurd_canonicalize_directory_name_internal): Likewise.
2412 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2413 (pthread_mutex_consistent): Likewise.
2414 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2415 Likewise.
2416 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2417 (__pthread_mutex_transfer_np): Likewise.
2418 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2419 (__pthread_mutex_unlock): Likewise.
2420 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2421 (mtx_owned_p): Likewise.
2422 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2423 (pthread_mutexattr_getrobust): Likewise.
2424 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2425 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2426 Likewise.
2427 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2428 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2429 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2430 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2431 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2432 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2433 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2434 Likewise.
2435 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2436 Likewise.
2437 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2438 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2439 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2440 (____longjmp_chk): Likewise.
2441 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2442 Likewise.
2443 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2444 (INTERNAL_SYSCALL): Likewise.
2445 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2446 (INTERNAL_SYSCALL): Likewise.
2447 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2448 (__get_clockfreq_via_cpuinfo): Likewise.
2449
2450 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2451 comments.
2452 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2453 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2454 (WORD_COPY_BWD): Likewise.
2455 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2456 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2457 Likewise.
2458 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2459 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2460 comment.
2461 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2462
2463 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2464
2465 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2466 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2467 rather than after operators.
2468 * elf/cache.c (print_cache): Likewise.
2469 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2470 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2471 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2472 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2473 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2474 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2475 (reauth_proc): Likewise.
2476 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2477 (__file_name_split_at): Likewise.
2478 (__directory_name_split_at): Likewise.
2479 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2480 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2481 * iconv/gconv_dl.c (do_print): Likewise.
2482 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2483 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2484 * locale/setlocale.c (new_composite_name): Likewise.
2485 * malloc/memusagestat.c (main): Likewise.
2486 * misc/fstab.c (fstab_convert): Likewise.
2487 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2488 Likewise.
2489 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2490 (getgrent_next_file): Likewise.
2491 (internal_getgrnam_r): Likewise.
2492 (internal_getgrgid_r): Likewise.
2493 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2494 Likewise.
2495 (internal_getgrent_r): Likewise.
2496 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2497 (getpwent_next_nss): Likewise.
2498 (getpwent_next_file): Likewise.
2499 (internal_getpwnam_r): Likewise.
2500 (internal_getpwuid_r): Likewise.
2501 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2502 Likewise.
2503 (getspent_next_nss): Likewise.
2504 (internal_getspnam_r): Likewise.
2505 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2506 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2507 * string/strchr.c (STRCHR): Likewise.
2508 * string/strchrnul.c (STRCHRNUL): Likewise.
2509 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2510 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2511 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2512 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2513 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2514 Likewise.
2515 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2516 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2517 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2518 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2519 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2520 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2521 (open_file): Likewise.
2522 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2523 (pthread_mutexattr_setprotocol): Likewise.
2524 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2525 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2526 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2527 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2528 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2529 Likewise.
2530 (elf_machine_rela): Likewise.
2531 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2532 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2533 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2534 * sysdeps/posix/rename.c (rename): Likewise.
2535 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2536 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2537 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2538 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2539 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2540 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2541 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2542 Likewise.
2543 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2544 Likewise.
2545 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2546 * time/tzfile.c (__tzfile_compute): Likewise.
2547
2548 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2549
2550 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2551 rather than after operators.
2552 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2553 * crypt/md5.c (md5_finish_ctx): Likewise.
2554 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2555 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2556 * elf/cache.c (load_aux_cache): Likewise.
2557 * elf/dl-load.c (open_verify): Likewise.
2558 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2559 * elf/readelflib.c (process_elf_file): Likewise.
2560 * elf/rtld.c (dl_main): Likewise.
2561 * elf/sprof.c (generate_call_graph): Likewise.
2562 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2563 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2564 * hurd/dtable.c (reauth_dtable): Likewise.
2565 * hurd/getdport.c (__getdport): Likewise.
2566 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2567 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2568 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2569 Likewise.
2570 * hurd/hurdioctl.c (fioctl): Likewise.
2571 * hurd/hurdselect.c (_hurd_select): Likewise.
2572 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2573 (STOPSIGS): Likewise.
2574 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2575 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2576 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2577 * hurd/msgportdemux.c (msgport_server): Likewise.
2578 * hurd/setauth.c (_hurd_setauth): Likewise.
2579 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2580 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2581 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2582 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2583 * login/tst-utmp.c (do_check): Likewise.
2584 (simulate_login): Likewise.
2585 * mach/lowlevellock.h (lll_lock): Likewise.
2586 (lll_trylock): Likewise.
2587 * math/test-fenv.c (ALL_EXC): Likewise.
2588 * math/test-fenvinline.c (ALL_EXC): Likewise.
2589 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2590 * nis/nis_call.c (__do_niscall3): Likewise.
2591 * nis/nis_callback.c (cb_prog_1): Likewise.
2592 * nis/nis_defaults.c (searchaccess): Likewise.
2593 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2594 * nis/nis_ismember.c (internal_ismember): Likewise.
2595 * nis/nis_local_names.c (nis_local_principal): Likewise.
2596 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2597 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2598 Likewise.
2599 * nis/ypclnt.c (yp_match): Likewise.
2600 (yp_first): Likewise.
2601 (yp_next): Likewise.
2602 (yp_master): Likewise.
2603 (yp_order): Likewise.
2604 * nscd/hstcache.c (cache_addhst): Likewise.
2605 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2606 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2607 (internal_getpwuid_r): Likewise.
2608 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2609 * posix/glob.h (__GLOB_FLAGS): Likewise.
2610 * posix/regcomp.c (peek_token): Likewise.
2611 (peek_token_bracket): Likewise.
2612 (parse_expression): Likewise.
2613 * posix/regexec.c (sift_states_iter_mb): Likewise.
2614 (check_node_accept_bytes): Likewise.
2615 * posix/tst-spawn3.c (do_test): Likewise.
2616 * posix/wordexp-test.c (testit): Likewise.
2617 * posix/wordexp.c (parse_tilde): Likewise.
2618 (exec_comm): Likewise.
2619 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2620 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2621 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2622 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2623 * stdio-common/tst-fileno.c (do_test): Likewise.
2624 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2625 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2626 * stdlib/strtod_l.c (round_and_return): Likewise.
2627 (____STRTOF_INTERNAL): Likewise.
2628 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2629 * string/strcspn.c (STRCSPN): Likewise.
2630 * string/test-memmem.c (simple_memmem): Likewise.
2631 * termios/tcsetattr.c (tcsetattr): Likewise.
2632 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2633 * time/asctime.c (asctime_internal): Likewise.
2634 * time/strptime_l.c (__strptime_internal): Likewise.
2635 * time/sys/time.h (timercmp): Likewise.
2636 * time/tzfile.c (__tzfile_compute): Likewise.
2637
2638 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2639
2640 [BZ #21915]
2641 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2642
2643 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2644
2645 * argp/argp-help.c (__argp_error_internal): New function,
2646 renamed from __argp_error, but that takes a 'mode_flags'
2647 parameter to control the format of long double parameters.
2648 (__argp_error): Converted into a call __argp_error_internal.
2649 (__argp_failure_internal): New function, renamed from
2650 __argp_failure, but that takes a 'mode_flags' parameter.
2651 (__argp_failure): Converted into a call __argp_failure_internal.
2652 * misc/err.c (__vwarnx_internal): New function, renamed from
2653 vwarnx, but that takes a 'mode_flags' parameter.
2654 (vwarnx): Converted into a call to __vwarnx_internal.
2655 (__vwarn_internal): New function, renamed from vwarn, but that
2656 takes a 'mode_flags' parameter.
2657 (vwarn): Converted into a call to __vwarn_internal.
2658 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2659 call to __vfxprintf with 'mode_flags'.
2660 (__error_internal): New function, renamed from error, but that
2661 takes a 'mode_flags' parameter.
2662 (error): Converted into a call to __error_internal.
2663 (__error_at_line_internal): New function, renamed from
2664 error_at_line, but that takes a 'mode_flags' parameter.
2665 (error_at_line): Converted into a call to
2666 __error_at_line_internal.
2667 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2668 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2669 Likewise.
2670
2671 2019-02-20 Martin Liska <mliska@suse.cz>
2672
2673 * math/Makefile: Install math-vector-fortran.h.
2674 * bits/math-vector-fortran.h: New file.
2675 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2676
2677 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2678
2679 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2680 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2681
2682 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2683
2684 * nptl/pthread_mutex_trylock.c: Fix comment.
2685
2686 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2687
2688 * nptl/pthread_tryjoin.c: Fix comment.
2689
2690 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2691
2692 [BZ #24231]
2693 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2694 after R_SPARC_H34 case.
2695
2696 2019-02-18 Florian Weimer <fweimer@redhat.com>
2697
2698 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2699 (getanswer): Do not call Dprintf.
2700 (res_gethostbyname2_context): Likewise.
2701 (res_gethostbyaddr_context): Likewise.
2702
2703 2019-02-18 Florian Weimer <fweimer@redhat.com>
2704
2705 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2706 declaration.
2707 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2708 Remove definitions.
2709 * libio/stdfiles.c: Update comment.
2710 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2711 set _IO_stdin, _IO_stdout, _IO_stderr.
2712 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2713 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2714 inline function.
2715 (_IO_deallocate_file): New inline function.
2716 * libio/iolibio.h (_IO_vprintf): Remove definition.
2717 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2718 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2719 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2720 _IO_legacy_file.
2721 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2722 __builtin_expect. Use _IO_legacy_file.
2723
2724 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2725
2726 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2727 Initialize ctid with a known value and remove update of ctid
2728 after clone.
2729 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2730 as assumed current value of ctid_ptr.
2731
2732 2019-02-16 Florian Weimer <fweimer@redhat.com>
2733
2734 Check that non-sysdeps headers have wrapper headers.
2735 * scripts/check-wrapper-headers.py: New file.
2736 * Makefile (tests-special): Add check-wrapper-headers.out.
2737 (check-wrapper-headers.out): New target.
2738 * Rules (tests-special): Add check-wrapper-headers.out.
2739 (check-wrapper-headers.out): New target.
2740
2741 2019-02-16 Florian Weimer <fweimer@redhat.com>
2742
2743 Add missing header wrappers under include/.
2744 * include/ar.h: New file.
2745 * include/bits/mqueue2.h: Likewise.
2746 * include/bits/stdio.h: Likewise.
2747 * include/bits/stdio2.h: Likewise.
2748 * include/fstab.h: Likewise.
2749 * include/fts.h: Likewise.
2750 * include/lastlog.h: Likewise.
2751 * include/netinet/icmp6.h: Likewise.
2752 * include/netinet/igmp.h: Likewise.
2753 * include/netinet/ip6.h: Likewise.
2754 * include/re_comp.h: Likewise.
2755 * include/regexp.h: Likewise.
2756 * include/rpcsvc/bootparam.h: Likewise.
2757 * include/rpcsvc/yp_prot.h: Likewise.
2758 * include/sys/random.h: Likewise.
2759 * include/sys/stropts.h: Likewise.
2760 * include/sys/ttychars.h: Likewise.
2761 * include/sys/vfs.h: Likewise.
2762 * include/wait.h: Likewise.
2763
2764 2019-02-16 Florian Weimer <fweimer@redhat.com>
2765
2766 * nptl_db/proc_service.h: Move to ...
2767 * sysdeps/nptl/proc_service.h: ... here.
2768 * nptl_db/thread_db.h: Move to ...
2769 * sysdeps/nptl/thread_db.h: ... here.
2770 * nptl/descr.h: Include <thread_db.h>.
2771
2772 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2773
2774 * io/Makefile (tests): Add tst-lockf.
2775 * io/lockf.c (lockf): Use __fcntl and only define for
2776 !__OFF_T_MATCHES_OFF64_T.
2777 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2778 __OFF_T_MATCHES_OFF64_T case.
2779 * io/tst-lockf.c: New file.
2780 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2781 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2782 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2783 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2784 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2786 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2787 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2788 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2789
2790 2019-02-15 Florian Weimer <fweimer@redhat.com>
2791
2792 [BZ #24211]
2793 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2794 pd->result after the thread descriptor has been freed.
2795
2796 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2797
2798 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2799 from function return type.
2800
2801 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2802
2803 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2804
2805 * scripts/test_printers_common.py: Set TERM to a known harmless
2806 value.
2807
2808 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2809
2810 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2811 (xdr_u_int): Likewise.
2812 (xdr_enum): Likewise.
2813 (xdr_bytes): Reword fall-through comment.
2814 (xdr_string): Likewise.
2815
2816 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2817
2818 [BZ #2421]
2819 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2820 (tests): Add tst-join8 tst-join9.
2821 * nptl/lll_timedwait_tid.c: Remove file.
2822 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2823 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2824 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2825 * nptl/pthread_join_common.c (timedwait_tid): New function.
2826 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2827 is set.
2828 * nptl/tst-join5.c (thread_join): New function.
2829 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2830 check.
2831 * nptl/tst-join8.c: New file.
2832 * nptl/tst-join9.c: Likewise.
2833 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2834 lll_futex_timed_wait_cancel): Add generic macros.
2835 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2836 Remove definitions.
2837 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2838 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2839 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2840 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2841 Remove function.
2842 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2843 Likewise.
2844 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2845 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2846 (lll_futex_timed_wait_cancel): New macro.
2847
2848 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2849
2850 * benchtests/Makefile: Add malloc-simple benchmark.
2851 * benchtests/bench-malloc-simple.c: New benchmark.
2852
2853 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2854
2855 * benchtests/bench-memmove.c (do_one_test): Remove unused
2856 ORIG_SRC.
2857 (do_test): Adjust.
2858 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2859 ORIG_SRC.
2860 (do_test): Adjust.
2861
2862 2019-01-13 Jim Wilson <jimw@sifive.com>
2863
2864 [BZ #24040]
2865 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2866 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2867 (func): New.
2868 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2869 call func directly.
2870 * nptl/Makefile (tests): Add tst-unwind-thread.
2871 (CFLAGS-tst-unwind-thread.c): Define.
2872 * nptl/tst-unwind-thread.c: New file.
2873 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2874 as undefined.
2875
2876 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2877
2878 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2879 comment wording.
2880 * nis/nis_call.c (__do_niscall3): Likewise.
2881
2882 * catgets/gencat.c (normalize_line): Use braces around empty
2883 'else' body.
2884 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2885 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2886 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2887 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2888 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2889 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2890 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2891 definition.
2892
2893 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2894 execlp returns.
2895
2896 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2897
2898 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2899 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2900 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2901 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2902 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2903 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2904 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2905 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2906 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2907 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2908 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2909 * benchtests/bench-bcopy.c: Delete file.
2910 * benchtests/bench-bzero.c: Likewise.
2911 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2912 (simple_memccpy): Remove.
2913 (generic_memccpy): Add function.
2914 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2915 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2916 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2917 (generic_mempcpy): Add new function.
2918 * benchtests/bench-memset.c (simple_bzero): Remove.
2919 (builtin_bzero): Remove.
2920 (builtin_memset): Remove.
2921 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2922 (generic_rawmemchr): Add new function.
2923
2924 2019-02-12 Florian Weimer <fweimer@redhat.com>
2925
2926 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2927
2928 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2929
2930 [BZ #24122]
2931 * elf/Makefile (tests): Add tst-audit13.
2932 (modules-names): Add tst-audit13mod1.
2933 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2934 rule.
2935 * elf/tst-audit13.c: New file.
2936 * elf/tst-audit13mod1.c: Likewise.
2937
2938 2019-02-12 Florian Weimer <fweimer@redhat.com>
2939
2940 [BZ #24122]
2941 * elf/rtld.c (unload_audit_module): New function.
2942 (report_audit_module_load_error): Likewise.
2943 (load_audit_module): Likewise. Extracted from dl_main. Call
2944 _dl_close if the laversion symbol cannot be found. Use early
2945 returns for error handling. Add malloc error check. Check for a
2946 zero return value from la_version. Remove spurious comment about
2947 static TLS initialization. Remove useless casts.
2948 (notify_audit_modules_of_loaded_object): New function. Extracted
2949 from dl_main.
2950 (load_audit_module): Likewise.
2951 (dl_main): Call load_audit_modules.
2952
2953 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2954
2955 * elf/dl-exception.c (_dl_exception_create_format): Add
2956 fall-through comments.
2957 * elf/ldconfig.c (parse_conf_include): Likewise.
2958 * elf/rtld.c (print_statistics): Likewise.
2959 * locale/programs/charmap.c (parse_charmap): Likewise.
2960 * misc/mntent_r.c (__getmntent_r): Likewise.
2961 * posix/wordexp.c (parse_arith): Likewise.
2962 (parse_backtick): Likewise.
2963 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2964 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2965 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2966
2967 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2968
2969 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2970 Use float instead of double.
2971
2972 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2973
2974 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2975
2976 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2977
2978 * sysdeps/powerpc/bits/mathinline.h: Remove.
2979
2980 2019-02-08 Florian Weimer <fweimer@redhat.com>
2981
2982 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2983 * math/bits/math-finite.h: Move to ...
2984 * bits/math-finite.h: ... here.
2985
2986 2019-02-08 Florian Weimer <fweimer@redhat.com>
2987
2988 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2989 * bits/unistd_ext.h: here.
2990
2991 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2992
2993 [BZ #21915]
2994 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2995 * nss/tst-nss-files-hosts-long.c: New file.
2996 * nss/tst-nss-files-hosts-long.root: New directory.
2997 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2998 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2999
3000 2019-02-08 Florian Weimer <fweimer@redhat.com>
3001
3002 * include/bits/unistd_ext.h: Remove file.
3003 * posix/bits/unistd_ext.h: Move to ...
3004 * sysdeps/generic/bits/unistd_ext.h: ... here.
3005
3006 2019-02-08 Florian Weimer <fweimer@redhat.com>
3007
3008 * include/bits/unistd_ext.h: New file.
3009
3010 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3011
3012 * time/tst-strftime2.c: Use array_length macros instead of magic
3013 numbers.
3014
3015 2019-02-08 Florian Weimer <fweimer@redhat.com>
3016
3017 [BZ #24161]
3018 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3019 argument.
3020 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3021 locking if the new do_locking argument is true.
3022 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3023 __run_fork_handlers.
3024
3025 2019-02-08 Florian Weimer <fweimer@redhat.com>
3026
3027 [BZ #6399]
3028 Linux: Add gettid system call wrapper.
3029 * posix/Makefile (headers): Add bits/unistd_ext.h.
3030 * posix/bits/unistd_ext.h: New file.
3031 * posix/unistd.h: Include it.
3032 * manual/process.texi (Process Identification): Document gettid.
3033 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3034 tst-gettid, tst-gettid-kill.
3035 (tst-gettid): Link with $(shared-thread-library).
3036 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3037 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3038 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3039 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3040 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3041 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3042 Add gettid.
3043 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3044 Likewise.
3045 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3046 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3047 Likewise.
3048 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3049 Likewise.
3050 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3051 Likewise.
3052 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3053 Likewise.
3054 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3055 Likewise.
3056 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3057 Likewise.
3058 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3059 Likewise.
3060 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3061 (GLIBC_2.30): Likewise.
3062 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3063 (GLIBC_2.30): Likewise.
3064 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3065 (GLIBC_2.30): Likewise.
3066 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3067 (GLIBC_2.30): Likewise.
3068 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3069 Likewise.
3070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3071 (GLIBC_2.30): Likewise.
3072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3073 (GLIBC_2.30): Likewise.
3074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3075 (GLIBC_2.30): Likewise.
3076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3077 (GLIBC_2.30): Likewise.
3078 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3079 Likewise.
3080 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3081 Likewise.
3082 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3083 Likewise.
3084 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3085 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3086 Likewise.
3087 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3088 Likewise.
3089 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3090 Likewise.
3091 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3092 Likewise.
3093 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3094
3095 2019-02-08 Florian Weimer <fweimer@redhat.com>
3096
3097 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3098 compatibility symbols.
3099
3100 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3101
3102 [BZ #24180]
3103 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3104 Add compiler barriers and comments.
3105
3106 2019-02-07 Florian Weimer <fweimer@redhat.com>
3107
3108 * include/array_length.h (array_length): Do not use a statement
3109 expression and _Static_assert, so that array_length can be used at
3110 file scope and as a constant expression.
3111
3112 2019-02-07 Florian Weimer <fweimer@redhat.com>
3113
3114 * support/xdlfcn.h (xdlmopen): Declare.
3115 * support/xdlmopen.c: New file.
3116 * support/Makefile (libsupport-routines): Add xdlmopen.
3117
3118 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3119
3120 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3121 before return type, without separate inline.
3122 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3123 * elf/dl-tunables.h (tunable_is_name): Likewise.
3124 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3125 (do_set_top_pad): Likewise.
3126 (do_set_mmap_threshold): Likewise.
3127 (do_set_mmaps_max): Likewise.
3128 (do_set_mallopt_check): Likewise.
3129 (do_set_perturb_byte): Likewise.
3130 (do_set_arena_test): Likewise.
3131 (do_set_arena_max): Likewise.
3132 (do_set_tcache_max): Likewise.
3133 (do_set_tcache_count): Likewise.
3134 (do_set_tcache_unsorted_limit): Likewise.
3135 * nis/nis_subr.c (count_dots): Likewise.
3136 * nptl/allocatestack.c (advise_stack_range): Likewise.
3137 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3138 (do_sin): Likewise.
3139 (reduce_sincos): Likewise.
3140 (do_sincos): Likewise.
3141 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3142 (do_set_elision_enable): Likewise.
3143 (TUNABLE_CALLBACK_FNDECL): Likewise.
3144
3145 2019-02-06 Florian Weimer <fweimer@redhat.com>
3146
3147 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3148 (xdlsym): Use dlerror to detect a NULL symbol.
3149
3150 2019-02-06 Florian Weimer <fweimer@redhat.com>
3151
3152 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3153 <stap-probe.h>.
3154 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3155
3156 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3157
3158 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3159
3160 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3161
3162 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3163 __wmemcmp and weak alias to wmemcmp.
3164
3165 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3166
3167 [BZ #23403]
3168 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3169 TLS_TCB_AT_TP tls variant.
3170 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3171 Add alignment checks.
3172 * support/Makefile (libsupport-routines): Add xposix_memalign and
3173 xpthread_setstack.
3174 * support/support.h: Add xposix_memalign.
3175 * support/xthread.h: Add xpthread_attr_setstack.
3176 * support/xposix_memalign.c: New File.
3177 * support/xpthread_attr_setstack.c: Likewise.
3178
3179 2019-02-05 Florian Weimer <fweimer@redhat.com>
3180
3181 [BZ #24164]
3182 arm: Use "nr" constraint for Systemtap probes, to avoid the
3183 compiler using memory operands for constants, due to the "o"
3184 alternative in the default "nor" constraint.
3185 * include/stap-probe.h [USE_STAP_PROBE]: Include
3186 <stap-probe-machine.h>
3187 * sysdeps/generic/stap-probe-machine.h: New file.
3188 * sysdeps/arm/stap-probe-machine.h: Likewise.
3189
3190 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3191
3192 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3193 with 0, not tcache->entries[tc_idx].
3194
3195 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3196 once.
3197
3198 2019-02-04 Andreas Schwab <schwab@suse.de>
3199
3200 [BZ #16976]
3201 [BZ #17396]
3202 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3203 looking up collating elements match against (wide) character
3204 sequence instead of name. Correct alignment adjustment.
3205 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3206 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3207 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3208 (LOCALES): Add cs_CZ.ISO-8859-2.
3209 * posix/tst-fnmatch4.c: New file.
3210 * posix/tst-fnmatch5.c: New file.
3211 * include/wchar.h (__wmemcmp): Declare.
3212 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3213 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3214 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3215 * sysdeps/s390/wmemcmp.c: Likewise.
3216
3217 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3218
3219 [BZ #24155]
3220 CVE-2019-7309
3221 * NEWS: Updated for CVE-2019-7309.
3222 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3223 upper 32 bits of RDX register for x32. Use unsigned Jcc
3224 instructions, instead of signed.
3225 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3226 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3227
3228 2019-02-04 Florian Weimer <fweimer@redhat.com>
3229
3230 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3231 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3232 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3233 Likewise.
3234 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3235 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3236 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3237 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3238 Likewise.
3239 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3240 Likewise.
3241 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3242 Likewise.
3243 (posix_spawn_file_actions_addopen): Likewise.
3244 (posix_spawn_file_actions_addclose): Likewise.
3245 (posix_spawn_file_actions_adddup2): Likewise.
3246 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3247 qualifiers.
3248 (posix_spawn_file_actions_addfchdir_np): Likewise.
3249
3250 2019-02-04 David Newall <glibc@davidnewall.com>
3251
3252 elf: Implement --preload option for the dynamic linker.
3253 * elf/rtld.c (preloadarg): New variable.
3254 (handle_preload_list): Pass through “where” argument to
3255 do_preload.
3256 (dl_main): Handle "--preload" and add second call to
3257 handle_preload_list.
3258 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3259 (tst-rtld-preload-OBJS): Set variable.
3260 (tst-rtld-preload.out): New target.
3261 * elf/tst-rtld-preload.sh: New file.
3262
3263 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3264
3265 * Makefile (testrun.sh): Exit in case of incorrect argument.
3266
3267 2019-02-04 Florian Weimer <fweimer@redhat.com>
3268
3269 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3270 alignment gaps.
3271
3272 2019-02-03 Florian Weimer <fweimer@redhat.com>
3273
3274 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3275 implicit overflow checks.
3276
3277 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3278
3279 * stdlib/isomac.c: Include <unistd.h>.
3280
3281 2019-02-03 Florian Weimer <fweimer@redhat.com>
3282
3283 * include/time.h (__tzfile_default): Use int, not long int, for
3284 the GMT offsets.
3285 * time/tzfile.c (struct ttinfo): Change type of the offset member
3286 to int.
3287 (__tzfile_read): Remove useless cast.
3288 (__tzfile_default): Adjust prototype.
3289 * time/tzset.c (tz_rule): Change type of the offset member to int.
3290 (parse_offset): Change the type of the sign variable to int.
3291
3292 2019-02-03 Florian Weimer <fweimer@redhat.com>
3293
3294 [BZ #24153]
3295 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3296 * libio/getchar.c (getchar): Likewise.
3297 * libio/getchar_u.c (getchar_unlocked): Likewise.
3298 * libio/getwchar.c (getwchar): Likewise.
3299 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3300 * libio/iogets.c (_IO_gets): Likewise.
3301 * libio/vscanf.c (_IO_vscanf): Likewise.
3302 * libio/vwscanf.c (__vwscanf): Likewise.
3303 * libio/tst-bz24153.c: New file.
3304 * libio/Makefile (tests): Add it.
3305
3306 2019-02-02 Florian Weimer <fweimer@redhat.com>
3307
3308 [BZ #14829]
3309 * manual/resource.texi (Basic Scheduling Functions): Add
3310 portability note. Change process to task throughout the section.
3311 Remove incorrect comment about sched_yield as it affects
3312 tasks/threads, not entire processes.
3313 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3314 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3315
3316 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3317
3318 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3319 * configure: Regenerated.
3320 * manual/install.texi (Tools for Compilation): Update minimum GCC
3321 version.
3322 * INSTALL: Regenerated.
3323
3324 2019-02-01 Florian Weimer <fweimer@redhat.com>
3325
3326 * support/support_test_compare_string.c
3327 (support_test_compare_string): Use "string" in error message.
3328 * support/tst-test_compare_string.c (do_test): Adjust.
3329
3330 2019-02-01 Florian Weimer <fweimer@redhat.com>
3331
3332 * support/support_format_address_family.c
3333 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3334
3335 2019-02-01 Florian Weimer <fweimer@redhat.com>
3336
3337 * manual/socket.texi (Internet Address Formats): Clarify the byte
3338 order of struct sockaddr_in, struct sockaddr_in6. Document
3339 sin6_flowinfo and sin6_scope_id.
3340
3341 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3342
3343 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3344 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3345 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3346 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3347 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3348 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3349
3350 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3351
3352 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3353 [!MEMCHR](MEMCHR): Set to __memchr.
3354 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3355 Add memchr_generic and memchr_nosimd.
3356 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Add memchr ifuncs.
3358 * sysdeps/aarch64/multiarch/memchr.c: New file.
3359 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3360 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3361
3362 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3363
3364 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3365 Add memset_emag.
3366 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3367 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3368 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3369 Add IS_EMAG check for ifunc dispatch.
3370 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3371 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3372
3373 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3374
3375 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3376 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3377 Add emag.
3378 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3379 New macro.
3380
3381 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3382
3383 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3384
3385 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3386
3387 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3388 syscall-template file.
3389
3390 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3391 Torvald Riegel <triegel@redhat.com>
3392 Rik Prohaska <prohaska7@gmail.com>
3393
3394 [BZ# 23844]
3395 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3396 tst-rwlock-trywrlock-stall.
3397 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3398 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3399 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3400 Set __wrphase_fute to 1 only if we started the write phase.
3401 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3402 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3403 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3404 * support/xpthread_rwlock_destroy.c: New file.
3405 * support/xthread.h: Declare xpthread_rwlock_destroy.
3406
3407 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3408
3409 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3410 version to 4.0.2.
3411
3412 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3413
3414 [BZ #24051]
3415 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3416 * libio/fileops.c (_IO_new_file_underflow): Likewise
3417 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3418 * libio/putchar.c (putchar): Likewise.
3419 * libio/putchar_u.c (putchar_unlocked): Likewise.
3420 * libio/putwchar.c (putchar): Likewise.
3421 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3422 * libio/tst-bz24051.c: New test.
3423 * libio/Makefile (tests): Add tst-bz24051
3424
3425 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3426
3427 CVE-2019-9169
3428 regex: fix read overrun [BZ #24114]
3429 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3430 https://debbugs.gnu.org/34140
3431 * posix/regexec.c (proceed_next_node):
3432 Do not read past end of input buffer.
3433
3434 2019-01-31 Florian Weimer <fweimer@redhat.com>
3435
3436 [BZ #24059]
3437 * nss/nss_files/files-alias.c (get_next_alias): Handle
3438 continuation line without newline at the end.
3439 * nss/tst-nss-files-alias-truncated.c: New file.
3440 * nss/Makefile [$(build-shared)] (tests): Add
3441 tst-nss-files-alias-truncated.
3442 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3443 * support/namespace.h (struct support_chroot_configuration): Add
3444 aliases member.
3445 (struct support_chroot): Add path_aliases member.
3446 * support/support_chroot.c (support_chroot_create): Handle
3447 aliases.
3448 (support_chroot_free): Free path_aliases.
3449
3450 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3451
3452 * version.h (RELEASE): Set to "development".
3453 (VERSION): Set to "2.29.9000".
3454 * NEWS: Add section for 2.30.
3455
3456 * version.h (RELEASE): Set to "stable".
3457 (VERSION): Set to "2.29".
3458 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3459
3460 * NEWS: Add the list of bugs fixed in 2.29.
3461 * manual/contrib.texi: Update contributors list with some more
3462 names.
3463 * manual/install.texi: Update latest versions of packages
3464 tested.
3465 * INSTALL: Regenerated.
3466
3467 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3468
3469 * po/be.po: Update translations.
3470 * po/bg.po: Likewise.
3471 * po/ca.po: Likewise.
3472 * po/cs.po: Likewise.
3473 * po/da.po: Likewise.
3474 * po/de.po: Likewise.
3475 * po/el.po: Likewise.
3476 * po/eo.po: Likewise.
3477 * po/es.po: Likewise.
3478 * po/fi.po: Likewise.
3479 * po/fr.po: Likewise.
3480 * po/gl.po: Likewise.
3481 * po/hr.po: Likewise.
3482 * po/hu.po: Likewise.
3483 * po/ia.po: Likewise.
3484 * po/id.po: Likewise.
3485 * po/it.po: Likewise.
3486 * po/ja.po: Likewise.
3487 * po/ko.po: Likewise.
3488 * po/lt.po: Likewise.
3489 * po/nb.po: Likewise.
3490 * po/nl.po: Likewise.
3491 * po/pl.po: Likewise.
3492 * po/pt_BR.po: Likewise.
3493 * po/ru.po: Likewise.
3494 * po/rw.po: Likewise.
3495 * po/sk.po: Likewise.
3496 * po/sl.po: Likewise.
3497 * po/sv.po: Likewise.
3498 * po/tr.po: Likewise.
3499 * po/uk.po: Likewise.
3500 * po/vi.po: Likewise.
3501 * po/zh_CN.po: Likewise.
3502 * po/zh_TW.po: Likewise.
3503
3504 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3505
3506 [BZ #24130]
3507 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3508 of $f3 register on $y_is_neg path.
3509
3510 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3511
3512 [BZ #24110]
3513 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3514 sigaltstack.ss_flags.
3515
3516 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3517
3518 [BZ #23758]
3519 * manual/time.texi (strftime): Document "%Ey".
3520 * time/strftime_l.c (__strftime_internal): Set the default width
3521 padding with zero of "%Ey" to 2.
3522
3523 [BZ #24096]
3524 * manual/time.texi (strftime): Document "%EC" and "%EY".
3525 * time/Makefile (tests): Add tst-strftime2.
3526 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3527 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3528 override padding for "%Ey".
3529 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3530 "%Ey" in the subformat as if decorated with that flag.
3531 * time/tst-strftime2.c: New file.
3532
3533 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3534
3535 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3536 are not defined.
3537
3538 [BZ #24122]
3539 * elf/Makefile (tests): Add tst-audit13.
3540 (modules-names): Add tst-audit13mod1.
3541 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3542 rule.
3543 * elf/rtld.c (dl_main): Handle invalid audit module version.
3544 * elf/tst-audit13.c: New file.
3545 * elf/tst-audit13mod1.c: Likewise.
3546
3547 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3548
3549 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3550 returned by __hurd_at_flags.
3551 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3552 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3553 directly instead of __hurd_file_name_lookup.
3554
3555 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3556
3557 * scripts/build-many-glibcs.py (Context.checkout): Default
3558 binutils version to 2.32 branch.
3559
3560 2019-01-21 Florian Weimer <fweimer@redhat.com>
3561
3562 [BZ #20018]
3563 CVE-2016-10739
3564 resolv: Reject trailing characters in host names
3565 * include/arpa/inet.h (__inet_aton_exact): Declare.
3566 (inet_aton): Remove hidden prototype. No longer used internally.
3567 * nscd/gai.c (__inet_aton): Do not define.
3568 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3569 * nss/digits_dots.c (__inet_aton): Likewise.
3570 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3571 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3572 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3573 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3574 (tst-resolv-trailing): Likewise.
3575 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3576 libc.
3577 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3578 Make static. Add endp parameter.
3579 (__inet_aton_exact): New function.
3580 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3581 (__inet_addr): Call inet_aton_end.
3582 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3583 not just IPv6. Call __inet_aton_exact.
3584 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3585 (tests): Make const. Add additional test cases with trailing
3586 characters.
3587 (do_test): Use array_length.
3588 * resolv/tst-inet_aton_exact.c: New file.
3589 * resolv/tst-resolv-trailing.c: Likewise.
3590 * resolv/tst-resolv-nondecimal.c: Likewise.
3591 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3592
3593 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3594
3595 [BZ# 24097]
3596 CVE-2019-6488
3597 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3598 Clear the upper 32 bits of RSI register.
3599 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3600 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3601 and tst-size_t-wcsnlen.
3602 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3603 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3604
3605 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3606
3607 [BZ# 24097]
3608 CVE-2019-6488
3609 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3610 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3611 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3612 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3613 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3614
3615 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3616
3617 [BZ# 24097]
3618 CVE-2019-6488
3619 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3620 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3621 * sysdeps/x86_64/strcmp.S: Likewise.
3622 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3623 tst-size_t-strncmp and tst-size_t-wcsncmp.
3624 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3625 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3626 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3627
3628 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3629
3630 [BZ# 24097]
3631 CVE-2019-6488
3632 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3633 RDX_LP for length. Clear the upper 32 bits of RDX register.
3634 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3635 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3636 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3637 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3638
3639 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3640
3641 [BZ# 24097]
3642 CVE-2019-6488
3643 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3644 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3645 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3646 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3647
3648 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3649
3650 [BZ# 24097]
3651 CVE-2019-6488
3652 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3653 length. Clear the upper 32 bits of RDX register.
3654 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3655 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3656 Likewise.
3657 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3658 Likewise.
3659 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3660 tst-size_t-wmemchr.
3661 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3662
3663 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3664
3665 [BZ# 24097]
3666 CVE-2019-6488
3667 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3668 length. Clear the upper 32 bits of RDX register.
3669 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3670 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3671 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3672 tst-size_t-wmemcmp.
3673 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3674 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3675
3676 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3677
3678 [BZ# 24097]
3679 CVE-2019-6488
3680 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3681 upper 32 bits of RDX register.
3682 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3683 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3684 tst-size_t-wmemchr.
3685 * sysdeps/x86_64/x32/test-size_t.h: New file.
3686 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3687 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3688
3689 2019-01-18 Florian Weimer <fweimer@redhat.com>
3690
3691 [BZ #24112]
3692 resolv: Do not send queries for non-host-names in nss_dns.
3693 * resolv/nss_dns/dns-host.c (check_name): New function.
3694 (_nss_dns_gethostbyname2_r): Use it.
3695 (_nss_dns_gethostbyname_r): Likewise.
3696 (_nss_dns_gethostbyname4_r): Likewise.
3697
3698 2019-01-21 Florian Weimer <fweimer@redhat.com>
3699
3700 * resolv/inet_addr.c: Reformat to GNU style.
3701 (__inet_addr, __inet_aton): Update comment.
3702
3703 2019-01-18 Florian Weimer <fweimer@redhat.com>
3704
3705 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3706 ("malloc: Use current (C11-style) atomics for fastbin access").
3707 This commit introduces a substantial performance regression on
3708 POWER and Aarch64.
3709 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3710 (REMOVE_FB): Define.
3711 (_int_malloc): Use it and reindent.
3712 (_int_free): Use CAS loop with
3713 catomic_compare_and_exchange_val_rel.
3714 (malloc_consolidate): Use atomic_exchange_acq.
3715
3716
3717 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3718
3719 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3720 -Wl,-z,now.
3721 (LDFLAGS-tst-minsigstksz-2): Likewise.
3722 (LDFLAGS-tst-minsigstksz-3): Likewise.
3723 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3724 (LDFLAGS-tst-minsigstksz-4): Likewise.
3725
3726 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3727
3728 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3729 than "alternate".
3730
3731 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3732
3733 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3734
3735 2019-01-16 Zack Weinberg <zackw@panix.com>
3736
3737 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3738 (xget_sigstack_location): New test support functions.
3739 * support/xsigstack.c: New file, implementing them.
3740 * support/tst-xsigstack.c: New test for them.
3741 * support/Makefile: Update.
3742
3743 * signal/tst-minsigstksz-1.c
3744 * signal/tst-minsigstksz-2.c
3745 * signal/tst-minsigstksz-3.c
3746 * signal/tst-minsigstksz-3a.c
3747 * signal/tst-minsigstksz-4.c: New tests.
3748 * signal/Makefile: Run them.
3749
3750 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3751
3752 * po/libc.pot: Regenerate.
3753
3754 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3755
3756 * math/libm-test-fma.inc (fma_test_data): Set
3757 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3758
3759 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3760
3761 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3762 (do_test): Changed __vector __int128_t to __vector unsigned int.
3763
3764 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3765
3766 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3767 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3768 stpcpy-avx2 and stpncpy-avx2.
3769 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3770 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3771 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3772 and __stpncpy_avx2.
3773 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3774 ifunc-strcpy.h}: rename header for a more generic name.
3775 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3776 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3777 AVX unaligned load is fast and vzeroupper is preferred.
3778 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3779 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3780 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3781 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3782 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3783 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3784
3785 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3786
3787 * argp/argp-help.c: Fix typo in comment.
3788 * misc/sys/cdefs.h: Likewise.
3789 * posix/regexec.c (sift_states_iter_mb): Likewise.
3790 * socket/sockatmark.c: Likewise.
3791 * socket/sys/socket.h: Likewise.
3792 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3793 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3794 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3795 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3796 * sysdeps/unix/sockatmark.c: Likewise.
3797 * time/strptime_l.c: Likewise.
3798
3799 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3800
3801 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3802 missing space after the cast of "_NL_CURRENT".
3803
3804 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3805
3806 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3807 ifdef to fix read of VSCR.
3808 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3809 tst-ucontext-ppc64-vscr.c to test list.
3810 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3811
3812 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3813
3814 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3815 fall-through.
3816
3817 2019-01-09 Jim Wilson <jimw@sifive.com>
3818
3819 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3820
3821 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3822
3823 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3824 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3825 __memcpy_falkor for ares.
3826 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3827 Add new define.
3828 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3829 Add ares cpu.
3830
3831 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3832
3833 [BZ #24066]
3834 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3835 4_FP_W_TYPEs are used for IEEE quad precision.
3836 * soft-fp/extendhftf2.c: Likewise.
3837 * soft-fp/extendsftf2.c: Likewise.
3838 * soft-fp/extendxftf2.c: Likewise.
3839 * soft-fp/trunctfdf2.c: Likewise.
3840 * soft-fp/trunctfhf2.c: Likewise.
3841 * soft-fp/trunctfsf2.c: Likewise.
3842 * soft-fp/trunctfxf2.c: Likewise.
3843 * sysdeps/alpha/ots_cvttx.c: Likewise.
3844 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3845 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3846 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3847 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3848 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3849 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3850 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3851 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3852 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3853 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3854 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3855 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3856 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3857 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3858 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3859 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3860 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3861
3862 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3863
3864 [BZ #24024]
3865 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3866 code with -fmath-errno.
3867 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3868 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3869 * string/test-strerror-errno.c: New file.
3870
3871 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3872
3873 [BZ #24046]
3874 * localedata/locales/en_US (date_fmt): Add, set to
3875 "%a %d %b %Y %r %Z".
3876
3877 2019-01-07 Florian Weimer <fweimer@redhat.com>
3878
3879 [BZ #24063]
3880 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3881 instead of @var{errno}.
3882 (Parsing of Integers): Likewise.
3883 (Parsing of Floats): Likewise.
3884 * manual/filesys.texi (Working with Directory Trees): Likewise.
3885 (Temporary Files): Likewise.
3886 * manual/job.texi (Terminal Access Functions): Likewise.
3887 * manual/llio.texi (Synchronizing I/O): Likewise.
3888 * manual/math.texi (SVID Random): Likewise.
3889 * manual/message.texi (The catgets Functions): Likewise.
3890 (Translation with gettext): Likewise.
3891 (Locating gettext catalog): Likewise.
3892 (Charset conversion in gettext): Likewise.
3893 * manual/nss.texi (NSS Module Function Internals): Likewise.
3894 * manual/search.texi (Hash Search Function): Likewise.
3895 * manual/setjmp.texi (System V contexts): Likewise.
3896 * manual/time.texi (Sleeping): Likewise.
3897 * manual/users.texi (Lookup User): Likewise.
3898 (Lookup Group): Likewise.
3899
3900 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3901
3902 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3903 fix typo.
3904
3905 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3906
3907 [BZ #19444]
3908 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3909 __builtin_unreachable for default case in switch.
3910 (__ieee754_yn): Likewise.
3911 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3912 (__ieee754_ynl): Likewise.
3913 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3914 (__ieee754_ynl): Likewise.
3915 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3916 (__ieee754_ynl): Likewise.
3917
3918 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3919
3920 * manual/maint.texi: Use @{ and @}.
3921
3922 2019-01-04 Florian Weimer <fweimer@redhat.com>
3923
3924 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3925 function.
3926 (do_in_chroot_1): Call it.
3927 (run_chroot_tests):
3928 Improve error reporting in case it is not possible to create a
3929 collision for the PTY name required by the test.
3930
3931 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3932
3933 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3934 lll_wait_tid with timeout.
3935 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3936 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3937 futex_reltimed_wait_cancelable for cancelabla mode.
3938 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3939 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3940 macros.
3941 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3942 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3943 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3944 SYSCALL_CANCEL_NCS): New macro.
3945 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3946 (lll_timedwait_tid): Remove macro.
3947 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3948 Likewise.
3949 (lll_timedwait_tid): Likewise.
3950 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3951 Likewise.
3952 (lll_timedwait_tid): Likewise.
3953 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3954 Likewise.
3955 (lll_timedwait_tid): Likewise.
3956 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3957 Use INTERNAL_SYSCALL_CANCEL.
3958 * sysdeps/unix/sysv/linux/futex-internal.h
3959 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3960 instead of __pthread_{enable,disable}_asynccancel.
3961 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3962 (lll_futex_wait_cancel): New macro.
3963
3964 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3965 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3966
3967 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3968 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3969
3970 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3971 in backtrace analysis.
3972 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3973 side-effects.
3974 (tf_send): Likewise.
3975
3976 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3977 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3978 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3979 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3980 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3981 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3982 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3983 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3984 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3985 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3986 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3987 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3988 Likewise.
3989 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3990 tst-cancel-wrappers.sh.
3991 (generated): Remove tst-cancel-wrappers.out.
3992 (tst-cancel-wrappers.out): Remove rule.
3993 * nptl/tst-cancel-wrappers.sh: Remove file.
3994
3995 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3996
3997 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3998 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3999 Update.
4000
4001 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4002
4003 [BZ #23640]
4004 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4005 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4006 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4007 close-on-exec reset for adddup2 file action.
4008 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4009
4010 2019-01-03 Zack Weinberg <zackw@panix.com>
4011
4012 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4013 parameter. Only use deprecated scanf when __USE_GNU is defined
4014 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4015 than 201103L, whichever is relevant for the language being compiled.
4016
4017 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4018 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4019 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4020 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4021 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4022
4023 * libio/iovsscanf.c
4024 * libio/fwscanf.c
4025 * libio/iovswscanf.c
4026 * libio/swscanf.c
4027 * libio/vscanf.c
4028 * libio/vwscanf.c
4029 * libio/wscanf.c
4030 * stdio-common/fscanf.c
4031 * stdio-common/scanf.c
4032 * stdio-common/vfscanf.c
4033 * stdio-common/vfwscanf.c
4034 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4035 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4036 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4037 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4038 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4039 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4040 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4041 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4042 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4043 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4044 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4045 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4046 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4047 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4048 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4049
4050 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4051 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4052 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4053 not sscanf.
4054 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4055 with a preprocessor macro.
4056
4057 * stdio-common/bug21.c, stdio-common/scanf14.c:
4058 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4059 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4060 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4061 to xscanf, xfscanf, xsscanf.
4062
4063 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4064 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4065 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4066 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4067 xfscanf, xsscanf.
4068 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4069 override feature selection macros or provide definitions of u_char etc.
4070 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4071 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4072 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4073 with -std=gnu89.
4074
4075 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4076
4077 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4078 bits/termios-misc.h.
4079 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4080 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4081 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4082 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4083 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4084 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4085
4086 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4087 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4088 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4089 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4090 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4091 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4092 termios-misc.h.
4093 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4094 (sysdep_headers): Add termios-misc.h.
4095
4096 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4097 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4098 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4099
4100 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4101 termios-tcflow.h.
4102 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4103 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4104 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4105 TCSAFLUSH): Move to termios-tcflow.h.
4106 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4107 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4108 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4109 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4110
4111 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4112 termios-c_lflag.h.
4113 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4114 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4115 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4116 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4117 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4118 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4119 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4120 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4121 Likewise.
4122 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4123 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4124 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4125 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4126
4127 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4128 termios-c_cflag.h.
4129 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4130 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4131 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4132 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4133 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4134 termios-c_cflag.h.
4135 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4136 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4137 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4138 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4139
4140 [BZ #23783]
4141 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4142 termios-baud.h.
4143 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4144 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4145 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4146 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4147 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4148 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4149 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4150 __MAX_BAUD): Move to termios-baud.h.
4151 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4152 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4153 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4154 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4155 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4156
4157 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4158 termios-c_oflag.h.
4159 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4160 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4161 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4162 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4163 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4164 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4165 termios-c_oflag.h.
4166 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4167 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4168 FFR1): Likewise.
4169 [USE_MISC] (XTABS): Likewise.
4170 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4171 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4172 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4173 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4174
4175 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4176 termios-c_iflag.h.
4177 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4178 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4179 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4180 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4181 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4182 IUTF8): Move to termios-c_iflag.h.
4183 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4184 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4185 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4186 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4187
4188 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4189 termios-cc.h.
4190 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4191 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4192 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4193 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4194 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4195 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4196 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4197 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4198 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4199 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4200 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4201 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4202
4203 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4204 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4205 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4206 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4207 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4208 termios-struct.h.
4209 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4210 termios-struct.h.
4211 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4212 Likewise.
4213 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4214 Likewise.
4215 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4216 Likewise.
4217 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4218 Likewise.
4219 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4220 _HAVE_C_OSPEED): Define.
4221 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4222 _HAVE_C_OSPEED): Likewise.
4223 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4224 _HAVE_C_OSPEED): Likewise.
4225 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4226 (cfsetospeed): Check for define value instead of existence.
4227 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4228 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4229 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4230 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4231 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4232
4233 [BZ #17783]
4234 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4235 Define.
4236 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4237 (TIOCSER_TEMT): Likewise.
4238 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4239 (TEOCSER_TEMT): Likewise.
4240
4241 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4242
4243 [BZ #24011]
4244 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4245
4246 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4247
4248 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4249
4250 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4251
4252 * sysdeps/htl/pt-barrierattr-setpshared.c
4253 (pthread_barrierattr_setpshared): Add stub warning.
4254 * sysdeps/htl/pt-condattr-setpshared.c
4255 (pthread_condattr_setpshared): Likewise.
4256 * sysdeps/htl/pt-mutexattr-setpshared.c
4257 (pthread_mutexattr_setpshared): Likewise.
4258 * sysdeps/htl/pt-rwlockattr-setpshared.c
4259 (pthread_rwlockattr_setpshared): Likewise.
4260 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4261 (pthread_mutexattr_setpshared): Likewise.
4262
4263 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4264
4265 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4266 constants to match with Linux 4.20.
4267
4268 * sysdeps/mips/mips32/libm-test-ulps: Update.
4269 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4270
4271 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4272
4273 [BZ #24034]
4274 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4275 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4276 than __typeof (...) for the a_ptr variable.
4277
4278 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4279
4280 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4281 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4282 * libio/Makefile (tests): Add tst-sprintf-ub and
4283 tst-sprintf-chk-ub.
4284 (CFLAGS-tst-sprintf-ub.c): New variable.
4285 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4286 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4287 destination buffer and check for overflows in fortified mode.
4288 * libio/libioP.h (PRINTF_CHK): New macro.
4289 * libio/tst-sprintf-chk-ub.c: New file.
4290 * libio/tst-sprintf-ub.c: Likewise.
4291
4292 2019-01-02 Florian Weimer <fweimer@redhat.com>
4293
4294 [BZ #24018]
4295 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4296 failure.
4297
4298 2019-01-02 Florian Weimer <fweimer@redhat.com>
4299
4300 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4301
4302 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4303
4304 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4305 macro.
4306
4307 * sysdeps/unix/sysv/linux/netpacket/packet.h
4308 (PACKET_IGNORE_OUTGOING): New macro.
4309
4310 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4311 macro.
4312
4313 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4314 version to 4.20.
4315 (riscv_flush_icache): New syscall.
4316
4317 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4318 trailing whitespace removed.
4319 * scripts/config.guess: Update to version 2019-01-01.
4320 * scripts/config.sub: Update to version 2019-01-01.
4321 * scripts/move-if-change: Update from gnulib.
4322
4323 * NEWS: Update copyright dates.
4324 * catgets/gencat.c (print_version): Likewise.
4325 * csu/version.c (banner): Likewise.
4326 * debug/catchsegv.sh: Likewise.
4327 * debug/pcprofiledump.c (print_version): Likewise.
4328 * debug/xtrace.sh (do_version): Likewise.
4329 * elf/ldconfig.c (print_version): Likewise.
4330 * elf/ldd.bash.in: Likewise.
4331 * elf/pldd.c (print_version): Likewise.
4332 * elf/sotruss.sh: Likewise.
4333 * elf/sprof.c (print_version): Likewise.
4334 * iconv/iconv_prog.c (print_version): Likewise.
4335 * iconv/iconvconfig.c (print_version): Likewise.
4336 * locale/programs/locale.c (print_version): Likewise.
4337 * locale/programs/localedef.c (print_version): Likewise.
4338 * login/programs/pt_chown.c (print_version): Likewise.
4339 * malloc/memusage.sh (do_version): Likewise.
4340 * malloc/memusagestat.c (print_version): Likewise.
4341 * malloc/mtrace.pl: Likewise.
4342 * manual/libc.texinfo: Likewise.
4343 * nptl/version.c (banner): Likewise.
4344 * nscd/nscd.c (print_version): Likewise.
4345 * nss/getent.c (print_version): Likewise.
4346 * nss/makedb.c (print_version): Likewise.
4347 * posix/getconf.c (main): Likewise.
4348 * scripts/test-installation.pl: Likewise.
4349 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4350
4351 * All files with FSF copyright notices: Update copyright dates
4352 using scripts/update-copyrights.
4353 * locale/programs/charmap-kw.h: Regenerated.
4354 * locale/programs/locfile-kw.h: Likewise.
4355
4356 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4357
4358 * timezone/zdump.c: Update from tzcode 2018i.
4359 * timezone/zic.c: Likewise.
4360
4361 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4362
4363 regex: improve Gnulib port to AIX
4364 From the glibc point of view, this removes duplicate macro
4365 definitions and is obviously safe.
4366 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4367 * posix/regex_internal.h:
4368 (__attribute__, __attribute_warn_unused_result__):
4369 Remove; already defined elsewhere.
4370
4371 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4372
4373 [BZ #24027]
4374 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4375 copying operation. (ncopies had the wrong type, resulting in an
4376 integer wraparound and too few elements being copied.)
4377
4378 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4379
4380 [BZ #24022]
4381 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4382 <asm/syscalls.h> exists with __has_include__ before including it.
4383
4384 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4385
4386 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4387 version to 4.20.
4388
4389 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4390
4391 * hurd/lookup-retry: Include <unistd.h>.
4392 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4393 Release it on return. Handle "pid" magical lookup retry.
4394
4395 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4396
4397 [BZ #10496]
4398 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4399 (t_fmt_ampm): Likewise.
4400 * localedata/locales/aa_ER (t_fmt): Likewise.
4401 (t_fmt_ampm): Likewise.
4402 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4403 (t_fmt_ampm): Likewise.
4404 * localedata/locales/aa_ET (t_fmt): Likewise.
4405 (t_fmt_ampm): Likewise.
4406 * localedata/locales/am_ET (t_fmt): Likewise.
4407 (t_fmt_ampm): Likewise.
4408 * localedata/locales/byn_ER (t_fmt): Likewise.
4409 (t_fmt_ampm): Likewise.
4410 * localedata/locales/om_ET (t_fmt): Likewise.
4411 (t_fmt_ampm): Likewise.
4412 * localedata/locales/sid_ET (t_fmt): Likewise.
4413 (t_fmt_ampm): Likewise.
4414 * localedata/locales/so_DJ (t_fmt): Likewise.
4415 (t_fmt_ampm): Likewise.
4416 * localedata/locales/so_ET (t_fmt): Likewise.
4417 (t_fmt_ampm): Likewise.
4418 * localedata/locales/so_SO (t_fmt): Likewise.
4419 (t_fmt_ampm): Likewise.
4420 * localedata/locales/ti_ER (t_fmt): Likewise.
4421 (t_fmt_ampm): Likewise.
4422 * localedata/locales/ti_ET (t_fmt): Likewise.
4423 (t_fmt_ampm): Likewise.
4424 * localedata/locales/tig_ER (t_fmt): Likewise.
4425 (t_fmt_ampm): Likewise.
4426 * localedata/locales/wal_ET (t_fmt): Likewise.
4427 (t_fmt_ampm): Likewise.
4428
4429 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4430 * localedata/locales/ar_IN (t_fmt): Likewise.
4431 * localedata/locales/bhb_IN (t_fmt): Likewise.
4432 * localedata/locales/bho_IN (t_fmt): Likewise.
4433 * localedata/locales/bi_VU (t_fmt): Likewise.
4434 * localedata/locales/bn_BD (t_fmt): Likewise.
4435 * localedata/locales/bn_IN (t_fmt): Likewise.
4436 * localedata/locales/brx_IN (t_fmt): Likewise.
4437 * localedata/locales/doi_IN (t_fmt): Likewise.
4438 * localedata/locales/en_HK (t_fmt): Likewise.
4439 (t_fmt_ampm): Likewise.
4440 * localedata/locales/en_IN (t_fmt): Likewise.
4441 * localedata/locales/en_PH (t_fmt): Likewise.
4442 * localedata/locales/gu_IN (t_fmt): Likewise.
4443 * localedata/locales/hi_IN (t_fmt): Likewise.
4444 * localedata/locales/hif_FJ (t_fmt): Likewise.
4445 * localedata/locales/hne_IN (t_fmt): Likewise.
4446 * localedata/locales/kn_IN (t_fmt): Likewise.
4447 * localedata/locales/kok_IN (t_fmt): Likewise.
4448 * localedata/locales/ks_IN (t_fmt): Likewise.
4449 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4450 * localedata/locales/mag_IN (t_fmt): Likewise.
4451 * localedata/locales/mai_IN (t_fmt): Likewise.
4452 * localedata/locales/mjw_IN (t_fmt): Likewise.
4453 * localedata/locales/ml_IN (t_fmt): Likewise.
4454 * localedata/locales/mni_IN (t_fmt): Likewise.
4455 * localedata/locales/mr_IN (t_fmt): Likewise.
4456 * localedata/locales/ms_MY (t_fmt): Likewise.
4457 * localedata/locales/pa_IN (t_fmt): Likewise.
4458 * localedata/locales/raj_IN (t_fmt): Likewise.
4459 * localedata/locales/sa_IN (t_fmt): Likewise.
4460 * localedata/locales/sat_IN (t_fmt): Likewise.
4461 * localedata/locales/sd_IN (t_fmt): Likewise.
4462 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4463 * localedata/locales/tcy_IN (t_fmt): Likewise.
4464 * localedata/locales/the_NP (t_fmt): Likewise.
4465 * localedata/locales/to_TO (t_fmt): Likewise.
4466 * localedata/locales/ur_IN (t_fmt): Likewise.
4467
4468 * localedata/locales/hif_FJ (d_t_fmt): Set to
4469 "%A %d %b %Y %I:%M:%S %p".
4470 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4471
4472 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4473 * localedata/locales/ar_BH (t_fmt): Likewise.
4474 * localedata/locales/ar_DZ (t_fmt): Likewise.
4475 * localedata/locales/ar_EG (t_fmt): Likewise.
4476 * localedata/locales/ar_IQ (t_fmt): Likewise.
4477 * localedata/locales/ar_JO (t_fmt): Likewise.
4478 * localedata/locales/ar_KW (t_fmt): Likewise.
4479 * localedata/locales/ar_LB (t_fmt): Likewise.
4480 * localedata/locales/ar_LY (t_fmt): Likewise.
4481 * localedata/locales/ar_OM (t_fmt): Likewise.
4482 * localedata/locales/ar_QA (t_fmt): Likewise.
4483 * localedata/locales/ar_SD (t_fmt): Likewise.
4484 * localedata/locales/ar_SS (t_fmt): Likewise.
4485 * localedata/locales/ar_SY (t_fmt): Likewise.
4486 * localedata/locales/ar_TN (t_fmt): Likewise.
4487 * localedata/locales/ar_YE (t_fmt): Likewise.
4488
4489 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4490 (t_fmt_ampm): Likewise.
4491 * localedata/locales/gez_ET (t_fmt): Likewise.
4492 (t_fmt_ampm): Likewise.
4493
4494 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4495 (t_fmt_ampm): Likewise.
4496 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4497
4498 * localedata/locales/zh_HK (t_fmt):
4499 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4500
4501 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4502 because this locale does not use the 12-hour clock.
4503 (t_fmt): Set to "%Z %H:%M:%S".
4504 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4505
4506 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4507 because this locale does not use the 12-hour clock.
4508 (t_fmt): Set to "%H:%M:%S %Z".
4509 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4510
4511 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4512 because this locale does not use the 12-hour clock.
4513 (t_fmt): Set to "%T".
4514 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4515 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4516
4517 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4518 because this locale does not use the 12-hour clock.
4519 (t_fmt): Set to "%H:%M:%S %Z".
4520 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4521
4522 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4523 because this locale does not use the 12-hour clock.
4524 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4525 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4526
4527 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4528
4529 [BZ #10496]
4530 [BZ #23724]
4531 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4532 (t_fmt_ampm): Likewise.
4533 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4534 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4535 (d_fmt): Set to "%-d.%-m.%y".
4536
4537 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4538
4539 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4540 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4541 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4542 Likewise.
4543 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4544 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4545 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4546 function.
4547 * support/blob_repeat.c (check_mul_overflow_size_t,
4548 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4549
4550 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4551
4552 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4553
4554 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4555
4556 regex: simplify Gnulib port
4557 This simplifies the code, by removing stuff intended for porting
4558 to Gnulib but no longer needed there.
4559 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4560 uses of libc_hidden_def, weak_alias.
4561 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4562 _Restrict_ except for public-facing headers.
4563 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4564 Remove; already defined elsewhere.
4565 * posix/regex.c, posix/regex_internal.h:
4566 Use __GNUC_PREREQ instead of rolling our own.
4567 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4568
4569 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4570
4571 * benchtests/bench-strlen.c (generic_strlen): New function.
4572 (memchr_strlen): New function.
4573
4574 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4575
4576 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4577 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4578 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4579
4580 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4581
4582 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4583
4584 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4585
4586 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4587 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4588 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4589 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4590 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4591 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4592 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4593
4594 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4595
4596 [BZ #24023]
4597 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4598 PLT reference in libc.so.
4599 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4600 _Q_lltoq and _Q_qtod PLT references in libc.so.
4601
4602 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4603
4604 * benchtests/bench-memchr.c: Cleanup defines.
4605 * benchtests/bench-memcmp.c: Likewise.
4606 * benchtests/bench-memset.c: Likewise.
4607 * benchtests/bench-memset-large.c: Likewise.
4608 * benchtests/bench-memset-walk.c: Likewise.
4609 * benchtests/bench-stpcpy.c: Likewise.
4610 * benchtests/bench-stpncpy.c: Likewise.
4611 * benchtests/bench-strcat.c: Likewise.
4612 * benchtests/bench-strchr.c: Likewise.
4613 * benchtests/bench-strcmp.c: Likewise.
4614 * benchtests/bench-strcpy.c: Likewise.
4615 * benchtests/bench-strcspn.c: Likewise.
4616 * benchtests/bench-string.h: Likewise.
4617 * benchtests/bench-strlen.c: Likewise.
4618 * benchtests/bench-strncat.c: Likewise.
4619 * benchtests/bench-strncmp.c: Likewise.
4620 * benchtests/bench-strncpy.c: Likewise.
4621 * benchtests/bench-strnlen.c: Likewise.
4622 * benchtests/bench-strpbrk.c: Likewise.
4623 * benchtests/bench-strrchr.c: Likewise.
4624 * benchtests/bench-strspn.c: Likewise.
4625
4626 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4627
4628 * stdlib/longlong.h: Update from GCC.
4629
4630 [BZ #23993]
4631 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4632 * configure: Regenerated.
4633 * manual/install.texi (Tools for Compilation): Update minimum GCC
4634 version.
4635 * INSTALL: Regenerated.
4636
4637 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4638
4639 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4640
4641 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4642
4643 * malloc/malloc.c (mremap_chunk): Additional checks.
4644
4645 2018-12-21 Mao Han <han_mao@c-sky.com>
4646
4647 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4648 * scripts/build-many-glibcs.py: Add C-SKY targets.
4649 * sysdeps/csky/Implies: New file.
4650 * sysdeps/csky/Makefile: Likewise.
4651 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4652 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4653 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4654 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4655 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4656 * sysdeps/csky/abiv2/memmove.S: Likewise.
4657 * sysdeps/csky/abiv2/memset.S: Likewise.
4658 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4659 * sysdeps/csky/abiv2/start.S: Likewise.
4660 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4661 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4662 * sysdeps/csky/abiv2/strlen.S: Likewise.
4663 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4664 * sysdeps/csky/abort-instr.h: Likewise.
4665 * sysdeps/csky/atomic-machine.h: Likewise.
4666 * sysdeps/csky/bits/endian.h: Likewise.
4667 * sysdeps/csky/bits/fenv.h: Likewise.
4668 * sysdeps/csky/bits/link.h: Likewise.
4669 * sysdeps/csky/bits/setjmp.h: Likewise.
4670 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4671 * sysdeps/csky/bsd-setjmp.S: Likewise.
4672 * sysdeps/csky/configure: Likewise.
4673 * sysdeps/csky/configure.ac: Likewise.
4674 * sysdeps/csky/dl-machine.h: Likewise.
4675 * sysdeps/csky/dl-procinfo.c: Likewise.
4676 * sysdeps/csky/dl-procinfo.h: Likewise.
4677 * sysdeps/csky/dl-sysdep.h: Likewise.
4678 * sysdeps/csky/dl-tls.h: Likewise.
4679 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4680 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4681 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4682 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4683 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4684 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4685 * sysdeps/csky/fpu/fegetround.c: Likewise.
4686 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4687 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4688 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4689 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4690 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4691 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4692 * sysdeps/csky/fpu/fesetround.c: Likewise.
4693 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4694 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4695 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4696 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4697 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4698 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4699 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4700 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4701 * sysdeps/csky/fpu_control.h: Likewise.
4702 * sysdeps/csky/gccframe.h: Likewise.
4703 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4704 * sysdeps/csky/ldsodefs.h: Likewise.
4705 * sysdeps/csky/libc-tls.c: Likewise.
4706 * sysdeps/csky/linkmap.h: Likewise.
4707 * sysdeps/csky/machine-gmon.h: Likewise.
4708 * sysdeps/csky/memusage.h: Likewise.
4709 * sysdeps/csky/nofpu/Implies: Likewise.
4710 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4711 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4712 * sysdeps/csky/nptl/Makefile: Likewise.
4713 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4714 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4715 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4716 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4717 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4718 * sysdeps/csky/nptl/tls.h: Likewise.
4719 * sysdeps/csky/preconfigure: Likewise.
4720 * sysdeps/csky/sfp-machine.h: Likewise.
4721 * sysdeps/csky/sotruss-lib.c: Likewise.
4722 * sysdeps/csky/stackinfo.h: Likewise.
4723 * sysdeps/csky/sysdep.h: Likewise.
4724 * sysdeps/csky/tininess.h: Likewise.
4725 * sysdeps/csky/tst-audit.h: Likewise.
4726 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4727 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4728 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4729 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4730 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4731 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4732 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4733 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4734 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4735 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4736 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4737 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4738 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4739 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4740 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4741 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4742 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4743 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4744 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4745 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4746 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4747 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4748 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4749 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4750 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4751 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4752 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4753 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4754 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4755 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4756 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4757 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4758 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4759 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4760 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4761 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4762 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4763 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4764 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4765 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4766 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4767 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4768 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4769 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4770
4771 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4772
4773 * include/time.h (__difftime64): Add.
4774 * time/difftime.c (subtract): convert to 64-bit time.
4775 * time/difftime.c (__difftime64): Add.
4776 * time/difftime.c (__difftime): Wrap around __difftime64.
4777
4778 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4779
4780 * manual/examples/add.c: Remove redundant "if not".
4781 * manual/examples/argp-ex1.c: Likewise.
4782 * manual/examples/argp-ex2.c: Likewise.
4783 * manual/examples/argp-ex3.c: Likewise.
4784 * manual/examples/argp-ex4.c: Likewise.
4785 * manual/examples/atexit.c: Likewise.
4786 * manual/examples/db.c: Likewise.
4787 * manual/examples/dir.c: Likewise.
4788 * manual/examples/dir2.c: Likewise.
4789 * manual/examples/execinfo.c: Likewise.
4790 * manual/examples/filecli.c: Likewise.
4791 * manual/examples/filesrv.c: Likewise.
4792 * manual/examples/fmtmsgexpl.c: Likewise.
4793 * manual/examples/genpass.c: Likewise.
4794 * manual/examples/inetcli.c: Likewise.
4795 * manual/examples/inetsrv.c: Likewise.
4796 * manual/examples/isockad.c: Likewise.
4797 * manual/examples/longopt.c: Likewise.
4798 * manual/examples/memopen.c: Likewise.
4799 * manual/examples/memstrm.c: Likewise.
4800 * manual/examples/mkdirent.c: Likewise.
4801 * manual/examples/mkfsock.c: Likewise.
4802 * manual/examples/mkisock.c: Likewise.
4803 * manual/examples/mygetpass.c: Likewise.
4804 * manual/examples/pipe.c: Likewise.
4805 * manual/examples/popen.c: Likewise.
4806 * manual/examples/rprintf.c: Likewise.
4807 * manual/examples/search.c: Likewise.
4808 * manual/examples/select.c: Likewise.
4809 * manual/examples/setjmp.c: Likewise.
4810 * manual/examples/sigh1.c: Likewise.
4811 * manual/examples/sigusr.c: Likewise.
4812 * manual/examples/stpcpy.c: Likewise.
4813 * manual/examples/strdupa.c: Likewise.
4814 * manual/examples/strftim.c: Likewise.
4815 * manual/examples/subopt.c: Likewise.
4816 * manual/examples/swapcontext.c: Likewise.
4817 * manual/examples/termios.c: Likewise.
4818 * manual/examples/testopt.c: Likewise.
4819 * manual/examples/testpass.c: Likewise.
4820 * manual/examples/timeval_subtract.c: Likewise.
4821
4822 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4823
4824 * sysdeps/x86/fpu/math_private.h: New file.
4825 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4826
4827 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4828 definition.
4829 (cosh): Likewise.
4830 (tanh): Likewise.
4831
4832 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4833
4834 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4835 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4836 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4837 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4838 fields.
4839 (_dl_show_auxv): Give a special treatment to
4840 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4841 and AT_L3_CACHEGEOMETRY.
4842 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4843 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4844 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4845 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4846
4847 2018-12-19 Andreas Schwab <schwab@suse.de>
4848
4849 * nscd/connections.c (check_use): Don't abort on invalid len.
4850
4851 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4852
4853 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4854 values in the 64bit value cases.
4855
4856 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4857
4858 * include/time.h
4859 (__ctime64_r): Add.
4860 * time/ctime_r.c
4861 (__ctime64_r): Add.
4862 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4863
4864 * include/time.h
4865 (__ctime64): Add.
4866 * time/gmtime.c
4867 (__ctime64): Add.
4868 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4869
4870 * include/time.h
4871 (__gmtime64_r): Add.
4872 * time/gmtime.c
4873 (__gmtime64_r): Add.
4874 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4875
4876 * include/time.h
4877 (__gmtime64): Add.
4878 * time/gmtime.c
4879 (__gmtime64): Add.
4880 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4881
4882 * include/time.h
4883 (__localtime64_r): Add.
4884 * time/localtime.c
4885 (__localtime64_r): Add.
4886 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4887
4888 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4889
4890 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4891 kernel_sigction definition.
4892
4893 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4894
4895 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4896
4897 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4898 __syscall_rt_sigaction.
4899 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4900 (kernel_sigaction): Use Linux generic defintion.
4901 (STUB): Define.
4902 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4903 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4904 (__syscall_rt_sigaction): Remove implementation.
4905 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4906 hidden.
4907 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4908 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4909 INTERNAL_SYSCALL): Remove definitions.
4910 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4911 action and signal set size.
4912 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4913 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4914
4915 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4916 James Clarke <jrtc27@jrtc27.com>
4917
4918 [BZ #23967]
4919 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4920 Define if SA_RESTORER is defined.
4921 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4922 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4923 already defined.
4924 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4925 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4926 definitions.
4927 (HAS_SA_RESTORER): Define.
4928 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4929 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4930 (HAS_SA_RESTORER): Define.
4931 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4932 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4933 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4934 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4935 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4936
4937 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4938
4939 * sysdeps/unix/sysv/linux/kernel-features.h
4940 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4941 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4942 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4943 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4944 (__ASSUME_ST_INO_64_BIT): Likewise.
4945 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4946 <kernel-features.h>.
4947 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4948 Remove conditional code.
4949 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4950 <kernel-features.h>.
4951 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4952 Remove conditional code.
4953 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4954 <kernel-features.h>.
4955 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4956 Remove conditional code.
4957 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4958 <kernel-features.h>.
4959 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4960 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4961
4962 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4963
4964 * sysdeps/s390/multiarch/ifunc-resolve.h
4965 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4966 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4967 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4968 Delete macro definition.
4969 (s390_libc_ifunc_init): Rename to
4970 s390_libc_ifunc_expr_stfle_init.
4971 * sysdeps/s390/bzero: Use
4972 s390_libc_ifunc_expr_stfle_init instead of
4973 s390_libc_ifunc_init.
4974 * sysdeps/s390/memcmp.c: Likewise.
4975 * sysdeps/s390/memcpy.c: Likewise.
4976 * sysdeps/s390/mempcpy.c: Likewise.
4977 * sysdeps/s390/memset.c: Likewise.
4978
4979 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4980
4981 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4982 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4983
4984 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4985
4986 * sysdeps/s390/multiarch/Makefile
4987 (sysdep_routines): Remove wmemcmp variants.
4988 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4989 * sysdeps/s390/multiarch/ifunc-impl-list.c
4990 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4991 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4992 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4993 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4994 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4995 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4996 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4997 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4998
4999 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5000
5001 * sysdeps/s390/multiarch/Makefile
5002 (sysdep_routines): Remove wmemset variants.
5003 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5004 * sysdeps/s390/multiarch/ifunc-impl-list.c
5005 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5006 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5007 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5008 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5009 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5010 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5011 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5012 * sysdeps/s390/ifunc-wmemset.h: New file.
5013
5014 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5015
5016 * sysdeps/s390/multiarch/Makefile
5017 (sysdep_routines): Remove wmemchr variants.
5018 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5019 * sysdeps/s390/multiarch/ifunc-impl-list.c
5020 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5021 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5022 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5023 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5024 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5025 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5026 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5027 * sysdeps/s390/ifunc-wmemchr.h: New file.
5028
5029 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5030
5031 * sysdeps/s390/multiarch/Makefile
5032 (sysdep_routines): Remove wcscspn variants.
5033 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5034 * sysdeps/s390/multiarch/ifunc-impl-list.c
5035 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5036 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5037 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5038 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5039 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5040 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5041 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5042 * sysdeps/s390/ifunc-wcscspn.h: New file.
5043
5044 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5045
5046 * sysdeps/s390/multiarch/Makefile
5047 (sysdep_routines): Remove wcspbrk variants.
5048 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5049 * sysdeps/s390/multiarch/ifunc-impl-list.c
5050 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5051 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5052 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5053 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5054 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5055 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5056 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5057 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5058
5059 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5060
5061 * sysdeps/s390/multiarch/Makefile
5062 (sysdep_routines): Remove wcsspn variants.
5063 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5064 * sysdeps/s390/multiarch/ifunc-impl-list.c
5065 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5066 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5067 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5068 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5069 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5070 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5071 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5072 * sysdeps/s390/ifunc-wcsspn.h: New file.
5073
5074 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5075
5076 * sysdeps/s390/multiarch/Makefile
5077 (sysdep_routines): Remove wcsrchr variants.
5078 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5079 * sysdeps/s390/multiarch/ifunc-impl-list.c
5080 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5081 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5082 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5083 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5084 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5085 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5086 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5087 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5088
5089 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5090
5091 * sysdeps/s390/multiarch/Makefile
5092 (sysdep_routines): Remove wcschrnul variants.
5093 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5094 * sysdeps/s390/multiarch/ifunc-impl-list.c
5095 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5096 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5097 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5098 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5099 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5100 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5101 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5102 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5103
5104 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5105
5106 * sysdeps/s390/multiarch/Makefile
5107 (sysdep_routines): Remove wcschr variants.
5108 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5109 * sysdeps/s390/multiarch/ifunc-impl-list.c
5110 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5111 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5112 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5113 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5114 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5115 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5116 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5117 * sysdeps/s390/ifunc-wcschr.h: New file.
5118
5119 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5120
5121 * sysdeps/s390/multiarch/Makefile
5122 (sysdep_routines): Remove wcsncmp variants.
5123 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5124 * sysdeps/s390/multiarch/ifunc-impl-list.c
5125 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5126 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5127 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5128 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5129 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5130 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5131 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5132 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5133
5134 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5135
5136 * sysdeps/s390/multiarch/Makefile
5137 (sysdep_routines): Remove wcscmp variants.
5138 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5139 * sysdeps/s390/multiarch/ifunc-impl-list.c
5140 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5141 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5142 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5143 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5144 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5145 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5146 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5147 * sysdeps/s390/ifunc-wcscmp.h: New file.
5148
5149 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5150
5151 * sysdeps/s390/multiarch/Makefile
5152 (sysdep_routines): Remove wcsncat variants.
5153 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5154 * sysdeps/s390/multiarch/ifunc-impl-list.c
5155 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5156 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5157 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5158 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5159 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5160 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5161 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5162 * sysdeps/s390/ifunc-wcsncat.h: New file.
5163
5164 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5165
5166 * sysdeps/s390/multiarch/Makefile
5167 (sysdep_routines): Remove wcscat variants.
5168 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5169 * sysdeps/s390/multiarch/ifunc-impl-list.c
5170 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5171 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5172 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5173 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5174 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5175 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5176 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5177 * sysdeps/s390/ifunc-wcscat.h: New file.
5178
5179 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5180
5181 * sysdeps/s390/multiarch/Makefile
5182 (sysdep_routines): Remove wcpncpy variants.
5183 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5184 * sysdeps/s390/multiarch/ifunc-impl-list.c
5185 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5186 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5187 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5188 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5189 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5190 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5191 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5192 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5193
5194 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5195
5196 * sysdeps/s390/multiarch/Makefile
5197 (sysdep_routines): Remove wcsncpy variants.
5198 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5199 * sysdeps/s390/multiarch/ifunc-impl-list.c
5200 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5201 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5202 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5203 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5204 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5205 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5206 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5207 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5208
5209 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5210
5211 * sysdeps/s390/multiarch/Makefile
5212 (sysdep_routines): Remove wcpcpy variants.
5213 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5214 * sysdeps/s390/multiarch/ifunc-impl-list.c
5215 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5216 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5217 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5218 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5219 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5220 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5221 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5222 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5223
5224 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5225
5226 * sysdeps/s390/multiarch/Makefile
5227 (sysdep_routines): Remove wcscpy variants.
5228 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5229 * sysdeps/s390/multiarch/ifunc-impl-list.c
5230 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5231 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5232 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5233 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5234 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5235 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5236 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5237 * sysdeps/s390/ifunc-wcscpy.h: New file.
5238
5239 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5240
5241 * sysdeps/s390/multiarch/Makefile
5242 (sysdep_routines): Remove wcsnlen variants.
5243 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5244 * sysdeps/s390/multiarch/ifunc-impl-list.c
5245 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5246 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5247 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5248 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5249 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5250 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5251 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5252 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5253
5254 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5255
5256 * sysdeps/s390/multiarch/Makefile
5257 (sysdep_routines): Remove wcslen variants.
5258 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5259 * sysdeps/s390/multiarch/ifunc-impl-list.c
5260 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5261 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5262 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5263 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5264 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5265 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5266 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5267 * sysdeps/s390/ifunc-wcslen.h: New file.
5268
5269 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5270
5271 * sysdeps/s390/multiarch/Makefile
5272 (sysdep_routines): Remove memrchr variants.
5273 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5274 * sysdeps/s390/multiarch/ifunc-impl-list.c
5275 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5276 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5277 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5278 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5279 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5280 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5281 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5282 * sysdeps/s390/ifunc-memrchr.h: New file.
5283
5284 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5285
5286 * sysdeps/s390/multiarch/Makefile
5287 (sysdep_routines): Remove memccpy variants.
5288 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5289 * sysdeps/s390/multiarch/ifunc-impl-list.c
5290 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5291 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5292 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5293 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5294 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5295 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5296 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5297 * sysdeps/s390/ifunc-memccpy.h: New file.
5298
5299 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5300
5301 * sysdeps/s390/multiarch/Makefile
5302 (sysdep_routines): Remove rawmemchr variants.
5303 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5304 * sysdeps/s390/multiarch/ifunc-impl-list.c
5305 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5306 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5307 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5308 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5309 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5310 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5311 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5312 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5313
5314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5315
5316 * sysdeps/s390/multiarch/Makefile
5317 (sysdep_routines): Remove memchr variants.
5318 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5319 * sysdeps/s390/multiarch/ifunc-impl-list.c
5320 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5321 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5322 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5323 * sysdeps/s390/multiarch/memchr.c: Move to ...
5324 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5325 * sysdeps/s390/ifunc-memchr.h: New file.
5326 * sysdeps/s390/s390-64/memchr.S: Move to ...
5327 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5328 for 31/64bit and ifunc handling.
5329 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5330 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5331 * sysdeps/s390/s390-32/memchr.S: Likewise.
5332
5333 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5334
5335 * sysdeps/s390/multiarch/Makefile
5336 (sysdep_routines): Remove strcspn variants.
5337 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5338 * sysdeps/s390/multiarch/ifunc-impl-list.c
5339 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5340 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5341 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5342 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5343 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5344 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5345 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5346 * sysdeps/s390/ifunc-strcspn.h: New file.
5347
5348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5349
5350 * sysdeps/s390/multiarch/Makefile
5351 (sysdep_routines): Remove strpbrk variants.
5352 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5353 * sysdeps/s390/multiarch/ifunc-impl-list.c
5354 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5355 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5356 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5357 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5358 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5359 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5360 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5361 * sysdeps/s390/ifunc-strpbrk.h: New file.
5362
5363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5364
5365 * sysdeps/s390/multiarch/Makefile
5366 (sysdep_routines): Remove strspn variants.
5367 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5368 * sysdeps/s390/multiarch/ifunc-impl-list.c
5369 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5370 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5371 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5372 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5373 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5374 * sysdeps/s390/multiarch/strspn.c: Move to ...
5375 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5376 * sysdeps/s390/ifunc-strspn.h: New file.
5377
5378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5379
5380 * sysdeps/s390/multiarch/Makefile
5381 (sysdep_routines): Remove strrchr variants.
5382 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5383 * sysdeps/s390/multiarch/ifunc-impl-list.c
5384 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5385 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5386 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5387 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5388 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5389 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5390 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5391 * sysdeps/s390/ifunc-strrchr.h: New file.
5392
5393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5394
5395 * sysdeps/s390/multiarch/Makefile
5396 (sysdep_routines): Remove strchrnul variants.
5397 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5398 * sysdeps/s390/multiarch/ifunc-impl-list.c
5399 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5400 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5401 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5402 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5403 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5404 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5405 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5406 * sysdeps/s390/ifunc-strchrnul.h: New file.
5407
5408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5409
5410 * sysdeps/s390/multiarch/Makefile
5411 (sysdep_routines): Remove strchr variants.
5412 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5413 * sysdeps/s390/multiarch/ifunc-impl-list.c
5414 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5415 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5416 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5417 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5418 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5419 * sysdeps/s390/multiarch/strchr.c: Move to ...
5420 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5421 * sysdeps/s390/ifunc-strchr.h: New file.
5422
5423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5424
5425 * sysdeps/s390/multiarch/Makefile
5426 (sysdep_routines): Remove strncmp variants.
5427 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5428 * sysdeps/s390/multiarch/ifunc-impl-list.c
5429 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5430 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5431 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5432 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5433 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5434 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5435 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5436 * sysdeps/s390/ifunc-strncmp.h: New file.
5437
5438 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5439
5440 * sysdeps/s390/multiarch/Makefile
5441 (sysdep_routines): Remove strcmp variants.
5442 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5443 * sysdeps/s390/multiarch/ifunc-impl-list.c
5444 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5445 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5446 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5447 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5448 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5449 * sysdeps/s390/ifunc-strcmp.h: New file.
5450 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5451 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5452 for 31/64bit and ifunc handling.
5453 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5454 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5455 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5456
5457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5458
5459 * sysdeps/s390/multiarch/Makefile
5460 (sysdep_routines): Remove strncat variants.
5461 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5462 * sysdeps/s390/multiarch/ifunc-impl-list.c
5463 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5464 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5465 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5466 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5467 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5468 * sysdeps/s390/multiarch/strncat.c: Move to ...
5469 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5470 * sysdeps/s390/ifunc-strncat.h: New file.
5471
5472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5473
5474 * sysdeps/s390/multiarch/Makefile
5475 (sysdep_routines): Remove strcat variants.
5476 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5477 * sysdeps/s390/multiarch/ifunc-impl-list.c
5478 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5479 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5480 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5481 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5482 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5483 * sysdeps/s390/multiarch/strcat.c: Move to ...
5484 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5485 * sysdeps/s390/ifunc-strcat.h: New file.
5486
5487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5488
5489 * sysdeps/s390/multiarch/Makefile
5490 (sysdep_routines): Remove stpncpy variants.
5491 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5492 * sysdeps/s390/multiarch/ifunc-impl-list.c
5493 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5494 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5495 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5496 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5497 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5498 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5499 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5500 * sysdeps/s390/ifunc-stpncpy.h: New file.
5501
5502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5503
5504 * sysdeps/s390/multiarch/Makefile
5505 (sysdep_routines): Remove strncpy variants.
5506 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5507 * sysdeps/s390/multiarch/ifunc-impl-list.c
5508 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5509 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5510 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5511 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5512 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5513 * sysdeps/s390/ifunc-strncpy.h: New file.
5514 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5515 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5516 and adjust ifunc handling.
5517 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5518 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5519 and adjust ifunc handling.
5520 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5521 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5522
5523 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5524
5525 * sysdeps/s390/multiarch/Makefile
5526 (sysdep_routines): Remove stpcpy variants.
5527 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5528 * sysdeps/s390/multiarch/ifunc-impl-list.c
5529 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5530 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5531 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5532 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5533 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5534 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5535 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5536 * sysdeps/s390/ifunc-stpcpy.h: New file.
5537
5538 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5539
5540 * sysdeps/s390/multiarch/Makefile
5541 (sysdep_routines): Remove strcpy variants.
5542 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5543 * sysdeps/s390/multiarch/ifunc-impl-list.c
5544 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5545 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5546 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5547 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5548 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5549 * sysdeps/s390/ifunc-strcpy.h: New file.
5550 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5551 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5552 for 31/64bit and ifunc handling.
5553 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5554 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5555 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5556
5557 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5558
5559 * sysdeps/s390/multiarch/Makefile
5560 (sysdep_routines): Remove strnlen variants.
5561 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5562 * sysdeps/s390/multiarch/ifunc-impl-list.c
5563 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5564 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5565 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5566 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5567 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5568 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5569 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5570 * sysdeps/s390/ifunc-strnlen.h: New file.
5571
5572 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5573
5574 * sysdeps/s390/multiarch/Makefile
5575 (sysdep_routines): Remove strlen variants.
5576 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5577 * sysdeps/s390/multiarch/ifunc-impl-list.c
5578 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5579 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5580 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5581 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5582 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5583 * sysdeps/s390/multiarch/strlen.c: Move to ...
5584 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5585 * sysdeps/s390/ifunc-strlen.h: New file.
5586
5587 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5588
5589 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5590 * sysdeps/s390/multiarch/ifunc-impl-list.c
5591 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5592 * sysdeps/s390/ifunc-memmem.h: New file.
5593 * sysdeps/s390/memmem.c: Likewise.
5594 * sysdeps/s390/memmem-c.c: Likewise.
5595 * sysdeps/s390/memmem-vx.c: Likewise.
5596
5597 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5598
5599 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5600 * sysdeps/s390/multiarch/ifunc-impl-list.c
5601 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5602 * sysdeps/s390/ifunc-strstr.h: New file.
5603 * sysdeps/s390/strstr.c: Likewise.
5604 * sysdeps/s390/strstr-c.c: Likewise.
5605 * sysdeps/s390/strstr-vx.c: Likewise.
5606
5607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5608
5609 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5610 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5611 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5612 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5613 New defines.
5614 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5615 * sysdeps/s390/memmove-c.c: New file.
5616 * sysdeps/s390/memmove.c: Likewise.
5617 * sysdeps/s390/multiarch/ifunc-impl-list.c
5618 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5619
5620 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5621
5622 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5623 * sysdeps/s390/configure.ac: Add check for z13 support.
5624 * sysdeps/s390/configure: Regenerated.
5625
5626 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5627
5628 * sysdeps/s390/memcopy.h: New file.
5629
5630 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5631
5632 * sysdeps/s390/s390-32/bcopy.S: Remove.
5633 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5634
5635 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5636
5637 * sysdeps/s390/ifunc-memcpy.h: New File.
5638 * sysdeps/s390/memcpy.S: Move to ...
5639 * sysdeps/s390/memcpy-z900.S ... here.
5640 Move implementations from memcpy-s390x.s to here.
5641 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5642 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5643 Remove memcpy/mempcpy variants.
5644 * sysdeps/s390/Makefile (sysdep_routines):
5645 Add memcpy/mempcpy variants.
5646 * sysdeps/s390/multiarch/ifunc-impl-list.c
5647 (__libc_ifunc_impl_list): Adjust ifunc variants for
5648 memcpy and mempcpy.
5649 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5650 to ...
5651 * sysdeps/s390/memcpy.c: ... here.
5652 Adjust ifunc variants for memcpy.
5653 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5654 * sysdeps/s390/mempcpy.c: ... here.
5655 Adjust ifunc variants for mempcpy.
5656 * sysdeps/s390/mempcpy.S: Delete file.
5657
5658 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5659
5660 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5661 * sysdeps/s390/memcpy.S: ... here.
5662 Adjust to be usable for 31/64bit.
5663 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5664 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5665 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5666 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5667 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5668 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5669 Adjust to be usable for 31/64bit.
5670 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5671 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5672 * sysdeps/s390/multiarch/memcpy.c: ... here.
5673 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5674
5675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5676
5677 * sysdeps/s390/ifunc-memcmp.h: New File.
5678 * sysdeps/s390/memcmp.S: Move to ...
5679 * sysdeps/s390/memcmp-z900.S ... here.
5680 Move implementations from memcmp-s390x.s to here.
5681 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5682 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5683 Remove memcmp variants.
5684 * sysdeps/s390/Makefile (sysdep_routines):
5685 Add memcmp variants.
5686 * sysdeps/s390/multiarch/ifunc-impl-list.c
5687 (__libc_ifunc_impl_list): Adjust ifunc variants for
5688 memcmp.
5689 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5690 to ...
5691 * sysdeps/s390/memcmp.c: ... here.
5692 Adjust ifunc variants for memcmp.
5693
5694 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5695
5696 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5697 * sysdeps/s390/memcmp.S: ... here.
5698 Adjust to be usable for 31/64bit.
5699 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5700 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5701 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5702 Remove memcmp.
5703 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5704 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5705 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5706 Adjust to be usable for 31/64bit.
5707 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5708 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5709 * sysdeps/s390/multiarch/memcmp.c: ... here.
5710 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5711
5712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5713
5714 * sysdeps/s390/s390-32/bzero.S: Delete file.
5715 * sysdeps/s390/s390-64/bzero.S: Likewise.
5716 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5717 * sysdeps/s390/bzero.c: New file.
5718 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5719 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5720 * sysdeps/s390/multiarch/ifunc-impl-list.c
5721 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5722
5723 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5724
5725 * sysdeps/s390/ifunc-memset.h: New File.
5726 * sysdeps/s390/memset.S: Move to ...
5727 * sysdeps/s390/memset-z900.S ... here.
5728 Move implementations from memset-s390x.s to here.
5729 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5730 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5731 Remove memset variants.
5732 * sysdeps/s390/Makefile (sysdep_routines):
5733 Add memset variants.
5734 * sysdeps/s390/multiarch/ifunc-impl-list.c
5735 (__libc_ifunc_impl_list): Adjust ifunc variants for
5736 memset.
5737 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5738 to ...
5739 * sysdeps/s390/memset.c: ... here.
5740 Adjust ifunc variants for memset.
5741
5742 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5743
5744 * sysdeps/s390/s390-64/memset.S: Move to ...
5745 * sysdeps/s390/memset.S: ... here.
5746 Adjust to be usable for 31/64bit.
5747 * sysdeps/s390/s390-32/memset.S: Delete File.
5748 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5749 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5750 Remove memset.
5751 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5752 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5753 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5754 Adjust to be usable for 31/64bit.
5755 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5756 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5757 * sysdeps/s390/multiarch/memset.c: ... here.
5758 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5759
5760 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5761
5762 * sysdeps/s390/multiarch/ifunc-resolve.h
5763 (s390_libc_ifunc_init, s390_libc_ifunc,
5764 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5765
5766 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5767
5768 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5769 * sysdeps/s390/configure.ac: Add check for z10 support.
5770 * sysdeps/s390/configure: Regenerated.
5771
5772 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5773
5774 * sysdeps/i386/atomic-machine.h: Merged with ...
5775 * sysdeps/x86_64/atomic-machine.h: To ...
5776 * sysdeps/x86/atomic-machine.h: This. New file.
5777
5778 2018-12-18 Florian Weimer <fweimer@redhat.com>
5779
5780 Rewrite locale/gen-translit.pl in Python.
5781 * locale/Makefile (generated): Add C-translit.h.
5782 (before-compile): Add $(objpfx)C-translit.h.
5783 (C-translit.h): Move to $(objpfx). Create target directory.
5784 Build using Python script.
5785 * locale/gen-translit.py: New file.
5786 * locale/gen-translit.pl: Remove file.
5787 * locale/C-translit.h.in: Change comment character to '#' for
5788 easier parsing without a C preprocessor.
5789 * locale/C-translit.h: Remove generated file.
5790 * manual/install.texi (Tools for Compilation): Do not mention
5791 C-translit.h.
5792 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5793 Remove locale/C-translit.h.
5794 * scripts/update-copyrights: Likewise.
5795 * INSTALL: Regenerate.
5796
5797 2018-12-18 Florian Weimer <fweimer@redhat.com>
5798
5799 [BZ #23995]
5800 * localedata/locales/bi_VU: Remove executable bit from file.
5801
5802 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5803
5804 * include/time.h
5805 (__localtime64): Add.
5806 * manual/maint.texi: Document Y2038 symbol handling.
5807 * time/localtime.c
5808 (__localtime64): Add.
5809 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5810
5811 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5812
5813 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5814 Do not clobber r12.
5815
5816 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5817 to allow extra macros from first or second sources.
5818 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5819 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5820 (tests-special): Add $(objpfx)tst-mman-consts.out.
5821 ($(objpfx)tst-mman-consts.out): New makefile target.
5822
5823 2018-12-17 Mao Han <han_mao@c-sky.com>
5824
5825 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5826 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5827 without stat64 system call support.
5828 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5829 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5830 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5831 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5832 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5833 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5834 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5835 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5836 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5837 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5838 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5839
5840 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5841
5842 regex: fix storage-exhaustion error
5843 [BZ #18040]
5844 * posix/regexec.c (get_subexp):
5845 Do not continue if storage is exhausted.
5846
5847 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5848
5849 regex: fix heap-use-after-free error
5850 [BZ #18040]
5851 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5852 https://debbugs.gnu.org/32592
5853 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5854 call extend_buffers which reallocates the re_string_t internal buffer.
5855 Local variable 'buf' was not updated in such case, resulting in
5856 use-after-free.
5857 * posix/regexec.c (get_subexp): Update 'buf' after call to
5858 get_subexp_sub.
5859
5860 2018-12-15 Florian Weimer <fweimer@redhat.com>
5861
5862 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5863 (minimum_stride_size): Use it.
5864 (support_blob_repeat_allocate): Likewise.
5865
5866 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5867
5868 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5869 definition.
5870 (acosh): Likewise.
5871 (atanh): Likewise.
5872
5873 2018-12-14 Florian Weimer <fweimer@redhat.com>
5874
5875 * manual/process.texi (Process Creation Concepts): Remove
5876 documentation of process (ID) lifetime. List more process
5877 creation functions. Reference Process Identification section.
5878 (Process Identification): Add information about process ID
5879 lifetime. Describe Linux thread/task IDs.
5880 * manual/signal.texi (Signaling Another Process): Mention that the
5881 signal is always sent to the process.
5882
5883 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5884
5885 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5886 and tst-ldbl-efgcvt.
5887 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5888 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5889 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5890 (fcvt_tests, output_error, output_r_error, do_test): Use the
5891 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5892 select the type of floating-point variables and arguments; to
5893 produce extra tests for double and conversion specifiers for
5894 printf; and to set the names of called functions.
5895 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5896 in tst-efgcvt-template.c.
5897 * misc/tst-ldbl-efgcvt.c: Likewise.
5898
5899 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5900
5901 * nss/Makefile (tst-nss-test3.out): New rule.
5902
5903 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5904
5905 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5906 clobber sp.
5907
5908 2018-12-13 fanjinke <fanjinke@hygon.cn>
5909
5910 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5911 "HygonGenuine".
5912
5913 2018-12-13 Andreas Schwab <schwab@suse.de>
5914
5915 [BZ #23861]
5916 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5917 (__pthread_rwlock_rdlock_full): Update expected value for
5918 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5919 * nptl/tst-rwlock-pwn.c: New file.
5920 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5921
5922 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5923
5924 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5925 definition.
5926
5927 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5928
5929 * benchtests/scripts/compare_bench.py (do_compare): write to
5930 stderr in casestat is not present.
5931 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5932 stderr in case timings field is not present. Also string showing
5933 the output filename goes into the stderr.
5934
5935 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5936
5937 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5938 and ZeroDivisorError exceptions.
5939 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5940 argument to loop through user provided statistics.
5941 * benchtests/scripts/compare_bench.py (main): Include the --stats
5942 argument.
5943
5944 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5945
5946 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5947 instead of return.
5948
5949 2018-12-12 Florian Weimer <fweimer@redhat.com>
5950
5951 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5952 clause to copyright header.
5953
5954 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5955
5956 [BZ #23614]
5957 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5958 registers saved in the stack frame.
5959 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5960 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5961
5962 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5963
5964 * include/bits/monetary-ldbl.h: New file.
5965 * include/bits/printf-ldbl.h: Likewise.
5966 * include/bits/stdio-ldbl.h: Likewise.
5967 * include/bits/stdlib-ldbl.h: Likewise.
5968 * include/bits/syslog-ldbl.h: Likewise.
5969 * include/bits/wchar-ldbl.h: Likewise.
5970
5971 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5972
5973 * libio/libio.h: Remove redirection for _IO_vfprintf.
5974
5975 2018-12-11 Andreas Schwab <schwab@suse.de>
5976
5977 * Makerules: Remove all references to abilist-pattern.
5978 (update-all-abi): Simplify find expression.
5979
5980 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5981
5982 [BZ #23961]
5983 * math/auto-libm-test-in: Add new test case.
5984 * math/auto-libm-test-out-pow: Regenerated.
5985 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5986
5987 2018-12-10 DJ Delorie <dj@redhat.com>
5988
5989 [BZ #23948]
5990 * support/test-container.c: Move postclean step to before we
5991 change namespaces.
5992
5993 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5994
5995 * scripts/gen-as-const.py (main): Handle --python option.
5996 * scripts/gen-py-const.awk: Remove.
5997 * Makerules (py-const-script): Use gen-as-const.py.
5998 ($(py-const)): Likewise.
5999 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6000 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6001 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6002 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6003 ~PTHREAD_MUTEX_NO_ELISION_NP.
6004 * manual/README.pretty-printers: Update reference to
6005 gen-py-const.awk.
6006
6007 * scripts/glibcextract.py: New file.
6008 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6009 or tempfile. Import glibcexctract.
6010 (compute_c_consts): Remove. Moved to glibcextract.py.
6011 (gen_test): Update reference to compute_c_consts.
6012 (main): Likewise.
6013 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6014 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6015 * sysdeps/unix/sysv/linux/Makefile
6016 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6017 Redirect stderr as well as stdout.
6018
6019 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6020
6021 [BZ #19767]
6022 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6023 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6024 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6025 ALWAYS_USE_VSYSCALL.
6026 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6027 ALWAYS_USE_VSYSCALL.
6028 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6029 ALWAYS_USE_VSYSCALL.
6030
6031 2018-12-10 Florian Weimer <fweimer@redhat.com>
6032
6033 [BZ #23972]
6034 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6035 offset instead of count for clarity. Fix typo in comment.
6036 (__old_getdents64): Keep track of previous offset. Use it to call
6037 handle_overflow.
6038 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6039 that d_off is never zero.
6040
6041 2018-12-10 Andreas Schwab <schwab@suse.de>
6042
6043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6044 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6046 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6047 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6048
6049 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6050
6051 * timezone/private.h: Update from tzcode 2018g.
6052 * timezone/tzfile.h: Likewise.
6053 * timezone/tzselect.ksh: Likewise.
6054 * timezone/zdump.c: Likewise.
6055 * timezone/zic.c: Likewise.
6056
6057 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6058
6059 [BZ #23490]
6060 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6061 (do_test): Adjust buffer size and fix format.
6062
6063 2018-12-07 DJ Delorie <dj@redhat.com>
6064
6065 [BZ #23907]
6066 * malloc/tst-tcfree3.c: New.
6067 * malloc/Makefile: Add it.
6068
6069 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6070
6071 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6072
6073 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6074
6075 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6076 used as a mask for the mode argument of __vfscanf_internal and
6077 __vfwscanf_internal.
6078 * stdio-common/vfscanf-internal.c
6079 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6080 (__strtof128_internal): Define to __wcstof128_internal.
6081 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6082 __strtof128_internal or __wcstof128_internal when the format of
6083 long double is the same as _Float128.
6084
6085 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6086
6087 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6088 * posix/confstr.c (confstr): Rename to __confstr.
6089 (__confstr): Add hidden def.
6090 (confstr): Add weak alias for __confstr.
6091 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6092 confstr.
6093
6094 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6095
6096 * NEWS: Mention getcpu.
6097 * include/sched.h (__getcpu): New libc_hidden_proto.
6098 * manual/resource.texi: Document getcpu.
6099 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6100 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6101 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6102 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6103 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6104 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6105 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6106 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6107 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6108 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6109 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6110 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6111 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6112 Likewise.
6113 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6114 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6115 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6117 Likewise.
6118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6119 Likewise.
6120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6121 Likewise.
6122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6123 Likewise.
6124 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6125 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6126 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6127 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6128 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6129 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6130 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6131 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6132 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6133 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6134 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6135 Also check getcpu.
6136
6137 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6138
6139 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6140 functions.
6141 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6142
6143 2018-12-07 Florian Weimer <fweimer@redhat.com>
6144
6145 [BZ #17405]
6146 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6147 * posix/Versions (GLIBC_2.29): Export
6148 posix_spawn_file_actions_addfchdir_np.
6149 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6150 * posix/spawn_faction_destroy.c
6151 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6152 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6153 and the field action.fchdir_action.
6154 * posix/tst-spawn-chdir.c (add_chdir): New function.
6155 (do_test): Add do_fchdir loop. Call add_chdir.
6156 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6157 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6158 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6159 posix_spawn_file_actions_addfchdir_np.
6160 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6161 Likewise.
6162 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6163 Likewise.
6164 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6165 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6166 Likewise.
6167 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6168 Likewise.
6169 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6170 Likewise.
6171 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6172 Likewise.
6173 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6174 Likewise.
6175 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6176 Likewise.
6177 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6178 (GLIBC_2.29): Likewise.
6179 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6180 (GLIBC_2.29): Likewise.
6181 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6182 (GLIBC_2.29): Likewise.
6183 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6184 (GLIBC_2.29): Likewise.
6185 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6186 Likewise.
6187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6188 (GLIBC_2.29): Likewise.
6189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6190 (GLIBC_2.29): Likewise.
6191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6192 (GLIBC_2.29): Likewise.
6193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6194 (GLIBC_2.29): Likewise.
6195 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6196 Likewise.
6197 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6198 Likewise.
6199 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6200 Likewise.
6201 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6202 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6203 Likewise.
6204 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6205 Likewise.
6206 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6207 Likewise.
6208 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6209 Likewise.
6210
6211 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6212
6213 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6214 trailing whitespace removed.
6215 * scripts/config.guess: Update to version 2018-11-28.
6216 * scripts/config.sub: Update to version 2018-11-28.
6217 * scripts/install-sh: Update to version 2018-03-11.20.
6218 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6219 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6220
6221 2018-12-07 Florian Weimer <fweimer@redhat.com>
6222
6223 [BZ #23927]
6224 CVE-2018-19591
6225 * inet/tst-if_index-long.c: New file.
6226 * inet/Makefile (tests): Add tst-if_index-long.
6227
6228 2018-12-07 Florian Weimer <fweimer@redhat.com>
6229
6230 * support/check.h (support_record_failure_is_failed): Declare.
6231 * support/descriptors.h: New file.
6232 * support/support_descriptors.c: Likewise.
6233 * support/tst-support_descriptors.c: Likewise.
6234 * support/support_record_failure.c
6235 (support_record_failure_is_failed): New function.
6236 * support/Makefile (libsupport-routines): Add support_descriptors.
6237 (tests): Add tst-support_descriptors.
6238
6239 2018-12-05 Zack Weinberg <zackw@panix.com>
6240 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6241
6242 * stdio-common/vfprintf-internal.c
6243 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6244 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6245 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6246 and __no_long_double.
6247 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6248 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6249 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6250 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6251 and __nldbl_*syslog* functions.
6252 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6253 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6254 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6255 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6256 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6257 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6258 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6259 (__nldbl_vwprintf, __nldbl_wprintf):
6260 Directly call the appropriate __v*printf_internal routine, passing
6261 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6262 variable names.
6263 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6264 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6265 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6266 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6267 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6268 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6269 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6270 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6271 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6272 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6273 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6274 (__nldbl_syslog, __nldbl_vsyslog):
6275 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6276 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6277 appropriate.
6278 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6279 appropriate.
6280
6281 2018-12-05 Zack Weinberg <zackw@panix.com>
6282 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6283
6284 [BZ #11319]
6285 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6286 Moved here from debug/vsprintf_chk.c.
6287 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6288 and completion logic for the strfile to match exactly what
6289 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6290 _IO_str_init_static_internal instead of maxlen-1.
6291 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6292 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6293 __vsprintf_internal.
6294
6295 * debug/vsprintf_chk.c (__vsprintf_chk)
6296 * debug/sprintf_chk.c (__sprintf_chk):
6297 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6298 'flags' argument is positive, and slen as maxlen. No need to lock
6299 the FILE and/or construct a temporary FILE. Minimize and normalize
6300 header inclusions and variable names. Do not libc_hidden_def anything.
6301
6302 * debug/asprintf_chk.c (__asprintf_chk)
6303 * debug/dprintf_chk.c (__dprintf_chk)
6304 * debug/fprintf_chk.c (__fprintf_chk)
6305 * debug/fwprintf_chk.c (__fwprintf_chk)
6306 * debug/printf_chk.c (__printf_chk)
6307 * debug/snprintf_chk.c (__snprintf_chk)
6308 * debug/swprintf_chk.c (__swprintf_chk)
6309 * debug/vasprintf_chk.c (__vasprintf_chk)
6310 * debug/vdprintf_chk.c (__vdprintf_chk)
6311 * debug/vfprintf_chk.c (__vfprintf_chk)
6312 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6313 * debug/vprintf_chk.c (__vprintf_chk)
6314 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6315 * debug/vswprintf_chk.c (__vswprintf_chk)
6316 * debug/vwprintf_chk.c (__vwprintf_chk)
6317 * debug/wprintf_chk.c (__wprintf_chk):
6318 Directly call the corresponding vxxprintf_internal function, passing
6319 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6320 the FILE and/or construct a temporary FILE. Minimize and normalize
6321 header inclusions and variable names. Do not libc_hidden_def anything.
6322
6323 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6324 __obstack_vprintf_internal.
6325 (__obstack_vprintf_chk): Convert into a wrapper that calls
6326 __obstack_vprintf_internal (these two functions already had the
6327 same code) and move to new file...
6328 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6329 file.
6330 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6331 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6332 * debug/Makefile (routines): Add vobprintf_chk.
6333
6334 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6335 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6336 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6337 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6338 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6339 (__nldbl___obstack_vfprintf_chk):
6340 Directly call the corresponding vxxprintf_internal function,
6341 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6342 duplicate comparison of slen with 0 or maxlen from the corresponding
6343 non-__nldbl function.
6344
6345 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6346 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6347 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6348 Remove libc_hidden_proto.
6349
6350 * stdio-common/vfprintf-internal.c
6351 (__vfprintf_internal, __vfwprintf_internal):
6352 Do not check _IO_FLAGS2_FORTIFY.
6353 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6354 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6355 a comment explaining why it has the maxlen argument.
6356 (_IO_acquire_lock_clear_flags2_fct): Remove.
6357 (_IO_acquire_lock_clear_flags2): Remove.
6358 (_IO_release_lock): Remove conditional statement which will
6359 now never execute.
6360 (_IO_acquire_lock): Remove variable which is now unused.
6361 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6362 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6363
6364 * stdio-common/Makefile (tests): Add tst-bz11319 and
6365 tst-bz11319-fortify2.
6366 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6367 * stdio-common/tst-bz11319-fortify2.c: New file.
6368 * stdio-common/tst-bz11319.c: Likewise.
6369
6370 2018-12-05 Zack Weinberg <zackw@panix.com>
6371 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6372
6373 * misc/syslog.c: Include libioP.h, not iolibio.h.
6374 (__vsyslog_internal): New function with the former body of
6375 __vsyslog_chk; takes mode_flags argument same as
6376 __v*printf_internal. Call __vfprintf_internal directly.
6377
6378 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6379 Remove libc_hidden_def.
6380 (__syslog, __syslog_chk): Use __vsyslog_internal.
6381 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6382
6383 * include/sys/syslog.h: Add multiple inclusion guard.
6384 Add prototype for __vsyslog_internal.
6385 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6386
6387 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6388 Use __vsyslog_internal.
6389
6390 2018-12-05 Zack Weinberg <zackw@panix.com>
6391 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6392
6393 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6394 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6395 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6396 New functions.
6397 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6398 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6399
6400 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6401 Include wctype.h here if COMPILE_WPRINTF is defined.
6402 Define __vfprintf_internal or __vfwprintf_internal, depending
6403 on COMPILE_WPRINTF.
6404 Temporarily, on entry to this function, update mode_flags
6405 according to the environmental settings corresponding to
6406 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6407 Throughout, check mode_flags instead of __ldbl_is_dbl and
6408 _IO_FLAGS2_FORTIFY on the destination FILE.
6409 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6410 Include vfprintf-internal.c. Don't include wctype.h.
6411 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6412 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6413 and vfprintf.
6414 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6415 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6416 and vfwprintf.
6417 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6418
6419 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6420 and add mode_flags argument; use __vfprintf_internal.
6421 (__vdprintf): New function. Alias vdprintf to this.
6422 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6423 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6424 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6425 (__obstack_printf): Use __obstack_printf_internal.
6426 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6427 public aliases __vsnprintf and vsnprintf.
6428 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6429 called internally.
6430 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6431 public aliases _IO_vsprintf and vsprintf.
6432 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6433 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6434 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6435 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6436 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6437
6438 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6439 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6440 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6441 * stdio-common/printf.c: Use __vfprintf_internal.
6442
6443 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6444 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6445 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6446
6447 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6448 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6449 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6450 __vfwprintf_internal.
6451
6452 * libio/libio.h: Remove libc_hidden_proto and declaration for
6453 _IO_vfprintf.
6454 Remove declaration of _IO_vfwprintf.
6455 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6456 _IO_vsprintf.
6457 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6458 _IO_obstack_printf.
6459 * include/stdio.h: Add prototype for __vasprintf.
6460 (__vsnprintf): Remove declaration, because there are no more
6461 internal calls.
6462 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6463 declaration, because there are no more internal calls.
6464
6465 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6466 __vsnprintf_internal, instead of _IO_vsnprintf.
6467 * argp/argp-help.c (__argp_error, __argp_failure): Use
6468 __vasprintf_internal, instead of _IO_vasprintf.
6469 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6470 redefine, because there are no more internal calls.
6471
6472 2018-12-05 Zack Weinberg <zackw@panix.com>
6473 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6474
6475 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6476 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6477 Include libio/strfile.h instead of libioP.h.
6478 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6479 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6480 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6481 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6482 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6483 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6484 necessary. Do not set __no_long_double. Normalize variable names.
6485 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6486 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6487 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6488 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6489 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6490 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6491 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6492 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6493 Do not set __no_long_double. Normalize variable names.
6494
6495 2018-12-05 Zack Weinberg <zackw@panix.com>
6496 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6497
6498 * stdio-common/isoc99_scanf.c
6499 * stdio-common/isoc99_fscanf.c
6500 * stdio-common/isoc99_sscanf.c
6501 * stdio-common/isoc99_vscanf.c
6502 * stdio-common/isoc99_vfscanf.c
6503 * stdio-common/isoc99_vsscanf.c
6504 * wcsmbs/isoc99_wscanf.c
6505 * wcsmbs/isoc99_fwscanf.c
6506 * wcsmbs/isoc99_swscanf.c
6507 * wcsmbs/isoc99_vwscanf.c
6508 * wcsmbs/isoc99_vfwscanf.c
6509 * wcsmbs/isoc99_vswscanf.c:
6510 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6511 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6512 No need to lock and unlock the FILE passed to that function.
6513
6514 * stdio-common/vfscanf-internal.c
6515 (__vfscanf_internal, __vfwscanf_internal):
6516 Don't look at _IO_FLAGS2_SCANF_STD.
6517 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6518 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6519 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6520
6521 2018-12-05 Zack Weinberg <zackw@panix.com>
6522 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6523
6524 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6525 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6526 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6527 * libio/strfile.h: Add multiple inclusion guard.
6528 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6529
6530 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6531 consistency with the other version of this file.
6532 (ldbl_compat_symbol): New macro.
6533 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6534 New macro.
6535
6536 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6537 Define __vfscanf_internal or __vfwscanf_internal, depending on
6538 COMPILE_WSCANF; don't define any other public symbols.
6539 Remove errval and code to set errp.
6540 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6541 as the mode_flags argument.
6542 (encode_error, conv_error, input_error): Don't set errval.
6543 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6544 Include vfscanf-internal.c.
6545 * stdio-common/vfscanf.c: New file defining the public entry
6546 point vfscanf, which calls __vfscanf_internal.
6547 * stdio-common/vfwscanf.c: New file defining the public entry
6548 point vfwscanf, which calls __vfwscanf_internal.
6549
6550 * stdio-common/iovfscanf.c: New file.
6551 * stdio-common/iovfwscanf.c: Likewise.
6552
6553 * stdio-common/Makefile (routines): Add vfscanf-internal,
6554 vfwscanf-internal, iovfscanf, iovfwscanf.
6555 * stdio-common/Versions: Mention GLIBC_2.29, so that
6556 it can be used in SHLIB_COMPAT expressions.
6557 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6558 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6559 Call __vfscanf_internal, instead of _IO_vfscanf.
6560 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6561 _IO_vfscanf.
6562 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6563 _IO_vfwscanf.
6564
6565 * libio/iovsscanf.c: Clean up includes, when possible. Use
6566 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6567 __vfscanf_internal or __vfwscanf_internal directly.
6568 * libio/iovswscanf.c: Likewise.
6569 * libio/swscanf.c: Likewise.
6570 * libio/vscanf.c: Likewise.
6571 * libio/vwscanf.c: Likewise.
6572 * libio/wscanf.c: Likewise.
6573 * stdio-common/isoc99_fscanf.c: Likewise.
6574 * stdio-common/isoc99_scanf.c: Likewise.
6575 * stdio-common/isoc99_sscanf.c: Likewise.
6576 * stdio-common/isoc99_vfscanf.c: Likewise.
6577 * stdio-common/isoc99_vscanf.c: Likewise.
6578 * stdio-common/isoc99_vsscanf.c: Likewise.
6579 * stdio-common/scanf.c: Likewise.
6580 * stdio-common/sscanf.c: Likewise.
6581 * wcsmbs/isoc99_fwscanf.c: Likewise.
6582 * wcsmbs/isoc99_swscanf.c: Likewise.
6583 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6584 * wcsmbs/isoc99_vswscanf.c: Likewise.
6585 * wcsmbs/isoc99_vwscanf.c: Likewise.
6586 * wcsmbs/isoc99_wscanf.c: Likewise.
6587
6588 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6589
6590 * include/time.h
6591 (__tz_compute): Replace time_t with __time64_t.
6592 (__tz_convert): Replace time_t* with __time64_t.
6593 (__offtime): Replace time_t* with __time64_t.
6594 * time/gmtime.c
6595 (__gmtime_r): Adjust call to __tz_convert.
6596 (gmtime): Likewise.
6597 * time/localtime.c
6598 (__localtime_r): Likewise.
6599 (localtime): Likewise.
6600 * time/offtime.c: Replace time_t with __time64_t.
6601 * time/tzset.c: Likewise.
6602
6603 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6604
6605 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6606 dynamic linker unless [$(run-built-tests) = yes].
6607
6608 2018-12-03 DJ Delorie <dj@delorie.com>
6609
6610 * support/test-container.c (check_for_unshare_hints): New.
6611 (main): Call it if unshare fails. Add support for "su" scriptlet
6612 command.
6613
6614 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6615
6616 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6617 'START' to indicate that start text should be output.
6618 (gen_test): Likewise.
6619 (main): Generate 'START' for first symbol or '--' line, or at end
6620 of input if not previously generated.
6621
6622 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6623
6624 [BZ #19767]
6625 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6626 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6627 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6628 ALWAYS_USE_VSYSCALL.
6629
6630 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6631
6632 [BZ #23913]
6633 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6634 new_argv by one.
6635
6636 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6637
6638 [BZ #23923]
6639 * locale/programs/localedef.c: Declare boolean hard_links default true.
6640 (options): Add --no-hard-links option.
6641 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6642 * locale/programs/localedef.h: Declare prototype for hard_links.
6643 * locale/programs/locfile.c (write_locale_data): Don't use hard
6644 links if hard_links is false.
6645
6646 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6647
6648 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6649 cpu_features_basic.
6650 (__cache_sysconf): Likewise.
6651 (init_cacheinfo): Likewise.
6652 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6653 populate COMMON_CPUID_INDEX_80000007 and
6654 COMMON_CPUID_INDEX_80000008.
6655 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6656 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6657 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6658 (init_cpu_features): Use _Static_assert on
6659 index_arch_Fast_Unaligned_Load.
6660 __get_cpuid_registers and __get_arch_feature. Updated for
6661 cpu_features_basic. Set stepping in cpu_features.
6662 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6663 (FEATURE_INDEX_2): New.
6664 (FEATURE_INDEX_MAX): Changed to enum.
6665 (COMMON_CPUID_INDEX_D_ECX_1): New.
6666 (COMMON_CPUID_INDEX_80000007): Likewise.
6667 (COMMON_CPUID_INDEX_80000008): Likewise.
6668 (cpuid_registers): Likewise.
6669 (cpu_features_basic): Likewise.
6670 (CPU_FEATURE_USABLE): Likewise.
6671 (bit_arch_XXX_Usable): Likewise.
6672 (cpu_features): Use cpuid_registers and cpu_features_basic.
6673 (bit_arch_XXX): Reweritten.
6674 (bit_cpu_XXX): Likewise.
6675 (index_cpu_XXX): Likewise.
6676 (reg_XXX): Likewise.
6677 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6678 <support/check.h>.
6679 (CHECK_CPU_FEATURE): New.
6680 (CHECK_CPU_FEATURE_USABLE): Likewise.
6681 (cpu_kinds): Likewise.
6682 (do_test): Print vendor, family, model and stepping. Check
6683 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6684 (TEST_FUNCTION): Removed.
6685 Include <support/test-driver.c> instead of
6686 "../../test-skeleton.c".
6687 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6688 Check POPCNT instead of POPCOUNT.
6689 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6690
6691 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6692
6693 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6694 there is no element in `consts'.
6695
6696 2018-12-01 Florian Weimer <fweimer@redhat.com>
6697
6698 * support/support_capture_subprocess.c
6699 (support_capture_subprocess): Check that pipe descriptors have
6700 expected values. Close original pipe descriptors in subprocess.
6701
6702 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6703
6704 [BZ #23032]
6705 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6706 attr with __pthread_default_barrierattr.
6707 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6708 attr with __pthread_default_condattr.
6709 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6710 attr with __pthread_default_mutexattr.
6711 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6712 attr with __pthread_default_rwlockattr.
6713
6714 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6715
6716 * manual/tunables.texi (POSIX Thread Tunables): New node.
6717 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6718 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6719 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6720 __pthread_tunables_init.
6721 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6722 (max_adaptive_count): Define.
6723 * nptl/pthread_mutex_conf.c: New file.
6724 * nptl/pthread_mutex_conf.h: New file.
6725 * sysdeps/generic/adaptive_spin_count.h: New file.
6726 * sysdeps/nptl/dl-tunables.list: New file.
6727 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6728 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6729 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6730 Likewise.
6731
6732 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6733
6734 [BZ #20544]
6735 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6736 * stdlib/on_exit.c (__on_exit): Likewise.
6737 * stdlib/Makefile (tests): Add tst-bz20544.
6738 * stdlib/tst-bz20544.c: New test.
6739
6740 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6741
6742 [BZ #19767]
6743 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6744 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6745 New.
6746
6747 2018-11-30 Florian Weimer <fweimer@redhat.com>
6748
6749 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6750 Extend error logging.
6751 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6752 symbol.
6753
6754 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6755
6756 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6757 __sigismember instead of sigismember.
6758 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6759 cancel_handler): New definitions.
6760 (do_system): Use posix_spawn instead of fork and execl and remove
6761 reentracy code.
6762 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6763 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6764 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6765 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6766 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6767 * sysdeps/unix/sysv/linux/system.c: Likewise.
6768
6769 [BZ #22834]
6770 [BZ #17490]
6771 * NEWS: Add new semantic for atfork with popen and system.
6772 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6773 fork and execl.
6774
6775 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6776
6777 [BZ #23690]
6778 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6779 modification order when accessing reloc_result->addr.
6780 * include/link.h (reloc_result): Add field init.
6781 * nptl/Makefile (tests): Add tst-audit-threads.
6782 (modules-names): Add tst-audit-threads-mod1 and
6783 tst-audit-threads-mod2.
6784 Add rules to build tst-audit-threads.
6785 * nptl/tst-audit-threads-mod1.c: New file.
6786 * nptl/tst-audit-threads-mod2.c: Likewise.
6787 * nptl/tst-audit-threads.c: Likewise.
6788 * nptl/tst-audit-threads.h: Likewise.
6789
6790 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6791
6792 * scripts/gen-as-const.py: New file.
6793 * scripts/gen-as-const.awk: Remove.
6794 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6795 gen-as-const.py.
6796 ($(objpfx)test-as-const-%.c): Likewise.
6797
6798 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6799
6800 * elf/dl-exception.c: Include <_itoa.h>.
6801
6802 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6803
6804 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6805 returned by __f_setlk.
6806
6807 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6808 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6809
6810 * elf/Makefile (tests-internal): Add tst-create_format1.
6811 * elf/dl-exception.c (_dl_exception_create_format): Support
6812 %x, %lx and %zx.
6813 * elf/tst-create_format1.c: New file.
6814
6815 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6816
6817 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6818 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6819 gnulib.)
6820 * argp/argp-help.c (__argp_failure): Likewise.
6821
6822 2018-11-29 Mao Han <han_mao@c-sky.com>
6823
6824 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6825 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6826 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6827 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6828 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6829 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6830 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6831 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6832 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6833 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6834 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6835 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6836 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6837 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6838 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6839 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6840 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6841 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6842 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6843 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6844 (R_CKCORE_TLS_TPOFF32): New defines.
6845
6846 2018-11-29 Florian Weimer <fweimer@redhat.com>
6847
6848 * posix/Makefile (before-compile): Remove testcases.h and
6849 ptestcases.h.
6850 (generated): Add testcases.h and ptestcases.h.
6851 (testcases.h, ptestcases.h): Move to $(objpfx).
6852 (runtests.o): Add dependency on testcases.h.
6853 (runptests.o): Add dependency on ptestcases.h.
6854 * posix/testcases.h, posix/ptestcases.h: Remove files.
6855 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6856 not touch posix/testcases.h and posix/ptestcases.h.
6857
6858 2018-11-28 Florian Weimer <fweimer@redhat.com>
6859
6860 support: Add signal support to support_capture_subprocess_check.
6861 * support/capture_subprocess.h (support_capture_subprocess_check):
6862 Adjust comment and rename parameter.
6863 * support/support_capture_subprocess_check.c
6864 (print_actual_status): New function.
6865 (support_capture_subprocess_check): Support negative
6866 status_or_signal. Call print_actual_status.
6867 * support/tst-support_capture_subprocess.c (do_test): Call
6868 support_capture_subprocess_check.
6869 * libio/tst-vtables-common.c (termination_status)
6870 (init_termination_status): Remove.
6871 (check_for_termination): Adjust support_capture_subprocess_check
6872 call.
6873 (do_test): Remove call to init_termination_status.
6874
6875 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6876
6877 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6878 source directory instead of a copy.
6879 (CommandList.create_copy_dir): Remove.
6880
6881 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6882
6883 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6884
6885 2018-11-28 Florian Weimer <fweimer@redhat.com>
6886
6887 * support/support.h (support_quote_string): Do not use str
6888 parameter name.
6889
6890 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6891
6892 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6893 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6894
6895 2018-11-27 Florian Weimer <fweimer@redhat.com>
6896
6897 * support/support.h (support_quote_string): Declare.
6898 * support/support_quote_string.c: New file.
6899 * support/tst-support_quote_string.c: Likewise.
6900 * support/Makefile (libsupport-routines): Add
6901 support_quote_string.
6902 (tests): Add tst-support_quote_string.
6903
6904 2018-11-27 Florian Weimer <fweimer@redhat.com>
6905
6906 [BZ #23927]
6907 CVE-2018-19591
6908 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6909 descriptor leak in case of ENODEV error.
6910
6911 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6912
6913 [BZ #19767]
6914 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6915 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6916 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6917
6918 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6919
6920 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6921 Error for unknown lines.
6922
6923 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6924
6925 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6926 Touch additional files.
6927
6928 2018-11-26 Florian Weimer <fweimer@redhat.com>
6929
6930 [BZ #23907]
6931 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6932 double-frees.
6933
6934 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6935
6936 [BZ #19767]
6937 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6938 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6939 SHARED. Include sysdep.h.
6940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6941 ALWAYS_USE_VSYSCALL.
6942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6943 ALWAYS_USE_VSYSCALL.
6944
6945 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6946
6947 [BZ #19767]
6948 * nptl/Makefile (tests-static): Add tst-cond11-static.
6949 (tests): Likewise.
6950 * nptl/tst-cond11-static.c: New File.
6951 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6952 tst-affinity-static.
6953 (tests): Likewise.
6954 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6955 instead of SHARED.
6956 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6957 (USE_VSYSCALL): Likewise.
6958 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6959 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6960 instead of SHARED.
6961 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6962 SHARED.
6963 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6964 New.
6965
6966 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6967
6968 [BZ #23915]
6969 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6970 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6971 Undefine.
6972
6973 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6974
6975 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6976 (tst-cet-legacy-1a-ARGS): New.
6977 ($(objpfx)tst-cet-legacy-1a): New target.
6978 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6979
6980 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6981
6982 * conform/conformtest.py (CompileSubTest.__init__): Set
6983 self.run_early to False.
6984 (ExecuteSubTest.__init__): Likewise.
6985 (HeaderTests.run): Try running all non-optional, non-XFAILed
6986 compilation tests in a single execution of the compiler.
6987
6988 * conform/conformtest.py (CompileSubTest): New class.
6989 (ExecuteSubTest): Likewise.
6990 (ElementTest.run): Rename to gen_subtests. Append tests to
6991 self.subtests instead of running them.
6992 (ConstantTest.run): Likewise.
6993 (SymbolTest.run): Likewise.
6994 (TypeTest.run): Likewise.
6995 (TagTest.run): Likewise.
6996 (FunctionTest.run): Likewise.
6997 (VariableTest.run): Likewise.
6998 (MacroFunctionTest.run): Likewise.
6999 (MacroStrTest.run): Likewise.
7000 (HeaderTests.handle_test_line): Generate subtests for tests.
7001 (HeaderTests.run): Run subtests for tests.
7002
7003 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7004
7005 * math/Versions (GLIBC_2.29): Add pow.
7006 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7007 symbol.
7008 * math/w_pow.c: New file.
7009 * sysdeps/i386/fpu/w_pow.c: New file.
7010 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7011 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7012 and add necessary aliases.
7013 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7014 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7015 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7016 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7017 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7018 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7019 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7020 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7021 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7022 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7023 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7024 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7025 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7026 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7027 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7032 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7033 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7034 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7035 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7036 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7037 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7038 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7039 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7040 __pow.
7041 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7042 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7043 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7044
7045 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7046
7047 * math/Versions (GLIBC_2.29): Add log2.
7048 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7049 symbol.
7050 * math/w_log2.c: New file.
7051 * sysdeps/i386/fpu/w_log2.c: New file.
7052 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7053 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7054 and add necessary aliases.
7055 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7056 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7057 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7058 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7059 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7060 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7061 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7062 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7063 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7064 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7065 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7066 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7067 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7068 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7069 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7074 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7075 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7076 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7077 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7078 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7079 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7080 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7081
7082 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7083
7084 * math/Versions (GLIBC_2.29): Add log.
7085 * math/w_log_compat.c (__log_compat): Change to versioned compat
7086 symbol.
7087 * math/w_log.c: New file.
7088 * sysdeps/i386/fpu/w_log.c: New file.
7089 * sysdeps/ia64/fpu/e_log.S: Update.
7090 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7091 and add necessary aliases.
7092 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7093 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7094 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7095 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7096 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7097 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7098 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7099 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7100 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7101 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7102 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7103 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7104 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7105 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7106 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7111 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7112 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7113 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7115 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7116 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7117 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7118 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7119 __log.
7120 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7121 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7122 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7123 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7124
7125 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7126
7127 * math/Versions (GLIBC_2.29): Add exp and exp2.
7128 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7129 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7130 * math/w_exp_compat.c (__exp_compat): Likewise.
7131 * math/w_exp.c: New file.
7132 * math/w_exp2.c: New file.
7133 * sysdeps/i386/fpu/w_exp.c: New file.
7134 * sysdeps/i386/fpu/w_exp2.c: New file.
7135 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7136 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7137 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7138 and add necessary aliases.
7139 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7140 and add necessary aliases.
7141 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7142 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7143 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7144 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7145 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7146 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7147 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7148 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7149 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7150 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7151 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7152 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7153 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7154 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7155 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7156 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7157 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7162 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7163 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7164 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7165 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7166 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7167 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7168 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7169 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7170 (__ieee754_exp): Rename to __exp.
7171 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7172 (__ieee754_exp): Rename to __exp.
7173 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7174 (__ieee754_exp): Rename to __exp.
7175 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7176 __exp.
7177 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7178
7179 2018-11-20 DJ Delorie <dj@redhat.com>
7180
7181 * malloc/malloc.c (tcache_entry): Add key field.
7182 (tcache_put): Set it.
7183 (tcache_get): Likewise.
7184 (_int_free): Check for double free in tcache.
7185 * malloc/tst-tcfree1.c: New.
7186 * malloc/tst-tcfree2.c: New.
7187 * malloc/Makefile: Run the new tests.
7188 * manual/probes.texi: Document memory_tcache_double_free probe.
7189
7190 * dlfcn/dlerror.c (check_free): Prevent double frees.
7191
7192 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7193
7194 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7195
7196 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7197
7198 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7199 in tests. Use names for format arguments.
7200 (ConstantTest.run): Likewise.
7201 (SymbolTest.run): Likewise.
7202 (TypeTest.run): Likewise.
7203 (TagTest.run): Likewise.
7204 (FunctionTest.run): Likewise.
7205 (VariableTest.run): Likewise.
7206 (MacroFunctionTest.run): Likewise.
7207 (MacroStrTest.run): Likewise.
7208 (HeaderTests.__init__): Set self.num_tests.
7209 (HeaderTests.handle_test_line): Set test.num. Increment
7210 self.num_tests.
7211
7212 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7213
7214 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7215 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7216 SEEK_SET.
7217
7218 2018-11-19 Mao Han <han_mao@c-sky.com>
7219
7220 * scripts/config.guess: Update to version 2018-08-29.
7221 * scripts/config.sub: Update to version 2018-08-29.
7222
7223 2018-11-19 Florian Weimer <fweimer@redhat.com>
7224
7225 support: Print timestamps in timeout handler.
7226 * support/support_test_main.c (print_timestamp): New function.
7227 (signal_handler): Use it to print the termination time and the
7228 time of the last write to standard output.
7229
7230 2018-11-16 Zack Weinberg <zackw@panix.com>
7231 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7232
7233 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7234 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7235 argument.
7236 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7237 and add flags argument. Check flags instead of __ldbl_is_dbl when
7238 deciding whether to set is_long_double.
7239 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7240 passing zero for flags argument.
7241 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7242
7243 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7244 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7245 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7246 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7247 variable names. Remove libc_hidden_def/libc_hidden_proto from
7248 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7249 longer called from within the library.
7250 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7251 for __nldbl___vstrfmon_l, declare it explicitly.
7252
7253 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7254
7255 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7256
7257 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7258 macros
7259 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7260 F_SETLK64, F_SETLKW64, respectively.
7261 * sysdeps/mach/hurd/f_setlk.c: New file.
7262 * sysdeps/mach/hurd/f_setlk.h: New file.
7263 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7264 f_setlk.
7265 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7266 (__libc_fcntl): Move non-flock operations to...
7267 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7268 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7269
7270 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7271
7272 mktime: DEBUG_MKTIME cleanup
7273 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7274 And it’s no longer needed now that glibc and Gnulib both have
7275 their own testing mechanisms for mktime.
7276 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7277
7278 mktime: fix non-EOVERFLOW errno handling
7279 [BZ#23789]
7280 mktime was not properly reporting failures when the underlying
7281 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7282 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7283 The problem could happen on non-glibc platforms, with Gnulib.
7284 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7285 (tm_diff): ... this simpler function, which does not change errno.
7286 All callers changed to deal with errno themselves.
7287 (ranged_convert, __mktime_internal): Return failure immediately if
7288 the underlying function reports any failure other than EOVERFLOW.
7289 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7290 gap code fails.
7291
7292 mktime: fix bug with Y2038 DST transition
7293 [BZ#23789]
7294 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7295 mishandle a DST transition that jumps over the Y2038 boundary.
7296 No such DST transitions are known so this is only a theoretical
7297 bug, but we might as well do things right.
7298
7299 mktime: make more room for overflow
7300 [BZ#23789]
7301 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7302 This is so that we can add tm_diff results to a previous guess,
7303 which will be useful in a later patch.
7304
7305 mktime: simplify offset guess
7306 [BZ#23789]
7307 * time/mktime.c (__mktime_internal): Omit excess precision.
7308
7309 mktime: new test for mktime failure
7310 [BZ#23789]
7311 Based on a test suggested by Albert Aribaud in:
7312 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7313 * time/Makefile (tests): Add bug-mktime4.
7314 * time/bug-mktime4.c: New file.
7315
7316 mktime: fix EOVERFLOW bug
7317 [BZ#23789]
7318 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7319 Include libc-config.h, not config.h, for __set_errno.
7320 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7321
7322 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7323
7324 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7325 __attribute_copy__ to copy attributes from name. Drop static qualifier
7326 to avoid warnings about leaf attribute not having effect on static
7327 functions.
7328
7329 2018-11-13 Florian Weimer <fweimer@redhat.com>
7330
7331 * malloc/malloc.c (fastbin_push_entry): New function.
7332 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7333 (REMOVE_FB): Remove macro.
7334 (_int_malloc): Use fastbin_pop_entry and reindent.
7335 (_int_free): Use fastbin_push_entry.
7336 (malloc_consolidate): Use atomic_exchange_acquire.
7337
7338 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7339
7340 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7341 alias attribute, not with strong_alias.
7342
7343 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7344 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7345 with additional parameter thread.
7346 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7347 in terms of __hidden_ver2.
7348 (hidden_tls_def): New macro.
7349 (libc_hidden_tls_def): Likewise.
7350 (rtld_hidden_tls_def): Likewise.
7351 (libm_hidden_tls_def): Likewise.
7352 (libmvec_hidden_tls_def): Likewise.
7353 (libresolv_hidden_tls_def): Likewise.
7354 (librt_hidden_tls_def): Likewise.
7355 (libdl_hidden_tls_def): Likewise.
7356 (libnss_files_hidden_tls_def): Likewise.
7357 (libnsl_hidden_tls_def): Likewise.
7358 (libnss_nisplus_hidden_tls_def): Likewise.
7359 (libutil_hidden_tls_def): Likewise.
7360 (libutil_hidden_tls_def): Likweise.
7361 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7362 libc_hidden_tls_def.
7363 (__sim_disabled_exceptions_thread): Likewise.
7364 (__sim_round_mode_thread): Likewise.
7365
7366 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7367 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7368 copy attributes from name.
7369
7370 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7371
7372 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7373 Use __attribute_copy__ to copy attributes from name.
7374
7375 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7376 with __hidden_ver1 call.
7377 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7378 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7379 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7380 (__cosf): Do not declare here.
7381 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7382 (__sincosf): Do not declare here.
7383 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7384 (__sinf): Do not declare here.
7385
7386 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7387 (__BIG_ENDIAN): Likewise.
7388 (__BYTE_ORDER): Likewise.
7389 (strong_alias): Likewise.
7390 (_strong_alias): Likewise.
7391
7392 2018-11-12 Florian Weimer <fweimer@redhat.com>
7393
7394 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7395 function. Move after the definition of in_smallbin_range. Do not
7396 use __builtin_expect for paths that lead to a noreturn function.
7397 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7398 because it is unclear whether this is in fact an unlikely
7399 condition.
7400 (_int_malloc, _int_free): Adjust.
7401 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7402 variables.
7403 * malloc/arena.c (heap_trim): Likewise.
7404
7405 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7406
7407 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7408 it, free it if needed.
7409 (reauthenticate): Test and use ccwdir.
7410 (child_init_port): In non-resetids case, test and use ccwdir.
7411 (child_chdir): New nested function to set ccwdir.
7412 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7413 * hurd/hurd/port.h (_hurd_port_move): New function.
7414 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7415 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7416 * hurd/Versions (_hurd_port_move): Export function.
7417 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7418 symbol.
7419 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7420 of dtablesize for allocating dtable_cloexec.
7421
7422 2018-11-09 Martin Sebor <msebor@redhat.com>
7423
7424 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7425 it's already defined.
7426 (_strong_alias): Use __attribute_copy__.
7427 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7428 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7429 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7430 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7431 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7432 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7433 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7434 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7435 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7436 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7437 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7438 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7439 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7440 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7441 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7442 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7443 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7444 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7445 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7446
7447 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7448
7449 * misc/tst-efgcvt.c: Include support/check.h and
7450 support/test-driver.c. Do not include test-skeleton.c.
7451 (error_count): Remove.
7452 (output_error): Replace increments to error_count with calls to
7453 support_record_failure.
7454 (output_r_error): Likewise.
7455 (special): Likewise.
7456 (do_test): Unconditionally return zero.
7457 (TEST_FUNCTION): Remove.
7458
7459 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7460
7461 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7462 not $(@D)/scratch.
7463 ($(linknamespace-header-tests)): Likewise.
7464
7465 * conform/conformtest.py: New file.
7466 * conform/conformtest.pl: Remove.
7467 * conform/GlibcConform.pm: Likewise.
7468 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7469 (KEYWORDS_C99): Likewise.
7470 (KEYWORDS): Likewise.
7471 * conform/Makefile ($(conformtest-header-tests)): Use
7472 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7473 option. Use --header instead of --headers.
7474 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7475 function entries.
7476 * conform/data/spawn.h-data: Likewise.
7477 * conform/data/fcntl.h-data (openat): Add space after function
7478 name.
7479 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7480 (wcscasecmp_l): Likewise.
7481 * conform/data/termios.h-data (c_cc): Add space after element
7482 name.
7483
7484 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7485
7486 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7487 instead of manually comparing and reporting mismatching strings.
7488 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7489 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7490
7491 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7492
7493 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7494 __ASSUME_SOCKETCALL.
7495 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7496 (__ASSUME_SOCKETCALL): Remove.
7497 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7498 (__ASSUME_SOCKETCALL): Likewise.
7499 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7500 (__ASSUME_SOCKETCALL): Likewise.
7501 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7502 (__ASSUME_SOCKETCALL): Likewise.
7503 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7504 (__ASSUME_SOCKETCALL): Likewise.
7505 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7506 (__ASSUME_SOCKETCALL): Likewise.
7507 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7508 (__ASSUME_SOCKETCALL): Likewise.
7509
7510 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7511
7512 [BZ #23509]
7513 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7514 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7515 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7516 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7517 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7518 lc_unknown.
7519
7520 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7521
7522 [BZ #17630]
7523 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7524
7525 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7526
7527 [BZ #23867]
7528 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7529 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7530 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7531 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7532
7533 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7534
7535 * support/support_test_compare_string.c
7536 (support_test_compare_string): Fix printf format.
7537
7538 2018-11-07 Florian Weimer <fweimer@redhat.com>
7539
7540 Implement TEST_COMPARE_STRING.
7541 * support/check.h (TEST_COMPARE_STRING): Define.
7542 (support_test_compare_string): Declare.
7543 * support/Makefile (libsupport-routines): Add
7544 support_test_compare_string.
7545 (tests): Add tst-test_compare_string.
7546 * support/support_test_compare_string.c: New file.
7547 * support/tst-test_compare_string.c: Likewise.
7548
7549 2018-11-07 Andreas Schwab <schwab@suse.de>
7550
7551 [BZ #23864]
7552 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7553 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7554 Undef.
7555
7556 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7557
7558 [BZ #23862]
7559 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7560 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7561 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7562 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7563 Likewise.
7564
7565 2018-11-06 Florian Weimer <fweimer@redhat.com>
7566
7567 [BZ #17405]
7568 * posix/Makefile (routines): Add spawn_faction_addchdir.
7569 (tests): Add tst-spawn-chdir.
7570 * posix/Versions (GLIBC_2.29): Add
7571 posix_spawn_file_actions_addchdir_np.
7572 * posix/spawn_faction_addchdir.c: New file.
7573 * posix/spawn_faction_destroy.c
7574 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7575 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7576 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7577 chdir_action.
7578 * posix/tst-spawn-chdir.c: New file.
7579 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7580 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7581 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7582 posix_spawn_file_actions_addchdir_np.
7583 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7584 Likewise.
7585 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7586 Likewise.
7587 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7588 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7589 Likewise.
7590 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7591 Likewise.
7592 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7593 Likewise.
7594 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7595 Likewise.
7596 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7597 Likewise.
7598 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7599 Likewise.
7600 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7601 (GLIBC_2.29): Likewise.
7602 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7603 (GLIBC_2.29): Likewise.
7604 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7605 (GLIBC_2.29): Likewise.
7606 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7607 (GLIBC_2.29): Likewise.
7608 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7609 Likewise.
7610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7611 (GLIBC_2.29): Likewise.
7612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7613 (GLIBC_2.29): Likewise.
7614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7615 (GLIBC_2.29): Likewise.
7616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7617 (GLIBC_2.29): Likewise.
7618 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7619 Likewise.
7620 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7621 Likewise.
7622 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7623 Likewise.
7624 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7625 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7626 Likewise.
7627 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7628 Likewise.
7629 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7630 Likewise.
7631 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7632 Likewise.
7633
7634 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7635
7636 * misc/Makefile (tests): Add tst-ldbl-error.
7637 * misc/tst-ldbl-error.c: New file.
7638
7639 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7640
7641 * misc/Makefile (tests): Add tst-ldbl-warn.
7642 * misc/tst-ldbl-warn.c: New file.
7643
7644 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7645
7646 * argp/Makefile (tests): Add tst-ldbl-argp.
7647 * argp/tst-ldbl-argp.c: New file.
7648
7649 2018-11-05 Arjun Shankar <arjun@redhat.com>
7650
7651 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7652 __gconv_path_elem and call __gconv_get_path unconditionally.
7653
7654 2018-11-05 Andreas Schwab <schwab@suse.de>
7655
7656 [BZ #22927]
7657 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7658 creating the first helper thread failed.
7659
7660 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7661
7662 * sysdeps/mach/hurd/msync.c: New file.
7663
7664 2018-11-02 Florian Weimer <fweimer@redhat.com>
7665
7666 * support/shell-container.c (copy_func): Call
7667 support_copy_file_range instead of copy_file_range to support
7668 cross-device copies.
7669
7670 2018-11-02 Florian Weimer <fweimer@redhat.com>
7671
7672 * support/test-container.c: Include <libc-pointer-arith.h> for
7673 ALIGN_UP.
7674
7675 2018-11-01 Zong Li <zong@andestech.com>
7676
7677 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7678 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7679 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7680 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7681
7682 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7683 variable to avoid overlap arguments.
7684
7685 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7686
7687 * posix/bug-regex22.c (main): Use puts with distinct error
7688 messages for unexpected success of re_compile_pattern, not printf
7689 with NULL argument to %s.
7690
7691 * stdio-common/bug22.c: Include <libc-diag.h>.
7692 (do_test): Disable -Wformat-overflow= warnings around fprintf
7693 calls outputting more than INT_MAX characters.
7694 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7695 around printf call with NULL %s argument.
7696
7697 [BZ #23848]
7698 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7699 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7700 Undefine.
7701 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7702 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7703 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7704 (__ASSUME_SENDTO_SYSCALL): Likewise.
7705 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7706 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7707 [!__arch64__].
7708 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7709 (__ASSUME_CONNECT_SYSCALL): Likewise.
7710 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7711 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7712 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7713 Define.
7714 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7715 Likewise.
7716 [__LINUX_KERNEL_VERSION >= 0x040400]
7717 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7718 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7719 Remove.
7720 (listen): Likewise.
7721 (setsockopt): Likewise.
7722
7723 2018-11-01 Fredrik Noring <noring@nocrew.org>
7724
7725 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7726 with the ISA override.
7727
7728 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7729
7730 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7731 #endif.
7732
7733 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7734
7735 * manual/errno.texi (EIEIO): Document how translators should
7736 translate the error message.
7737 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7738 printing trailing whitespaces refused by git.
7739 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7740 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7741 * hurd/Makefile (user-interfaces): Add pci.
7742
7743 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7744
7745 * conform/linknamespace.py: New file.
7746 * conform/linknamespace.pl: Remove file.
7747 * conform/Makefile ($(linknamespace-header-tests)): Use
7748 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7749 option.
7750
7751 2018-10-30 Florian Weimer <fweimer@redhat.com>
7752
7753 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7754 memory leaks.
7755
7756 2018-10-30 Florian Weimer <fweimer@redhat.com>
7757
7758 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7759
7760 2018-10-30 Florian Weimer <fweimer@redhat.com>
7761
7762 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7763 support_blob_repeat.
7764
7765 2018-10-30 Florian Weimer <fweimer@redhat.com>
7766
7767 Avoid spurious test failures in stdlib/test-bz22786.
7768 * support/Makefile (libsupport-routines): Add blob_repeat.
7769 (tests): Add tst-support_blob_repeat.
7770 * support/blob_repeat.h: New file.
7771 * support/blob_repeat.c: Likewise.
7772 * support/tst-support_blob_repeat.c: Likewise.
7773 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7774 support_blob_repeat_allocate.
7775
7776 2018-10-30 Andreas Schwab <schwab@suse.de>
7777
7778 [BZ #23125]
7779 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7780 Don't use tail call.
7781 * elf/tst-unwind-main.c: New file.
7782 * elf/Makefile (tests): Add tst-unwind-main.
7783 (CFLAGS-tst-unwind-main.c): Define.
7784
7785 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7786
7787 [BZ #23791]
7788 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7789 n_cs_precedes to 0.
7790 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7791
7792 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7793
7794 * conform/glibcconform.py: Do not import shutil.
7795 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7796 of mkdtemp.
7797
7798 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7799 critic_missing for versions before 3.4.
7800 * configure: Regenerated.
7801 * manual/install.texi (Tools for Compilation): Document
7802 requirement for Python to build glibc.
7803 * INSTALL: Regenerated.
7804 * Rules [PYTHON]: Make code unconditional.
7805 * benchtests/Makefile [PYTHON]: Likewise.
7806 * conform/Makefile [PYTHON]: Likewise.
7807 * manual/Makefile [PYTHON]: Likewise.
7808 * math/Makefile [PYTHON]: Likewise.
7809
7810 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7811
7812 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7813 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7814 answer to interrupt_operation, return EIEIO instead of EINTR.
7815 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7816 _hurd_intr_rpc_msg_about_to global point to start of controlled
7817 assembly snippet. Make it check canceled flag.
7818 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7819 the _hurd_intr_rpc_msg_about_to point.
7820 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7821 issue, remove cancel flag check.
7822
7823 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7824
7825 * scripts/build-many-glibcs.py: Remove compatibility for missing
7826 os.cpu_count and re.fullmatch.
7827
7828 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7829
7830 [BZ #23822]
7831 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7832 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7833 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7834
7835 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7836
7837 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7838 macro.
7839
7840 2018-10-25 Florian Weimer <fweimer@redhat.com>
7841
7842 [BZ #23562]
7843 [BZ #23821]
7844 XFAIL siginfo_t si_band conform test on sparc64.
7845 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7846 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7847 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7848 (conformtest-xfail-conds): Add sparc64-linux.
7849 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7850 sparc64.
7851 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7852
7853 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7854
7855 * elf/elf.h (NT_MIPS_DSP): New macro.
7856 (NT_MIPS_FP_MODE): Likewise.
7857
7858 2018-10-25 Zong Li <zong@andestech.com>
7859
7860 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7861 name by adding the file extension (.so).
7862
7863 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7864
7865 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7866 (test-xfail-ISO11/threads.h/linknamespace,
7867 test-xfail-ISO11/threads.h/conform): Add.
7868
7869 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7870
7871 * math/gen-libm-test.py: Import os.
7872 (ALL_FLOATS_MANUAL): New constant.
7873 (ALL_FLOATS_SUFFIX): Likewise.
7874 (Ulps.all_functions): New function.
7875 (real_all_ulps): Likewise.
7876 (generate_err_table_sub): Likewise.
7877 (generate_err_table): Likewise.
7878 (main): Handle -s and -m options.
7879 * manual/libm-err-tab.pl: Remove.
7880 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7881 instead of libm-err-tab.pl.
7882 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7883 != no].
7884 * manual/install.texi (Tools for Compilation): Document
7885 requirement for Python to build manual.
7886 * INSTALL: Regenerated.
7887
7888 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7889
7890 * bits/time64.h: New file.
7891 * include/time.h: Replace internal_time_t with __time64_t.
7892 * posix/bits/types (__time64_t): Add.
7893 * stdlib/Makefile: Add bits/time64.h to includes.
7894 * time/tzfile.c: Replace internal_time_t with __time64_t.
7895
7896 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7897
7898 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7899 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7900 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7901 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7902 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7903 prototype.
7904 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7905 * posix/spawn_faction_addclose.c
7906 (__posix_spawn_file_actions_addclose): Add hidden definition.
7907 * posix/spawn_faction_adddup2.c
7908 (__posix_spawn_file_actions_adddup2): Likewise.
7909 * posix/spawn_faction_destroy.c
7910 (__posix_spawn_file_actions_destroy): Likewise.
7911 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7912 Likewise.
7913 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7914 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7915 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7916 Likewise.
7917 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7918 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7919 Likewise.
7920
7921 2018-10-24 Andreas Schwab <schwab@suse.de>
7922
7923 [BZ #18093]
7924 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7925 format cache.
7926 * elf/cache.c (print_cache): Likewise.
7927
7928 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7929
7930 * bits/timesize.h: New file.
7931 * stdlib/Makefile (headers): Add bits/timesize.h.
7932 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7933 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7934 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7935 (__SEM_PAD_AFTER_TIME): Likewise.
7936 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7937 (__SHM_PAD_AFTER_TIME): Likewise.
7938 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7939 (__MSQ_PAD_BEFORE_TIME): Likewise.
7940 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7941 (__SEM_PAD_BEFORE_TIME): Likewise.
7942 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7943 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7944 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7945 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7946 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7947 (__MSQ_PAD_BEFORE_TIME): Likewise.
7948 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7949 (__SEM_PAD_BEFORE_TIME): Likewise.
7950 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7951 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7952 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7953 (__MSQ_PAD_BEFORE_TIME): Likewise.
7954 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7955 (__SEM_PAD_BEFORE_TIME): Likewise.
7956 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7957 (__SHM_PAD_BEFORE_TIME): Likewise.
7958 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7959 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7960 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7961
7962 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7963
7964 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7965 USE_RDTSCP is defined.
7966 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7967 USE_RDTSCP is defined.
7968
7969 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7970
7971 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7972 defined.
7973
7974 [BZ #23709]
7975 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7976 independently of other flags.
7977
7978 2018-10-23 Florian Weimer <fweimer@redhat.com>
7979
7980 * time/tst-mktime2.c (N_STRINGS): Remove.
7981 (set_timezone): New function.
7982 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7983 (mktime_test1): Report localtime failure and check errno value.
7984 Use TEST_COMPARE.
7985 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7986 (do_test): Remove alarm call. Use set_timezone and array_length.
7987
7988 2018-10-23 Andreas Schwab <schwab@suse.de>
7989
7990 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7991 (__start_context): Use END instead of PSEUDO_END.
7992
7993 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7994
7995 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7996 version to 4.19.
7997
7998 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7999 version to 4.19.
8000
8001 [BZ #23793]
8002 * wcsmbs/c32rtomb.c: New file.
8003 * wcsmbs/mbrtoc32.c: Likewise.
8004 * wcsmbs/tst-c32-state.c: Likewise.
8005 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8006 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8007 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8008 (tests): Add tst-c32-state.
8009 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8010 $(gen-locales).
8011
8012 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8013
8014 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8015 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8016
8017 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8018
8019 [BZ #23794]
8020 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8021 pair and return 0 in that case, and use saved character to
8022 interpret following character.
8023 * wcsmbs/tst-c16-surrogate.c: New file.
8024 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8025 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8026 Depend on $(gen-locales)
8027
8028 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8029
8030 [BZ #23562]
8031 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8032 (struct siginfo_t): Use correct type for si_band.
8033
8034 2018-10-19 Florian Weimer <fweimer@redhat.com>
8035
8036 [BZ #23689]
8037 * resource/bits/types/struct_rusage.h (struct rusage): Update
8038 comment on struct. Remove extraneous field comment.
8039
8040 2018-10-18 David S. Miller <davem@davemloft.net>
8041
8042 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8043 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8044 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8045 sysdep_routines in subdir elf.
8046 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8047 version for __vdso_clock_gettime.
8048 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8049 Define.
8050 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8051 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8052
8053 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8054
8055 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8056
8057 * sysdeps/i386/init-arch.h: Removed.
8058 * sysdeps/i386/i586/init-arch.h: Likewise.
8059 * sysdeps/i386/i686/init-arch.h: Likewise.
8060 * sysdeps/i386/i686/hp-timing.h: Likewise.
8061 * sysdeps/x86_64/hp-timing.h: Likewise.
8062 * sysdeps/i386/isa.h: New file.
8063 * sysdeps/i386/i586/isa.h: Likewise.
8064 * sysdeps/i386/i686/isa.h: Likewise.
8065 * sysdeps/x86_64/isa.h: Likewise.
8066 * sysdeps/x86/hp-timing.h: New file.
8067 * sysdeps/x86/init-arch.h: Include <isa.h>.
8068
8069 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8070
8071 * math/libm-test-pow.inc (pow_test_data): Do not allow
8072 divide-by-zero exception for pow(+/- 0, -Inf).
8073
8074 2018-10-17 Zack Weinberg <zackw@panix.com>
8075
8076 * manual/job.texi (Job Control is Optional): Remove node, as
8077 job control has not been optional in quite some time.
8078 (Job Control): Mention briefly that systems older than
8079 POSIX.1-2001 might not support job control.
8080 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8081 defined on systems conforming to POSIX.1-2001.
8082
8083 2018-10-17 Arjun Shankar <arjun@redhat.com>
8084
8085 [BZ #22062]
8086 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8087 indentation.
8088 * (__gconv_read_conf): Mark function static.
8089 * (once): New static variable.
8090 * (__gconv_load_conf): New function.
8091 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8092 * iconv/gconv_db.c (once): Remove static variable.
8093 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8094 __gconv_read_conf.
8095 * (__gconv_find_transform): Likewise.
8096 * iconv/tst-iconv-mt.c: New test.
8097 * iconv/Makefile: Add tst-iconv_mt.
8098
8099 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8100
8101 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8102 bits/shm-pad.h.
8103 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8104 (shmatt_t): Define as __syscall_ulong_t.
8105 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8106 and [__SHM_PAD_AFTER_TIME].
8107 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8108 Define shm_segsz and associated padding based on
8109 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8110 Use __syscall_ulong_t instead of unsigned long int.
8111 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8112 unsigned long int.
8113 [__USE_MISC] (struct shm_info): Likewise.
8114 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8115 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8116 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8117 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8118 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8119 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8120 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8121 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8122 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8123 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8124 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8125
8126 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8127 bits/shmlba.h.
8128 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8129 (SHMLBA): Remove macro.
8130 (__getpagesize): Remove function declaration.
8131 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8132 <bits/shmlba.h>.
8133 (SHMLBA): Remove macro.
8134 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8135 <bits/shmlba.h>.
8136 (SHMLBA): Remove macro.
8137 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8138 <bits/shmlba.h>.
8139 (SHMLBA): Remove macro.
8140 (__getpagesize): Remove function declaration.
8141 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8142 <bits/shmlba.h>.
8143 (SHMLBA): Remove macro.
8144 (__getshmlba): Remove function declaration.
8145 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8146 (SHMLBA): Remove macro.
8147 (__getpagesize): Remove function declaration.
8148 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8149 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8150 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8151 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8152 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8153 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8154 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8155 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8156 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8157 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8158
8159 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8160
8161 [BZ #23275]
8162 * nptl/tst-mutex10.c: New File.
8163 * nptl/Makefile (tests): Add tst-mutex10.
8164 (tst-mutex10-ENV): New variable.
8165 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8166 Ensure that elision path is used if elision is available.
8167 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8168 Likewise.
8169 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8170 Likewise.
8171 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8172 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8173 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8174 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8175 Likewise.
8176 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8177 (__pthread_mutex_cond_lock_adjust): Likewise.
8178 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8179 Likewise.
8180 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8181 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8182 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8183 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8184 Add comments.
8185 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8186 Use atomic_load_relaxed and atomic_store_relaxed.
8187 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8188 Use atomic_store_relaxed.
8189
8190 2018-10-17 Andreas Schwab <schwab@suse.de>
8191
8192 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8193 * crypt/badsalttest.c (TIMEOUT): Likewise.
8194 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8195 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8196 * io/test-lfs.c (TIMEOUT): Likewise.
8197 * libio/tst-atime.c (TIMEOUT): Likewise.
8198 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8199 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8200 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8201 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8202 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8203 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8204 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8205 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8206 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8207 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8208 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8209 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8210 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8211 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8212 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8213 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8214 * nptl/tst-once2.c (TIMEOUT): Likewise.
8215 * nptl/tst-once3.c (TIMEOUT): Likewise.
8216 * nptl/tst-once4.c (TIMEOUT): Likewise.
8217 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8218 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8219 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8220 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8221 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8222 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8223 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8224 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8225 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8226 * posix/tst-chmod.c (TIMEOUT): Likewise.
8227 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8228 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8229 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8230 * posix/tst-regex2.c (TIMEOUT): Likewise.
8231 * posix/tst-waitid.c (TIMEOUT): Likewise.
8232 * rt/tst-aio.c (TIMEOUT): Likewise.
8233 * rt/tst-aio10.c (TIMEOUT): Likewise.
8234 * rt/tst-aio4.c (TIMEOUT): Likewise.
8235 * rt/tst-aio5.c (TIMEOUT): Likewise.
8236 * rt/tst-aio6.c (TIMEOUT): Likewise.
8237 * rt/tst-aio64.c (TIMEOUT): Likewise.
8238 * rt/tst-aio7.c (TIMEOUT): Likewise.
8239 * rt/tst-aio9.c (TIMEOUT): Likewise.
8240 * rt/tst-clock.c (TIMEOUT): Likewise.
8241 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8242 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8243 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8244 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8245 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8246 * rt/tst-timer4.c (TIMEOUT): Likewise.
8247 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8248 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8249 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8250 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8251 * time/tst-ftime.c (TIMEOUT): Likewise.
8252 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8253
8254 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8255
8256 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8257 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8258 for thunderX2.
8259
8260 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8261
8262 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8263 bits/sem-pad.h.
8264 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8265 instead of <bits/wordsize.h>.
8266 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8267 and [__SEM_PAD_AFTER_TIME].
8268 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8269 __syscall_ulong_t instead of unsigned long int.
8270 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8271 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8272 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8273 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8274 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8275 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8276 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8277 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8278 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8279 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8280 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8281
8282 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8283
8284 regex: simplify by using intprops.h
8285 [BZ#23744]
8286 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8287 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8288 intprops.h defines them.
8289
8290 regex: __builtin_expect → __glibc_unlikely
8291 [BZ#23744]
8292 This refactoring was prompted by a problem when the regex code is
8293 used as part of Gnulib and when the builder’s compiler does not grok
8294 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8295 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8296 Although this refactoring does not fix the problem directly,
8297 we might as well have Gawk use the now-preferred glibc style for when
8298 __builtin_expect is unavailable.
8299 * posix/regex_internal.h (BE): Remove.
8300 All uses replaced by __glibc_unlikely or __glibc_likely.
8301
8302 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8303
8304 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8305 bits/msq-pad.h.
8306 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8307 instead of <bits/wordsize.h>.
8308 (msgqnum_t): Define as __syscall_ulong_t.
8309 (msglen_t): Likewise.
8310 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8311 and [__MSQ_PAD_AFTER_TIME].
8312 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8313 __syscall_ulong_t instead of unsigned long int.
8314 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8315 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8316 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8317 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8318 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8319 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8320 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8321 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8322 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8323 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8324 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8325
8326 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8327
8328 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8329 (struct shmid_ds): Condition padding after time fields on
8330 [__WORDSIZE == 32].
8331 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8332 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8333 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8334
8335 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8336 (struct semid_ds): Condition padding after time fields on
8337 [__WORDSIZE == 32].
8338 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8339 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8340 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8341 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8342
8343 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8344 (struct msqid_ds): Condition padding after time fields on
8345 [__WORDSIZE == 32].
8346 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8347 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8348 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8349 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8350
8351 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8352
8353 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8354
8355 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8356
8357 * libio/tst-readline.c (TIMEOUT): Define.
8358
8359 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8360
8361 mktime fix for Gnulib + coreutils
8362 [BZ#23745]
8363 This fix affects only Gnulib. Problem discovered when
8364 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8365 * time/mktime.c:
8366 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8367 Do not define since it is not used. Defining an unused static
8368 function prompts a warning from GCC when Coreutils is configured
8369 with --enable-gcc-warnings.
8370
8371 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8372
8373 * benchtests/scripts/compare_bench.py (main): set float type on
8374 threshold argument.
8375
8376 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8377
8378 [BZ #23740]
8379 * localedata/locales/kl_GL (mon): Update, the relative case.
8380 (alt_mon): Add, fill with month names in the nominative case.
8381 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8382 (d_fmt): Set to "%b %d %Y".
8383
8384 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8385
8386 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8387 <bits/mman-linux.h>.
8388 (PROT_READ): Don't define here.
8389 (PROT_WRITE): Likewise.
8390 (PROT_EXEC): Likewise.
8391 (PROT_NONE): Likewise.
8392 (PROT_GROWSDOWN): Likewise.
8393 (PROT_GROWSUP): Likewise.
8394 (MAP_SHARED): Likewise.
8395 (MAP_PRIVATE): Likewise.
8396 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8397 [__USE_MISC] (MAP_FILE): Likewise.
8398 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8399 [__USE_MISC] (MAP_ANON): Likewise.
8400 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8401 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8402 (MCL_CURRENT): Likewise.
8403 (MCL_FUTURE): Likewise.
8404 (MCL_ONFAULT): Likewise.
8405 [__USE_MISC] (MADV_NORMAL): Likewise.
8406 [__USE_MISC] (MADV_RANDOM): Likewise.
8407 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8408 [__USE_MISC] (MADV_WILLNEED): Likewise.
8409 [__USE_MISC] (MADV_DONTNEED): Likewise.
8410 [__USE_MISC] (MADV_FREE): Likewise.
8411 [__USE_MISC] (MADV_REMOVE): Likewise.
8412 [__USE_MISC] (MADV_DONTFORK): Likewise.
8413 [__USE_MISC] (MADV_DOFORK): Likewise.
8414 [__USE_MISC] (MADV_HWPOISON): Likewise.
8415 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8416 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8417 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8418 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8419 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8420 (__MAP_ANONYMOUS): New macro.
8421 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8422 <bits/mman-linux.h> inclusion.
8423 (MAP_FIXED): Likewise.
8424 (MS_SYNC): Likewise.
8425 (MS_ASYNC): Likewise.
8426 (MS_INVALIDATE): Likewise.
8427 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8428 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8429 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8430 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8431 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8432 [__USE_MISC] (MADV_DODUMP): Likewise.
8433 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8434 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8435
8436 [BZ #23735]
8437 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8438 Define.
8439 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8440 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8441 Add test-nldbl-redirect.
8442 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8443 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8444 $(objpfx)libnldbl_nonshared.a.
8445
8446 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8447
8448 * support/support.h (support_objdir_elf_ldso): New variable.
8449 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8450 * support/Makefile (CFLAGS-support_paths.c): Add definition
8451 for OBJDIR_ELF_LDSO_PATH.
8452 * support/test-container.c (main): Search for the ld.so
8453 which is also used by the testsuite.
8454
8455 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8456
8457 [BZ #20209]
8458 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8459 should be "sap" rather than "sab".
8460 (day): Fix spelling of Sunday, should be "sapaat" rather than
8461 "sabaat".
8462
8463 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8464
8465 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8466
8467 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8468
8469 [BZ #19444]
8470 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8471 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8472 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8473
8474 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8475
8476 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8477
8478 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8479
8480 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8481 Add -mrtm.
8482 (CFLAGS-elision-unlock.c): Likewise.
8483 (CFLAGS-elision-timed.c): Likewise.
8484 (CFLAGS-elision-trylock.c): Likewise.
8485 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8486
8487 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8488
8489 [BZ #21037]
8490 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8491 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8492 new fd_to_filename interface.
8493 * libio/freopen64.c (freopen64): Likewise.
8494 * libio/tst-memstream.h: New file.
8495 * libio/tst-memstream4.c: Likewise.
8496 * libio/tst-wmemstream4.c: Likewise.
8497 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8498 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8499 and remove internal dynamic allocation.
8500
8501 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8502
8503 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8504 (MREMAP_MAYMOVE): Do not define here.
8505 [__USE_GNU] (MREMAP_FIXED): Likewise.
8506 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8507 (MREMAP_MAYMOVE): Define here instead.
8508 [__USE_GNU] (MREMAP_FIXED): Likewise.
8509 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8510 (MREMAP_MAYMOVE): Remove.
8511 [__USE_GNU] (MREMAP_FIXED): Likewise.
8512
8513 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8514
8515 * math/fromfp.h: Do not include <math_private.h>.
8516 * math/s_cacosh_template.c: Likewise.
8517 * math/s_casin_template.c: Likewise.
8518 * math/s_casinh_template.c: Likewise.
8519 * math/s_ccos_template.c: Likewise.
8520 * math/s_cproj_template.c: Likewise.
8521 * math/s_fdim_template.c: Likewise.
8522 * math/s_fmaxmag_template.c: Likewise.
8523 * math/s_fminmag_template.c: Likewise.
8524 * math/s_iseqsig_template.c: Likewise.
8525 * math/s_ldexp_template.c: Likewise.
8526 * math/s_nextdown_template.c: Likewise.
8527 * math/w_log1p_template.c: Likewise.
8528 * math/w_scalbln_template.c: Likewise.
8529 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8530 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8531 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8532 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8533 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8534 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8535 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8536 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8537 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8538 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8539 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8540 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8541 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8542 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8543 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8544 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8545 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8546 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8547 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8548 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8549 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8550 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8551 * sysdeps/ieee754/k_standardf.c: Likewise.
8552 * sysdeps/ieee754/k_standardl.c: Likewise.
8553 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8554 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8555 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8556 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8557 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8558 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8559 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8560 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8561 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8562 * sysdeps/ieee754/s_signgam.c: Likewise.
8563 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8564 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8565 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8566 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8567 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8568 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8569 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8570 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8571 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8572 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8573 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8574 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8575 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8576 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8577 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8578 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8579 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8580 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8581 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8582 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8583 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8584 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8585 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8586 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8587 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8588 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8589 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8590 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8591 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8592 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8593 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8594 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8595 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8596 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8597 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8598 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8599 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8600 <math_private.h>.
8601 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8602
8603 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 [BZ #23716]
8606 * sysdeps/i386/dl-cet.c: Removed.
8607 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8608 prototype.
8609 (_dl_runtime_profile_shstk): Likewise.
8610 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8611 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8612
8613 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8614
8615 [BZ #23579]
8616 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8617 do_test_with_invalid_iov): New tests.
8618 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8619 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8620 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8621 errno is ENOSYS.
8622 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8623 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8624 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8625
8626 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8627
8628 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8629 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8630 (MATH_REDIRECT_BINARY_ARGS): New macro.
8631 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8632 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8633 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8634 header inclusion.
8635 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8636 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8637 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8638 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8639 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8640 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8641 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8643 Likewise.
8644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8645 Likewise.
8646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8648 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8649 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8651 Likewise.
8652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8653 Likewise.
8654 * sysdeps/generic/math_private_calls.h
8655 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8656 Do not declare and define as an inline function.
8657 * math/divtc3.c (__divtc3): Use copysign functions instead of
8658 __copysign variants.
8659 * math/multc3.c (__multc3): Likewise.
8660 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8661 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8662 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8663 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8664 Likewise.
8665 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8666 (__ieee754_yn): Likewise.
8667 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8668 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8669 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8670 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8671 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8672 (__sin): Likewise.
8673 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8674 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8675 Likewise.
8676 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8677 Likewise.
8678 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8679 Likewise.
8680 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8681 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8682 Likewise.
8683 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8684 (__ieee754_ynf): Likewise.
8685 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8686 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8687 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8688 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8689 Likewise.
8690 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8691 (__ieee754_ynl): Likewise.
8692 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8693 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8694 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8695 Likewise.
8696 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8697 (__ieee754_ynl): Likewise.
8698 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8699 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8700 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8701 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8702 Likewise.
8703 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8704 (__ieee754_ynl)
8705 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8706 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8707 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8708 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8709 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8710
8711 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8712 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8713 using MATH_REDIRECT.
8714 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8715 header inclusion.
8716 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8717 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8718 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8719 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8720 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8721 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8722 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8726 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8727 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8728 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8729 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8730 (round): Redirect to __round.
8731 (__roundl): Call round instead of __round.
8732 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8733 Remove macro.
8734 [_ARCH_PWR5X] (__roundf): Likewise.
8735 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8736 functions instead of __round variants.
8737 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8738 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8739 Likewise.
8740 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8741 Likewise.
8742 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8743 Likewise.
8744 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8745 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8746 __lroundl.
8747 (__ieee754_expl): Call roundl instead of __roundl.
8748
8749 2018-09-27 Andreas Schwab <schwab@suse.de>
8750
8751 [BZ #23717]
8752 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8753 (do_test): Make st1 static.
8754
8755 2018-09-26 Andreas Schwab <schwab@suse.de>
8756
8757 [BZ #23707]
8758 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8759 * elf/Makefile (tests): Add tst-unwind-ctor.
8760 (modules-names): Add tst-unwind-ctor-lib.
8761 ($(objpfx)tst-unwind-ctor): Depend on
8762 $(objpfx)tst-unwind-ctor-lib.so.
8763
8764 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8765
8766 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8767 file. Most contents moved from ....
8768 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8769 and include <bits/mman-map-flags-generic.h>.
8770 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8771 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8772 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8773 <bits/mman-map-flags-generic.h>.
8774 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8775 macros defined in <bits/mman-map-flags-generic.h>.
8776 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8777 <bits/mman-map-flags-generic.h>.
8778 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8779 defined in <bits/mman-map-flags-generic.h>.
8780
8781 2018-09-26 Andreas Schwab <schwab@suse.de>
8782
8783 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8784 output.
8785
8786 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8787 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8788 Fangrui Song <maskray@google.com>
8789
8790 [BZ #20480]
8791 * config.make.in (have-textrel_ifunc): New define.
8792 * configure.ac: Add check if linker supports textrel relocation with
8793 ifunc.
8794 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8795 tst-ifunc-textrel.
8796 (CFLAGS-tst-ifunc-textrel.c): New rule.
8797 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8798 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8799 * elf/tst-ifunc-textrel.c: New file.
8800
8801 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8802
8803 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8804 <bits/procfs-prregset.h>.
8805 (prgregset_t): Define using __prgregset_t.
8806 (prfpregset_t): Define using __prfpregset_t.
8807 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8808 (sysdep_headers): Add bits/procfs-prregset.h.
8809 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8810 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8811 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8812 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8813
8814 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8815 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8816 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8817 pr_uid and pr_gid.
8818 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8819 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8820 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8821 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8822 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8823 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8824 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8825 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8826 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8827 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8828 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8829 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8830 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8831 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8832 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8833 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8834 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8835 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8836 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8837 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8838 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8839 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8840 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8841 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8842
8843 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8844 AArch64 version. Include <bits/procfs.h>.
8845 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8846 (sysdep_headers): Add bits/procfs.h.
8847 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8848 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8849 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8850 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8851 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8852 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8853 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8854 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8855 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8856 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8857 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8858 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8859 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8860 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8861 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8862 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8863 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8864
8865 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8866
8867 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8868 Use libsupport.
8869
8870 2018-09-25 Arjun Shankar <arjun@redhat.com>
8871
8872 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8873 (__gconv_max_path_elem_len): Likewise.
8874 (__gconv_nmodules): Likewise.
8875 (__gconv_get_path): Likewise.
8876 (path_elem): Move to ...
8877 * iconv/gconv_conf.c: ... here.
8878 (__gconv_get_path): Mark function static.
8879 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8880 * iconv/gconv_open.c: ... here.
8881
8882 2018-09-24 Andreas Schwab <schwab@suse.de>
8883
8884 * scripts/haveversions.awk: New file.
8885 * Makerules ($(common-objpfx)Versions.def)
8886 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8887 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8888 Move rules ...
8889 * Makeconfig ($(common-objpfx)Versions.def)
8890 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8891 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8892 ... here.
8893 ($(common-objpfx)Versions.mk): New rule. Include it.
8894 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8895 Emit error if build-obsolete-nsl = yes.
8896 * manual/install.texi (Configuring and compiling): Describe
8897 --enable-obsolete-nsl as unavaiable after version 2.28.
8898 * INSTALL: Regenerate.
8899
8900 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8901
8902 * NEWS: Add note about new TLE support on powerpc64le.
8903 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8904 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8905 __ununsed1.
8906 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8907 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8908 * sysdeps/powerpc/powerpc32/sysdep.h,
8909 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8910 ABORT_TRANSACTION): Remove macros.
8911 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8912 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8913 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8915 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8916 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8917 usage.
8918 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8919
8920 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8921
8922 [BZ #10425]
8923 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8924 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8925 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8926 which is the same as in it_IT.
8927 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8928 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8929
8930 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8931
8932 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8933 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8934 using MATH_REDIRECT.
8935 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8936 header inclusion.
8937 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8938 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8939 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8940 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8941 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8942 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8943 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8944 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8947 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8948 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8949 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8950 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8951 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8952 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8953 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8954 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8955 (ceil): Redirect to __ceil.
8956 (floor): Redirect to __floor.
8957 (trunc): Redirect to __trunc.
8958 (__truncl): Call trunc instead of __trunc.
8959 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8960 Remove macro.
8961 [_ARCH_PWR5X] (__truncf): Likewise.
8962 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8963 trunc functions instead of __trunc variants.
8964 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8965 Likewise.
8966 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8967 Likewise.
8968 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8969 Likewise.
8970 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8971 Likewise.
8972
8973 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8974 [__i586__ || __pentium__].
8975 [__i486__]: Handle explicitly.
8976 (HAS_CPUID): Define to 1 if above macros are undefined.
8977 (HAS_I586): Likewise.
8978 (HAS_I686): Likewise.
8979
8980 2018-09-20 Florian Weimer <fweimer@redhat.com>
8981
8982 * misc/tst-gethostid.c: New file.
8983 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8984 (tst-gethostid): Link with -ldl.
8985
8986 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8987
8988 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8989 value from gethostbyname_r.
8990
8991 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8992
8993 * stdlib/tst-setcontext9.c (f1): Rename to...
8994 (f1a): ... this.
8995 (f1b): New function implementing lower half of f1 in alternate stack.
8996
8997 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8998
8999 Fix mktime localtime offset confusion
9000 [BZ #23603]
9001 * include/time.h (__mktime_internal): The localtime offset is now
9002 of type long int instead of time_t. This is the longstanding type
9003 in glibc, and it is more than enough to represent difference
9004 between localtime and gmtime even if it is 32 bits and time_t is
9005 64. Changing it now will let us avoid an unnecessary change when
9006 time_t is widened to 64 bits on 32-bit platforms.
9007 * time/mktime-internal.h (mktime_offset_t): Now long int.
9008
9009 Merge mktime, timegm from upstream Gnulib
9010 [BZ #23603][BZ #16346]
9011 This fixes some obscure problems with integer overflow.
9012 Although it looks scary, it is almost all a byte-for-byte copy
9013 from Gnulib, and the Gnulib code has been tested reasonably well.
9014 * include/intprops.h: New file, copied from Gnulib.
9015 * include/verify.h, time/mktime-internal.h:
9016 New tiny files, simplified from Gnulib.
9017 * time/mktime.c: Copy from Gnulib. This has the following changes:
9018 Do not include config.h if DEBUG_MKTIME is nonzero.
9019 Include stdbool.h, intprops.h, verify.h.
9020 Include string.h only if needed.
9021 Include stdlib.h on MS-Windows.
9022 Include mktime-internal.h.
9023 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9024 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9025 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9026 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9027 simplify later conditionals; default the others to zero. Use
9028 these conditionals to express only the code needed on the current
9029 platform. In uses of these conditionals, explicitly spell out how
9030 _LIBC affects things, so it’s easier to review from a glibc
9031 viewpoint.
9032 (WRAPV): Remove; no longer needed now that we have
9033 systematic overflow checking.
9034 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9035 compartmentalize tzset issues. Move system-dependent tzsettish
9036 code here from mktime.
9037 (verify): Remove; now done by verify.h. All uses changed.
9038 (long_int): Use a more-conservative definition, to avoid
9039 integer overflow.
9040 (SHR): Remove, replacing with ...
9041 (shr): New function, which means we needn’t worry about side
9042 effects in args, and conversion analysis is simpler.
9043 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9044 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9045 (time_t_avg, time_t_add_ok): Remove.
9046 (mktime_min, mktime_max): New constants.
9047 (leapyear, isdst_differ): Use bool for booleans.
9048 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9049 Use long_int, not time_t, for mktime differences.
9050 (long_int_avg): New function, replacing time_t_avg.
9051 INT_ADD_WRAPV replaces time_t_add_ok.
9052 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9053 All uses changed.
9054 (convert_time): New function.
9055 (ranged_convert): Use it.
9056 (__mktime_internal): Last arg now points to mktime_offset_t, not
9057 time_t. All uses changed. This is a no-op on glibc, where
9058 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9059 offset guess. Directly check for integer overflow instead of
9060 using a heuristic that works only 99.9...% of the time.
9061 Access *OFFSET only once, to avoid an unlikely race if the
9062 compiler delays a load and if this cascades into a signed integer
9063 overflow.
9064 (mktime): Move tzsettish code to my_tzset, and move
9065 localtime_offset to within mktime so that it doesn’t
9066 need a separate ifdef.
9067 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9068 instead of localtime.
9069 * time/timegm.c: Copy from Gnulib. This has the following changes:
9070 Include mktime-internal.h.
9071 [!_LIBC]: Include config.h and time.h. Do not include
9072 timegm.h or time_r.h. Make __mktime_internal a macro,
9073 and include mktime-internal.h to get its declaration.
9074 (timegm): Temporary is now mktime_offset_t, not time_t.
9075 This affects only Gnulib.
9076
9077 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9078
9079 [BZ #23637]
9080 * string/test-strstr.c (pr23637): New function.
9081 (test_main): Add tests with longer needles.
9082 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9083 * string/strstr.c (AVAILABLE): Likewise.
9084
9085 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9086
9087 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9088
9089 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9090
9091 * NEWS: Mention pow improvements.
9092 * math/Makefile (type-double-routines): Add e_pow_log_data.
9093 * sysdeps/generic/math_private.h (__exp1): Remove.
9094 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9095 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9096 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9097 contraction.
9098 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9099 (exp_inline): Remove.
9100 (__ieee754_exp): Only single double input is handled.
9101 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9102 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9103 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9104 (__pow_log_data): Define.
9105 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9106 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9107 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9108 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9109 contraction.
9110 (CFLAGS-e_pow-fma4.c): Likewise.
9111
9112 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9113
9114 Simplify tzfile fstat failure code
9115 [BZ #21716]
9116 * time/tzfile.c (__tzfile_read): Simplify slightly.
9117
9118 Fix tzfile low-memory assertion failure
9119 [BZ #21716]
9120 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9121 when registering time zone abbreviations.
9122
9123 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9124
9125 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9126 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9127 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9128 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9129 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9130 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9131 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9132 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9133 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9134
9135 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9136 __ceil.
9137 (__ceill): Call ceil instead of __ceil.
9138 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9139 __floor.
9140 (__floorl): Call floor instead of __floor.
9141
9142 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9143
9144 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9145 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9146 using MATH_REDIRECT.
9147 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9148 header inclusion.
9149 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9150 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9151 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9152 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9153 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9154 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9155 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9156 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9157 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9158 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9161 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9162 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9163 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9164 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9165 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9166 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9167 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9168 Remove macro.
9169 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9170 functions instead of __ceil variants.
9171 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9172 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9173 Likewise.
9174 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9175 Likewise.
9176 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9177 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9178 Likewise.
9179 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9180 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9181
9182 [BZ #21286]
9183 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9184 constant.
9185 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9186 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9187 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9188 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9189 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9190 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9191 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9192 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9193 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9194 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9195 (ILL_BADIADDR): Remove constant.
9196 (TRAP_BRANCH): Likewise.
9197 (TRAP_HWBKPT): Likewise.
9198
9199 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9200
9201 [BZ #23656]
9202 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9203 Remove [_MIPS_SIM = _ABIN32] conditional case.
9204 (struct elf_prpsinfo): Likewise.
9205
9206 [BZ #23649]
9207 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9208 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9209 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9210 Likewise.
9211 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9212 elf_prpsinfo): Likewise.
9213 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9214 elf_prpsinfo): Likewise.
9215 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9216 Likewise.
9217
9218 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9219 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9220 using MATH_REDIRECT.
9221 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9222 header inclusion.
9223 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9224 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9225 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9226 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9227 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9228 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9229 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9230 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9231 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9232 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9233 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9234 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9235 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9236 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9237 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9238 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9239 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9240 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9241 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9244 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9245 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9246 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9247 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9248 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9249 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9250 __rint variants.
9251 * math/e_scalbf.c (invalid_fn): Likewise.
9252 * math/e_scalbl.c (invalid_fn): Likewise.
9253 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9254 Likewise.
9255 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9256 Likewise.
9257 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9258 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9259 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9260 Likewise.
9261 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9262 Likewise.
9263 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9264 Likewise.
9265 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9266 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9267
9268 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9269 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9270 New macro.
9271 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9272 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9273 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9274 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9275 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9276 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9277 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9278 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9279 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9280 && !NO_MATH_REDIRECT] (floor): Likewise.
9281 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9282 header inclusion.
9283 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9284 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9285 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9286 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9287 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9288 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9289 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9290 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9292 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9295 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9296 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9297 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9298 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9299 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9300 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9301 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9302 Remove macro.
9303 [_ARCH_PWR5X] (__floorf): Likewise.
9304 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9305 inline function.
9306 [__SSE4_1__] (__floorf): Likewise.
9307 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9308 instead of __floor variants.
9309 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9310 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9311 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9312 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9313 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9314 * math/w_tgamma_compat.c (__tgamma): Likewise.
9315 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9316 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9317 * math/w_tgammal_compat.c (__tgammal): Likewise.
9318 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9319 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9320 Likewise.
9321 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9322 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9323 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9324 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9325 Likewise.
9326 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9327 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9328 Likewise.
9329 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9330 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9331 Likewise.
9332 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9333 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9334 Likewise.
9335 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9336 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9337 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9338 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9339 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9340 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9341
9342 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9343
9344 * elf/Makefile (modules-names-tests): New variable.
9345
9346 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9347
9348 * NEWS: Mention log2 improvements.
9349 * math/Makefile (type-double-routines): Add e_log2_data.
9350 * sysdeps/i386/fpu/e_log2_data.c: New file.
9351 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9352 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9353 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9354 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9355 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9356 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9357
9358 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9359
9360 * NEWS: Mention log improvement.
9361 * math/Makefile (type-double-routines): Add e_log_data.
9362 * sysdeps/i386/fpu/e_log_data.c: New file.
9363 * sysdeps/ia64/fpu/e_log_data.c: New file.
9364 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9365 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9366 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9367 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9368 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9369 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9370
9371 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9372 Xuepeng Guo <xuepeng.guo@intel.com>
9373
9374 [BZ #23606]
9375 * sysdeps/i386/start.S: Include <sysdep.h>
9376 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9377 enabled. Add cfi_undefined (eip).
9378
9379 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9380
9381 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9382 (MOVQ): Likewise.
9383 (EXTRACT_WORDS64): Likewise.
9384 (INSERT_WORDS64): Likewise.
9385 (GET_FLOAT_WORD): Likewise.
9386 (SET_FLOAT_WORD): Likewise.
9387
9388 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9389 argument.
9390 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9391 build, but not for second build if --full-gcc. Use
9392 --enable-languages=all for second build if --full-gcc.
9393 (get_parser): Add --full-gcc option.
9394 (main): Update call to Context.
9395
9396 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9397
9398 [BZ #10797]
9399 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9400 Single Quotation Mark).
9401 (thousands_sep): Likewise.
9402 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9403 * localedata/locales/it_IT (thousands_sep): Use ".".
9404 (grouping): Use "3;3".
9405
9406 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9407
9408 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9409 x86_64 and i686 configs using --enable-obsolete-rpc
9410 --enable-obsolete-nsl.
9411
9412 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9413
9414 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9415
9416 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9417
9418 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9419 Increment size of new_argv by one.
9420
9421 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9422
9423 [BZ #17426]
9424 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9425 * localedata/locales/ar_IN (d_fmt): Likewise.
9426 * localedata/locales/bhb_IN (d_fmt): Likewise.
9427 * localedata/locales/bho_IN (d_fmt): Likewise.
9428 * localedata/locales/bn_BD (d_fmt): Likewise.
9429 * localedata/locales/bn_IN (d_fmt): Likewise.
9430 * localedata/locales/doi_IN (d_fmt): Likewise.
9431 * localedata/locales/gu_IN (d_fmt): Likewise.
9432 * localedata/locales/hi_IN (d_fmt): Likewise.
9433 * localedata/locales/hne_IN (d_fmt): Likewise.
9434 * localedata/locales/kn_IN (d_fmt): Likewise.
9435 * localedata/locales/mag_IN (d_fmt): Likewise.
9436 * localedata/locales/mai_IN (d_fmt): Likewise.
9437 * localedata/locales/mjw_IN (d_fmt): Likewise.
9438 * localedata/locales/ml_IN (d_fmt): Likewise.
9439 * localedata/locales/mni_IN (d_fmt): Likewise.
9440 * localedata/locales/mr_IN (d_fmt): Likewise.
9441 * localedata/locales/pa_IN (d_fmt): Likewise.
9442 * localedata/locales/raj_IN (d_fmt): Likewise.
9443 * localedata/locales/sat_IN (d_fmt): Likewise.
9444 * localedata/locales/sd_IN (d_fmt): Likewise.
9445 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9446 * localedata/locales/ta_IN (d_fmt): Likewise.
9447 * localedata/locales/ta_LK (d_fmt): Likewise.
9448 * localedata/locales/tcy_IN (d_fmt): Likewise.
9449 * localedata/locales/ur_IN (d_fmt): Likewise.
9450
9451 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9452 * localedata/locales/ks_IN (d_fmt): Likewise.
9453 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9454
9455 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9456 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9457 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9458 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9459
9460 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9461
9462 * NEWS: Mention exp and exp2 improvements.
9463 * math/Makefile (libm-support): Remove t_exp.
9464 (type-double-routines): Add math_err and e_exp_data.
9465 * sysdeps/aarch64/libm-test-ulps: Update.
9466 * sysdeps/arm/libm-test-ulps: Update.
9467 * sysdeps/i386/fpu/e_exp_data.c: New file.
9468 * sysdeps/i386/fpu/math_err.c: New file.
9469 * sysdeps/i386/fpu/t_exp.c: Remove.
9470 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9471 * sysdeps/ia64/fpu/math_err.c: New file.
9472 * sysdeps/ia64/fpu/t_exp.c: Remove.
9473 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9474 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9475 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9476 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9477 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9478 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9479 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9480 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9481 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9482 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9483 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9484 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9485 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9486 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9487 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9488 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9489
9490 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9491
9492 * sysdeps/alpha/fpu/math_private.h: Remove.
9493
9494 * sysdeps/generic/math_private.h
9495 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9496 Move this inline function ....
9497 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9498 * include/math.h [!_ISOMAC]: To here....
9499
9500 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9501
9502 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9503 code ....
9504 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9505 * include/fenv.h [!_ISOMAC]: ... to here.
9506 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9507 (feraiseexcept): Likewise.
9508 * math/fromfp.h: Do not include <fenv_private.h>.
9509 * math/s_cexp_template.c: Likewise.
9510 * math/s_csin_template.c: Likewise.
9511 * math/s_csinh_template.c: Likewise.
9512 * math/s_ctan_template.c: Likewise.
9513 * math/s_ctanh_template.c: Likewise.
9514 * math/s_iseqsig_template.c: Likewise.
9515 * math/w_acos_compat.c: Likewise.
9516 * math/w_acosf_compat.c: Likewise.
9517 * math/w_acosl_compat.c: Likewise.
9518 * math/w_asin_compat.c: Likewise.
9519 * math/w_asinf_compat.c: Likewise.
9520 * math/w_asinl_compat.c: Likewise.
9521 * math/w_j0_compat.c: Likewise.
9522 * math/w_j0f_compat.c: Likewise.
9523 * math/w_j0l_compat.c: Likewise.
9524 * math/w_j1_compat.c: Likewise.
9525 * math/w_j1f_compat.c: Likewise.
9526 * math/w_j1l_compat.c: Likewise.
9527 * math/w_jn_compat.c: Likewise.
9528 * math/w_jnf_compat.c: Likewise.
9529 * math/w_log10_compat.c: Likewise.
9530 * math/w_log10f_compat.c: Likewise.
9531 * math/w_log10l_compat.c: Likewise.
9532 * math/w_log2_compat.c: Likewise.
9533 * math/w_log2f_compat.c: Likewise.
9534 * math/w_log2l_compat.c: Likewise.
9535 * math/w_log_compat.c: Likewise.
9536 * math/w_logf_compat.c: Likewise.
9537 * math/w_logl_compat.c: Likewise.
9538 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9539 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9540 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9541 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9542 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9543 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9544 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9545 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9546 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9547 * sysdeps/ieee754/k_standardl.c: Likewise.
9548 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9549 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9550 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9551 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9552 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9553 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9554 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9555 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9556 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9557 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9558 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9559 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9560 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9561 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9562 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9563 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9564 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9565 * math/w_ilogb_template.c: Include <fenv.h> instead of
9566 <fenv_private.h>.
9567 * math/w_llogb_template.c: Likewise.
9568 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9569 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9570
9571 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9572
9573 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9574 * math/fromfp.h: Include <fenv_private.h>.
9575 * math/math-narrow.h: Likewise.
9576 * math/s_cexp_template.c: Likewise.
9577 * math/s_csin_template.c: Likewise.
9578 * math/s_csinh_template.c: Likewise.
9579 * math/s_ctan_template.c: Likewise.
9580 * math/s_ctanh_template.c: Likewise.
9581 * math/s_iseqsig_template.c: Likewise.
9582 * math/w_acos_compat.c: Likewise.
9583 * math/w_acosf_compat.c: Likewise.
9584 * math/w_acosl_compat.c: Likewise.
9585 * math/w_asin_compat.c: Likewise.
9586 * math/w_asinf_compat.c: Likewise.
9587 * math/w_asinl_compat.c: Likewise.
9588 * math/w_ilogb_template.c: Likewise.
9589 * math/w_j0_compat.c: Likewise.
9590 * math/w_j0f_compat.c: Likewise.
9591 * math/w_j0l_compat.c: Likewise.
9592 * math/w_j1_compat.c: Likewise.
9593 * math/w_j1f_compat.c: Likewise.
9594 * math/w_j1l_compat.c: Likewise.
9595 * math/w_jn_compat.c: Likewise.
9596 * math/w_jnf_compat.c: Likewise.
9597 * math/w_llogb_template.c: Likewise.
9598 * math/w_log10_compat.c: Likewise.
9599 * math/w_log10f_compat.c: Likewise.
9600 * math/w_log10l_compat.c: Likewise.
9601 * math/w_log2_compat.c: Likewise.
9602 * math/w_log2f_compat.c: Likewise.
9603 * math/w_log2l_compat.c: Likewise.
9604 * math/w_log_compat.c: Likewise.
9605 * math/w_logf_compat.c: Likewise.
9606 * math/w_logl_compat.c: Likewise.
9607 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9608 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9609 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9610 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9611 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9612 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9613 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9614 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9615 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9616 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9617 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9618 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9619 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9620 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9621 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9622 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9623 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9624 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9625 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9626 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9627 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9628 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9629 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9630 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9631 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9632 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9633 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9634 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9635 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9636 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9637 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9638 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9639 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9640 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9641 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9642 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9643 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9644 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9645 * sysdeps/ieee754/k_standardl.c: Likewise.
9646 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9647 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9648 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9649 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9650 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9651 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9652 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9653 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9654 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9655 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9656 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9657 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9658 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9659 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9660 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9661 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9662 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9663 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9664 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9665 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9666 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9667 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9668 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9669 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9670 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9671 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9672 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9673 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9674 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9675 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9676 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9677 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9678 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9679 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9680 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9681 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9682 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9683 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9684 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9685 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9686 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9687 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9688 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9689 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9690 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9691 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9692 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9693 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9694 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9695 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9696 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9697 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9698 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9699 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9700 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9701 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9702 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9703 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9704 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9705 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9706 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9707 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9708 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9709 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9710 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9711 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9712 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9713 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9714 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9715 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9716 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9717
9718 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9719
9720 [BZ #20271]
9721 * include/stdio.h (__libc_fatal): Mention newline in comment.
9722 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9723 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9724 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9725 * nss/nsswitch.c (__nss_next2): Likewise.
9726 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9727 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9728 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9729 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9730 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9731 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9732 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9733 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9734 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9735 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9736 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9737 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9738 (__netlink_assert_response): Likewise.
9739
9740 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9741
9742 * conform/glibcconform.py: New file.
9743 * conform/list-header-symbols.py: Likewise.
9744 * conform/list-header-symbols.pl: Remove.
9745 * conform/Makefile (tests-special): Only add linknamespace tests
9746 if [PYTHON].
9747 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9748
9749 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9750
9751 [BZ #23597]
9752 * support/Makefile (libsupport-routines): Add
9753 support_copy_file_range and xcopy_file_range.
9754 * support/support.h: Include <sys/types.h>.
9755 (support_copy_file_range): New prototype.
9756 * support/support_copy_file_range.c: New file. Copied and
9757 modified from io/copy_file_range-compat.c.
9758 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9759 instead of copy_file_range.
9760 * support/xcopy_file_range.c: New file.
9761 * support/xunistd.h (xcopy_file_range): New prototype.
9762
9763 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9764
9765 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9766 xpthread_create and xpthread_join.
9767
9768 2018-08-30 Florian Weimer <fweimer@redhat.com>
9769
9770 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9771
9772 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9773
9774 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9775 if malloc fails.
9776
9777 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9778
9779 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9780 and minus_oflow as non-finite.
9781
9782 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9783
9784 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9785 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9786 moved to fenv_private.h except for ...
9787 (TOINT_INTRINSICS): Kept in math_private.h.
9788 (roundtoint): Likewise.
9789 (converttoint): Likewise.
9790 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9791 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9792 * sysdeps/arm/math_private.h: Remove.
9793 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9794 ....
9795 * sysdeps/generic/math_private.h: ... this file. Include
9796 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9797 Include <fenv_private.h>. Remove functions and macros moved to
9798 fenv_private.h.
9799 * sysdeps/i386/fpu/math_private.h: Remove.
9800 * sysdeps/mips/math_private.h: Move to ....
9801 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9802 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9803 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9804 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9805 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9806 * sysdeps/powerpc/fpu/math_private.h: Do not include
9807 <fenv_private.h>.
9808 * sysdeps/riscv/rvf/math_private.h: Move to ....
9809 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9810 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9811 <fenv_private.h>.
9812 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9813 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9814 * sysdeps/sparc/fpu/math_private.h: Remove.
9815 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9816 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9817 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9818 <fenv_private.h>.
9819 * sysdeps/x86_64/fpu/math_private.h: Do not include
9820 <sysdeps/i386/fpu/fenv_private.h>.
9821
9822 2018-08-28 Florian Weimer <fweimer@redhat.com>
9823
9824 [BZ #23578]
9825 * posix/tst-regcomp-truncated.c: New file.
9826 * posix/Makefile (tests): Add it.
9827 (tst-regcomp-truncated.out): Depend on generated locales.
9828
9829 2018-08-28 Florian Weimer <fweimer@redhat.com>
9830
9831 * support/test-container.c (main): Treat unshare failure with
9832 EPERM as an unsupported test.
9833
9834 2018-08-28 Florian Weimer <fweimer@redhat.com>
9835
9836 [BZ #23520]
9837 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9838 * nscd/netgroupcache.c
9839 (addgetnetgrentX): Add tofreep parameter. Do not free
9840 heap-allocated buffer.
9841 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9842 (addgetnetgrentX_ignore): New function.
9843 (addgetnetgrent): Call it.
9844 (readdgetnetgrent): Likewise.
9845
9846 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9847
9848 * string/memmem.c: Use memcmp for first match.
9849
9850 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9851
9852 [BZ #17426]
9853 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9854
9855 2018-08-27 DJ Delorie <dj@redhat.com>
9856
9857 * support/Makefile (others): Don't list programs explicitly as a
9858 dependency of "others".
9859
9860 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9861
9862 * sysdeps/generic/math-tests-trap-force.h: New file.
9863 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9864 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9865 * sysdeps/powerpc/math-tests.h: Remove file.
9866 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9867
9868 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9869 Torvald Riegel <triegel@redhat.com>
9870
9871 [BZ #23538]
9872 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9873 Update r to include the set wake-request flag if waiters are
9874 remaining after spinning.
9875
9876 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9877
9878 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9879
9880 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9881
9882 [BZ #23578]
9883 regex: fix uninitialized memory access
9884 I introduced this bug into gnulib in commit
9885 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9886 eventually it was merged into glibc. The bug was found by
9887 project-repo <bugs@feusi.co> and reported here:
9888 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9889 Diagnosis and draft fix reported by Assaf Gordon here:
9890 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9891 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9892 * posix/regex_internal.c (build_wcs_upper_buffer):
9893 Fix bug when mbrtowc returns 0.
9894
9895 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9896
9897 * po/be.po: Update translation.
9898
9899 2018-08-24 DJ Delorie <dj@delorie.com>
9900
9901 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9902 $(libunwind).
9903
9904 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9905
9906 [BZ #23400]
9907 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9908 create temporary files in source tree.
9909
9910 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9911
9912 * sysdeps/generic/math-tests-trap.h: New file.
9913 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9914 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9915 * sysdeps/aarch64/math-tests.h: Remove file.
9916 * sysdeps/arm/math-tests.h: Likewise.
9917 * sysdeps/riscv/math-tests.h: Likewise.
9918 * sysdeps/aarch64/math-tests-trap.h: New file.
9919 * sysdeps/arm/math-tests-trap.h: Likewise.
9920 * sysdeps/riscv/math-tests-trap.h: Likewise.
9921
9922 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9923
9924 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9925 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9926 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9927 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9928 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9929 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9930 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9931 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9932 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9933 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9934 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9935 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9936 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9937 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9938 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9939 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9940 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9941 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9942
9943 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9944
9945 * sysdeps/generic/math-tests-exceptions.h: New file.
9946 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9947 (EXCEPTION_TESTS_float): Do not define here.
9948 (EXCEPTION_TESTS_double): Likewise.
9949 (EXCEPTION_TESTS_long_double): Likewise.
9950 (EXCEPTION_TESTS_float128): Likewise.
9951 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9952 Likewise.
9953 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9954 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9955 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9956 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9957 * sysdeps/mips/math-tests.h: Likewise.
9958 * sysdeps/nios2/math-tests.h: Likewise.
9959 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9960 (EXCEPTION_TESTS_float): Do not define here.
9961 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9962 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9963 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9964
9965 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9966
9967 * NEWS: Move optimized sinf entry to 2.29.
9968
9969 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9970
9971 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9972
9973 2018-08-22 DJ Delorie <dj@redhat.com>
9974
9975 * Makefile (testroot.pristine): New rules to initialize the
9976 test-in-container "testroot".
9977 * Makerules (all-testsuite): Add tests-container.
9978 * Rules (tests-expected): Add tests-container.
9979 (binaries-all-tests): Likewise.
9980 (tests-container): New, run these tests in the testroot container.
9981 * support/Makefile (others): Add *-container, support_paths.c,
9982 xmkdirp, and links-dso-program.
9983 * support/links-dso-program-c.c: New.
9984 * support/links-dso-program.cc: New.
9985 * support/test-container.c: New.
9986 * support/shell-container.c: New.
9987 * support/echo-container.c: New.
9988 * support/true-container.c: New.
9989 * support/xmkdirp.c: New.
9990 * support/xsymlink.c: New.
9991 * support/support_paths.c: New.
9992 * support/support.h: Add support paths prototypes.
9993 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9994
9995 * nss/tst-nss-test3.c: Convert to test-in-container.
9996 * nss/tst-nss-test3.root/: New.
9997
9998 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9999
10000 regex: port Gnulib code to z/OS POSIX environment
10001 Problem reported by Arnold Robbins in:
10002 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10003 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10004 Undef.
10005
10006 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10007
10008 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10009 (ROUNDING_TESTS_double): Remove.
10010 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10011 (ROUNDING_TESTS_double): Remove.
10012 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10013 (ROUNDING_TESTS_double): Remove.
10014 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10015 (ROUNDING_TESTS_float): Remove.
10016 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10017 (ROUNDING_TESTS_float): Remove.
10018 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10019 (ROUNDING_TESTS_float): Remove.
10020 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10021 !TEST_MATHVEC here.
10022 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10023 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10024
10025 * sysdeps/generic/math-tests-rounding.h: New file.
10026 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10027 (ROUNDING_TESTS_float): Do not define here.
10028 (ROUNDING_TESTS_double): Likewise.
10029 (ROUNDING_TESTS_long_double): Likewise.
10030 (ROUNDING_TESTS_float128): Likewise.
10031 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10032 (ROUNDING_TESTS_double): Undefine before defining.
10033 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10034 (ROUNDING_TESTS_double): Undefine before defining.
10035 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10036 (ROUNDING_TESTS_double): Undefine before defining.
10037 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10038 (ROUNDING_TESTS_float): Undefine before defining.
10039 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10040 (ROUNDING_TESTS_float): Undefine before defining.
10041 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10042 (ROUNDING_TESTS_float): Undefine before defining.
10043 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10044 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10045 not define here.
10046 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10047 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10048 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10049 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10050 (ROUNDING_TESTS_float): Do not define here.
10051 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10052 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10053 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10054 (ROUNDING_TESTS_float): Likewise.
10055 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10056 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10057 * sysdeps/mips/math-tests.h [__mips_soft_float]
10058 (ROUNDING_TESTS_float): Likewise.
10059 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10060 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10061 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10062 (ROUNDING_TESTS_double): Likewise.
10063 (ROUNDING_TESTS_long_double): Likewise.
10064
10065 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10066
10067 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10068 (PF_XDP): New macro.
10069 (AF_XDP): New macro.
10070 (SOL_XDP): New macro.
10071
10072 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10073
10074 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10075 (TCP_INQ): Likewise.
10076 (TCP_CM_INQ): Likewise.
10077 (TCP_REPAIR_ON): Likewise.
10078 (TCP_REPAIR_OFF): Likewise.
10079 (TCP_REPAIR_OFF_NO_WP): Likewise.
10080 (struct tcp_zerocopy_receive): New type.
10081
10082 2018-08-21 Florian Weimer <fweimer@redhat.com>
10083
10084 * support/support.h (support_descriptor_supports_holes): Declare.
10085 * support/Makefile (libsupport-routines): Add
10086 support_descriptor_supports_holes.
10087 * support/support_descriptor_supports_holes.c: New file.
10088 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10089 and stop testing if holes are not supported.
10090 * io/test-lfs.c (do_prepare): Likewise.
10091 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10092 Likewise.
10093 * timezone/tst-tzset.c (create_tz_file): Likewise.
10094 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10095 variable.
10096 (do_prepare): Set it.
10097 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10098
10099 2018-08-21 Florian Weimer <fweimer@redhat.com>
10100
10101 [BZ #17248]
10102 * Makeconfig (+cflags): Do not sort (and deduplicate).
10103
10104 2018-08-21 Florian Weimer <fweimer@redhat.com>
10105
10106 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10107 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10108
10109 2018-08-20 Florian Weimer <fweimer@redhat.com>
10110
10111 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10112 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10113
10114 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10115
10116 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10117 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10118 and ssi_arch members.
10119
10120 * elf/elf.c (NT_VMCOREDD): New macro.
10121 (AT_MINSIGSTKSZ): Likewise.
10122
10123 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10124
10125 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10126 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10127 s_cosf-ppc64 and s_cosf-power8.
10128 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10129 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10130 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10131 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10138 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10139 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10140
10141 2018-08-17 Florian Weimer <fweimer@redhat.com>
10142
10143 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10144
10145 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10146
10147 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10148
10149 2018-08-16 Florian Weimer <fweimer@redhat.com>
10150
10151 * configure.ac: Add --with-nonshared-cflags option.
10152 * config.make.in (extra-nonshared-cflags): Set variable.
10153 * Makeconfig (CFLAGS-.oS): Use it.
10154 * manual/install.texi (Configuring and compiling): Document
10155 --with-nonshared-cflags.
10156 * configure: Regenerate.
10157 * INSTALL: Likewise.
10158
10159 2018-08-16 Florian Weimer <fweimer@redhat.com>
10160
10161 * Makeconfig (ASFLAGS): Always append required assembler flags.
10162
10163 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10164
10165 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10166 (malloc_consolidate): Likewise.
10167
10168 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10169
10170 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10171
10172 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10173
10174 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10175 every strlen call.
10176
10177 * benchtests/bench-strlen.c: Print performance numbers in json.
10178
10179 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10180
10181 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10182 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10183 only for little endian.
10184 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10185 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10186 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10187 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10188 Add check for little endian.
10189 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10190 (__strcmp_power9): Add check for little endian.
10191 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10192 Add check for little endian.
10193 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10194 (__strncmp_power9): Add check for little endian.
10195 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10196 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10197 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10198 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10199 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10200
10201 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10202
10203 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10204 [!STRLEN](STRLEN): Set to __strlen.
10205 * sysdeps/aarch64/multiarch/strlen.c: New file.
10206 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10207 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10208 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10209 (__libc_ifunc_impl_list): Add strlen.
10210 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10211 strlen_generic and strlen_asimd.
10212
10213 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10214
10215 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10216 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10217 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10218
10219 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10220
10221 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10222
10223 2018-08-14 Florian Weimer <fweimer@redhat.com>
10224
10225 [BZ #23519]
10226 * include/stdio.h (__vfxprintf): Declare.
10227 * stdio-common/fxprintf.c (__vfxprintf): New function.
10228 (__fxprintf): Call it.
10229 * misc/err.c (convert_and_print): Remove function.
10230 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10231 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10232 * misc/Makefile (tests): Add tst-warn-wide.
10233 * misc/tst-warn-wide.c: New file.
10234
10235 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10236 Szabolcs Nagy <szabolcs.nagy@arm.com>
10237
10238 * NEWS: Mention sinf, cosf, sincosf.
10239 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10240 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10241 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10242 constants rather than including generic sincosf.h.
10243 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10244 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10245 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10246 (reduced_cos): Remove.
10247 (sinf_poly): New function.
10248 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10249
10250 2018-08-14 Florian Weimer <fweimer@redhat.com>
10251
10252 [BZ #23521]
10253 [BZ #23522]
10254 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10255 processing, bail out if no room, and close the stream before
10256 returning ERANGE.
10257 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10258 (tst-nss-files-alias-leak): Link with libdl.
10259 (tst-nss-files-alias-leak.out): Depend on nss_files.
10260
10261 * nss/tst-nss-files-alias-leak.c: New file.
10262
10263 2018-08-14 Florian Weimer <fweimer@redhat.com>
10264
10265 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10266 server_user, stat_user.
10267
10268 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10269
10270 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10271 version to 4.18.
10272 (io_pgetevents): New syscall.
10273 (rseq): Likewise.
10274
10275 * manual/install.texi (Configuring and compiling): Do not list
10276 tools used for testing pretty printers here.
10277 (Tools for Compilation): List Python, PExpect and GDB here.
10278 Update descriptions of uses of Perl and Python.
10279 * INSTALL: Regenerate.
10280
10281 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10282 version to 4.18.
10283
10284 2018-08-13 Florian Weimer <fweimer@redhat.com>
10285
10286 * misc/error.c (error): Add missing va_end call.
10287 (error_at_line): Likewise.
10288
10289 2018-08-13 Florian Weimer <fweimer@redhat.com>
10290
10291 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10292
10293 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10294
10295 * benchtests/scripts/benchout.schema.json (properties): Add
10296 new properties.
10297
10298 * benchtests/bench-skeleton.c (main): Add duration and
10299 iterations attributes.
10300
10301 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10302
10303 regex: Gnulib unibyte RRI uses bytes not chars
10304 Adjust the non-glibc code to agree with what Gawk needs for
10305 rational range interpretation (RRI) for regular expression ranges.
10306 In unibyte locales, Gawk wants ranges to use the underlying byte
10307 rather than the character code point. This change does not affect
10308 glibc proper.
10309 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10310 In unibyte locales, use the byte value rather than
10311 running it through btowc.
10312
10313 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10314
10315 * sysdeps/generic/math-tests-snan.h: New file.
10316 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10317 (SNAN_TESTS_float): Do not define here.
10318 (SNAN_TESTS_double): Likewise.
10319 (SNAN_TESTS_long_double): Likewise.
10320 (SNAN_TESTS_float128): Likewise.
10321 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10322 * sysdeps/i386/fpu/math-tests.h: Remove file.
10323 * sysdeps/ia64/math-tests-snan.h: New file.
10324 * sysdeps/ia64/math-tests.h: Remove file.
10325 * sysdeps/x86/math-tests.h: Likewise.
10326 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10327
10328 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10329 Szabolcs Nagy <szabolcs.nagy@arm.com>
10330
10331 * math/Makefile: Add s_sincosf_data.c.
10332 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10333 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10334 (sincosf_poly): Likewise.
10335 (reduce_small): Likewise.
10336 (reduce_large): Likewise.
10337 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10338 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10339 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10340 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10341
10342 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10343 Szabolcs Nagy <szabolcs.nagy@arm.com>
10344
10345 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10346 (converttoint): Use lround.
10347 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10348 document the semantics when TOINT_INTRINSICS is set.
10349 (converttoint): Likewise.
10350 (TOINT_RINT): Remove.
10351 (TOINT_SHIFT): Remove.
10352 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10353 path.
10354
10355 2018-08-10 Florian Weimer <fweimer@redhat.com>
10356
10357 [BZ #23497]
10358 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10359 function.
10360 (__old_getdents64): Use getdents64. Convert entries without
10361 moving them.
10362 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10363 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10364 tst-readdir64-compat.
10365
10366 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10367
10368 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10369 Fix unwind.
10370
10371 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10372
10373 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10374 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10375 code to s390x-mcount.h and #include it.
10376 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10377 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10378 (__fentry__): Add.
10379
10380 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10381
10382 * stdlib/Versions: Remove __fentry__.
10383 * sysdeps/i386/Versions: Add __fentry__.
10384 * sysdeps/x86_64/Versions: Add __fentry__.
10385
10386 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10387
10388 * sysdeps/s390/Makefile: Register the new tests.
10389 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10390 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10391 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10392 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10393 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10394 * sysdeps/s390/tst-dl-runtime.c: New file.
10395
10396 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10397
10398 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10399 Do not clobber R0.
10400
10401 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10402
10403 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10404 Do not clobber R0.
10405
10406 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10407
10408 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10409 Do not clobber R0.
10410
10411 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10412
10413 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10414 Do not clobber R0.
10415
10416 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10417
10418 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10419 Use symbolic offsets for stack variables.
10420
10421 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10422
10423 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10424 Use symbolic offsets for stack variables.
10425
10426 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10427
10428 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10429 Use symbolic offsets for stack variables.
10430
10431 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10432
10433 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10434 Use symbolic offsets for stack variables.
10435
10436 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10437
10438 * math/gen-libm-test.py: New file.
10439 * math/gen-libm-test.pl: Remove.
10440 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10441 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10442 gen-libm-test.pl.
10443 ($(libm-test-c-noauto-obj)): Likewise.
10444 ($(libm-test-c-auto-obj)): Likewise.
10445 ($(libm-test-c-narrow-obj)): Likewise.
10446 (regen-ulps): Likewise.
10447 * math/README.libm-test: Update references to gen-libm-test.pl.
10448 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10449 referencing gen-libm-test.pl.
10450 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10451 * math/libm-test-support.c: Likewise.
10452 * math/libm-test-support.h: Likewise.
10453 * sysdeps/generic/libm-test-ulps: Likewise.
10454
10455 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10456
10457 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10458 Fix value.
10459
10460 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10461
10462 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10463 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10464
10465 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10466
10467 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10468 symbols.
10469 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10470 __pthread_setspecific): Add hidden proto.
10471 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10472 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10473
10474 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10475
10476 * benchtests/bench-string.h (buf1_size, buf2_size): New
10477 variables.
10478 (init_sizes): New function.
10479 (test_init): Use it.
10480 (alloc_buf, exit_error): New functions.
10481 (alloc_bufs): Use ALLOC_BUF.
10482 (realloc_bufs): Remove.
10483 * benchtests/bench-memcmp.c (do_test): Adjust.
10484 * benchtests/bench-memset-large.c (do_test): Likewise.
10485 * benchtests/bench-memset-walk.c (do_test): Likewise.
10486 * benchtests/bench-memset.c (do_test): Likewise.
10487 * benchtests/bench-strncmp.c (do_test): Likewise.
10488
10489 2018-08-06 Andreas Schwab <schwab@suse.de>
10490
10491 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10492 of CONST_THREAD_AREA.
10493
10494 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10495
10496 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10497 (STATE_SAVE_MASK): Likewise.
10498 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10499 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10500 (STATE_SAVE_MASK): Likewise.
10501 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10502 instead of <cpu-features.h>.
10503
10504 2018-08-03 DJ Delorie <dj@redhat.com>
10505
10506 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10507 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10508
10509 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10510
10511 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10512
10513 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10514 after TEST_* calls.
10515 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10516 * math/libm-test-logb.inc (logb_test_data): Likewise.
10517
10518 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10519
10520 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10521 * string/strstr.c (AVAILABLE): Likewise.
10522
10523 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10524
10525 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10526 <init-arch.h>.
10527 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10528 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10529 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10530
10531 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10532
10533 * po/be.po: Update translation.
10534
10535 * po/be.po: Update translation.
10536
10537 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10538
10539 * sysdeps/x86/cpu-features-offsets.sym
10540 (rtld_global_ro_offsetof): Removed.
10541 (CPU_FEATURES_SIZE): Likewise.
10542 (CPUID_OFFSET): Likewise.
10543 (CPUID_SIZE): Likewise.
10544 (CPUID_EAX_OFFSET): Likewise.
10545 (CPUID_EBX_OFFSET): Likewise.
10546 (CPUID_ECX_OFFSET): Likewise.
10547 (CPUID_EDX_OFFSET): Likewise.
10548 (FAMILY_OFFSET): Likewise.
10549 (MODEL_OFFSET): Likewise.
10550 (FEATURE_OFFSET): Likewise.
10551 (FEATURE_SIZ): Likewise.
10552 (COMMON_CPUID_INDEX_1): Likewise.
10553 (COMMON_CPUID_INDEX_7): Likewise.
10554 (FEATURE_INDEX_1): Likewise.
10555 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10556
10557 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10558
10559 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10560 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10561 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10562 (install-locales): Depend on install-locale-archive.
10563 (install-locale-archive): Define.
10564 (install-locale-files): Define.
10565 (build-one-locale): Define macro.
10566 * manual/install.texi (Running make install): Document.
10567 * manual/INSTALL: Regenerate.
10568
10569 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10570
10571 * benchtests/scripts/compare_strings.py: Import traceback.
10572 (parse_file): Pretty-print error.
10573
10574 * NEWS: Mention the change.
10575 * elf/dl-tunables.list: Rename tune namespace to cpu.
10576 * sysdeps/powerpc/dl-tunables.list: Likewise.
10577 * sysdeps/x86/dl-tunables.list: Likewise.
10578 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10579 cpu.name.
10580 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10581 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10582 * manual/README.tunables: Likewise.
10583 * manual/tunables.texi: Likewise.
10584 * sysdeps/powerpc/cpu-features.c: Likewise.
10585 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10586 (init_cpu_features): Likewise.
10587 * sysdeps/x86/cpu-features.c: Likewise.
10588 * sysdeps/x86/cpu-features.h: Likewise.
10589 * sysdeps/x86/cpu-tunables.c: Likewise.
10590 * sysdeps/x86_64/Makefile: Likewise.
10591 * sysdeps/x86/dl-cet.c: Likewise.
10592
10593 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10594
10595 [BZ #23479]
10596 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10597 [__mips_hard_float].
10598 (FE_UNDERFLOW): Likewise.
10599 (FE_OVERFLOW): Likewise.
10600 (FE_DIVBYZERO): Likewise.
10601 (FE_INVALID): Likewise.
10602 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10603 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10604 (FE_UPWARD): Likewise.
10605 (FE_DOWNWARD): Likewise.
10606 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10607 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10608 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10609 [__mips_hard_float].
10610 (FP_ROUNDMODE): Likewise.
10611 (FP_RND_NEAREST): Likewise.
10612 (FP_RND_ZERO): Likewise.
10613 (FP_RND_PINF): Likewise.
10614 (FP_RND_MINF): Likewise.
10615 (FP_EX_INVALID): Likewise.
10616 (FP_EX_OVERFLOW): Likewise.
10617 (FP_EX_UNDERFLOW): Likewise.
10618 (FP_EX_DIVZERO): Likewise.
10619 (FP_EX_INEXACT): Likewise.
10620 (FP_INIT_ROUNDMODE): Likewise.
10621 * sysdeps/mips/nofpu/fesetenv.c: New file.
10622 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10623
10624 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10625
10626 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10627 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10628 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10629 conditional on [FE_UPWARD].
10630
10631 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10632
10633 regex: fix memory leak in Gnulib
10634 Problem and fix reported by Assaf Gordon in:
10635 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10636 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10637 range_ends members too, as they are defined in 'struct
10638 re_charset_t' even if not _LIBC. This affects only Gnulib.
10639
10640 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10641
10642 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10643 ...
10644 (get_common_indices): This.
10645 (init_cpu_features): Updated.
10646
10647 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10648
10649 * sysdeps/generic/math-tests-snan-payload.h: New file.
10650 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10651 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10652 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10653 * sysdeps/generic/math-tests.h: Include
10654 <math-tests-snan-payload.h>.
10655 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10656 * sysdeps/hppa/math-tests.h: Remove file.
10657 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10658 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10659 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10660 Likewise.
10661
10662 * sysdeps/generic/math-tests-snan-cast.h: New file.
10663 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10664 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10665 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10666 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10667
10668 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10669
10670 * version.h (RELEASE): Set to "development".
10671 (VERSION): Set to "2.28.9000".
10672 * NEWS (2.29): New section.
10673
10674 * version.h (RELEASE): Set to "stable".
10675 (VERSION): Set to "2.28".
10676 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10677 * NEWS: Add the list of bugs fixed in 2.28.
10678
10679 * po/ca.po: Update to latest version.
10680 * po/cs.po: Likewise
10681 * po/da.po: Likewise
10682 * po/el.po: Likewise
10683 * po/eo.po: Likewise
10684 * po/es.po: Likewise
10685 * po/fi.po: Likewise
10686 * po/fr.po: Likewise
10687 * po/gl.po: Likewise
10688 * po/hu.po: Likewise
10689 * po/ia.po: Likewise
10690 * po/id.po: Likewise
10691 * po/it.po: Likewise
10692 * po/ja.po: Likewise
10693 * po/ko.po: Likewise
10694 * po/lt.po: Likewise
10695 * po/nb.po: Likewise
10696 * po/nl.po: Likewise
10697 * po/pt_BR.po: Likewise
10698 * po/ru.po: Likewise
10699 * po/rw.po: Likewise
10700 * po/sk.po: Likewise
10701 * po/sl.po: Likewise
10702 * po/tr.po: Likewise
10703 * po/zh_CN.po: Likewise
10704 * po/zh_TW.po: Likewise
10705
10706 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10707
10708 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10709 initialization...
10710 (init): ... before initializing libpthread.
10711
10712 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10713 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10714 (__mach_setup_tls): ... new function.
10715 (mach_setup_tls): New alias.
10716 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10717 __mach_setup_thread.
10718 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10719 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10720 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10721 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10722
10723 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10724
10725 * manual/install.texi: Update versions.
10726 * INSTALL: Regenerate.
10727
10728 * manual/contrib.texi (Contributors): Update contributions.
10729
10730 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10731
10732 * po/be.po: Update translations.
10733
10734 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10735
10736 * sysdeps/sh/libm-test-ulps: Update.
10737
10738 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10739
10740 * po/bg.po: Update translations.
10741 * po/de.po: Likewise.
10742 * po/hr.po: Likewise.
10743 * po/pt_BR.po: Likewise.
10744 * po/sv.po: Likewise.
10745 * po/vi.po: Likewise.
10746
10747 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10748
10749 [BZ #23467]
10750 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10751 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10752 (CFLAGS-tst-cet-property-1.o): New.
10753 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10754 ($(objpfx)tst-cet-property-2): Likewise.
10755 ($(objpfx)tst-cet-property-2.out): Likewise.
10756 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10757 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10758 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10759 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10760 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10761
10762 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10763
10764 [BZ #23458]
10765 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10766
10767 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10768
10769 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10770 __sbrk): Do not set attribute_hidden.
10771 * sysdeps/mach/hurd/not-errno.h: New file.
10772 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10773 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10774
10775 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10776
10777 * po/uk.po: Update translations.
10778 * po/cs.po: Likewise.
10779 * po/pl.po: Likewise.
10780
10781 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10782
10783 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10784 parse beyond the note end.
10785
10786 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10787
10788 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10789 kernel does not support OFD locks.
10790 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10791
10792 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10793
10794 * sysdeps/mach/hurd/Versions (libc): Make __access and
10795 __access_noerrno external so they can override the ld symbols.
10796 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10797 __writev, __open64, __access_noerrno extern so they can be overrided.
10798 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10799 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10800
10801 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10802
10803 * po/libc.pot: Regenerate.
10804
10805 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10806
10807 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10808
10809 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10810
10811 [BZ #23459]
10812 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10813 function.
10814 (init_cpu_features): Call get_extended_indices for both Intel
10815 and AMD CPUs.
10816 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10817 Remove "for AMD" comment.
10818
10819 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10820
10821 [BZ # 23456]
10822 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10823 COMMON_CPUID_INDEX_80000001.
10824
10825 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10826
10827 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10828 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10829
10830 2018-07-26 Florian Weimer <fweimer@redhat.com>
10831
10832 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10833 aliases for symbols not in the implementation namespace.
10834
10835 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10836
10837 [BZ #23393]
10838 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10839 lowercase in LATIN script.
10840 * localedata/Makefile (test-input): Add en_US.UTF-8.
10841 * localedata/en_US.UTF-8.in: New file.
10842 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10843 and restore old tests.
10844 * posix/tst-regexloc.c (do_test): Add back range expression test.
10845
10846 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10847
10848 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10849
10850 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10851
10852 * nptl/threads.h: Move to ...
10853 * sysdeps/nptl/threads.h: ... here.
10854 * sysdeps/hurd/stdc-predef.h: New file.
10855
10856 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10857
10858 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10859 tst-cet-setcontext-1 if CET is enabled.
10860 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10861 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10862
10863 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10864
10865 * include/threads.h: Move to ...
10866 * sysdeps/nptl/threads.h: ... here.
10867 * sysdeps/htl/threads.h: New file.
10868 * conform/Makefile (linknamespace-libs-ISO11): Use
10869 static-thread-library instead of linking libpthread.
10870 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10871
10872 2018-07-25 Florian Weimer <fweimer@redhat.com>
10873
10874 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10875 nanoseconds into seconds.
10876 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10877 (do_test): Likewise.
10878 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10879 (do_test): Likewise. Avoid nanosecond overflow and spurious
10880 timeouts due to system load.
10881 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10882 (child_wait): Increment it.
10883 (do_test): Wait as long as necessary until all expected threads
10884 have arrived.
10885
10886 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10887 H.J. Lu <hongjiu.lu@intel.com>
10888
10889 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10890 __ssp.
10891 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10892 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10893 (__push___start_context): New.
10894 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10895 <asm/prctl.h>.
10896 (__getcontext): Record the current shadow stack base. Save the
10897 caller's shadow stack pointer and base.
10898 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10899 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10900 (__push___start_context): New prototype.
10901 (__makecontext): Call __push___start_context to allocate a new
10902 shadow stack, push __start_context onto the new stack as well
10903 as the new shadow stack.
10904 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10905 <asm/prctl.h>.
10906 (__setcontext): Restore the target shadow stack.
10907 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10908 <asm/prctl.h>.
10909 (__swapcontext): Record the current shadow stack base. Save
10910 the caller's shadow stack pointer and base. Restore the target
10911 shadow stack.
10912 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10913 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10914 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10915
10916 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10917
10918 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10919 tst-setcontext8 and tst-setcontext9.
10920 * stdlib/tst-setcontext6.c: New file.
10921 * stdlib/tst-setcontext7.c: Likewise.
10922 * stdlib/tst-setcontext8.c: Likewise.
10923 * stdlib/tst-setcontext9.c: Likewise.
10924
10925 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10926
10927 * stdlib/Makefile ((tests): Add tst-setcontext5.
10928 * stdlib/tst-setcontext5.c: New file.
10929
10930 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10931
10932 * stdlib/Makefile (tests): Add tst-setcontext4.
10933 * stdlib/tst-setcontext4.c: New file.
10934
10935 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10936
10937 * stdlib/Makefile (tests): Add tst-swapcontext1.
10938 * stdlib/tst-swapcontext1.c: New test.
10939
10940 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10941
10942 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10943 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10944 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10945 and tst-cet-legacy-4c.
10946 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10947 and tst-cet-legacy-mod-4.
10948 (CFLAGS-tst-cet-legacy-2.c): New.
10949 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10950 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10951 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10952 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10953 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10954 ($(objpfx)tst-cet-legacy-1): Likewise.
10955 ($(objpfx)tst-cet-legacy-2): Likewise.
10956 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10957 ($(objpfx)tst-cet-legacy-2a): Likewise.
10958 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10959 ($(objpfx)tst-cet-legacy-4): Likewise.
10960 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10961 ($(objpfx)tst-cet-legacy-4a): Likewise.
10962 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10963 (tst-cet-legacy-4a-ENV): Likewise.
10964 ($(objpfx)tst-cet-legacy-4b): Likewise.
10965 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10966 (tst-cet-legacy-4b-ENV): Likewise.
10967 ($(objpfx)tst-cet-legacy-4c): Likewise.
10968 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10969 (tst-cet-legacy-4c-ENV): Likewise.
10970 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10971 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10972 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10973 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10974 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10975 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10976 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10977 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10978 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10979 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10980 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10981
10982 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10983
10984 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10985 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10986 with ssp_base.
10987 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10988 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10989 with ssp_base.
10990
10991 2018-07-25 Andreas Schwab <schwab@suse.de>
10992
10993 [BZ #23442]
10994 * locale/weightwc.h (findidx): Handle the case where usrc is a
10995 prefix of cp but one character too short.
10996
10997 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10998
10999 * NEWS: Add ISO C threads addition.
11000
11001 2018-07-24 Florian Weimer <fweimer@redhat.com>
11002
11003 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11004 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11005 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11006 4.13.
11007
11008 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11009
11010 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11011 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11012 <sys/prctl.h> and <asm/prctl.h>.
11013 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11014 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11015 and <asm/prctl.h>.
11016 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11017 ARCH_CET_LEGACY_BITMAP.
11018 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11019 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11020 * sysdeps/x86/libc-start.c: Include <startup.h>.
11021
11022 2018-07-24 Florian Weimer <fweimer@redhat.com>
11023
11024 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11025 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11026
11027 2018-07-24 Rical Jasan <rj@2c3t.io>
11028 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11029 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11030
11031 [BZ #14092]
11032 * manual/debug.texi: Update adjacent chapter name.
11033 * manual/probes.texi: Likewise.
11034 * manual/threads.texi (ISO C Threads): New section.
11035 (POSIX Threads): Convert to a section.
11036
11037 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11038 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11039
11040 [BZ# 14092]
11041 * nptl/Makefile (tests): Add new test files.
11042 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11043 * nptl/tst-cnd-basic.c: Likewise.
11044 * nptl/tst-cnd-broadcast.c: Likewise.
11045 * nptl/tst-cnd-timedwait.c: Likewise.
11046 * nptl/tst-mtx-basic.c: Likewise.
11047 * nptl/tst-mtx-recursive.c: Likewise.
11048 * nptl/tst-mtx-timedlock.c: Likewise.
11049 * nptl/tst-mtx-trylock.c: Likewise.
11050 * nptl/tst-thrd-basic.c: Likewise.
11051 * nptl/tst-thrd-detach.c: Likewise.
11052 * nptl/tst-thrd-sleep.c: Likewise.
11053 * nptl/tst-tss-basic.c: Likewise.
11054
11055 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11056
11057 [BZ #14092]
11058 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11059 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11060 symbols.
11061 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11062 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11063 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11064 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11065 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11066 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11068 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11069 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11070 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11071 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11072 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11074 Likewise.
11075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11076 Likewise.
11077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11078 Likewise.
11079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11085 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11086 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11089 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11090 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11091 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11092 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11093 Likewise.
11094 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11095 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11096 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11097 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11100 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11101 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11102 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11103 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11104 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11105 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11106 ikewise.
11107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11109 Likewise.
11110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11111 Likewise.
11112 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11113 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11114 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11115 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11116 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11117 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11118 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11119 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11120
11121 [BZ #14092]
11122 * conform/data/threads.h-data (thread_local): New macro.
11123 (TSS_DTOR_ITERATIONS): Likewise.
11124 (tss_t): New type.
11125 (tss_dtor_t): Likewise.
11126 (tss_create): New function.
11127 (tss_get): Likewise.
11128 (tss_set): Likewise.
11129 (tss_delete): Likewise.
11130 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11131 tss_get, and tss_set objects.
11132 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11133 * nptl/tss_create.c: New file.
11134 * nptl/tss_delete.c: Likewise.
11135 * nptl/tss_get.c: Likewise.
11136 * nptl/tss_set.c: Likewise.
11137 * sysdeps/nptl/threads.h (thread_local): New define.
11138 (TSS_DTOR_ITERATIONS): Likewise.
11139 (tss_t): New typedef.
11140 (tss_dtor_t): Likewise.
11141 (tss_create): New prototype.
11142 (tss_get): Likewise.
11143 (tss_set): Likewise.
11144 (tss_delete): Likewise.
11145
11146 [BZ #14092]
11147 * conform/data/threads.h-data (cnd_t): New type.
11148 (cnd_init): New function.
11149 (cnd_signal): Likewise.
11150 (cnd_broadcast): Likewise.
11151 (cnd_wait): Likewise.
11152 (cnd_timedwait): Likewise.
11153 (cnd_destroy): Likewise.
11154 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11155 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11156 object.
11157 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11158 * nptl/cnd_broadcast.c: New file.
11159 * nptl/cnd_destroy.c: Likewise.
11160 * nptl/cnd_init.c: Likewise.
11161 * nptl/cnd_signal.c: Likewise.
11162 * nptl/cnd_timedwait.c: Likewise.
11163 * nptl/cnd_wait.c: Likewise.
11164 * sysdeps/nptl/threads.h (cnd_t): New type.
11165 (cnd_init): New prototype.
11166 (cnd_signa): Likewise.
11167 (cnd_broadcast): Likewise.
11168 (cnd_wait): Likewise.
11169 (cnd_timedwait): Likewise.
11170 (cnd_destroy): Likewise.
11171
11172 [BZ #14092]
11173 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11174 (once_flag): New type.
11175 (call_once): New function.
11176 * nptl/Makefile (libpthread-routines): Add call_once object.
11177 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11178 * nptl/call_once.c: New file.
11179 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11180 (once_flag): New type.
11181 (call_once): New prototype.
11182
11183 [BZ #14092]
11184 * conform/data/threads.h-data (mtx_plain): New constant.
11185 (mtx_recursive): Likewise.
11186 (mtx_timed): Likewise.
11187 (mtx_t): New type.
11188 (mtx_init): New function.
11189 (mtx_lock): Likewise.
11190 (mtx_timedlock): Likewise.
11191 (mtx_trylock): Likewise.
11192 (mtx_unlock): Likewise.
11193 (mtx_destroy): Likewise.
11194 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11195 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11196 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11197 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11198 * nptl/mtx_destroy.c: New file.
11199 * nptl/mtx_init.c: Likewise.
11200 * nptl/mtx_lock.c: Likewise.
11201 * nptl/mtx_timedlock.c: Likewise.
11202 * nptl/mtx_trylock.c: Likewise.
11203 * nptl/mtx_unlock.c: Likewise.
11204 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11205 (mtx_recursive): Likewise.
11206 (mtx_timed): Likewise.
11207 (mtx_t): New type.
11208 (mtx_init): New prototype.
11209 (mtx_lock): Likewise.
11210 (mtx_timedlock): Likewise.
11211 (mtx_trylock): Likewise.
11212 (mtx_unlock): Likewise.
11213 (mtx_destroy): Likewise.
11214
11215 [BZ #14092]
11216 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11217 (linknamespace-libs-ISO11): Add libpthread.a.
11218 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11219 functions.
11220 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11221 * nptl/Makefile (headers): Add threads.h.
11222 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11223 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11224 thrd_yield.
11225 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11226 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11227 thrd_join, thrd_sleep, and thrd_yield symbols.
11228 * nptl/descr.h (struct pthread): Add c11 field.
11229 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11230 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11231 routine with expected function prototype.
11232 (__pthread_create_2_1): Add C11 threads check based on attribute
11233 value.
11234 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11235 * nptl/thrd_create.c: New file.
11236 * nptl/thrd_current.c: Likewise.
11237 * nptl/thrd_detach.c: Likewise.
11238 * nptl/thrd_equal.c: Likewise.
11239 * nptl/thrd_exit.c: Likewise.
11240 * nptl/thrd_join.c: Likewise.
11241 * nptl/thrd_priv.h: Likewise.
11242 * nptl/thrd_sleep.c: Likewise.
11243 * nptl/thrd_yield.c: Likewise.
11244 * include/threads.h: Likewise.
11245
11246 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11247
11248 * bits/indirect-return.h: New file.
11249 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11250 * sysdeps/x86/bits/indirect-return.h: Likewise.
11251 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11252 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11253 (swapcontext): Add __INDIRECT_RETURN.
11254 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11255 (prepare_test_buffer): Use it.
11256
11257 2018-07-24 Andreas Schwab <schwab@suse.de>
11258
11259 [BZ #23448]
11260 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11261 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11262
11263 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11264
11265 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11266 Redefine if shadow stack is enabled.
11267 (SYSCALL_ERROR_LABEL): Likewise.
11268 (__vfork): Pop shadow stack and jump back to to caller directly
11269 when shadow stack is in use.
11270 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11271 Redefine if shadow stack is enabled.
11272 (SYSCALL_ERROR_LABEL): Likewise.
11273 (__vfork): Pop shadow stack and jump back to to caller directly
11274 when shadow stack is in use.
11275
11276 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11277
11278 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11279 enabled.
11280 (foo): Likewise.
11281 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11282 (foo): Likewise.
11283
11284 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11285
11286 * scripts/build-many-glibcs.py (Context.checkout): Default
11287 binutils version to 2.31 branch.
11288
11289 2018-07-20 Zong Li <zong@andestech.com>
11290
11291 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11292 URL of gcc's tarball.
11293
11294 2018-07-20 Florian Weimer <fweimer@redhat.com>
11295
11296 [BZ #23396]
11297 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11298 not compare an extra byte after the end of the weights.
11299
11300 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11301
11302 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11303 to 1.
11304 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11305 hidden prototypes.
11306 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11307 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11308 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11309 list of libraries whose stack executability is expected.
11310 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11311 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11312 variable.
11313 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11314 libc.so libpthread.so.
11315
11316 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11317
11318 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11319 SOCK_NONBLOCK.
11320 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11321 and SOCK_NONBLOCK.
11322 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11323 implement __pipe2.
11324 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11325
11326 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11327
11328 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11329 library to improve command line parsing.
11330 (__main__): make schema file as optional parameter (--schema),
11331 defaulting to benchtests/scripts/benchout.schema.json.
11332 (main): move out of the parsing stuff to __main_  and leave it
11333 only as caller of main comparison functions.
11334
11335 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11336
11337 * NEWS: Add a note for Intel CET status.
11338 * manual/install.texi: Likewise.
11339 * INSTALL: Regenerated.
11340
11341 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11342
11343 [BZ #23140]
11344 * localedata/locales/oc_FR (mon): Rename to...
11345 (alt_mon): This, then update October (typo fix).
11346 (mon): New content (genitive case, month names preceded by
11347 "de" or "d’").
11348
11349 [BZ #23422]
11350 * localedata/locales/oc_FR (abday): Update all items.
11351 (day): Update Wednesday and Saturday (typo fixes).
11352 (abmon): Update all items, except May.
11353 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11354 (LC_IDENTIFICATION): Bump the revision number and date.
11355 Keep the "category" entries in alphabetic order.
11356 (LC_ADDRESS): Remove no longer needed comment.
11357 (LC_COLLATE): Use “copy "ca_ES"”.
11358 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11359 "name_mrs".
11360
11361 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11362
11363 * grp/tst_fgetgrent.c: Include <unistd.h>.
11364 (main): Use mkstemp instead of tmpnam.
11365 * io/test-utime.c (main): Likewise.
11366 * posix/annexc.c (macrofile): Change to modifiable array.
11367 (main): Remove macrofile here.
11368 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11369 macrofile here.
11370 (check_header): Do not remove macrofile here.
11371 * posix/bug-getopt1.c: Include <stdlib.h>.
11372 (do_test): Use mkstemp instead of tmpnam.
11373 * posix/bug-getopt2.c: Include <stdlib.h>.
11374 (do_test): Use mkstemp instead of tmpnam.
11375 * posix/bug-getopt3.c: Include <stdlib.h>.
11376 (do_test): Use mkstemp instead of tmpnam.
11377 * posix/bug-getopt4.c: Include <stdlib.h>.
11378 (do_test): Use mkstemp instead of tmpnam.
11379 * posix/bug-getopt5.c: Include <stdlib.h>.
11380 (do_test): Use mkstemp instead of tmpnam.
11381 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11382 (main): Use mkstemp instead of tmpnam.
11383 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11384 (main): Use mkstemp instead of tmpnam.
11385 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11386 (main): use mkstemp instead of tmpnam.
11387 * stdlib/isomac.c (macrofile): Change to modifiable array.
11388 (main): Remove macrofile here.
11389 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11390 macrofile here.
11391 (check_header): Do not remove macrofile here.
11392
11393 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11394
11395 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11396 glibc.tune.x86_shstk.
11397
11398 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11399
11400 * NEWS: Mention --enable-cet.
11401 * manual/install.texi: Document --enable-cet.
11402 * INSTALL: Regenerated.
11403
11404 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11405
11406 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11407 Add _CET_NOTRACK before indirect jump to jump table.
11408
11409 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11410
11411 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11412 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11413 to jump table.
11414
11415 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11416
11417 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11418 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11419 to jump table.
11420
11421 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11422
11423 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11424 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11425 to jump table.
11426
11427 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11428
11429 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11430 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11431 to jump table.
11432
11433 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11434
11435 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11436 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11437 to jump table.
11438 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11439
11440 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11441
11442 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11443 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11444 to jump table.
11445
11446 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11447
11448 * sysdeps/i386/i686/multiarch/memset-sse2.S
11449 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11450 to jump table.
11451
11452 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11453
11454 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11455 indirect jump to jump table.
11456
11457 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11458
11459 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11460 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11461 to jump table.
11462 (MEMCPY): Likewise.
11463
11464 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11465
11466 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11467 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11468 to jump table.
11469 (MEMCPY): Likewise.
11470
11471 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11472
11473 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11474 _CET_NOTRACK before indirect jump to jump table.
11475
11476 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11477
11478 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11479 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11480 to jump table.
11481
11482 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11483
11484 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11485 indirect jump to jump table.
11486
11487 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11488
11489 [BZ #22241]
11490 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11491 (LOCALES): Likewise.
11492 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11493 * localedata/locales/sah_RU: New file.
11494 * localedata/sah_RU.UTF-8.in: New file.
11495
11496 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11497
11498 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11499 "sysdep.h".
11500 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11501 _CET_ENDBR to indirect jump targets and adjust jump destination
11502 for _CET_ENDBR.
11503 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11504 "sysdep.h".
11505 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11506 _CET_ENDBR to indirect jump targets and adjust jump destination
11507 for _CET_ENDBR.
11508 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11509 "sysdep.h".
11510 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11511 _CET_ENDBR to indirect jump targets and adjust jump destination
11512 for _CET_ENDBR.
11513
11514 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11515
11516 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11517 _CET_ENDBR.
11518
11519 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11520
11521 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11522 _CET_ENDBR.
11523 (_dl_tlsdesc_undefweak): Likewise.
11524 (_dl_tlsdesc_dynamic): Likewise.
11525 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11526 (_dl_tlsdesc_resolve_rel): Likewise.
11527 (_dl_tlsdesc_resolve_rela): Likewise.
11528 (_dl_tlsdesc_resolve_hold): Likewise.
11529 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11530 (_dl_tlsdesc_undefweak): Likewise.
11531 (_dl_tlsdesc_dynamic): Likewise.
11532 (_dl_tlsdesc_resolve_rela): Likewise.
11533 (_dl_tlsdesc_resolve_hold): Likewise.
11534
11535 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11536
11537 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11538 (_fini): Likewise.
11539 * sysdeps/x86_64/crti.S (_init): Likewise.
11540 (_fini): Likewise.
11541
11542 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11543
11544 [BZ #23140]
11545 * localedata/locales/os_RU (mon): Rename to...
11546 (alt_mon): This.
11547 (mon): Import from CLDR (genitive case).
11548
11549 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11550
11551 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11552 cet-tunables.h> when CET is enabled.
11553
11554 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11555
11556 [BZ #21598]
11557 * configure.ac: Add --enable-cet.
11558 * configure: Regenerated.
11559 * elf/Makefille (all-built-dso): Add a comment.
11560 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11561 Include <dl-prop.h>.
11562 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11563 segment.
11564 * elf/dl-open.c: Include <dl-prop.h>.
11565 (dl_open_worker): Call _dl_open_check.
11566 * elf/rtld.c: Include <dl-prop.h>.
11567 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11568 _rtld_main_check.
11569 * sysdeps/generic/dl-prop.h: New file.
11570 * sysdeps/i386/dl-cet.c: Likewise.
11571 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11572 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11573 * sysdeps/x86/cet-tunables.h: Likewise.
11574 * sysdeps/x86/check-cet.awk: Likewise.
11575 * sysdeps/x86/configure: Likewise.
11576 * sysdeps/x86/configure.ac: Likewise.
11577 * sysdeps/x86/dl-cet.c: Likewise.
11578 * sysdeps/x86/dl-procruntime.c: Likewise.
11579 * sysdeps/x86/dl-prop.h: Likewise.
11580 * sysdeps/x86/libc-start.h: Likewise.
11581 * sysdeps/x86/link_map.h: Likewise.
11582 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11583 _CET_ENDBR.
11584 (_dl_runtime_profile): Likewise.
11585 (_dl_runtime_resolve_shstk): New.
11586 (_dl_runtime_profile_shstk): Likewise.
11587 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11588 if CET is enabled.
11589 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11590 (CFLAGS-.os): Likewise.
11591 (CFLAGS-.op): Likewise.
11592 (CFLAGS-.oS): Likewise.
11593 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11594 is enabled.
11595 (tests-special): Add $(objpfx)check-cet.out.
11596 (cet-built-dso): New.
11597 (+$(cet-built-dso:=.note)): Likewise.
11598 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11599 ($(objpfx)check-cet.out): New.
11600 (generated): Add check-cet.out.
11601 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11602 <cet-tunables.h>.
11603 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11604 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11605 (init_cpu_features): Call get_cet_status to check CET status
11606 and update dl_x86_feature_1 with CET status. Call
11607 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11608 (set_x86_shstk). Disable and lock CET in libc.a.
11609 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11610 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11611 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11612 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11613 (_CET_ENDBR): Define if not defined.
11614 (ENTRY): Add _CET_ENDBR.
11615 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11616 x86_shstk.
11617 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11618 _CET_ENDBR.
11619 (_dl_runtime_profile): Likewise.
11620
11621 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11622
11623 [BZ #21895]
11624 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11625 restore r2 on longjmp.
11626 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11627 test list.
11628 Added rules to build test tst-setjmp-bug21895-static.
11629 Added module setjmp-bug21895 and rules to build a shared object from it.
11630 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11631 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11632
11633 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11634
11635 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11636 * benchtests/bench-strstr.c: Likewise.
11637 * string/memmem.c (FASTSEARCH): Define.
11638 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11639 Add support for FASTSEARCH.
11640 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11641 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11642 (FASTSEARCH): Define.
11643 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11644 * string/test-strstr.c: Likewise.
11645
11646 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11647
11648 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11649 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11650
11651 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11652 H.J. Lu <hongjiu.lu@intel.com>
11653
11654 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11655 (__longjmp): Restore shadow stack pointer if shadow stack is
11656 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11657 isn't defined for __longjmp_cancel.
11658 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11659 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11660 and SHADOW_STACK_POINTER_OFFSET is defined.
11661 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11662 (setjmp): Save shadow stack pointer if shadow stack is enabled
11663 and SHADOW_STACK_POINTER_OFFSET is defined.
11664 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11665 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11666 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11667 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11668 <jmp_buf-ssp.h>.
11669 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11670 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11671 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11672 Remove jmp_buf-ssp.sym.
11673 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11674 <jmp_buf-ssp.h>.
11675 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11676 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11677 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11678 jmp_buf-ssp.sym.
11679 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11680 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11681 (__longjmp): Restore shadow stack pointer if shadow stack is
11682 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11683 isn't defined for __longjmp_cancel.
11684 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11685 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11686 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11687
11688 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11689
11690 [BZ #22563]
11691 * nptl/pthread_create.c: Include <tls-setup.h>.
11692 (__pthread_create_2_1): Call tls_setup_tcbhead.
11693 * sysdeps/generic/tls-setup.h: New file.
11694 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11695 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11696 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11697 Likewise.
11698 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11699 to feature_1.
11700 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11701 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11702 (X86_FEATURE_1_SHSTK): Likewise.
11703 (CET_ENABLED): Likewise.
11704 (IBT_ENABLED): Likewise.
11705 (SHSTK_ENABLED): Likewise.
11706
11707 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11708
11709 [BZ #23208]
11710 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11711 (LOCALES): Likewise.
11712 * localedata/dsb_DE.UTF-8.in: New file.
11713 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11714
11715 2018-07-12 Florian Weimer <fweimer@redhat.com>
11716
11717 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11718 __mprotect, not mprotect.
11719
11720 2018-07-11 Florian Weimer <fweimer@redhat.com>
11721
11722 * io/Makefile (headers): Add bits/statx.h.
11723
11724 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11725
11726 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11727 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11728 and headers.
11729 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11730 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11731 for utf8_gen.py
11732
11733 2018-07-10 Florian Weimer <fweimer@redhat.com>
11734
11735 * io/Makefile (routines): Add statx.
11736 (tests-internal): Add tst-statx.
11737 * io/Versions (GLIBC_2.28): Export statx.
11738 * io/bits/statx.h: New file.
11739 * io/sys/stat.h [__USE_GNU]: Include it.
11740 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11741 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11742 Define.
11743 * io/statx.c: New file.
11744 * io/statx_generic.: Likewise.
11745 * io/tst-statx.: Likewise.
11746 * include/bits/statx.h: Likewise.
11747 * sysdeps/unix/sysv/linux/kernel-features.h
11748 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11749 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11750 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11751 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11752 Undefine.
11753 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11754 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11755 * sysdeps/unix/sysv/linux/statx.c: New file.
11756 * manual/filesys.texi: Note that statx is undocumented.
11757 * sysdeps/**/libc*.abilist: Update.
11758
11759 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11760
11761 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11762 a kernel issue which lead to test failure in some cases.
11763
11764 2018-07-10 Florian Weimer <fweimer@redhat.com>
11765
11766 [BZ #23036]
11767 * posix/regexec.c (check_node_accept_bytes): When comparing
11768 weights, do not compare an extra byte after the end of the
11769 weights.
11770
11771 2018-07-10 Florian Weimer <fweimer@redhat.com>
11772
11773 * libio/readline.c: Fix copyright year.
11774 * libio/tst-readline.c Likewise.
11775 * nss/tst-nss-files-hosts-getent.c: Likewise.
11776
11777 2018-07-06 Florian Weimer <fweimer@redhat.com>
11778
11779 [BZ #18991]
11780 * nss/nss_files/files-XXX.c (internal_getent): Use
11781 __libc_readline_unlocked. Seek back to the start of the line if
11782 parsing failes with ERANGE.
11783 (get_contents_ret, get_contents): Remove.
11784 * nss/tst-nss-files-hosts-getent.c: New file.
11785 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11786 (tst-nss-files-hosts-getent): Link with -ldl.
11787
11788 2018-07-06 Florian Weimer <fweimer@redhat.com>
11789
11790 * include/stdio.h (__libc_readline_unlocked): Declare.
11791 (__ftello64, __fseeko64): Declare aliases.
11792 * libio/readline.c: New file.
11793 * libio/tst-readline.c: Likewise.
11794 (routines): Add readline.
11795 (tests-internal): Add tst-readlime.
11796 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11797 __libc_readline_unlocked.
11798 * libio/fseeko.c (__fseeko): Rename from fseeko.
11799 (fseeko): Add alias.
11800 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11801 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11802 (fseeko64): Add alias.
11803 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11804 * libio/ftello64.c (__ftello64): Rename from ftello64.
11805 (ftello64): Add alias.
11806
11807 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11808
11809 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11810 HWCAP_ATOMICS.
11811
11812 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11813
11814 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11815 Use dl_hwcap without masking.
11816 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11817 Remove HWCAP_CPUID.
11818
11819 2018-07-06 Florian Weimer <fweimer@redhat.com>
11820
11821 * conform/conformtest.pl (checknamespace): Escape literal braces
11822 in regular expressions.
11823
11824 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11825
11826 * sysdeps/x86/cpu-features.c (get_common_indeces):
11827 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11828 * sysdeps/x86/cpu-features.c (init_cpu_features):
11829 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11830
11831 2018-07-05 Florian Weimer <fweimer@redhat.com>
11832
11833 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11834 protector.
11835 (CFLAGS-elf-init.oS): Likewise.
11836
11837 2018-07-05 Florian Weimer <fweimer@redhat.com>
11838 Carlos O'Donell <carlos@redhat.com>
11839
11840 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11841 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11842 with stack protector enabled because there is no risk of infinite
11843 recursion.
11844
11845 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11846
11847 [BZ #19818]
11848 [BZ #23307]
11849 * libc-abis (ABSOLUTE): New ABI.
11850 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11851 * NEWS: Mention the new ABI.
11852
11853 2018-07-05 Florian Weimer <fweimer@redhat.com>
11854
11855 [BZ # 17662]
11856 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11857 (RENAME_WHITEOUT): Define.
11858 [__USE_GNU] (renameat2): Declare.
11859 * stdio-common/Makefile (routines): Add renameat2.
11860 (tests): Add tst-renameat2.
11861 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11862 * stdio-common/renameat2.c: New file.
11863 * stdio-common/tst-renameat2.c: Likewise.
11864 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11865 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11866 undocumented.
11867 * sysdeps/unix/sysv/linux/kernel-features.h
11868 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11869 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11870 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11871 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11872 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11873 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11874 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11875 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11876 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11877 * include/stdio.h (__renameat): Add alias for renameat.
11878 * stdio-common/renameat.c (__renameat): Rename from renameat.
11879 Add hidden definition and alias.
11880 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11881 * sysdeps/mach/hurd/renameat.c: Likewise.
11882 * sysdeps/**/libc*.abilist: Add renameat2.
11883
11884 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11885
11886 * posix/bug-regex33.c: Fix build after regex sync.
11887
11888 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11889
11890 [BZ #23164]
11891 * localedata/tst-langinfo-setlocale.c: New file.
11892 * localedata/tst-langinfo-setlocale-static.c: New file.
11893 * localedata/tst-langinfo-newlocale.c: New file.
11894 * localedata/tst-langinfo-newlocale-static.c: New file.
11895 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11896 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11897 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11898 (tests-static): Remove tst-langinfo-static. Add
11899 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11900 (tests-special): Remove $(objpfx)tst-langinfo.out,
11901 $(objpfx)tst-langinfo-static.out. Add
11902 $(objpfx)tst-langinfo-setlocale.out,
11903 $(objpfx)tst-langinfo-newlocale.out,
11904 $(objpfx)tst-langinfo-setlocale-static.out,
11905 $(objpfx)tst-langinfo-newlocale-static.out.
11906 ($(objpfx)tst-langinfo.out): Remove.
11907 ($(objpfx)tst-langinfo-static.out): Remove.
11908 ($(objpfx)tst-langinfo-newlocale.out): New target.
11909 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11910 (test-xfail-tst-langinfo-newlocale-static): Add.
11911 ($(objpfx)tst-langinfo-setlocale.out): New target.
11912 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11913 * localedata/tst-langinfo.c: Call test_locale.
11914 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11915 data.
11916
11917 2018-07-04 Florian Weimer <fweimer@redhat.com>
11918
11919 testrun.sh: Implement --tool=strace, --tool=valgrind
11920 * Makefile (testrun-script): Define variable.
11921 (testrun.sh): Use variable.
11922 * manual/install.texi (Tools for Compilation): make 4.0 or later
11923 is required.
11924 * configure.ac: Check for make 4.0 or later.
11925 * INSTALL: Regenerate.
11926 * configure: Likewise.
11927
11928 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11929
11930 [BZ #23233]
11931 [BZ #21163]
11932 [BZ #18986]
11933 [BZ #13762]
11934 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11935 * posix/PCRE.tests: Remove invalid test.
11936 * posix/bug-regex28.c: Fix expected values for used syntax.
11937 * posix/bug-regex37.c: New file.
11938 * posix/bug-regex38.c: Likewise.
11939 * posix/regcomp.c: Sync with gnulib.
11940 * posix/regex.c: Likewise.
11941 * posix/regex.h: Likewise.
11942 * posix/regex_internal.c: Likewise.
11943 * posix/regex_internal.h: Likewise.
11944 * posix/regexec.c: Likewise.
11945
11946 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11947
11948 [BZ #23308]
11949 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11950 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11951 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11952 * localedata/unicode-gen/PropList.txt: likewise.
11953 * localedata/unicode-gen/UnicodeData.txt: likewise.
11954 * localedata/charmaps/UTF-8: Regenerate.
11955 * localedata/locales/i18n_ctype: likewise.
11956 * localedata/locales/tr_TR: likewise.
11957 * localedata/locales/translit_circle: likewise.
11958 * localedata/locales/translit_cjk_compat: likewise.
11959 * localedata/locales/translit_combining: likewise.
11960 * localedata/locales/translit_compat: likewise.
11961 * localedata/locales/translit_font: likewise.
11962 * localedata/locales/translit_fraction: likewise.
11963
11964 2018-07-03 Florian Weimer <fweimer@redhat.com>
11965
11966 [BZ #23363]
11967 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11968 * stdio-common/tst-printf.sh: Adjust expected output.
11969 * LICENSES: Update.
11970
11971 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11972
11973 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11974 symbol.
11975
11976 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11977
11978 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11979 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11980 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11981 * stdio-common/tst-printfsz-islongdouble.c: New file.
11982 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11983 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11984 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11985 [subdir == stdio-common] (tests-internal): Add
11986 test-printf-size-ieee128, and test-printf-size-ibm128.
11987 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11988 (CFLAGS-test-printf-size-ibm128.c): New variables.
11989 [subdir == stdio-common] (tests-special): Add
11990 $(objpfx)test-printf-size-ieee128.out and
11991 $(objpfx)test-printf-size-ibm128.out.
11992 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11993 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11994 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11995 __printf_sizeieee128.
11996 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11997 New file.
11998 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11999 Likewise.
12000 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12001 Likewise.
12002
12003 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12004
12005 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12006 (exp2f_inline): Likewise.
12007 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12008 (__math_uflowf): Likewise.
12009 (__math_may_uflowf): Likewise.
12010 (__math_divzerof): Likewise.
12011 (__math_invalidf): Likewise.
12012 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12013 (__math_oflowf): Likewise.
12014 (__math_uflowf): Likewise.
12015 (__math_may_uflowf): Likewise.
12016 (__math_divzerof): Likewise.
12017 (__math_invalidf): Likewise.
12018
12019 2018-06-29 DJ Delorie <dj@redhat.com>
12020 Carlos O'Donell <carlos@redhat.com>
12021
12022 [BZ #23329]
12023 * include/libc-symbols.h: Comment the freeres framework.
12024 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12025 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12026 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12027 * dlfcn/dlerror.c: Include libc-symbols.h
12028 (__dlerror_main_freeres): New function.
12029 * dlfcn/dlfreeres.c: New file.
12030 * dlfcn/sdlfreeres.c: New file.
12031 * include/dlfcn.h: Declare __dlerror_main_freeres.
12032 * malloc/set-freeres.c: Declare __libdl_freeres, and
12033 __libpthread_freeres.
12034 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12035 the releavant libraries are loaded.
12036 * malloc/thread-freeres.c: Add comments.
12037 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12038 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12039 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12040 (__free_stacks): Rename to...
12041 (free_stacks): ...this. Mark static.
12042 (queue_stack): Call free_stacks.
12043 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12044 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12045 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12046 ptr_freeres element from struct.
12047 (pthread_functions): Remove .ptr_freeres from struct initializer.
12048 [SHARED] (nptl_freeres): Remove.
12049 * nptl/nptlfreeres.c: New file.
12050 * nptl/pthreadP.h
12051 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12052 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12053 attribute_hidden.
12054 (__free_stacks): Rename to...
12055 (__nptl_stacks_freeres): ...this.
12056 (__shm_directory_freeres): Declare.
12057 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12058 (__nptl_unwind_freeres): ...this.
12059 * resolv/res-close.c: Add comment.
12060 * resolv/resolv_conf.c: Include libc-symbols.h.
12061 * string/strerror_l.c: Include libc-symbols.h.
12062 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12063 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12064 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12065 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12066
12067 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12068
12069 * stdlib/tst-strfmon_l.c: Add tests for long double.
12070
12071 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12072
12073 [BZ #23208]
12074 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12075 * localedata/locales/dsb_DE: New file.
12076
12077 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12078
12079 [BZ #23140]
12080 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12081 genitive case).
12082 (alt_mon): New entry, import from CLDR (nominative case).
12083
12084 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12085
12086 [BZ #22996]
12087 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12088
12089 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12090
12091 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12092 Use vector registers.
12093
12094 * sysdeps/aarch64/multiarch/memmove_falkor.S
12095 (__memcpy_falkor): Use vector registers.
12096
12097 2018-06-29 Martin Sebor <msebor@redhat.com>
12098
12099 * manual/stdio.texi (Customizing Printf): Mention interaction
12100 with GCC built-ins.
12101
12102 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12103
12104 [BZ #23307]
12105 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12106 `st_value' is 0 if `st_shndx' is SHN_ABS.
12107 * elf/tst-absolute-zero.c: New file.
12108 * elf/tst-absolute-zero-lib.c: New file.
12109 * elf/tst-absolute-zero-lib.lds: New file.
12110 * elf/Makefile (tests): Add `tst-absolute-zero'.
12111 (modules-names): Add `tst-absolute-zero-lib'.
12112 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12113 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12114 ($(objpfx)tst-absolute-zero: New dependency.
12115
12116 2018-06-29 Zack Weinberg <zackw@panix.com>
12117
12118 * configure.ac: New command-line option --disable-crypt.
12119 Force --disable-nss-crypt when --disable-crypt is given, with a
12120 warning if it was explicitly enabled.
12121 * configure: Regenerate.
12122 * config.make.in: New boolean substitution variable $(build-crypt).
12123 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12124 when $(build-crypt).
12125 * manual/install.texi: Document --disable-crypt.
12126 * INSTALL: Regenerate.
12127
12128 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12129 which is never set.
12130 * conform/Makefile: Only include libcrypt.a in
12131 linknamespace-libs-xsi and linknamespace-libs-XPG4
12132 when $(build-crypt).
12133 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12134 USE_CRYPT to 1 when $(build-crypt).
12135 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12136 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12137 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12138
12139 2018-06-29 Zack Weinberg <zackw@panix.com>
12140
12141 * crypt/crypt.h, posix/unistd.h: Update comments and
12142 prototypes for crypt and crypt_r.
12143
12144 * manual/crypt.texi (Cryptographic Functions): New initial
12145 exposition.
12146 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12147 (Unpredictable Bytes): Improve initial exposition. Clarify error
12148 behavior of getentropy and getrandom.
12149 * manual/examples/genpass.c: Generate a salt using getentropy
12150 instead of the current time. Use hash $5$ (SHA-2-256).
12151 * manual/examples/testpass.c: Demonstrate validation against
12152 hashes generated with three different one-way functions.
12153
12154 * manual/intro.texi: crypt.texi does not need an overview
12155 anymore.
12156
12157 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12158 * manual/terminal.texi: Consistently refer to "passphrases"
12159 * instead of "passwords", and to the "user database" instead
12160 * of the "password database".
12161 * manual/users.texi: Similarly. Add notes about how actual
12162 passphrase hashes are now stored in the shadow database.
12163 Remove 20-year-old junk todo note.
12164
12165 2018-06-29 Zack Weinberg <zackw@panix.com>
12166
12167 * manual/crypt.texi: Use a normal top-level @node declaration.
12168 Move most of the introductory text to the 'crypt' section.
12169 Move the example programs below the @deftypefun for 'crypt_r'.
12170 Move the 'getpass' section...
12171 * manual/terminal.texi: ...here.
12172
12173 2018-06-29 Zack Weinberg <zackw@panix.com>
12174 Florian Weimer <fweimer@redhat.com>
12175
12176 * posix/unistd.h: Do not declare encrypt.
12177 (_XOPEN_CRYPT): Remove macro definition.
12178 (crypt): Declare only for _USE_MISC.
12179 * stdlib/stdlib.h: Do not declare setkey.
12180 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12181 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12182
12183 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12184 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12185 into compat symbols. Don't define initial_perm if it's not
12186 going to be used.
12187 * crypt/cert.c: Link explicitly with the expected versions for
12188 setkey and encrypt. If they are not available at all, mark
12189 the test as unsupported.
12190
12191 * sunrpc/des_crypt.c: Unconditionally block linkage with
12192 cbc_crypt and ecb_crypt for new binaries.
12193 * sunrpc/des_soft.c: Unconditionally block linkage with
12194 des_setparity for new binaries.
12195
12196 * manual/crypt.texi: Remove the entire "DES Encryption"
12197 section. Also remove the paragraph talking about FIPS 140-2
12198 from the introduction.
12199 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12200 of libgcrypt for "real" encryption, not DES.
12201 * manual/conf.texi (Constants for Sysconf): Mention that
12202 _XOPEN_CRYPT is no longer impelemented.
12203
12204 * conform/data/unistd.h-data: Remove crypt function declaration.
12205
12206 2018-06-29 Florian Weimer <fweimer@redhat.com>
12207
12208 [BZ #23351]
12209 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12210 (disallow_malloc_check): Remove variable.
12211 (__malloc_check_init): Adjust.
12212 (malloc_set_state): Update comment.
12213 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12214 declarations.
12215
12216 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12217
12218 [BZ #23140]
12219 * localedata/locales/ast_ES (mon): Rename to...
12220 (alt_mon): This.
12221 (mon): Import from CLDR (genitive case).
12222
12223 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12224 Jakub Sitnicki <jkbs@redhat.com>
12225
12226 [BZ #21812]
12227 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12228 on NLM_F_DUMP_INTR.
12229
12230 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12231
12232 * manual/llio.texi: Remove spurious space.
12233
12234 2018-06-28 Florian Weimer <fweimer@redhat.com>
12235
12236 [BZ #23349]
12237 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12238 _STRUCT_TIMESPEC.
12239
12240 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12241
12242 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12243 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12244 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12245 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12246 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12247 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12248 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12249
12250 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12251
12252 [BZ #23266]
12253 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12254 Copy and null-terminate entries that are not terminated, in
12255 addition to empty ones.
12256
12257 2018-06-27 Florian Weimer <fweimer@redhat.com>
12258
12259 [BZ #18023]
12260 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12261 (extend_alloca_account): Remove.
12262 * manual/stdio.texi (Variable Arguments Output): Update comment.
12263
12264 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12265
12266 * nptl/sockperf.c: Remove file.
12267
12268 2018-06-27 Florian Weimer <fweimer@redhat.com>
12269
12270 [BZ #18023]
12271 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12272 scratch_buffer instead of extend_alloca.
12273
12274 2018-06-27 Florian Weimer <fweimer@redhat.com>
12275
12276 [BZ #18023]
12277 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12278 scratch_buffer instead of extend_alloca. Update comments.
12279
12280 2018-06-27 Florian Weimer <fweimer@redhat.com>
12281
12282 [BZ #18023]
12283 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12284 instead of extend_alloca.
12285
12286 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12287
12288 [BZ #13888]
12289 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12290 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12291 /tmp.
12292 * scripts/test-installation.pl: Put temporary files in build
12293 directory, not /tmp.
12294 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12295 (CFLAGS-bug4.c): Likewise.
12296 (CFLAGS-bug5.c): Likewise.
12297 (CFLAGS-test-fseek.c): Likewise.
12298 (CFLAGS-test-popen.c): Likewise.
12299 (CFLAGS-test_rdwr.c): Likewise.
12300 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12301 /tmp.
12302 * stdio-common/bug4.c (main): Likewise.
12303 * stdio-common/bug5.c (main): Likewise.
12304 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12305 * stdio-common/test-popen.c (do_test): Likewise.
12306 * stdio-common/test_rdwr.c (main): Likewise.
12307
12308 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12309
12310 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12311 (sem_open): Set sem.newsem.pad to zero for valgrind.
12312
12313 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12314
12315 [BZ #20251]
12316 * NEWS: Mention fcntl64 addition.
12317 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12318 * login/utmp_file.c: Likewise.
12319 * sysdeps/posix/fdopendir.c: Likewise.
12320 * sysdeps/posix/opendir.c: Likewise.
12321 * sysdeps/unix/pt-fcntl.c: Likewise.
12322 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12323 __fcntl64_nocancel_adjusted): New prototype.
12324 (__fcntl_nocancel_adjusted): Remove prototype.
12325 * io/Makefile (routines): Add fcntl64.
12326 (CFLAGS-fcntl64.c): New rule.
12327 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12328 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12329 * io/fcntl.h (fcntl64): Add prototype and redirect if
12330 __USE_FILE_OFFSET64 is defined.
12331 * io/fcntl64.c: New file.
12332 * manual/llio.text: Add a note for which commands fcntl acts a
12333 cancellation point.
12334 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12335 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12336 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12337 New symbols.
12338 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12339 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12340 non-LFS case.
12341 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12342 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12343 to __fcntl64_nocancel.
12344 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12345 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12346 to __fcntl64_nocancel.
12347 * sysdeps/generic/not-cancel.h: Likewise.
12348 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12349 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12350 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12351 (fcntl64): New symbol.
12352 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12363 fcntl64): Likewise.
12364 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12366 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12374 Likewise.
12375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12376 Likewise.
12377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12380
12381 2018-06-26 Florian Weimer <fweimer@redhat.com>
12382
12383 Run thread shutdown functions in an explicit order.
12384 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12385 definition.
12386 (__libc_thread_freeres): Call thread shutdown functions
12387 explicitly.
12388 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12389 * include/string.h (__strerror_thread_freeres): Declare.
12390 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12391 arena_thread_freeres. No longer static. Remove thread shutdown
12392 hook registration.
12393 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12394 Declare.
12395 * resolv/res-close.c (__res_thread_freeres): Renamed from
12396 res_thread_freeres. No longer static. Remove thread shutdown
12397 hook registration.
12398 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12399 * resolv/resolv_conf.c (freeres): Remove incorrect section
12400 attribute and use libc_freeres_fn.
12401 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12402 strerror_thread_freeres. No longer static. Remove thread
12403 shutdown hook registration.
12404 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12405 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12406 shutdown hook registration.
12407 * Makerules (shlib.lds): Do not provide section boundary symbols
12408 for __libc_thread_subfreeres.
12409 * manual/memory.texi (Basic Allocation): Update comment.
12410
12411 2018-06-26 Florian Weimer <fweimer@redhat.com>
12412
12413 Remove always-defined _RPC_THREAD_SAFE_ macro.
12414 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12415 Do not define _RPC_THREAD_SAFE_.
12416 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12417 conditional.
12418 * sunrpc/clnt_perr.c: Likewise.
12419 * sunrpc/clnt_raw.c: Likewise.
12420 * sunrpc/clnt_simp.c: Likewise.
12421 * sunrpc/key_call.c: Likewise.
12422 * sunrpc/rpc_common.c: Likewise.
12423 * sunrpc/rpc_main.c: Likewise.
12424 * sunrpc/rpc_thread.c: Likewise.
12425 * sunrpc/svc.c: Likewise.
12426 * sunrpc/svc_raw.c: Likewise.
12427 * sunrpc/svc_simple.c: Likewise.
12428 * sumrpc/svcauth_des.c: Likewise.
12429
12430 2018-06-26 Florian Weimer <fweimer@redhat.com>
12431
12432 * libio/Makefile (tests-internal): Add tst-vtables,
12433 tst-vtables-interposed.
12434 * libio/tst-vtables.c: New file.
12435 * libio/tst-vtables-common.c: Likewise.
12436 * libio/tst-vtables-interposed.c: Likewise.
12437
12438 2018-06-26 Florian Weimer <fweimer@redhat.com>
12439
12440 * support/support_test_main.c (support_test_main): Only call
12441 setvbuf if not disables.
12442 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12443 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12444
12445 2018-06-26 Florian Weimer <fweimer@redhat.com>
12446
12447 [BZ #23313]
12448 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12449
12450 2018-06-25 Florian Weimer <fweimer@redhat.com>
12451
12452 [BZ #18023]
12453 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12454 Use struct scratch_buffer instead of extend_alloca.
12455
12456 2018-06-25 Florian Weimer <fweimer@redhat.com>
12457
12458 [BZ #18023]
12459 * nss/getent.c (initgroups_keys): Use dynarray instead of
12460 extend_alloca.
12461
12462 2018-06-25 Florian Weimer <fweimer@redhat.com>
12463
12464 [BZ #18023]
12465 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12466 Use struct scratch_buffer instead of extend_alloca.
12467
12468 2018-06-25 Florian Weimer <fweimer@redhat.com>
12469
12470 [BZ #18023]
12471 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12472 back to malloc directly, without stack allocations.
12473
12474 2018-06-25 Florian Weimer <fweimer@redhat.com>
12475
12476 [BZ #18023]
12477 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12478 of extend_alloca.
12479
12480 2018-06-25 Florian Weimer <fweimer@redhat.com>
12481
12482 [BZ #18023]
12483 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12484 of extend_alloca.
12485 * nscd/hstcache.c (addhstbyX): Likewise.
12486 * nscd/pwdcache.c (addpwbyX): Likewise.
12487 * nscd/servicescache.c (addservbyX): Likewise.
12488
12489 2018-06-25 Florian Weimer <fweimer@redhat.com>
12490
12491 [BZ #18023]
12492 * nscd/connections.c (read_cmdline): New function.
12493 (restart): Use it. Update comment.
12494
12495 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12496
12497 [BZ #23140]
12498 * localedata/locales/csb_PL (mon): Rename to...
12499 (alt_mon): This.
12500 (abmon): Rename to...
12501 (ab_alt_mon): This.
12502 (mon): Add with proper genitive forms, copy from Wikipedia.
12503 (abmon): Likewise.
12504
12505 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12506
12507 [BZ #19485]
12508 * localedata/locales/csb_PL (mon): Fix typos:
12509 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12510 (yesstr): Add, value is "jo".
12511 (nostr): Add, value is "nié".
12512
12513 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12514
12515 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12516 all log1p and significand functions on m680x0.
12517 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12518 of s_significand.c..
12519 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12520 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12521 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12522 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12523 s_log1p.c and include it..
12524
12525 2018-06-21 Vincent Chen <vincentc@andestech.com>
12526
12527 * elf/elf.h (R_NDS32_NONE): New define.
12528 (R_NDS32_32_RELA): Likewise.
12529 (R_NDS32_COPY): Likewise.
12530 (R_NDS32_GLOB_DAT): Likewise.
12531 (R_NDS32_JUMP_SLOT): Likewise.
12532 (R_NDS32_RELATIVE): Likewise.
12533 (R_NDS32_TLS_TPOFF): Likewise.
12534 (R_NDS32_TLS_DESC): Likewise.
12535
12536 2018-06-21 Mark Wielaard <mark@klomp.org>
12537
12538 * elf/elf.h (R_BPF_MAP_FD): Removed.
12539 (R_BPF_64_64, R_BPF_64_32): New.
12540
12541 2018-06-21 Florian Weimer <fweimer@redhat.com>
12542
12543 [BZ #23253]
12544 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12545 Renamed from libc_feholdsetround_ctx.
12546 (default_libc_feresetround_ctx): Renamed from
12547 libc_feresetround_ctx.
12548 (default_libc_feholdsetround_noex_ctx): Renamed from
12549 libc_feholdsetround_noex_ctx.
12550 (default_libc_feresetround_noex_ctx): Renamed from
12551 libc_feresetround_noex_ctx.
12552 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12553 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12554 forwardning to the old implementations under the new names.
12555 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12556 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12557 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12558 (libc_feresetround_ctx): Forward to default implements for i386
12559 and MATH_SET_BOTH_ROUNDING_MODES.
12560 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12561 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12562
12563 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12564
12565 * string/tst-cmp.c: Include <libc-diag.h>.
12566 (strncmp_max): Disable -Wstringop-overflow= around call to
12567 strncmp.
12568 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12569 strncasecmp.
12570
12571 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12572 (main): Disable -Wunused-value around call to strpbrk.
12573 * string/bug-strspn1.c: Include <libc-diag.h>.
12574 (main): Disable -Wunused-value around call to strspn.
12575
12576 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12577 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12578
12579 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12580 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12581
12582 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12583
12584 * math/Makefile (libm-calls): Move s_significandF to...
12585 (gen-libm-calls): ... here.
12586 * math/s_significand_template.c: New file.
12587 * math/s_significand.c: Removed.
12588 * math/s_significandf.c: Removed.
12589 * math/s_significandl.c: Removed.
12590 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12591 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12592
12593 * math/e_exp2_template.c (declare_mgen_finite_alias,
12594 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12595 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12596 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12597
12598 2018-06-20 Florian Weimer <fweimer@redhat.com>
12599
12600 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12601
12602 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12603
12604 [BZ #23280]
12605 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12606 floating-point number to strtod functions rather than possibly
12607 negating result of those functions.
12608 * stdio-common/tst-scanf-round.c: New file.
12609 * stdio-common/Makefile (tests): Add tst-scanf-round.
12610 ($(objpfx)tst-scanf-round): Depend on $(libm).
12611
12612 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12613
12614 * sysdeps/mach/hurd/localplt.data: Move to...
12615 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12616 R_386_GLOB_DAT like on Linux i386.
12617
12618 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12619
12620 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12621 (SHM_STAT_ANY): New macro.
12622 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12623 (SHM_STAT_ANY): Likewise.
12624 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12625 (SHM_STAT_ANY): Likewise.
12626 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12627 (SHM_STAT_ANY): Likewise.
12628 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12629 (SHM_STAT_ANY): Likewise.
12630 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12631 (SHM_STAT_ANY): Likewise.
12632 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12633 (SHM_STAT_ANY): Likewise.
12634 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12635 (SHM_STAT_ANY): Likewise.
12636 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12637 (SHM_STAT_ANY): Likewise.
12638 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12639 (SHM_STAT_ANY): Likewise.
12640 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12641 (SHM_STAT_ANY): Likewise.
12642 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12643 (SHM_STAT_ANY): Likewise.
12644
12645 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12646 (SEM_STAT_ANY): New macro.
12647 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12648 (SEM_STAT_ANY): Likewise.
12649 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12650 (SEM_STAT_ANY): Likewise.
12651 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12652 (SEM_STAT_ANY): Likewise.
12653 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12654 (SEM_STAT_ANY): Likewise.
12655 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12656 (SEM_STAT_ANY): Likewise.
12657 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12658 (SEM_STAT_ANY): Likewise.
12659 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12660 (SEM_STAT_ANY): Likewise.
12661 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12662 (SEM_STAT_ANY): Likewise.
12663 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12664 (SEM_STAT_ANY): Likewise.
12665
12666 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12667 (MSG_STAT_ANY): New macro.
12668 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12669 (MSG_STAT_ANY): Likewise.
12670 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12671 (MSG_STAT_ANY): Likewise.
12672 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12673 (MSG_STAT_ANY): Likewise.
12674 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12675 (MSG_STAT_ANY): Likewise.
12676 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12677 (MSG_STAT_ANY): Likewise.
12678 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12679 (MSG_STAT_ANY): Likewise.
12680 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12681 (MSG_STAT_ANY): Likewise.
12682 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12683 (MSG_STAT_ANY): Likewise.
12684 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12685 (MSG_STAT_ANY): Likewise.
12686
12687 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12688 (MAP_TYPE): Change value to 0x2b.
12689
12690 2018-06-18 Florian Weimer <fweimer@redhat.com>
12691
12692 [BZ #15722]
12693 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12694 socket with SOCK_CLOEXEC.
12695
12696 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12697
12698 [BZ #23303]
12699 * sysdeps/powerpc/powerpc64/le/Makefile
12700 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12701 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12702 (gnulib-tests): Also add $(f128-loader-link) for
12703 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12704
12705 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12706
12707 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12708 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12709 of sendfile.
12710 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12711 (sendfile64): New strong alias.
12712 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12713 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12714 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12715 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12716 attribute.
12717 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12718 ___pthread_get_cleanup_stack.
12719 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12720 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12721 * mach/shortcut.awk: Make syscall stubs include
12722 <mach-shortcuts-hidden.h> and add hidden definition.
12723 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12724 (__mach_msg): Add hidden prototype.
12725 * mach/msg.c: Include <mach.h>.
12726 (__mach_msg): Add hidden definition.
12727 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12728 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12729 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12730 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12731 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12732 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12733 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12734 prototype and definition.
12735 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12736 hidden target for _hurd_self_sigstate.
12737
12738 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12739
12740 [BZ #23007]
12741 * stdlib/tst-strtod-nan-sign-main.c: New file.
12742 * stdlib/tst-strtod-nan-sign.c: Likewise.
12743 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12744 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12745 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12746 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12747 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12748
12749 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12750
12751 [BZ #23007]
12752 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12753 appropriate sign.
12754
12755 2018-06-14 Florian Weimer <fweimer@redhat.com>
12756
12757 [BZ #23290]
12758 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12759 that the result stays within the ISO-8859-1 range.
12760 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12761 characters are defined in IBM273.
12762
12763 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12764
12765 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12766 __mach_task_self): Remove attribute_hidden.
12767
12768 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12769
12770 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12771 ignore -Wrestrict for one test.
12772
12773 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12774 Szabolcs Nagy <szabolcs.nagy@arm.com>
12775
12776 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12777
12778 2018-06-14 Florian Weimer <fweimer@redhat.com>
12779
12780 * scripts/update-abilist.sh: Accept empty list of files to patch.
12781
12782 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12783
12784 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12785 test-xfail-check-abi-libmachuser): Add.
12786 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12787 __libc_read and __libc_write to __read and __write.
12788 * sysdeps/hurd/include/hurd/port.h: New file.
12789 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12790 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12791 __thread_switch, __evc_wait): Move declarations to...
12792 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12793 attribute_hidden.
12794 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12795 use PLT to call _hurd_self_sigstate.
12796
12797 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12798
12799 [BZ #23279]
12800 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12801 MAX_EXP as overflowing.
12802 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12803 overflow flag.
12804 (round_str): Output also whether result overflows in each rounding
12805 mode.
12806 * stdlib/tst-strtod-round-data: Add more tests.
12807 * stdlib/tst-strtod-round-data.h: Regenerated.
12808 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12809 (TEST): Handle extra arguments for overflow flags.
12810 (struct test_overflow): New type.
12811 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12812 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12813 (test_in_one_mode): Take argument with overflow information.
12814 (do_test): Update calls to test_in_one_mode.
12815
12816 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12817
12818 * elf/dl-load (_dl_dst_substitute): Correct comment.
12819 (_dl_dst_count): Likewise.
12820
12821 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12822 lll_futex_timed_wait.
12823
12824 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12825
12826 [BZ #23277]
12827 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12828 attribute.
12829 * math/test-nan-const.c: New file.
12830 * math/Makefile (tests): Add test-nan-const.
12831 (CFLAGS-test-nan-const.c): New variable.
12832
12833 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12834
12835 * benchtests/scripts/compare_strings.py (process_results): Add
12836 funcs argument. Compare only functions which are selected.
12837 (main): Check if base function is among selected functions.
12838 Pass selected functions to process_results.
12839 (__main__): Add -f/--functions argument.
12840
12841 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12842 Hongbo Zhang <hongbo.zhang@linaro.org>
12843
12844 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12845 __memcpy_falkor for phecda core.
12846 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12847 __memmove_falkor for phecda core.
12848 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12849 __memset_falkor for phecda core.
12850 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12851 for phecda core.
12852 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12853 macro to identify phecda core.
12854
12855 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12856 Andreas Schwab <schwab@suse.de>
12857 Dmitry V. Levin <ldv@altlinux.org>
12858 Florian Weimer <fweimer@redhat.com>
12859
12860 [BZ #23102]
12861 [BZ #21942]
12862 [BZ #18018]
12863 [BZ #23259]
12864 CVE-2011-0536
12865 * elf/dl-dst.h: Remove DL_DST_COUNT.
12866 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12867 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12868 (is_dst): Comment. Support ELF gABI.
12869 (_dl_dst_count): Comment. Simplify and count DSTs.
12870 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12871 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12872 locals.
12873
12874 2018-06-12 Zack Weinberg <zackw@panix.com>
12875
12876 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12877 * sysdeps/unix/sysv/linux/dl-sysdep.c
12878 Include not-cancel.h. Use __close_nocancel instead of __close,
12879 __open64_nocancel instead of __open, __read_nocancel instead of
12880 __libc_read, and __write_nocancel instead of __libc_write.
12881
12882 * csu/check_fds.c (check_one_fd)
12883 * sysdeps/posix/fdopendir.c (__fdopendir)
12884 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12885 instead of __fcntl and/or __libc_fcntl.
12886
12887 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12888 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12889 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12890 Use __open64_nocancel instead of __open_nocancel.
12891
12892 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12893 hidden_proto declarations to the end and issue them if either
12894 IS_IN(libc) or IS_IN(rtld).
12895 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12896 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12897 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12898 read_nocancel, waitpid_nocancel, write_nocancel.
12899
12900 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12901 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12902 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12903
12904 * nptl/pt-fcntl.c: New file.
12905 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12906 (libpthread-routines): Add pt-fcntl.
12907 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12908 (__libc_fcntl): Remove attribute_hidden.
12909 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12910 __fcntl_nocancel_adjusted, not fcntl_common.
12911 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12912 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12913 to fcntl_nocancel.c.
12914 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12917 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12918
12919 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12920 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12921 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12922 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12923 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12924 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12925 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12926 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12927 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12928 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12929 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12930 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12931 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12932 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12933 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12934 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12935 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12936 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12937 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12938 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12939
12940 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12941 libpthread-routines.
12942 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12943 defines nothing.
12944
12945 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12946 __libc_read, and __write instead of __libc_write. Define
12947 __open64 in addition to __open.
12948
12949 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12950
12951 [BZ #23250]
12952 [BZ #10686]
12953 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12954 to _private_tm[3] and add __glibc_reserved2.
12955 Add _Static_assert of offset of __private_ss == 0x30.
12956 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12957 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12958
12959 2018-06-12 Florian Weimer <fweimer@redhat.com>
12960
12961 x86: Make strncmp usable from rtld.
12962 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12963 __strncmp_ia32 if in libc (and not in rtld).
12964 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12965 strncmp if not in libc (and not to __strncmp_sse2).
12966
12967 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12968
12969 [BZ #23140]
12970 * localedata/locales/gd_GB (mon): Rename to...
12971 (alt_mon): This.
12972 (mon): Import from CLDR (genitive case).
12973 * localedata/locales/hsb_DE (mon): Rename to...
12974 (alt_mon): This.
12975 (mon): Import from CLDR (genitive case).
12976 * localedata/locales/wa_BE (mon): Rename to...
12977 (alt_mon): This.
12978 (mon): Add, fill with the proper genitive forms, but CLDR data
12979 is incomplete; completed according to the comments in this file.
12980 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12981
12982 * localedata/locales/wa_BE (country_name): Reword
12983 "Beljike" -> "Beldjike".
12984
12985 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12986
12987 [BZ #23272]
12988 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12989 cases of non-finite arguments.
12990 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12991
12992 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12993
12994 [BZ #23174]
12995 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12996
12997 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12998
12999 [BZ #23264]
13000 * include/unistd.h (__execvpex): New prototype.
13001 * posix/Makefile (tests): Add tst-spawn4.
13002 (tests-internal): Add tst-spawn4-compat.
13003 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13004 * posix/tst-spawn4-compat.c: New file.
13005 * posix/tst-spawn4.c: Likewise.
13006 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13007 binaries as shell scripts.
13008 * sysdeps/posix/spawni.c (__spawni): Likewise.
13009
13010 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13011
13012 [BZ #23145]
13013 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13014 ($(all-built-dso:=.dynsym): New target.
13015 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13016 ($(objpfx)check-initfini.out): New target.
13017 (generated): Add check-initfini.out.
13018 * scripts/check-initfini.awk: New file.
13019 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13020 (_fini): Likewise.
13021 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13022 (_fini): Likewise.
13023 * sysdeps/arm/crti.S (_init): Mark as hidden.
13024 (_fini): Likewise.
13025 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13026 (_fini): Likewise.
13027 * sysdeps/i386/crti.S (_init): Mark as hidden.
13028 (_fini): Likewise.
13029 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13030 (_fini): Likewise.
13031 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13032 (_fini): Likewise.
13033 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13034 (_fini): Likewise.
13035 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13036 (_fini): Likewise.
13037 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13038 (_fini): Likewise.
13039 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13040 (_fini): Likewise.
13041 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13042 (_fini): Likewise.
13043 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13044 (_fini): Likewise.
13045 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13046 (_fini): Likewise.
13047 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13048 (_fini): Likewise.
13049 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13050 (_fini): Likewise.
13051 * sysdeps/sh/crti.S (_init): Mark as hidden.
13052 (_fini): Likewise.
13053 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13054 (_fini): Likewise.
13055 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13056 (_fini): Likewise.
13057
13058 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13059
13060 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13061 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13062 and TF redirection to KFtype and KF only when the default
13063 long double type is not the IEEE 128-bit floating point type.
13064
13065 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13066
13067 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13068 macro.
13069 (HWCAP_USCAT): Likewise.
13070 (HWCAP_ILRCPC): Likewise.
13071 (HWCAP_FLAGM): Likewise.
13072 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13073 Increase to 28.
13074 (_dl_aarch64_cap_flags): Add new flag names.
13075
13076 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13077 (MAP_FIXED_NOREPLACE): New macro.
13078 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13079 (MAP_FIXED_NOREPLACE): Likewise.
13080 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13081 (MAP_FIXED_NOREPLACE): Likewise.
13082 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13083 (MAP_FIXED_NOREPLACE): Likewise.
13084 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13085 (MAP_FIXED_NOREPLACE): Likewise.
13086 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13087 (MAP_FIXED_NOREPLACE): Likewise.
13088 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13089 (MAP_FIXED_NOREPLACE): Likewise.
13090 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13091 (MAP_FIXED_NOREPLACE): Likewise.
13092 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13093 (MAP_FIXED_NOREPLACE): Likewise.
13094 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13095 (MAP_FIXED_NOREPLACE): Likewise.
13096 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13097 (MAP_FIXED_NOREPLACE): Likewise.
13098 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13099 (MAP_FIXED_NOREPLACE): Likewise.
13100 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13101 (MAP_FIXED_NOREPLACE): Likewise.
13102 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13103 (MAP_FIXED_NOREPLACE): Likewise.
13104 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13105 (MAP_FIXED_NOREPLACE): Likewise.
13106
13107 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13108 version to 4.17.
13109
13110 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13111
13112 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13113 version to 4.17
13114
13115 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13116
13117 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13118 int.
13119 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13120
13121 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13122
13123 * benchtests/scripts/compare_string.py: (process_results) Catch
13124 exception in non-existent base_func and catch exception in
13125 non-existent attribute.
13126 (parse_file) Catch exception if input file does not exist.
13127
13128 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13129
13130 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13131 options to avoid diff calculation and omit header, respectively.
13132 (main): process --no-diff and --no-header
13133
13134 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13135 H.J. Lu <hongjiu.lu@intel.com>
13136
13137 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13138 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13139 wcsncmp-sse2.
13140 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13141 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13142 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13143 and __wcsncmp_sse2.
13144 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13145 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13146 AVX unaligned load is fast and vzeroupper is preferred.
13147 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13148 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13149 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13150 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13151 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13152 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13153 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13154 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13155 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13156 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13157 is undefined.
13158
13159 2018-06-01 Florian Weimer <fweimer@redhat.com>
13160
13161 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13162 configuring with --disable-multi-arch, building with
13163 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13164 Haswell-era CPU.
13165
13166 2018-06-01 Florian Weimer <fweimer@redhat.com>
13167
13168 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13169 results from building with “-march=x86-64 -mtune=generic
13170 -mfpmath=sse” and running on a Haswell-era CPU.
13171
13172 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13173
13174 [BZ #18473]
13175 * soft-fp/sqrttf2.c: Remove file.
13176 * soft-fp/sqrtdf2.c: Move to ....
13177 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13178 <shlib-compat.h>.
13179 (__sqrtdf2): Make conditional on
13180 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13181 symbol.
13182 * soft-fp/sqrtsf2.c: Move to ....
13183 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13184 <shlib-compat.h>.
13185 (__sqrtsf2): Make conditional on
13186 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13187 symbol.
13188 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13189 (gcc-double-routines): Remove sqrtdf2.
13190 (gcc-quad-routines): Remove sqrttf2.
13191 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13192 Do not filter out sqrtsf2 and sqrtdf2.
13193 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13194 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13195
13196 2018-06-01 Florian Weimer <fweimer@redhat.com>
13197
13198 * sysdeps/generic/libcidn.abilist: Remove file.
13199
13200 2018-06-01 Florian Weimer <fweimer@redhat.com>
13201
13202 [BZ #23236]
13203 * libio/strfile.h (struct _IO_str_fields): Rename members to
13204 discourage their use and add comment.
13205 (_IO_STR_DYNAMIC): Remove unused macro.
13206 * libio/strops.c (_IO_str_init_static_internal): Do not use
13207 callback pointers. Call malloc and free.
13208 (_IO_str_overflow): Do not use callback pointers. Call malloc
13209 and free.
13210 (enlarge_userbuf): Likewise.
13211 (_IO_str_finish): Call free.
13212 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13213 _allocate_buffer_unused.
13214 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13215 and free.
13216 (enlarge_userbuf): Likewise.
13217 (_IO_wstr_finish): Call free.
13218 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13219 _allocate_buffer_unused, _free_buffer_unused.
13220 * libio/memstream.c (__open_memstream): Likewise.
13221 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13222 * libio/wmemstream.c (open_wmemstream): Likewise.
13223
13224 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13225
13226 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13227 AMD Ryzen 7 1800X.
13228
13229 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13230
13231 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13232 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13233 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13234 New file.
13235 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13236 Likewise.
13237 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13238
13239 2018-05-29 Florian Weimer <fweimer@redhat.com>
13240
13241 * support/Makefile (libsupport-routines): Add
13242 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13243 xpthread_barrierattr_setpshared.
13244 * support/xpthread_barrierattr_destroy.c: New file.
13245 * support/xpthread_barrierattr_init.c: Likewise.
13246 * support/xpthread_barrierattr_setpshared.c: Likewise.
13247
13248 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13249
13250 [BZ #23206]
13251 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13252 _r_debug and update DT_DEBUG for debugger.
13253
13254 2018-05-29 Florian Weimer <fweimer@redhat.com>
13255
13256 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13257 (tst-strtod5i.out): Likewise.
13258
13259 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13260
13261 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13262 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13263 (sparc64-quad-routines): New variable. Moved from ....
13264 [$(subdir) = soft-fp] (sysdep_routines): Add
13265 $(sparc64-quad-routines). Moved from ....
13266 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13267 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13268 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13269 moved from ....
13270 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13271 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13272 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13273 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13274 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13275 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13276 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13277 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13278 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13279 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13280 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13281 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13282 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13283 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13284 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13285 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13286 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13287 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13288 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13289 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13290 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13291 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13292 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13293 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13294 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13295 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13296 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13297 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13298 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13299 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13300 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13301 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13302 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13303 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13304 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13305 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13306 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13307 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13308 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13309 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13310 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13311 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13312 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13313 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13314 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13315 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13316 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13317 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13318 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13319 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13320 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13321 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13322 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13323 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13324 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13325 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13326 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13327 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13328
13329 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13330 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13331 (sparc32-quad-routines): New variable. Moved from ....
13332 [$(subdir) = soft-fp] (sysdep_routines): Add
13333 $(sparc32-quad-routines). Moved from ....
13334 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13335 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13336 moved from ....
13337 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13338 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13339 * sysdeps/sparc/sparc32/q_add.c: ... here.
13340 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13341 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13342 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13343 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13344 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13345 * sysdeps/sparc/sparc32/q_div.c: ... here.
13346 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13347 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13348 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13349 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13350 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13351 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13352 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13353 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13354 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13355 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13356 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13357 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13358 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13359 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13360 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13361 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13362 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13363 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13364 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13365 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13366 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13367 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13368 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13369 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13370 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13371 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13372 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13373 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13374 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13375 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13376 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13377 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13378 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13379 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13380 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13381 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13382 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13383 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13384 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13385 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13386 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13387 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13388 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13389 * sysdeps/sparc/sparc32/q_util.c: ... here.
13390 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13391 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13392 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13393 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13394
13395 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13396 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13397
13398 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13399 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13400 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13401 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13402
13403 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13404
13405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13406 powerpc/soft-fp.
13407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13408 Likewise.
13409 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13410 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13411
13412 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13413
13414 [BZ #23171]
13415 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13416 double version.
13417
13418 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13419
13420 * sysdeps/sh/Implies: Remove sh/soft-fp.
13421 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13422 * sysdeps/sh/sfp-machine.h: ... here.
13423
13424 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13425
13426 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13427 (__mempcpy_erms): Skip zero length.
13428 (__memmove_erms): Likewise.
13429 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13430 (__memset_erms): Likewise.
13431
13432 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13433
13434 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13435 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13436 Add functions moved from ....
13437 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13438 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13439 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13440 from ....
13441 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13442 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13443 * sysdeps/alpha/e_sqrtl.c: ... here.
13444 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13445 * sysdeps/alpha/local-soft-fp.h: ... here.
13446 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13447 * sysdeps/alpha/ots_add.c: ... here.
13448 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13449 * sysdeps/alpha/ots_cmp.c: ... here.
13450 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13451 * sysdeps/alpha/ots_cmpe.c: ... here.
13452 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13453 * sysdeps/alpha/ots_cvtqux.c: ... here.
13454 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13455 * sysdeps/alpha/ots_cvtqx.c: ... here.
13456 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13457 * sysdeps/alpha/ots_cvttx.c: ... here.
13458 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13459 * sysdeps/alpha/ots_cvtxq.c: ... here.
13460 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13461 * sysdeps/alpha/ots_cvtxt.c: ... here.
13462 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13463 * sysdeps/alpha/ots_div.c: ... here.
13464 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13465 * sysdeps/alpha/ots_mul.c: ... here.
13466 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13467 * sysdeps/alpha/ots_nintxq.c: ... here.
13468 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13469 * sysdeps/alpha/ots_sub.c: ... here.
13470 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13471 * sysdeps/alpha/sfp-machine.h: ... here.
13472
13473 2018-05-23 Florian Weimer <fweimer@redhat.com>
13474
13475 [BZ #19728]
13476 [BZ #19729]
13477 [BZ #22247]
13478 CVE-2016-6261
13479 CVE-2016-6263
13480 CVE-2017-14062
13481 Switch to extern IDNA implementation (libidn2).
13482 * libidn: Remove subdirectory.
13483 * LICENSES: Do not mention licensing conditions for the removed
13484 libidn code.
13485 * config.h.in (HAVE_LIBIDN): Remove.
13486 * include/dlfcn.h (__libc_dlopen): Update comment.
13487 * include/idna.h: Remove file.
13488 * inet/Makefile (routines): Add idna.
13489 (tests-static, tests-internal): Add tst-idna_name_classify.
13490 (LOCALES): Generate locales for tests.
13491 (tst-idna_name_classify.out): Depend on generated locales.
13492 * inet/idna_name_classify.c: New file.
13493 * inet/tst-idna_name_classify.c: Likewise.
13494 * inet/net-internal.h (__idna_to_dns_encoding)
13495 (__idna_from_dns_encoding): Declare.
13496 * inet/net-internal.h (enum idna_name_classification): Define.
13497 (__idna_name_classify): Declare.
13498 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13499 __idna_from_dns_encoding.
13500 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13501 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13502 name as a fallback in case of encoding errors.
13503 (getnameinfo): Use DEPRECATED_NI_IDN.
13504 * inet/idna.c: New file.
13505 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13506 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13507 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13508 (modules-names): Add tst-no-libidn2.
13509 (extra-test-objs): Add tst-no-libidn2.os.
13510 (LDFLAGS-tst-no-libidn2.so): Set soname.
13511 (LOCALES): Set, and generate locales.
13512 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13513 (tst-resolv-ai_idn-latin1): Likewise.
13514 (tst-resolv-ai_idn-nolibidn2): Likewise.
13515 (tst-resolv-ai_idn.out): Depend on locales.
13516 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13517 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13518 tst-no-libidn2.so.
13519 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13520 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13521 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13522 * resolv/tst-resolv-ai_idn.c: New file.
13523 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13524 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13525 * resolv/tst-no-libidn2.c: Likewise.
13526 * support/support_format_addrinfo.c (format_ai_flags): Do not
13527 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13528 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13529 (gaih_inet): Call __idna_to_dns_encoding and
13530 __idna_from_dns_encoding, and use the original (punycode) name if
13531 __idna_from_dns_encoding fails due to an encoding error.
13532 (getaddrinfo): Use DEPRECATED_AI_IDN.
13533 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13534 * sysdeps/unix/inet/configure: Remove file.
13535 * sysdeps/unix/inet/configure.ac: Likewise.
13536
13537 2018-05-23 Florian Weimer <fweimer@redhat.com>
13538
13539 Implement allocate_once.
13540 * include/allocate_once.h: New file.
13541 * misc/allocate_once.c: Likewise.
13542 * misc/tst-allocate_once.c: Likewise.
13543 * misc/Makefile (routines): Add allocate_once.
13544 (tests-internal): Add tst-allocate_once.
13545 (generated): Add tst-allocate_once.mtrace,
13546 tst-allocate_once-mem.out.
13547 (tests-special): Add tst-allocate_once-mem.out.
13548 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13549 (tst-allocate_once-mem.out): Call mtrace.
13550 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13551
13552 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13553
13554 [BZ #23196]
13555 * string/test-memcpy.c (do_test1): New function.
13556 (test_main): Call it.
13557
13558 2018-05-23 Andreas Schwab <schwab@suse.de>
13559
13560 [BZ #23196]
13561 CVE-2018-11237
13562 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13563 (L(preloop_large)): Save initial destination pointer in %r11 and
13564 use it instead of %rax after the loop.
13565 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13566
13567 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13568
13569 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13570 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13571 -I../soft-fp. Moved from ....
13572 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13573 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13574 * sysdeps/aarch64/e_sqrtl.c: ... here.
13575 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13576 * sysdeps/aarch64/sfp-machine.h: ... here.
13577
13578 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13579 -Wmaybe-uninitialized around access to fq[0].
13580 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13581 Likewise.
13582
13583 [BZ #18471]
13584 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13585 aliases for non-libc case of versioned symbols.
13586 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13587 (llseek): Define as compat symbol if
13588 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13589 with link warning.
13590 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13591 Make into a compat symbol, disabled for minimum symbol version
13592 GLIBC_2.28 and later.
13593 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13594
13595 2018-05-22 Florian Weimer <fweimer@redhat.com>
13596
13597 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13598 not add -mpreferred-stack-boundary=4.
13599 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13600 (stack-align-test-flags): Likewise.
13601 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13602 Likewise.
13603 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13604 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13605 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13606 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13607 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13608 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13609 (CFLAGS-tst-align2.c): Likewise.
13610
13611 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13612
13613 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13614 (index_arch_Prefer_FSRM): Likewise.
13615 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13616 Also check Prefer_FSRM.
13617 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13618 Also return OPTIMIZE (erms) for Prefer_FSRM.
13619
13620 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13621
13622 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13623 (index_cpu_FSRM): Likewise.
13624 (reg_FSRM): Likewise.
13625
13626 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13627
13628 * math/gen-tgmath-tests.py: Import sys.
13629 (Tests.__init__): Initialize macros_seen.
13630 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13631 if requested to do so for this macro.
13632 (Tests.add_all_tests): Take argument for macro for which to
13633 generate tests.
13634 (Tests.check_macro_list): New function.
13635 (main): Handle check-list argument and argument specifying macro
13636 for which to generate tests.
13637 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13638 [PYTHON] (tgmath3-macro-tests): Likewise.
13639 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13640 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13641 not test-tgmath3.c.
13642 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13643 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13644 to CFLAGS.
13645 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13646 [PYTHON] ($(foreach
13647 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13648 rule.
13649 [PYTHON] (tests-special): Add
13650 $(objpfx)test-tgmath3-macro-list.out.
13651 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13652
13653 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13654 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13655 later.
13656
13657 [BZ #22639]
13658 * time/tzset.c (SECSPERDAY): Cast to time_t.
13659 * time/tst-y2039.c: New file.
13660 * time/Makefile (tests): Add tst-y2039.
13661
13662 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13663
13664 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13665 (PREFETCH_ONE_SET): Remove duplicate line.
13666
13667 2018-05-17 Florian Weimer <fweimer@redhat.com>
13668
13669 * sysdeps/generic/math-type-macros-double.h: Include
13670 <math-nan-payload-double.h> after <libm-alias-double.h>.
13671 * sysdeps/generic/math-type-macros-float.h: Include
13672 <math-nan-payload-float.h> after <libm-alias-float.h>.
13673 * sysdeps/generic/math-type-macros-float128.h: Include
13674 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13675 * sysdeps/generic/math-type-macros-ldouble.h: Include
13676 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13677
13678 2018-05-17 Andreas Schwab <schwab@suse.de>
13679
13680 * resolv/res_send.c (__res_context_send): Don't set errno when
13681 returing error after malloc failure.
13682
13683 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13684
13685 * nptl/allocatestack.c (allocate_stack): Remove the
13686 !__ASSUME_PRIVATE_FUTEX paths.
13687 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13688 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13689 Likewise.
13690 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13691 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13692 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13693 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13694 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13695 !__ASSUME_PRIVATE_FUTEX path.
13696 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13697 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13698 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13699 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13700 !__ASSUME_PRIVATE_FUTEX macros.
13701 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13702 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13703 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13704 * sysdeps/unix/sysv/linux/kernel-features.h
13705 (__ASSUME_PRIVATE_FUTEX): Removed.
13706
13707 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13708
13709 * math/Makefile (libm-narrow-fns): Add div.
13710 (libm-test-funcs-narrow): Likewise.
13711 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13712 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13713 * math/gen-auto-libm-tests.c (test_functions): Add div.
13714 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13715 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13716 (NARROW_DIV_TRIVIAL): Likewise.
13717 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13718 macro.
13719 (__ddivl): Likewise.
13720 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13721 ddiv.
13722 (CFLAGS-nldbl-ddiv.c): New variable.
13723 (CFLAGS-nldbl-fdiv.c): Likewise.
13724 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13725 __nldbl_ddivl.
13726 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13727 prototype.
13728 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13729 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13730 * math/auto-libm-test-in: Add tests of div.
13731 * math/auto-libm-test-out-narrow-div: New generated file.
13732 * math/libm-test-narrow-div.inc: New file.
13733 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13734 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13735 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13736 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13737 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13738 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13739 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13740 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13741 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13742 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13743 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13744 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13745 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13746 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13747 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13748 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13749 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13750 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13751 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13752 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13753 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13754 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13755 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13756 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13757 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13769 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13770 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13771 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13772 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13773 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13774 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13775 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13776 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13777
13778 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13779
13780 [BZ #23178]
13781 * nscd/nscd-client.h (sendfileall): Remove prototype.
13782 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13783 (handle_request): Use writeall instead of sendfileall.
13784 * nscd/aicache.c (addhstaiX): Likewise.
13785 * nscd/grpcache.c (cache_addgr): Likewise.
13786 * nscd/hstcache.c (cache_addhst): Likewise.
13787 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13788 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13789 * nscd/pwdcache.c (cache_addpw): Likewise.
13790 * nscd/servicescache.c (cache_addserv): Likewise.
13791 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13792 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13793 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13794 Remove define.
13795
13796 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13797
13798 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13799 Include <string/strncat.c>.
13800 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13801 alias.
13802 (__GI___strncat): New hidden alias.
13803
13804 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13805
13806 * sysdeps/mips/mips32/libm-test-ulps: Update.
13807 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13808
13809 2018-05-16 Florian Weimer <fweimer@redhat.com>
13810
13811 * support/Makefile (libsupport-routines): Add support_quote_blob,
13812 support_test_compare_blob.
13813 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13814 * support/check.h (TEST_COMPARE_BLOB): Define.
13815 (support_test_compare_blob): Declare.
13816 * support/support.h (support_quote_blob): Declare.
13817 * support/support_quote_blob.c: New file.
13818 * support/support_test_compare_blob.c: Likewise.
13819 * support/tst-support_quote_blob.c: Likewise.
13820 * support/tst-test_compare_blob.c: Likewise.
13821
13822 2018-05-16 Florian Weimer <fweimer@redhat.com>
13823
13824 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13825 of <strtod_nan_double.h>.
13826 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13827 instead of SET_MANTISSA.
13828 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13829 of include <strtod_nan_float.h>.
13830 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13831 instead of <strtod_nan_ldouble.h>.
13832 * stdlib/strtod_nan_double.h: Move to ...
13833 * sysdeps/generic/math-nan-payload-double.h: ... here.
13834 (FLOAT): Remove definition.
13835 (SET_MANTISSA): Rename to ...
13836 (SET_NAN_PAYLOAD): ... this.
13837 * stdlib/strtod_nan_float.h: Move to ...
13838 * sysdeps/generic/math-nan-payload-float.h: ... here.
13839 (FLOAT): Remove definition.
13840 (SET_MANTISSA): Rename to ...
13841 (SET_NAN_PAYLOAD): ... this.
13842 * sysdeps/generic/math-type-macros-double.h: Include
13843 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13844 instead of <math-svid-compat.h>.
13845 * sysdeps/generic/math-type-macros-float.h: Include
13846 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13847 instead of <math-svid-compat.h>.
13848 * sysdeps/generic/math-type-macros-float128.h: Include
13849 <math-nan-payload-float128.h>.
13850 * sysdeps/generic/math-type-macros-ldouble.h: Include
13851 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13852 instead of <math-svid-compat.h>.
13853 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13854 check for definition.
13855 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13856 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13857 Include <ieee754_float128.h>.
13858 (FLOAT): Remove definition.
13859 (SET_MANTISSA): Rename to ...
13860 (SET_NAN_PAYLOAD): ... this.
13861 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13862 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13863 Do not include <float128_private.h>.
13864 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13865 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13866 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13867 (FLOAT): Remove definition.
13868 (SET_MANTISSA): Rename to ...
13869 (SET_NAN_PAYLOAD): ... this.
13870 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13871 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13872 (FLOAT): Remove definition.
13873 (SET_MANTISSA): Rename to ...
13874 (SET_NAN_PAYLOAD): ... this.
13875 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13876 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13877 (FLOAT): Remove definition.
13878 (SET_MANTISSA): Rename to ...
13879 (SET_NAN_PAYLOAD): ... this.
13880 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13881 of "../stdlib/strtod_nan_double.h".
13882 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13883 of "../stdlib/strtod_nan_float.h".
13884 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13885 instead of "../stdlib/strtod_nan_ldouble.h".
13886 * manual/arith.texi (Parsing of Floats): Adjust comment.
13887
13888 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13889
13890 * math/Makefile (libm-narrow-fns): Add mul.
13891 (libm-test-funcs-narrow): Likewise.
13892 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13893 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13894 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13895 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13896 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13897 (NARROW_MUL_TRIVIAL): Likewise.
13898 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13899 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13900 macro.
13901 (__dmull): Likewise.
13902 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13903 dmul.
13904 (CFLAGS-nldbl-dmul.c): New variable.
13905 (CFLAGS-nldbl-fmul.c): Likewise.
13906 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13907 __nldbl_dmull.
13908 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13909 prototype.
13910 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13911 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13912 * math/auto-libm-test-in: Add tests of mul.
13913 * math/auto-libm-test-out-narrow-mul: New generated file.
13914 * math/libm-test-narrow-mul.inc: New file.
13915 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13916 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13917 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13918 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13919 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13920 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13921 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13922 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13923 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13924 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13925 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13926 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13927 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13928 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13929 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13930 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13931 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13932 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13933 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13934 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13935 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13936 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13937 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13938 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13939 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13940 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13941 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13942 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13943 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13944 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13945 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13946 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13951 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13952 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13953 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13954 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13955 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13956 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13957 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13958 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13959
13960 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13961
13962 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13963 with *%eax in call.
13964
13965 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13966
13967 * sysdeps/i386/ldsodefs.h: Removed.
13968 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13969 * sysdeps/x86/ldsodefs.h: This.
13970 (La_i86_regs): New.
13971 (La_i86_retval): Likewise.
13972 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13973 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13974
13975 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13976
13977 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13978 unnecessary testl.
13979
13980 2018-05-13 Alan Modra <amodra@gmail.com>
13981
13982 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13983 R_PARISC_TLS_DTPOFF32 reloc addend.
13984
13985 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13986
13987 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13988 * math/math.h: Restrict the prototype definition for the functions
13989 issignaling(_Float128) and iszero(_Float128); and template
13990 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13991 __HAVE_FLOAT128_UNLIKE_LDBL.
13992 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13993 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13994 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13995 __f128() constants; define the type _Float128 as long double;
13996 and reuse long double in __CFLOAT128.
13997
13998 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13999
14000 * sysdeps/generic/math_private.h: Do not include
14001 <math-barriers.h>.
14002 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14003 <math_private.h>.
14004 * math/fromfp.h: Include <math-barriers.h>.
14005 * math/math-narrow.h: Likewise.
14006 * math/s_nextafter.c: Likewise.
14007 * math/s_nexttowardf.c: Likewise.
14008 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14009 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14010 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14011 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14012 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14013 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14014 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14015 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14016 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14017 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14018 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14019 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14020 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14021 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14022 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14023 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14024 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14025 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14026 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14027 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14028 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14029 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14030 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14031 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14032 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14033 * sysdeps/ieee754/k_standardl.c: Likewise.
14034 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14035 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14036 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14037 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14038 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14039 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14040 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14041 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14042 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14043 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14044 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14045 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14046 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14047 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14048 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14049 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14050 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14051 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14052 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14053 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14054 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14055 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14056
14057 2018-05-11 Florian Weimer <fweimer@redhat.com>
14058
14059 Use 64-bit epoch values in the time zone file parser.
14060 * include/time.h (internal_time_t): Define.
14061 (__tzfile_compute): Use it.
14062 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14063 member.
14064 (transitions): Switch to internal_time_t.
14065 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14066 types.
14067 (__tzfile_compute): Use internal_time_t for timer argument. Check
14068 for truncation before calling __offtime.
14069
14070 2018-05-11 Florian Weimer <fweimer@redhat.com>
14071
14072 [BZ #23166]
14073 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14074 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14075 Likewise.
14076 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14077 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14078 export without --enable-obsolete-rpc.
14079 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14080 symbol. This should not have been exported, ever.
14081
14082 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14083
14084 [BZ #23152]
14085 * localedata/locales/gd_GB (abmon): Fix typo in May:
14086 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14087
14088 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14089
14090 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14091 Use multiple registers to copy data in loop tail.
14092
14093 * sysdeps/aarch64/multiarch/memmove_falkor.S
14094 (__memmove_falkor): Use multiple registers to move data in
14095 loop tail.
14096
14097 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14098
14099 * math/math-underflow.h: New file.
14100 * sysdeps/generic/math_private.h: Do not include <float.h>.
14101 (fabs_tg): Remove macro. Moved to math-underflow.h.
14102 (min_of_type_f): Likewise.
14103 (min_of_type_): Likewise.
14104 (min_of_type_l): Likewise.
14105 (min_of_type_f128): Likewise.
14106 (min_of_type): Likewise.
14107 (math_check_force_underflow): Likewise.
14108 (math_check_force_underflow_nonneg): Likewise.
14109 (math_check_force_underflow_complex): Likewise.
14110 * math/e_exp2_template.c: Include <math-underflow.h>.
14111 * math/k_casinh_template.c: Likewise.
14112 * math/s_catan_template.c: Likewise.
14113 * math/s_catanh_template.c: Likewise.
14114 * math/s_ccosh_template.c: Likewise.
14115 * math/s_cexp_template.c: Likewise.
14116 * math/s_clog10_template.c: Likewise.
14117 * math/s_clog_template.c: Likewise.
14118 * math/s_csin_template.c: Likewise.
14119 * math/s_csinh_template.c: Likewise.
14120 * math/s_csqrt_template.c: Likewise.
14121 * math/s_ctan_template.c: Likewise.
14122 * math/s_ctanh_template.c: Likewise.
14123 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14124 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14125 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14126 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14127 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14128 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14129 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14130 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14131 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14132 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14133 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14134 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14135 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14136 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14137 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14138 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14139 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14140 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14141 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14142 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14143 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14144 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14145 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14146 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14147 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14148 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14149 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14150 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14151 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14152 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14153 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14154 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14155 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14156 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14157 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14158 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14159 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14160 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14161 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14162 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14163 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14164 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14165 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14166 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14167 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14168 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14169 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14170 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14171 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14172 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14173 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14174 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14175 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14176 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14177 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14178 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14179 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14180 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14181 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14182 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14183 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14184 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14185 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14186 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14187 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14188 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14189 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14190 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14191 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14192 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14193 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14194 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14195 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14196 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14197 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14198 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14199 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14200 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14201 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14202 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14203 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14204 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14205 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14206 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14207
14208 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14209
14210 * sysdeps/generic/math-barriers.h: New file.
14211 * sysdeps/generic/math_private.h [!math_opt_barrier]
14212 (math_opt_barrier): Move to math-barriers.h.
14213 [!math_opt_barrier] (math_force_eval): Likewise.
14214 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14215 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14216 math-barriers.h.
14217 (math_force_eval): Likewise.
14218 * sysdeps/alpha/fpu/math-barriers.h: New file.
14219 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14220 math-barriers.h.
14221 (math_force_eval): Likewise.
14222 * sysdeps/x86/fpu/math-barriers.h: New file.
14223 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14224 math-barriers.h.
14225 (math_force_eval): Likewise.
14226 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14227 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14228 multiple-include guard for rename.
14229 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14230 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14231 math-barriers.h.
14232 (math_force_eval): Likewise.
14233
14234 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14235
14236 [BZ #22786]
14237 CVE-2018-11236
14238 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14239 computation.
14240 * stdlib/Makefile (test-bz22786): New test.
14241 * stdlib/test-bz22786.c: New test.
14242
14243 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14244
14245 * include/math-narrow-eval.h: New file. Contents moved from ....
14246 * sysdeps/generic/math_private.h: ... here.
14247 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14248 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14249 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14250 * stdlib/strtod_l.c: Likewise.
14251 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14252 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14253 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14254 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14255 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14256 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14257 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14258 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14259 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14260 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14261 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14262 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14263 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14264 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14265 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14266 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14267 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14268 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14269 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14270 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14271 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14272 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14273 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14274 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14275 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14276 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14277 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14278 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14279 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14280
14281 2018-05-08 Andreas Schwab <schwab@suse.de>
14282
14283 * sysdeps/nptl/internaltypes.h: Fix comment.
14284
14285 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14286
14287 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14288 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14289 hidden.
14290
14291 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14292
14293 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14294 of I into loop header.
14295 * benchtests/bench-memmove-walk.c
14296 (test_main): Likewise.
14297
14298 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14299
14300 Revert:
14301 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14302 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14303
14304 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14305
14306 [BZ #20419]
14307 * elf/dl-load.c (open_verify): Fix stack overflow.
14308 * elf/Makefile (tst-big-note): New test.
14309 * elf/tst-big-note-lib.S: New.
14310 * elf/tst-big-note.c: New.
14311
14312 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14313
14314 * scripts/abilist.awk: Ignore absolute symbols.
14315 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14316 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14317 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14318 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14319 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14320 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14321 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14322 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14323 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14324 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14325 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14326 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14341 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14342 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14343 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14397 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14403 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14404 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14407 Likewise.
14408 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14417 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14418 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14421 Likewise.
14422 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14423 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14424 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14425 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14449 Likewise.
14450 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14470 Likewise.
14471 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14481 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14482 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14483 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14484 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14485 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14486 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14487 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14488 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14489 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14490 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14491 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14492 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14493 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14494 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14495 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14496 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14497 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14498 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14503 Likewise.
14504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14509 Likewise.
14510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14511 Likewise.
14512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14514 Likewise.
14515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14517 Likewise.
14518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14519 Likewise.
14520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14523 Likewise.
14524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14525 Likewise.
14526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14527 Likewise.
14528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14532 Likewise.
14533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14539 Likewise.
14540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14542 Likewise.
14543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14544 Likewise.
14545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14546 Likewise.
14547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14548 Likewise.
14549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14552 Likewise.
14553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14554 Likewise.
14555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14556 Likewise.
14557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14559 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14560 Likewise.
14561 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14562 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14563 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14564 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14569 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14571 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14572 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14573 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14575 Likewise.
14576 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14581 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14582 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14583 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14584 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14585 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14587 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14588 Likewise.
14589 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14592 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14593 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14601 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14602 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14603 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14604 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14605 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14606 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14614 Likewise.
14615 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14628 Likewise.
14629 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14664 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14665 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14666 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14667
14668 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14669
14670 [BZ #23137]
14671 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14672 Use atomic_load_acquire to load __tid.
14673
14674 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14675
14676 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14677 Restore the pointer into %rdx, after syscall and use %rdx,
14678 instead of %rsi, to restore context.
14679
14680 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14681
14682 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14683 Pop the pointer into %rdx after syscall and use %rdx, instead
14684 of %rsi, to restore context.
14685
14686 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14687
14688 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14689 handlers after setjmp.
14690 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14691 defined.
14692 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14693 <libc-pointer-arith.h>.
14694 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14695 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14696 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14697 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14698 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14699 * sysdeps/x86/__longjmp_cancel.S: New file.
14700 * sysdeps/x86/longjmp.c: Likewise.
14701 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14702
14703 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14704
14705 * NEWS: Add ustat.h deprecation entry.
14706 * bits/ustat.h: Remove file.
14707 * misc/sys/ustat.h: Likewise.
14708 * misc/ustat.h: Likewise.
14709 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14710 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14711 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14712 compatibility mode.
14713 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14714 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14715 generic Linux implementation.
14716
14717 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14718
14719 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14720 * math/w_expl_compat.c: Likewise.
14721 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14722
14723 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14724
14725 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14726
14727 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14728
14729 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14730 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14731 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14732 Remove.
14733 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14735 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14736 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14737 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14738 and SYSCALL_LL64.
14739
14740 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14741
14742 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14743
14744 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14745 * math/w_asin_template.c: Likewise.
14746 * math/w_atanh_template.c: Likewise.
14747
14748 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14749
14750 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14751 to powerpc/powerpc64/be for big-endian.
14752 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14753 little-endian.
14754
14755 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14756 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14757 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14758 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14759 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14760 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14761 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14762 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14763 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14764 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14765 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14766 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14767 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14768 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14769 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14770 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14771 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14772 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14773 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14774 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14775 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14776 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14777 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14778 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14779 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14780 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14781 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14782 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14783 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14784 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14785 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14786 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14787
14788 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14789 adjusted to imply powerpc64 and older processors on powerpc64/be.
14790 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14791 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14792 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14793 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14794 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14795 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14796 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14797 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14798 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14799 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14800 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14801 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14802 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14803 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14804 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14805 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14806 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14807 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14808 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14809 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14810 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14811 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14812 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14813 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14814 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14815 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14816 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14817 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14818 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14819 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14820 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14821
14822 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14823 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14824 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14825 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14826
14827 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14828 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14829 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14830 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14831
14832 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14833 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14834 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14835 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14836 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14837 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14838 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14839 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14840 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14841 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14842 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14843
14844 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14845 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14846 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14847 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14848 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14849 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14850 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14851 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14852 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14853 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14854 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14855
14856 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14857 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14858 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14859 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14860 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14861 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14862 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14863 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14864 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14865 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14866 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14867 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14868
14869 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14870 and adjusted to imply olders processors.
14871 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14872 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14873 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14874 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14875 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14876 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14877 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14878 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14879 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14880 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14881 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14882
14883 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14884 powerpc64/le.
14885 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14886 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14887
14888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14889 powerpc64le.
14890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14892
14893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14894 powerpc64/be.
14895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14898
14899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14900 powerpc64 and adjusted.
14901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14904 Likewise.
14905
14906 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14907
14908 * sysdeps/tile: Remove.
14909 * sysdeps/unix/sysv/linux/tile: Likewise.
14910 * README (tilegx-*-linux-gnu): Remove from list of supported
14911 configurations.
14912 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14913 contribution of support for generic Linux kernel syscall
14914 interface.
14915 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14916 tilegx configurations.
14917 (Config.install_linux_headers): Do not handle tile.
14918 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14919 in comment.
14920 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14921 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14922 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14923 conditional undefine and redefine.
14924 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14925 in comment.
14926 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14927 conditional undefine and redefine.
14928
14929 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14930
14931 * signal/tst-sigaction.c: New file to test BZ #23069.
14932 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14933
14934 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14935
14936 [BZ #22766]
14937 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14938 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14939 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14940 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14941
14942 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14943
14944 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14945 _DIRENT_MATCHES_DIRENT64 is not defined.
14946 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14947 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14948 is defined.
14949 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14950 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14951
14952 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14953
14954 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14955 version to GCC 8 branch.
14956
14957 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14958
14959 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14960 (check_no_hidden): Use type of original function when declaring
14961 alias.
14962
14963 * sysdeps/unix/sysv/linux/sys/ptrace.h
14964 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14965 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14966 (struct __ptrace_seccomp_metadata): New type.
14967 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14968 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14969 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14970 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14971 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14972 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14973 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14974 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14975 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14976 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14977 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14978 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14979 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14980 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14981 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14982 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14983
14984 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14985
14986 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14987 defined.
14988 * dirent/versionsort.c (versionsort): Likewise.
14989 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14990 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14991 * dirent/versionsort64.c (versionsort64): Likewise.
14992 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14993 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14994 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14995 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14996 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14997 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14998 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14999 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15000 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15001 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15004 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15005 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15006
15007 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15008
15009 * elf/elf.h (NT_PPC_PKEY): New macro.
15010
15011 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15012
15013 [BZ #23094]
15014 * localedata/locales/hr_HR: fix thousands_sep and
15015 mon_thousands_sep
15016
15017 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15018
15019 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15020 (XTABS): Define to TAB3.
15021
15022 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15023
15024 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15025
15026 * dirent/scandir-tail-common.c: New file.
15027 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15028 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15029 * dirent/scandir.c: Use scandir-tail-common.c.
15030 * dirent/scandirat.c: Likewise.
15031 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15032 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15033 if _DIRENT_MATCHES_DIRENT64 is defined.
15034 * dirent/scandirat64.c (scandirat64): Likewise.
15035 * include/dirent.h (__scandir_tail): Only define iff
15036 _DIRENT_MATCHES_DIRENT64 is not defined.
15037 (__scandir64_tail): Define regardless.
15038 (__scandirat, scandirat64): Remove libc_hidden_proto.
15039 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15040 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15042 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15043 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15044 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15045 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15046
15047 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15048
15049 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15050 New macro.
15051 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15052 Increase to 24.
15053 (_dl_aarch64_cap_flags): Add asimdfhm.
15054
15055 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15056
15057 * sysdeps/nios2/libm-test-ulps: Update.
15058
15059 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15060
15061 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15062 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15063
15064 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15065 requirements.
15066 (_DIRENT_MATCHES_DIRENT64): Undef
15067 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15068 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15069 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15070 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15071 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15072 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15073 use getdents64 syscalls as base.
15074 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15075 symbol if required.
15076 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15077 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15078 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15079 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15080 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15081 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15082 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15083 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15084 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15085 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15086 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15087
15088 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15089
15090 * scripts/test_printers_common.py (init_test): Disable lock elision.
15091
15092 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15093
15094 * math/test-tgmath.c (count_double, count_float,
15095 count_ldouble, count_cdouble, count_cfloat,
15096 count_cldouble): Use volatile int.
15097
15098 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15099
15100 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15101 (conformtest-xfail-conds): Add i386-gnu.
15102 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15103 i386-gnu.
15104 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15105 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15106 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15107 msqid_ds.msg_lrpid): Likewise.
15108 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15109 Likewise.
15110 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15111 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15112 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15113 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15114 unsigned int.
15115 (struct statvfs64): Likewise.
15116 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15117 Likewise.
15118 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15119 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15120 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15121 instead of wait_queue.
15122 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15123 instead of vm_area_struct.
15124 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15125 struct sched_param definition to it.
15126 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15127 * bits/types/struct_sched_param.h: New file.
15128 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15129 <bits/types/struct_sched_param.h> instead of <sched.h>.
15130 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15131 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15132 generic version but include <bits/pthreadtypes.h> to make struct
15133 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15134 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15135 non-compliant.
15136 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15137 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15138 [__USE_XOPEN] (OFDEL): New macro.
15139 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15140 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15141 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15142 prototypes.
15143 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15144 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15145 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15146 non-compliant.
15147 * sysdeps/i386/sys/ucontext.h: Likewise.
15148 * sysdeps/m68k/sys/ucontext.h: Likewise.
15149 * sysdeps/mips/sys/ucontext.h: Likewise.
15150 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15151 * sysdeps/mach/hurd/i386/Makefile
15152 (test-xfail-POSIX/fcntl.h/conform): Add.
15153 (test-xfail-POSIX/signal.h/conform): Add.
15154 (test-xfail-POSIX/semaphore.h/conform): Add.
15155 (test-xfail-POSIX/regex.h/conform): Add.
15156 (test-xfail-POSIX/aio.h/conform): Add.
15157 (test-xfail-POSIX/mqueue.h/conform): Add.
15158 (test-xfail-POSIX/sys/types.h/conform): Add.
15159 (test-xfail-UNIX98/fcntl.h/conform): Add.
15160 (test-xfail-UNIX98/netdb.h/conform): Add.
15161 (test-xfail-UNIX98/signal.h/conform): Add.
15162 (test-xfail-UNIX98/semaphore.h/conform): Add.
15163 (test-xfail-UNIX98/regex.h/conform): Add.
15164 (test-xfail-UNIX98/aio.h/conform): Add.
15165 (test-xfail-UNIX98/ftw.h/conform): Add.
15166 (test-xfail-UNIX98/mqueue.h/conform): Add.
15167 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15168 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15169 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15170 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15171 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15172 (test-xfail-UNIX98/sys/types.h/conform): Add.
15173 (test-xfail-UNIX98/stdlib.h/conform): Add.
15174 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15175 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15176 (test-xfail-POSIX2008/netdb.h/conform): Add.
15177 (test-xfail-POSIX2008/signal.h/conform): Add.
15178 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15179 (test-xfail-POSIX2008/regex.h/conform): Add.
15180 (test-xfail-POSIX2008/aio.h/conform): Add.
15181 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15182 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15183 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15184 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15185 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15186 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15187 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15188 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15189 (test-xfail-XOPEN2K/signal.h/conform): Add.
15190 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15191 (test-xfail-XOPEN2K/regex.h/conform): Add.
15192 (test-xfail-XOPEN2K/aio.h/conform): Add.
15193 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15194 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15195 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15196 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15197 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15198 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15199 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15200 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15201 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15202 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15203 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15204 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15205 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15206 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15207 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15208 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15209 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15210 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15211 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15212 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15213 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15214 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15215 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15216 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15217 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15218 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15219 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15220 i386-gnu.
15221 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15222 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15223
15224 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15225
15226 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15227 --enable-obsolete for powerpc-linux-gnuspe.
15228
15229 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15230
15231 * conform/data/sys/un.h-data: Allow sun_ prefix.
15232 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15233 prototypes.
15234 * sysdeps/mach/include/mach.h: Likewise.
15235 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15236 * sysdeps/mach/include/mach_error.h: Likewise.
15237
15238 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15239
15240 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15241 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15242 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15243 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15244
15245 2018-04-16 Andreas Schwab <schwab@suse.de>
15246
15247 [BZ #19527]
15248 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15249
15250 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15251
15252 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15253 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15254
15255 2018-04-12 DJ Delorie <dj@redhat.com>
15256
15257 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15258 version to 4.16.
15259
15260 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15261
15262 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15263 (struct kernel_sigaction): Use the same definition on 31bit as is used
15264 on 64bit.
15265
15266 2018-04-09 Florian Weimer <fweimer@redhat.com>
15267
15268 [BZ #23037]
15269 * resolv/res_send.c (send_dg): Use designated initializers instead
15270 of assignment to zero-initialize other fields of struct mmsghdr.
15271
15272 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15273
15274 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15275 __READDIR_ALIAS): Undefine after usage.
15276 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15277 __READDIR_R_ALIAS): Likewise.
15278 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15279 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15280 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15281 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15282 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15283 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15284 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15285 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15286 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15287 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15288 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15289 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15290 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15291 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15292 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15293 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15294 * sysdeps/unix/sysv/linux/readdir.c: New file.
15295 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15296 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15297 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15298
15299 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15300
15301 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15302
15303 * manual/charset.texi (Converting a Character): Fix typo.
15304
15305 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15306
15307 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15308
15309 * sysdeps/arm/libm-test-ulps: Update.
15310
15311 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15312 as base implementation.
15313 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15314 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15315 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15316 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15317 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15318 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15319 remove unrequired definitions and update comments.
15320 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15321 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15322 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15323 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15324 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15325 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15326 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15327 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15328 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15329 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15330 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15331 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15332 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15333 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15334 and RESET_SA_RESTORER hooks.
15335
15336 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15337
15338 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15339
15340 2018-04-05 Florian Weimer <fweimer@redhat.com>
15341
15342 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15343 integer overflow, memory leak on error, and indeterminate errno
15344 value. Add a null wide character to terminate the result string.
15345 * manual/charset.texi (Converting a Character): Mention embedded
15346 null bytes in the mbrtowc input string. Explain what happens in
15347 the -2 result case. Do not claim that mbrtowc is simple or
15348 obvious to use. Adjust the description of the code example. Use
15349 @code, not @var, for concrete variables.
15350
15351 2018-04-05 Florian Weimer <fweimer@redhat.com>
15352
15353 * manual/examples/mbstouwcs.c: New file.
15354 * manual/charset.texi (Converting a Character): Include it.
15355
15356 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15357
15358 * include/dirent.h (dirfd): Add hidden proto.
15359 * dirent/dirfd.c (dirfd): Add hidden def.
15360 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15361 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15362
15363 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15364
15365 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15366 sin, cos and sincos to 1 ULP.
15367
15368 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15369
15370 [BZ #19818]
15371 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15372 symbols.
15373 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15374 * elf/tst-absolute-sym.c: New file.
15375 * elf/tst-absolute-sym-lib.c: New file.
15376 * elf/tst-absolute-sym-lib.lds: New file.
15377 * elf/Makefile (tests): Add `tst-absolute-sym'.
15378 (modules-names): Add `tst-absolute-sym-lib'.
15379 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15380 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15381 ($(objpfx)tst-absolute-sym): New dependency.
15382
15383 [BZ #19818]
15384 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15385 parameter.
15386 (SYMBOL_ADDRESS): New macro.
15387 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15388 SYMBOL_ADDRESS for symbol address calculation.
15389 * elf/dl-runtime.c (_dl_fixup): Likewise.
15390 (_dl_profile_fixup): Likewise.
15391 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15392 * elf/rtld.c (dl_main): Likewise.
15393 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15394 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15395 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15396 (elf_machine_rela): Likewise.
15397 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15398 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15399 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15400 (elf_machine_rela): Likewise.
15401 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15402 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15403 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15404 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15405 Likewise.
15406 (elf_machine_reloc): Likewise.
15407 (elf_machine_got_rel): Likewise.
15408 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15409 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15410 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15411 Likewise.
15412 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15413 Likewise.
15414 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15415 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15416 Likewise.
15417 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15418 Likewise.
15419 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15420 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15421 Likewise.
15422 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15423 Likewise.
15424 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15425 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15426
15427 2018-04-04 Zack Weinberg <zackw@panix.com>
15428
15429 * sysdeps/generic/internal-signals.h: Include signal.h,
15430 sigsetops.h, and stdbool.h.
15431 (__libc_signal_block_all): Actually block all signals.
15432 (__libc_signal_block_app): Likewise.
15433 (__libc_signal_restore_set): Actually restore the signal mask.
15434
15435 2018-04-04 Florian Weimer <fweimer@redhat.com>
15436
15437 inet: Actually build and run tst-deadline.
15438 * inet/Makefile (tests-internal): Add tst-deadline and do not
15439 overwrite the variable.
15440 (tests-static-internal): Remove variable.
15441
15442 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15443
15444 [BZ #22947]
15445 * bits/uio-ext.h (RWF_APPEND): New.
15446 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15447 * manual/llio.texi: Document RWF_APPEND.
15448 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15449 (RWF_SUPPORTED): Add RWF_APPEND.
15450
15451 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15452
15453 [BZ #22391]
15454 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15455 check for internal nptl signals.
15456 * nptl/sigaction.c (__sigaction): Likewise.
15457 * signal/sigaddset.c (sigaddset): Likewise.
15458 * signal/sigdelset.c (sigdelset): Likewise.
15459 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15460 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15461 value.
15462 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15463 to filter out internal nptl signals.
15464 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15465 also check realtime signals using standard macros.
15466 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15467 __is_internal_signal, __libc_signal_block_all,
15468 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15469 * sysdeps/nptl/sigfillset.c: Remove file.
15470 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15471 Change return to bool.
15472 (__clear_internal_signals): Remove SIGTIMER clean since it is
15473 equal to SIGCANEL on Linux.
15474 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15475 signal set was constructed using standard functions.
15476
15477 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15478
15479 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15480 ifname is too long.
15481 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15482 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15483 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15484 hidden def.
15485 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15486 * signal/sigaddset.c: Include <sigsetopts.h>.
15487 * signal/sigdelset.c: Likewise.
15488
15489 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15490
15491 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15492 (__cos): Likewise.
15493 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15494 logic as sin and cos.
15495
15496 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15497
15498 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15499 inputs. Return correct sign.
15500 (do_sincos): Remove small input check before do_sin, let do_sin set
15501 the sign.
15502 (__sin): Likewise.
15503 (__cos): Likewise.
15504
15505 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15506
15507 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15508 (do_cos_slow): Likewise.
15509 (do_sin_slow): Likewise.
15510 (reduce_and_compute): Likewise.
15511 (slow): Likewise.
15512 (slow1): Likewise.
15513 (slow2): Likewise.
15514 (sloww): Likewise.
15515 (sloww1): Likewise.
15516 (sloww2): Likewise.
15517 (bslow): Likewise.
15518 (bslow1): Likewise.
15519 (bslow2): Likewise.
15520 (cslow2): Likewise.
15521
15522 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15523
15524 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15525 (do_cos): Remove corp parameter and calculations.
15526 (do_sin): Likewise.
15527 (do_sincos): Remove cor variable.
15528 (__sin): Use do_sincos for huge inputs.
15529 (__cos): Likewise.
15530 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15531 (reduce_and_compute_sincos): Remove unused function.
15532
15533 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15534
15535 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15536 reduce_sincos, improve accuracy to 136 bits.
15537 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15538 (__sin): Use improved reduction and simplified do_sincos calculation.
15539 (__cos): Likewise.
15540 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15541
15542 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15543
15544 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15545 (do_sincos_2): Likewise.
15546 (__sin): Remove middle range reduction case.
15547 (__cos): Likewise.
15548 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15549 reduction case.
15550
15551 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15552
15553 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15554 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15555 inputs.
15556 (__cos): Likewise.
15557 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15558
15559 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15560
15561 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15562 version to 4.16
15563
15564 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15565
15566 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15567 Remove definitions.
15568 (opendir_oflags): Use O_DIRECTORY regardless.
15569 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15570 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15571
15572 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15573
15574 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15575 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15576 macros.
15577 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15578 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15579 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15580 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15581 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15582 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15583
15584 * htl/Makefile: Bump licence to LGPL 2.1+.
15585 * htl/alloca_cutoff.c: Likewise.
15586 * htl/cthreads-compat.c: Likewise.
15587 * htl/lockfile.c: Likewise.
15588 * htl/pt-alloc.c: Likewise.
15589 * htl/pt-cancel.c: Likewise.
15590 * htl/pt-cleanup.c: Likewise.
15591 * htl/pt-create.c: Likewise.
15592 * htl/pt-dealloc.c: Likewise.
15593 * htl/pt-detach.c: Likewise.
15594 * htl/pt-exit.c: Likewise.
15595 * htl/pt-getattr.c: Likewise.
15596 * htl/pt-initialize.c: Likewise.
15597 * htl/pt-internal.h: Likewise.
15598 * htl/pt-join.c: Likewise.
15599 * htl/pt-self.c: Likewise.
15600 * htl/pt-setcancelstate.c: Likewise.
15601 * htl/pt-setcanceltype.c: Likewise.
15602 * htl/pt-sigmask.c: Likewise.
15603 * htl/pt-spin-inlines.c: Likewise.
15604 * htl/pt-testcancel.c: Likewise.
15605 * htl/pt-yield.c: Likewise.
15606 * htl/tests/test-1.c: Likewise.
15607 * htl/tests/test-10.c: Likewise.
15608 * htl/tests/test-11.c: Likewise.
15609 * htl/tests/test-12.c: Likewise.
15610 * htl/tests/test-13.c: Likewise.
15611 * htl/tests/test-14.c: Likewise.
15612 * htl/tests/test-15.c: Likewise.
15613 * htl/tests/test-16.c: Likewise.
15614 * htl/tests/test-17.c: Likewise.
15615 * htl/tests/test-2.c: Likewise.
15616 * htl/tests/test-3.c: Likewise.
15617 * htl/tests/test-4.c: Likewise.
15618 * htl/tests/test-5.c: Likewise.
15619 * htl/tests/test-6.c: Likewise.
15620 * htl/tests/test-7.c: Likewise.
15621 * htl/tests/test-8.c: Likewise.
15622 * htl/tests/test-9.c: Likewise.
15623 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15624 * sysdeps/htl/bits/cancelation.h: Likewise.
15625 * sysdeps/htl/bits/pthread-np.h: Likewise.
15626 * sysdeps/htl/bits/pthread.h: Likewise.
15627 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15628 * sysdeps/htl/bits/semaphore.h: Likewise.
15629 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15630 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15631 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15632 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15633 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15634 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15635 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15636 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15637 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15638 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15639 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15640 * sysdeps/htl/old_pt-atfork.c: Likewise.
15641 * sysdeps/htl/pt-atfork.c: Likewise.
15642 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15643 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15644 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15645 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15646 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15647 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15648 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15649 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15650 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15651 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15652 * sysdeps/htl/pt-attr-init.c: Likewise.
15653 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15654 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15655 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15656 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15657 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15658 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15659 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15660 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15661 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15662 * sysdeps/htl/pt-attr.c: Likewise.
15663 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15664 * sysdeps/htl/pt-barrier-init.c: Likewise.
15665 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15666 * sysdeps/htl/pt-barrier.c: Likewise.
15667 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15668 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15669 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15670 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15671 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15672 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15673 * sysdeps/htl/pt-cond-init.c: Likewise.
15674 * sysdeps/htl/pt-cond-signal.c: Likewise.
15675 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15676 * sysdeps/htl/pt-cond-wait.c: Likewise.
15677 * sysdeps/htl/pt-cond.c: Likewise.
15678 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15679 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15680 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15681 * sysdeps/htl/pt-condattr-init.c: Likewise.
15682 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15683 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15684 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15685 * sysdeps/htl/pt-equal.c: Likewise.
15686 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15687 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15688 * sysdeps/htl/pt-getschedparam.c: Likewise.
15689 * sysdeps/htl/pt-getspecific.c: Likewise.
15690 * sysdeps/htl/pt-init-specific.c: Likewise.
15691 * sysdeps/htl/pt-key-create.c: Likewise.
15692 * sysdeps/htl/pt-key-delete.c: Likewise.
15693 * sysdeps/htl/pt-key.h: Likewise.
15694 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15695 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15696 * sysdeps/htl/pt-mutex-init.c: Likewise.
15697 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15698 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15699 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15700 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15701 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15702 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15703 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15704 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15705 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15706 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15707 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15708 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15709 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15710 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15711 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15712 * sysdeps/htl/pt-mutexattr.c: Likewise.
15713 * sysdeps/htl/pt-once.c: Likewise.
15714 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15715 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15716 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15717 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15718 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15719 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15720 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15721 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15722 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15723 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15724 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15725 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15726 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15727 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15728 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15729 * sysdeps/htl/pt-setschedparam.c: Likewise.
15730 * sysdeps/htl/pt-setschedprio.c: Likewise.
15731 * sysdeps/htl/pt-setspecific.c: Likewise.
15732 * sysdeps/htl/pt-spin.c: Likewise.
15733 * sysdeps/htl/pt-startup.c: Likewise.
15734 * sysdeps/htl/pthread.h: Likewise.
15735 * sysdeps/htl/sem-close.c: Likewise.
15736 * sysdeps/htl/sem-destroy.c: Likewise.
15737 * sysdeps/htl/sem-getvalue.c: Likewise.
15738 * sysdeps/htl/sem-init.c: Likewise.
15739 * sysdeps/htl/sem-open.c: Likewise.
15740 * sysdeps/htl/sem-post.c: Likewise.
15741 * sysdeps/htl/sem-timedwait.c: Likewise.
15742 * sysdeps/htl/sem-trywait.c: Likewise.
15743 * sysdeps/htl/sem-unlink.c: Likewise.
15744 * sysdeps/htl/sem-wait.c: Likewise.
15745 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15746 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15747 * sysdeps/mach/htl/pt-block.c: Likewise.
15748 * sysdeps/mach/htl/pt-spin.c: Likewise.
15749 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15750 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15751 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15752 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15753 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15754 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15755 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15756 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15757 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15758 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15759 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15760 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15761 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15762 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15763 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15764 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15765 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15766 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15767 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15768 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15769 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15770 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15771 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15772 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15773 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15774 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15775 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15776 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15777 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15778 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15779 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15780 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15781 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15782 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15783 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15784 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15785 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15786 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15787 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15788 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15789 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15790 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15791 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15792
15793 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15794 * README: Remove the mention of out-of-tree patches needed for
15795 GNU/Hurd.
15796
15797 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15798 (UTIME_NOW, UTIME_OMIT): Define macros.
15799
15800 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15801 instead of pthread_detach.
15802 (__cthread_fork): Call __pthread_create instead of pthread_create.
15803 (__cthread_keycreate): Call __pthread_key_create instead of
15804 pthread_key_create.
15805 (__cthread_getspecific): Call __pthread_getspecific instead of
15806 pthread_getspecific.
15807 (__cthread_setspecific): Call __pthread_setspecific instead of
15808 pthread_setspecific.
15809 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15810 __pthread_mutex_unlock instead of pthread_mutex_lock and
15811 pthread_mutex_unlock.
15812 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15813 ___pthread_get_cleanup_stack.
15814 (__pthread_get_cleanup_stack): New strong alias.
15815 * htl/pt-create.c: Include <pthreadP.h>.
15816 (entry_point): Call __pthread_exit instead of pthread_exit.
15817 (pthread_create): Rename to __pthread_create.
15818 (pthread_create): New strong alias.
15819 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15820 (pthread_detach): New strong alias.
15821 (__pthread_detach): Call __pthread_cond_broadcast instead of
15822 pthread_cond_broadcast.
15823 * htl/pt-exit.c: Include <pthreadP.h>.
15824 (__pthread_exit): Call __pthread_setcancelstate and
15825 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15826 __pthread_get_cleanup_stack.
15827 * htl/pt-testcancel.c: Include <pthreadP.h>.
15828 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15829 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15830 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15831 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15832 pthread_attr_getstacksize.
15833 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15834 Rename to __pthread_attr_getstackaddr.
15835 (pthread_attr_getstackaddr): New strong alias.
15836 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15837 Rename to __pthread_attr_getstacksize.
15838 (pthread_attr_getstacksize): New strong alias.
15839 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15840 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15841 (pthread_attr_setstack): New strong alias.
15842 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15843 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15844 pthread_attr_getstacksize, pthread_attr_setstacksize and
15845 pthread_attr_setstackaddr.
15846 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15847 Rename to __pthread_attr_setstackaddr.
15848 (pthread_attr_setstackaddr): New strong alias.
15849 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15850 Rename to __pthread_attr_setstacksize.
15851 (pthread_attr_setstacksize): New strong alias.
15852 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15853 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15854 pthread_exit.
15855 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15856 (__pthread_key_create): New hidden def.
15857 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15858 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15859 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15860 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15861 __pthread_setspecific, __pthread_setcancelstate,
15862 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15863 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15864 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15865 declarations.
15866 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15867 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15868 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15869 (pthread_attr_setstackaddr): New strong alias.
15870 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15871 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15872 (pthread_attr_setstacksize): New strong alias.
15873 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15874 (call_exit): Call __pthread_exit instead of pthread_exit.
15875 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15876 (_pthread_mutex_init): New hidden definition.
15877 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15878 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15879 instead of pthread_attr_init and pthread_attr_setstack.
15880
15881 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15882 __vm_deallocate instead of vm_allocate and vm_deallocate.
15883 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15884 setenv.
15885 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15886 of geteuid.
15887 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15888 strdup.
15889 * hurd/siginfo.c: Include <libioP.h>.
15890 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15891 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15892 munmap.
15893 * mach/devstream.c: Include <libioP.h>.
15894 (dealloc_ref): Call __mach_port_deallocate instead of
15895 mach_port_deallocate.
15896 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15897 Call __mach_port_deallocate instead of mach_port_deallocate.
15898 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15899 pathconf.
15900 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15901 munmap.
15902 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15903 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15904 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15905 of munmap.
15906 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15907 of close.
15908 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15909 instead of sysconf.
15910 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15911 __clock_gettime instead of clock_gettime.
15912 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15913 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15914 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15915 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15916 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15917 tcgetattr.
15918 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15919 __clock_gettime and __nanosleep instead of clock_gettime and
15920 nanosleep.
15921 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15922 __hurd_catch_signal.
15923 (hurd_catch_signal): New strong alias.
15924 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15925 __hurd_catch_signal instead of hurd_catch_signal.
15926 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15927 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15928 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15929 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15930 (_hurd_thread_sigstate): Add hidden def.
15931 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15932 mutex_unlock.
15933 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15934 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15935 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15936 __hurd_file_name_path_lookup.
15937 (hurd_file_name_path_lookup): New strong alias.
15938 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15939 hurd_file_name_path_lookup.
15940 * mach/errstring.c (mach_error_type): Add hidden def.
15941 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15942 * mach/mutex-init.c (__mutex_init): Add hidden def.
15943 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15944 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15945 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15946 * sysdeps/mach/hurd/getcwd.c
15947 (_hurd_canonicalize_directory_name_internal): Rename to
15948 __hurd_canonicalize_directory_name_internal.
15949 (_hurd_canonicalize_directory_name_internal): New strong alias.
15950 (__canonicalize_directory_name_internal, __getcwd): Call
15951 __hurd_canonicalize_directory_name_internal instead of
15952 _hurd_canonicalize_directory_name_internal.
15953 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15954 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15955 hidden defs.
15956 * sysdeps/hurd/include/hurd.h: New file.
15957 * sysdeps/hurd/include/hurd/fd.h: New file.
15958 * sysdeps/hurd/include/hurd/signal.h: New file.
15959 * sysdeps/mach/include/lock-intern.h: New file.
15960 * sysdeps/mach/include/mach.h: New file.
15961 * sysdeps/mach/include/mach/mig_support.h: New file.
15962 * sysdeps/mach/include/mach_error.h: New file.
15963 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15964 prototype.
15965 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15966 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15967 _HEADER_H_HIDDEN_DEF macro.
15968 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15969 _hurd_fd_error_signal): Add hidden prototype.
15970 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15971 hidden def.
15972 * libio/iolibio.h (_IO_puts): New hidden prototype.
15973 * libio/ioputs.c (_IO_puts): New hidden def.
15974 * sysdeps/mach/hurd/localplt.data: New file.
15975
15976 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15977 Amos Jeffries <squid3@treenet.co.nz>
15978 David Michael <fedora.dm0@gmail.com>
15979 Marco Gerards <marco@gnu.org>
15980 Marcus Brinkmann <marcus@gnu.org>
15981 Neal H. Walfield <neal@gnu.org>
15982 Pino Toscano <toscano.pino@tiscali.it>
15983 Richard Braun <rbraun@sceen.net>
15984 Roland McGrath <roland@gnu.org>
15985 Samuel Thibault <samuel.thibault@ens-lyon.org>
15986 Thomas DiModica <ricinwich@yahoo.com>
15987 Thomas Schwinge <tschwinge@gnu.org>
15988
15989 * htl: New directory.
15990 * sysdeps/htl: New directory.
15991 * sysdeps/hurd/htl: New directory.
15992 * sysdeps/i386/htl: New directory.
15993 * sysdeps/mach/htl: New directory.
15994 * sysdeps/mach/hurd/htl: New directory.
15995 * sysdeps/mach/hurd/i386/htl: New directory.
15996 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15997 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15998 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15999
16000 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16001
16002 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16003 signals in thread created for runing timers.
16004
16005 2018-04-01 Florian Weimer <fweimer@redhat.com>
16006
16007 * support/support_format_addrinfo.c (support_format_addrinfo):
16008 Include unknown error number in formatted result.
16009
16010 2018-03-29 Florian Weimer <fweimer@redhat.com>
16011
16012 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16013 capture SIGBUS.
16014
16015 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16016
16017 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16018 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16019 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16020 (__ASSUME_CLONE_BACKWARDS): Define.
16021
16022 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16023
16024 [BZ #23024]
16025 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16026 early when linux sentinel value is set.
16027
16028 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16029
16030 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16031
16032 2018-03-27 Andreas Schwab <schwab@suse.de>
16033
16034 [BZ #23005]
16035 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16036 allocation of private copy of nsaddr_list fails.
16037
16038 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16039
16040 [BZ #16552]
16041 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16042 * sysdeps/unix/sysv/linux/umount.c: ... here.
16043 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16044 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16045 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16046 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16048 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16049 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16050
16051 2018-03-26 Andreas Schwab <schwab@suse.de>
16052
16053 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16054 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16055 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16056 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16057 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16058 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16059 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16060 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16061 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16062 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16063 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16064 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16065 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16066 (R_RISCV_NUM): Define.
16067
16068 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16069
16070 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16071 TLS declaration of errno.
16072 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16073 __libc_setup_tls.
16074 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16075 (ARCH_SETUP_TLS): Likewise.
16076 * sysdeps/mach/hurd/libc-start.h: New file copied from
16077 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16078 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16079 instead of __libc_setup_tls.
16080 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16081 __libc_setup_tls before initializing libpthread and running _hurd_init
16082 which starts the signal thread.
16083 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16084 Declare function.
16085 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16086
16087 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16088
16089 [BZ #22998]
16090 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16091 after it is defined.
16092
16093 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16094 Max Horn <max@quendi.de>
16095
16096 [BZ #22644]
16097 CVE-2017-18269
16098 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16099 branch conditions.
16100 * string/test-memmove.c (do_test2): New testcase.
16101
16102 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16103
16104 * sysdeps/generic/frame.h: Remove file.
16105 * sysdeps/arm/frame.h: Likewise.
16106 * sysdeps/hppa/frame.h: Likewise.
16107 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16108 macro.
16109 (GET_FRAME): Likewise.
16110 (GET_STACK): Likewise.
16111 (CALL_SIGHANDLER): Likewise.
16112 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16113 Likewise.
16114 (GET_FRAME): Likewise.
16115 (GET_STACK): Likewise.
16116 (CALL_SIGHANDLER): Likewise.
16117 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16118 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16119 (GET_FRAME): Likewise.
16120 (GET_STACK): Likewise.
16121 (CALL_SIGHANDLER): Likewise.
16122 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16123 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16124 (GET_FRAME): Likewise.
16125 (GET_STACK): Likewise.
16126 (ADVANCE_STACK_FRAME): Likewise.
16127 (CALL_SIGHANDLER): Likewise.
16128 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16129 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16130 (GET_FRAME): Likewise.
16131 (GET_STACK): Likewise.
16132 (CALL_SIGHANDLER): Likewise.
16133 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16134 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16135 (GET_FRAME): Likewise.
16136 (GET_STACK): Likewise.
16137 (CALL_SIGHANDLER): Likewise.
16138 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16139 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16140 (GET_FRAME): Likewise.
16141 (GET_STACK): Likewise.
16142 (CALL_SIGHANDLER): Likewise.
16143 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16144 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16145 (GET_FRAME): Likewise.
16146 (GET_STACK): Likewise.
16147 (CALL_SIGHANDLER): Likewise.
16148 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16149 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16150 (GET_FRAME): Likewise.
16151 (GET_STACK): Likewise.
16152 (CALL_SIGHANDLER): Likewise.
16153 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16154 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16155 (GET_FRAME): Likewise.
16156 (GET_STACK): Likewise.
16157 (CALL_SIGHANDLER): Likewise.
16158 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16159 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16160 (GET_FRAME): Likewise.
16161 (GET_STACK): Likewise.
16162 (CALL_SIGHANDLER): Likewise.
16163 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16164 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16165 (GET_FRAME): Likewise.
16166 (GET_STACK): Likewise.
16167 (CALL_SIGHANDLER): Likewise.
16168 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16169 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16170 (GET_FRAME): Likewise.
16171 (GET_STACK): Likewise.
16172 (CALL_SIGHANDLER): Likewise.
16173 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16174 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16175 (FIRST_FRAME_POINTER): Likewise.
16176 (ADVANCE_STACK_FRAME): Likewise.
16177 (GET_STACK): Likewise.
16178 (GET_FRAME): Likewise.
16179 (CALL_SIGHANDLER): Likewise.
16180 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16181 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16182 (ADVANCE_STACK_FRAME): Likewise.
16183 (GET_STACK): Likewise.
16184 (GET_FRAME): Likewise.
16185 (CALL_SIGHANDLER): Likewise.
16186 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16187 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16188 (GET_FRAME): Likewise.
16189 (GET_STACK): Likewise.
16190 (CALL_SIGHANDLER): Likewise.
16191 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16192 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16193 (GET_FRAME): Likewise.
16194 (GET_STACK): Likewise.
16195 (CALL_SIGHANDLER): Likewise.
16196
16197 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16198
16199 * sysdeps/x86_64/backtrace.c: Move to ....
16200 * debug/backtrace.c: ... here.
16201 * sysdeps/aarch64/backtrace.c: Remove file.
16202 * sysdeps/alpha/backtrace.c: Likewise.
16203 * sysdeps/hppa/backtrace.c: Likewise.
16204 * sysdeps/ia64/backtrace.c: Likewise.
16205 * sysdeps/mips/backtrace.c: Likewise.
16206 * sysdeps/nios2/backtrace.c: Likewise.
16207 * sysdeps/riscv/backtrace.c: Likewise.
16208 * sysdeps/sh/backtrace.c: Likewise.
16209 * sysdeps/tile/backtrace.c: Likewise.
16210
16211 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16212
16213 [BZ #22987]
16214 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16215 function.
16216 (fdimf): Likewise.
16217 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16218
16219 [BZ #17343]
16220 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16221 possibly overflowing computations.
16222
16223 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16224
16225 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16226 values from Linux-specific section now that it is in the GNU section.
16227 * sysdeps/gnu/errlist.c: Regenerate.
16228
16229 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16230
16231 * math/Makefile (libm-narrow-fns): Add sub.
16232 (libm-test-funcs-narrow): Likewise.
16233 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16234 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16235 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16236 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16237 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16238 (NARROW_SUB_TRIVIAL): Likewise.
16239 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16240 macro.
16241 (__dsubl): Likewise.
16242 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16243 dsub.
16244 (CFLAGS-nldbl-dsub.c): New variable.
16245 (CFLAGS-nldbl-fsub.c): Likewise.
16246 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16247 __nldbl_dsubl.
16248 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16249 prototype.
16250 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16251 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16252 * math/auto-libm-test-in: Add tests of sub.
16253 * math/auto-libm-test-out-narrow-sub: New generated file.
16254 * math/libm-test-narrow-sub.inc: New file.
16255 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16256 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16257 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16258 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16259 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16260 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16261 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16262 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16263 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16264 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16265 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16266 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16267 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16268 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16269 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16270 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16271 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16272 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16273 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16274 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16275 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16276 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16277 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16278 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16279 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16280 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16281 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16282 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16283 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16284 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16285 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16286 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16291 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16292 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16293 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16294 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16295 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16296 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16297 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16298 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16299 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16300 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16301
16302 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16303
16304 [BZ #20079]
16305 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16306
16307 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16308
16309 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16310
16311 2018-03-18 Richard Braun <rbraun@sceen.net>
16312
16313 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16314 thread reference.
16315
16316 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16317
16318 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16319 (__libc_cleanup_fct): Define function.
16320 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16321 __libc_cleanup_end): Rewrite implementation using
16322 __attribute__ ((__cleanup__)).
16323 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16324 * hurd/Makefile (routines): Add hurdlock.
16325 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16326 interface.
16327 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16328 * hurd/hurdpid.c: Include <lowlevellock.h>
16329 (_S_msg_proc_newids): Use lll_wait to synchronize.
16330 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16331 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16332 * mach/Makefile (lock-headers): Remove machine-lock.h.
16333 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16334 <machine-lock.h>.
16335 (__spin_lock_t): New type.
16336 (__SPIN_LOCK_INITIALIZER): New macro.
16337 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16338 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16339 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16340 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16341 (__mutex_init): Initialize with lll.
16342 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16343 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16344 needing lll.
16345 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16346 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16347 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16348 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16349 (__setpgid): Use lll for synchronization.
16350 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16351 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16352 instead of <cthreads.h>.
16353 (_IO_lock_inexpensive): New macro
16354 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16355 (__libc_lock_self0): New declaration.
16356 (__libc_lock_owner_self): New macro.
16357 (__libc_key_t): Remove type.
16358 (_LIBC_LOCK_INITIALIZER): New macro.
16359 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16360 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16361 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16362 __libc_lock_define_initialized_recursive,
16363 __rtld_lock_define_initialized_recursive,
16364 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16365 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16366 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16367 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16368 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16369 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16370 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16371 New macros.
16372 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16373 * hurd/hurdlock.c: New file.
16374 * hurd/hurdlock.h: New file.
16375 * mach/lowlevellock.h: New file
16376
16377 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16378
16379 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16380 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16381 when opening a symlink with O_NOFOLLOW.
16382 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16383 path when flags contains O_NOFOLLOW.
16384 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16385 if flags contains O_DIRECTORY and the result is a directory.
16386 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16387 oneself when the pointer given in D is nul (as set by ext2fs).
16388 * sysdeps/mach/hurd/mlockall.c: New file.
16389 * sysdeps/mach/hurd/munlockall.c: New file.
16390
16391 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16392
16393 * hurd/hurdsig.c: Include <pthread.h>.
16394 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16395 get the signal thread stack layout.
16396 * hurd/Makefile (headers): Remove threadvar.h.
16397 (inline-headers): Remove threadvar.h.
16398 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16399 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16400 __hurd_threadvar_max, __hurd_errno_location.
16401 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16402 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16403 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16404 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16405 unless TLS is not initialized yet, in which case we do not need a
16406 critical section yet anyway.
16407 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16408 <machine-sp.h>.
16409 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16410 declarations.
16411 (__hurd_threadvar_index): Remove enum.
16412 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16413 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16414 inlines.
16415 (__hurd_reply_port0): New variable declaration.
16416 (__hurd_local_reply_port): New macro.
16417 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16418 (interrupted_reply_port_location): Add thread_t parameter. Use it
16419 with THREAD_TCB to access thread-local variables.
16420 (_hurdsig_abort_rpcs): Pass ss->thread to
16421 interrupted_reply_port_location.
16422 (_hurd_internal_post_signal): Likewise.
16423 (_hurdsig_init): Use presence of cthread_fork instead of
16424 __hurd_threadvar_stack_mask to start signal thread by hand.
16425 Remove signal thread threadvar initialization.
16426 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16427 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16428 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16429 of threadvar.
16430 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16431 __libc_lock_self0.
16432 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16433 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16434 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16435 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16436 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16437 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16438 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16439 define variables.
16440 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16441 <hurd/threadvar.h>.
16442 [IS_IN(rtld)] (rtld_errno): New variable.
16443 [IS_IN(rtld)] (__errno_location): New weak function.
16444 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16445 * sysdeps/mach/hurd/errno.c: Remove file.
16446 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16447 (__fork): Remove THREADVAR_SPACE macro and its use.
16448 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16449 variable.
16450 (init): Do not initialize threadvar.
16451 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16452 symbol.
16453 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16454 __hurd_local_reply_port instead of threadvar.
16455 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16456 _hurd_sigstate fields.
16457 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16458 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16459 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16460 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16461 instead of threadvar.
16462 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16463 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16464 (use_threadvar, global_reply_port): Remove variables.
16465 (__hurd_reply_port0): New variable.
16466 (__mig_get_reply_port): Use __hurd_local_reply_port and
16467 __hurd_reply_port0 instead of threadvar.
16468 (__mig_dealloc_reply_port): Likewise.
16469 (__mig_init): Do not initialize threadvar.
16470 * sysdeps/mach/hurd/profil.c: Fix comment.
16471 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16472 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16473 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16474 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16475 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16476 __cthread_setspecific.
16477 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16478 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16479 __cthread_t instead of cthread_fork, cthread_detach,
16480 pthread_getattr_np, pthread_attr_getstack.
16481 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16482 __cthread_keycreate.
16483 (cthread_getspecific): Rename to __cthread_getspecific.
16484 (cthread_setspecific): Rename to __cthread_setspecific.
16485 (__libc_getspecific): Use __cthread_getspecific instead of
16486 cthread_getspecific.
16487 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16488 __cthread_keycreate instead of cthread_keycreate.
16489 (__libc_setspecific): Use __cthread_setspecific instead of
16490 cthread_setspecific.
16491 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16492 Likewise.
16493 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16494 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16495 testing whether it is defined.
16496
16497 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16498
16499 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16500 Define macro.
16501 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16502 * sysdeps/mach/i386/thread_state.h
16503 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16504 i386_THREAD_STATE.
16505 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16506 i386_THREAD_STATE.
16507 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16508
16509 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16510 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16511
16512 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16513 macros.
16514 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16515 descriptor instead of creating a new one.
16516 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16517
16518 * mach/setup-thread.c: Include <ldsodefs.h>.
16519 (__mach_setup_thread): Call _dl_allocate_tls, pass
16520 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16521 MACHINE_THREAD_STATE_FLAVOR, before getting
16522 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16523 MACHINE_THREAD_STATE_FLAVOR with the result.
16524 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16525 MACHINE_THREAD_STATE_FIX_NEW.
16526 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16527 too. Add original thread parameter.
16528
16529 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16530
16531 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16532 Remove inline function.
16533
16534 * sysdeps/i386/fpu/libm-test-ulps: Update.
16535 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16536
16537 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16538
16539 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16540 commit.
16541
16542 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16543
16544 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16545 (__sincos_code): Remove define and undefine.
16546 [__FAST_MATH__] (__sincos): Remove inline function.
16547 [__FAST_MATH__] (__sincosf): Remove inline function.
16548 [__FAST_MATH__] (__sincosl): Remove inline function.
16549 (__atan2l): Remove inline functions.
16550 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16551 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16552 function.
16553 (floor): Remove inline function.
16554 (ceil): Likewise.
16555 [__FAST_MATH__] (__ldexp_code): Remove macro.
16556 [__FAST_MATH__] (ldexp): Remove inline function.
16557 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16558 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16559 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16560 [__USE_ISOC99] (__lrint_code): Remove macro.
16561 [__USE_ISOC99] (__llrint_code): Likewise.
16562 [__USE_ISOC99] (lrintf): Remove inline function.
16563 [__USE_ISOC99] (lrint): Likewise.
16564 [__USE_ISOC99] (lrintl): Likewise.
16565 [__USE_ISOC99] (llrint): Likewise.
16566 [__USE_ISOC99] (llrintf): Likewise.
16567 [__USE_ISOC99] (llrintl): Likewise.
16568
16569 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16570
16571 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16572 (__ieee754_sqrtf): Remove.
16573 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16574 (__ieee754_sqrtf): Remove.
16575 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16576 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16577 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16578 (__ieee754_sqrtf): Remove.
16579 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16580 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16581 (sqrtf): Remove.
16582 (sqrtl): Remove.
16583 (__ieee754_sqrt): Remove.
16584 (__ieee754_sqrtf): Remove.
16585 (__ieee754_sqrtl): Remove.
16586 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16587 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16588 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16589 (__ieee754_sqrtf): Remove.
16590 (__ieee754_sqrtl): Remove.
16591
16592 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16593
16594 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16595 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16596 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16597 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16598 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16599 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16600 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16601 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16602 Likewise.
16603 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16604 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16605 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16606 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16607 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16608 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16609 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16610 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16611 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16612 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16613 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16614 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16615 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16616 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16617 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16618 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16619 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16620 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16621 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16622 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16623 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16624 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16625 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16626 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16627 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16628 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16629 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16630 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16631 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16632 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16633 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16634 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16635 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16636 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16637 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16638 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16639 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16640 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16641 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16642 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16643
16644 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16645
16646 * include/math.h (sqrt): Declare with asm redirect.
16647 (sqrtf): Likewise.
16648 (sqrtl): Likewise.
16649 (sqrtf128): Likewise.
16650 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16651 nonlib and libnldbl with -fmath-errno.
16652 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16653 * math/w_sqrt_template.c: Likewise.
16654 * math/w_sqrtf_compat.c: Likewise.
16655 * math/w_sqrtl_compat.c: Likewise.
16656 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16657 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16658 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16659 complex.h.
16660
16661 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16662
16663 * benchtests/Makefile: Define _ISOMAC.
16664 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16665 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16666 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16667 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16668 * benchtests/bench-timing.h: Define attribute_hidden.
16669
16670 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16671
16672 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16673 mov + lsr.
16674
16675 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16676
16677 [BZ #22963]
16678 * localedata/locales/cs_CZ (mon): Rename to...
16679 (alt_mon): This.
16680 (mon): Import from CLDR (genitive case).
16681
16682 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16683
16684 [BZ #22937]
16685 * localedata/locales/el_CY (abmon): Rename to...
16686 (ab_alt_mon): This.
16687 (abmon): Import from CLDR (abbreviated genitive case).
16688 * localedata/locales/el_GR (abmon): Rename to...
16689 (ab_alt_mon): This.
16690 (abmon): Import from CLDR (abbreviated genitive case).
16691
16692 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16693
16694 [BZ #22932]
16695 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16696
16697 2018-03-15 Robert Buj <robert.buj@gmail.com>
16698
16699 [BZ #22848]
16700 * localedata/locales/ca_ES (abmon): Rename to...
16701 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16702 (mon): Rename to...
16703 (alt_mon): This.
16704 (abmon): Import from CLDR (genitive case, month names preceded by
16705 "de" or "d’").
16706 (mon): Likewise.
16707 (abday): Synchronize with CLDR.
16708 (d_t_fmt): Likewise.
16709 (d_fmt): Likewise.
16710 (am_pm): Likewise.
16711
16712 (LC_TIME): Improve indentation.
16713 (LC_TELEPHONE): Likewise.
16714 (LC_NAME): Likewise.
16715 (LC_ADDRESS): Likewise.
16716
16717 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16718
16719 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16720 (lrintf): Remove definitions used only with old GCC.
16721 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16722 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16723 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16724 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16725 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16726 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16727 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16728 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16729 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16730 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16731 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16732 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16733 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16734 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16735 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16736 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16737 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16738 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16739 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16740 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16741 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16742 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16743 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16744 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16745 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16746 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16747 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16748 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16749
16750 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16751
16752 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16753 instruction to unbreak builds with binutils 2.26 and older.
16754
16755 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16756
16757 * sysdeps/aarch64/strncmp.S (count): New macro.
16758 (strncmp): Store misaligned length in SRC1 in COUNT.
16759 (mutual_align): Adjust.
16760 (misaligned8): Load dword at a time when it is safe.
16761
16762 2018-03-12 Zack Weinberg <zackw@panix.com>
16763
16764 [BZ #1190]
16765 [BZ #19476]
16766 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16767 if the _IO_EOF_SEEN bit is already set; update commentary.
16768 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16769 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16770
16771 * support/support_openpty.c, support/tty.h: New files.
16772 * support/Makefile (libsupport-routines): Add support_openpty.
16773
16774 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16775 New test cases.
16776 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16777 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16778
16779 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16780
16781 * po/pt_BR.po: Update translations.
16782
16783 2018-03-12 David Michael <fedora.dm0@gmail.com>
16784
16785 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16786 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16787 get a port to the startup server.
16788
16789 2018-03-11 Zack Weinberg <zackw@panix.com>
16790
16791 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16792 before nldbl-compat.h.
16793
16794 2018-03-10 Zack Weinberg <zackw@panix.com>
16795
16796 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16797 math.h or math_private.h.
16798
16799 * sysdeps/alpha/fpu/s_isnan.c
16800 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16801 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16802 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16803 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16804 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16805 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16806 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16807 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16808 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16809 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16810 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16811 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16812 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16813 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16814 Include math_private.h.
16815
16816 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16817 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16818 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16819 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16820 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16821 * sysdeps/powerpc/power7/fpu/s_logb.c:
16822 Include math.h and math_private.h.
16823
16824 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16825 uses of $at in .set noat / .set at.
16826
16827 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16828
16829 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16830 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16831 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16832 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16833 Likewise.
16834
16835 2018-03-09 Florian Weimer <fweimer@redhat.com>
16836
16837 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16838 in comment.
16839
16840 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16841
16842 [BZ #22919]
16843 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16844 Add nop before __startcontext, add explaining comments.
16845
16846 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16847
16848 [BZ #22926]
16849 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16850 empty for __SPE__.
16851 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16852 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16853 Do not build hardware transactional code for __SPE__.
16854 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16855 (__lll_trylock_elision): Likewise.
16856 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16857 (__lll_unlock_elision): Likewise.
16858
16859 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16860 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16861 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16862 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16863 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16864 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16865 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16866 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16867 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16868 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16869 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16870 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16871 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16872 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16873 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16874 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16875 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16876 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16877 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16878 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16879 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16880 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16881 (__ASSUME_CLONE_BACKWARDS): Define.
16882 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16883 __clone2 if __NR_clone2 is defined.
16884 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16885 (__ASSUME_CLONE_BACKWARDS): Likewise.
16886 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16887 (__ASSUME_CLONE_BACKWARDS): Likewise.
16888 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16889 (__ASSUME_CLONE2): Likewise.
16890 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16891 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16892 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16893 variants and the define architecture can use.
16894 (__ASSUME_CLONE_DEFAULT): Define as default.
16895 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16896 (__ASSUME_CLONE_BACKWARDS): Likewise.
16897 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16898 (__ASSUME_CLONE_BACKWARDS): Likewise.
16899 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16900 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16901
16902 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16903
16904 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16905
16906 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16907 time.
16908
16909 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16910 (do_test_limit): Likewise.
16911
16912 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16913 for every implementation.
16914 (do_test): Likewise.
16915
16916 * benchtests/bench-strncmp.c: Convert output to json.
16917
16918 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16919
16920 * io/futimens.c: Add missing start-of-file descriptive comment.
16921 * io/utime.c: Likewise.
16922 * misc/futimesat.c: Likewise.
16923 * misc/utimes.c: Likewise.
16924 * sysdeps/mach/hurd/futimesat.c: Likewise.
16925 * sysdeps/mach/hurd/utimes.c: Likewise.
16926 * sysdeps/posix/utime.c: Likewise.
16927 * sysdeps/posix/utimes.c: Likewise.
16928 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16929 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16930 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16931 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16932
16933 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16934
16935 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16936 hurd_futimes.
16937 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16938 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16939 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16940 (__futimens): Move implementation to...
16941 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16942 utime_tvalue_from_tspec): ... new helper functions.
16943 (hurd_futimens): New function.
16944 * sysdeps/mach/hurd/futimesat.c: New file.
16945 * sysdeps/mach/hurd/utimensat.c: New file.
16946
16947 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16948
16949 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16950 UTIME_OMIT): New macros.
16951 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16952 before reverting to converting time spec to time value and calling
16953 __file_utimes.
16954 * sysdeps/mach/hurd/utime-helper.c: New file.
16955 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16956 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16957 reverting to utime_tvalue_from_tval and __file_utimes.
16958 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16959 (__lutimes): Just call hurd_futimens after lookup.
16960 * sysdeps/mach/hurd/utimes.c: Likewise.
16961
16962 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16963
16964 * bits/sigaction.h: Add include guard.
16965 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16966 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16967 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16968 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16969 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16970 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16971 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16972 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16973 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16974
16975 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16976
16977 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16978 -Wmaybe-uninitialized for -Os.
16979 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16980 this disabling.
16981
16982 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16983
16984 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16985 __INO_T_MATCHES_INO64_T is defined.
16986 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16987 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16988 of definition.
16989 * dirent/alphasort64.c: Likewise.
16990 * dirent/scandir.c: Likewise.
16991 * dirent/scandir64-tail.c: Likewise.
16992 * dirent/scandir64.c: Likewise.
16993 * dirent/scandirat.c: Likewise.
16994 * dirent/scandirat64.c: Likewise.
16995 * dirent/versionsort.c: Likewise.
16996 * dirent/versionsort64.c: Likewise.
16997 * include/dirent.h: Likewise.
16998
16999 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17000 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17001 for socketpair endpoint.
17002 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17003 WRITE_BUFFER_SIZE as buffer size for sending socket.
17004 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17005 issue on system where send is implemented with sendto syscall.
17006 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17007 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17008 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17009 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17010
17011 [BZ #21269]
17012 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17013 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17014 sa_restorer for vDSO case.
17015 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17016
17017 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17018
17019 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17020 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17021 * hurd/hurd/ioctl.h: Include <mach/port.h>
17022 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17023 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17024 <mach/mach_types.h> and <mach/message.h>.
17025 (headers): Move mach/param.h to bits/mach/param.h.
17026 * sysdeps/mach/i386/mach/param.h: Move file to ...
17027 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17028 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17029 of <mach/param.h>.
17030 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17031 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17032 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17033 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17034 trivial, for C++ conformity.
17035 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17036 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17037 Process mig output through $(migheadersed).
17038 * hurd/Makefile (migheadersed): Define variable.
17039 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17040 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17041 headers.
17042 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17043 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17044 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17045 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17046 <bits/types/sigset_t.h>.
17047 [!defined __USE_GNU]: Do not #error out.
17048 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17049 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17050 Include <stddef.h> and <bits/types/sigset_t.h>
17051 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17052 instead of sighandler_t.
17053 * stdlib/errno.h (error_t): Move definition to...
17054 * bits/types/error_t.h: ... new header.
17055 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17056 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17057 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17058 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17059 * hurd/hurd.h: Include <bits/types/error_t.h>
17060 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17061 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17062 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17063 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17064 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17065 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17066 * sysdeps/mach/hurd/futimens.c: New file.
17067
17068 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17069
17070 [BZ #22918]
17071 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17072 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17073 * nscd/gai.c (__nss_hosts_database): Readd definition.
17074 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17075 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17076 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17077
17078 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17079
17080 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17081 (ifunc_one): Likewise.
17082
17083 2018-03-01 DJ Delorie <dj@delorie.com>
17084
17085 [BZ #22342]
17086 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17087 key value.
17088
17089 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17090
17091 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17092 `match_pid' parameter.
17093 (td_ta_thr_iter): Update accordingly.
17094
17095 2018-03-01 Florian Weimer <fweimer@redhat.com>
17096
17097 * nptl/Makefile (install-lib-ldscripts): Remove.
17098 (install): Remove rule.
17099 ($(inst_libdir)/libpthread.so): Likewise.
17100
17101 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17102
17103 [BZ #22896]
17104 * localedata/locales/an_ES: update month and day names,
17105 improve d_fmt, improve postal_fmt, add country_post,
17106 add country_isbn
17107
17108 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17109
17110 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17111 Ukrainian instead of Bulgarian.
17112
17113 2018-03-01 Florian Weimer <fweimer@redhat.com>
17114
17115 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17116 reference.
17117
17118 2018-03-01 Florian Weimer <fweimer@redhat.com>
17119
17120 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17121 * nptl/Makefile (routines): Add pthread_atfork.
17122 (static-only-routines): Set to pthread_atfork.
17123 (libpthread-routines): Remove pthread_atfork.
17124 (libpthread-static-only-routines): Remove.
17125 (install): Update comment.
17126 (libpthread.so): Do not install libpthread_nonshared.a.
17127 (tests): Do not link with libpthread_nonshared.a.
17128 (generated): Remove libpthread_nonshared.a.
17129 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17130 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17131 with libpthread_nonshared.a.
17132
17133 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17134
17135 [BZ #22902]
17136 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17137 (libc_feholdexcept_setroundf128): New macro.
17138 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17139
17140 [BZ #15105]
17141 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17142 libc_hidden_def.
17143 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17144 * include/inttypes.h: New file.
17145
17146 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17147
17148 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17149 -Os in two more places.
17150
17151 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17152
17153 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17154 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17155 be sorted correctly at the moment because of a bug.
17156
17157 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17158
17159 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17160 treat ñ as a primary different character, sync the collation
17161 for Spanish with CLDR.
17162 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17163 * localedata/Makefile: Add new test files.
17164 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17165 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17166 collation order.
17167 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17168 * localedata/am_ET.UTF-8.in: New test file.
17169 * localedata/az_AZ.UTF-8.in: Likewise.
17170 * localedata/be_BY.UTF-8.in: Likewise.
17171 * localedata/ber_DZ.UTF-8.in: Likewise.
17172 * localedata/ber_MA.UTF-8.in: Likewise.
17173 * localedata/bg_BG.UTF-8.in: Likewise.
17174 * localedata/br_FR.UTF-8.in: Likewise.
17175 * localedata/cmn_TW.UTF-8.in: Likewise.
17176 * localedata/crh_UA.UTF-8.in: Likewise.
17177 * localedata/csb_PL.UTF-8.in: Likewise.
17178 * localedata/cv_RU.UTF-8.in: Likewise.
17179 * localedata/cy_GB.UTF-8.in: Likewise.
17180 * localedata/dz_BT.UTF-8.in: Likewise.
17181 * localedata/eo.UTF-8.in: Likewise.
17182 * localedata/es_ES.UTF-8.in: Likewise.
17183 * localedata/fa_IR.UTF-8.in: Likewise.
17184 * localedata/fi_FI.UTF-8.in: Likewise.
17185 * localedata/fil_PH.UTF-8.in: Likewise.
17186 * localedata/fur_IT.UTF-8.in: Likewise.
17187 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17188 * localedata/ha_NG.UTF-8.in: Likewise.
17189 * localedata/ig_NG.UTF-8.in: Likewise.
17190 * localedata/ik_CA.UTF-8.in: Likewise.
17191 * localedata/kk_KZ.UTF-8.in: Likewise.
17192 * localedata/ku_TR.UTF-8.in: Likewise.
17193 * localedata/ky_KG.UTF-8.in: Likewise.
17194 * localedata/ln_CD.UTF-8.in: Likewise.
17195 * localedata/mi_NZ.UTF-8.in: Likewise.
17196 * localedata/ml_IN.UTF-8.in: Likewise.
17197 * localedata/mn_MN.UTF-8.in: Likewise.
17198 * localedata/mr_IN.UTF-8.in: Likewise.
17199 * localedata/mt_MT.UTF-8.in: Likewise.
17200 * localedata/nb_NO.UTF-8.in: Likewise.
17201 * localedata/om_KE.UTF-8.in: Likewise.
17202 * localedata/os_RU.UTF-8.in: Likewise.
17203 * localedata/ps_AF.UTF-8.in: Likewise.
17204 * localedata/ro_RO.UTF-8.in: Likewise.
17205 * localedata/ru_RU.UTF-8.in: Likewise.
17206 * localedata/sc_IT.UTF-8.in: Likewise.
17207 * localedata/se_NO.UTF-8.in: Likewise.
17208 * localedata/sq_AL.UTF-8.in: Likewise.
17209 * localedata/sv_SE.UTF-8.in: Likewise.
17210 * localedata/szl_PL.UTF-8.in: Likewise.
17211 * localedata/tg_TJ.UTF-8.in: Likewise.
17212 * localedata/tk_TM.UTF-8.in: Likewise.
17213 * localedata/tt_RU.UTF-8.in: Likewise.
17214 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17215 * localedata/ug_CN.UTF-8.in: Likewise.
17216 * localedata/uz_UZ.UTF-8.in: Likewise.
17217 * localedata/vi_VN.UTF-8.in: Likewise.
17218 * localedata/yi_US.UTF-8.in: Likewise.
17219 * localedata/yo_NG.UTF-8.in: Likewise.
17220 * localedata/zh_CN.UTF-8.in: Likewise.
17221 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17222 file and fix bugs in the collation.
17223 * localedata/locales/az_AZ: Likewise.
17224 * localedata/locales/be_BY: Likewise.
17225 * localedata/locales/ber_DZ: Likewise.
17226 * localedata/locales/ber_MA: Likewise.
17227 * localedata/locales/bg_BG: Likewise.
17228 * localedata/locales/br_FR: Likewise.
17229 * localedata/locales/br_FR@euro: Likewise.
17230 * localedata/locales/ca_ES: Likewise.
17231 * localedata/locales/cns11643_stroke: Likewise.
17232 * localedata/locales/crh_UA: Likewise.
17233 * localedata/locales/cs_CZ: Likewise.
17234 * localedata/locales/csb_PL: Likewise.
17235 * localedata/locales/cv_RU: Likewise.
17236 * localedata/locales/cy_GB: Likewise.
17237 * localedata/locales/da_DK: Likewise.
17238 * localedata/locales/dz_BT: Likewise.
17239 * localedata/locales/en_CA: Likewise.
17240 * localedata/locales/eo: Likewise.
17241 * localedata/locales/es_CU: Likewise.
17242 * localedata/locales/es_EC: Likewise.
17243 * localedata/locales/es_ES: Likewise.
17244 * localedata/locales/es_US: Likewise.
17245 * localedata/locales/et_EE: Likewise.
17246 * localedata/locales/fa_IR: Likewise.
17247 * localedata/locales/fi_FI: Likewise.
17248 * localedata/locales/fil_PH: Likewise.
17249 * localedata/locales/fur_IT: Likewise.
17250 * localedata/locales/gez_ER@abegede: Likewise.
17251 * localedata/locales/ha_NG: Likewise.
17252 * localedata/locales/hr_HR: Likewise.
17253 * localedata/locales/hsb_DE: Likewise.
17254 * localedata/locales/hu_HU: Likewise.
17255 * localedata/locales/ig_NG: Likewise.
17256 * localedata/locales/ik_CA: Likewise.
17257 * localedata/locales/is_IS: Likewise.
17258 * localedata/locales/iso14651_t1_pinyin: Likewise.
17259 * localedata/locales/kk_KZ: Likewise.
17260 * localedata/locales/ku_TR: Likewise.
17261 * localedata/locales/ky_KG: Likewise.
17262 * localedata/locales/ln_CD: Likewise.
17263 * localedata/locales/lt_LT: Likewise.
17264 * localedata/locales/lv_LV: Likewise.
17265 * localedata/locales/mi_NZ: Likewise.
17266 * localedata/locales/ml_IN: Likewise.
17267 * localedata/locales/mn_MN: Likewise.
17268 * localedata/locales/mr_IN: Likewise.
17269 * localedata/locales/mt_MT: Likewise.
17270 * localedata/locales/nb_NO: Likewise.
17271 * localedata/locales/om_KE: Likewise.
17272 * localedata/locales/os_RU: Likewise.
17273 * localedata/locales/pl_PL: Likewise.
17274 * localedata/locales/ps_AF: Likewise.
17275 * localedata/locales/ro_RO: Likewise.
17276 * localedata/locales/ru_RU: Likewise.
17277 * localedata/locales/ru_UA: Likewise.
17278 * localedata/locales/sc_IT: Likewise.
17279 * localedata/locales/se_NO: Likewise.
17280 * localedata/locales/si_LK: Likewise.
17281 * localedata/locales/sq_AL: Likewise.
17282 * localedata/locales/sv_FI: Likewise.
17283 * localedata/locales/sv_FI@euro: Likewise.
17284 * localedata/locales/sv_SE: Likewise.
17285 * localedata/locales/szl_PL: Likewise.
17286 * localedata/locales/tg_TJ: Likewise.
17287 * localedata/locales/ti_ER: Likewise.
17288 * localedata/locales/tk_TM: Likewise.
17289 * localedata/locales/tl_PH: Likewise.
17290 * localedata/locales/tr_TR: Likewise.
17291 * localedata/locales/tt_RU: Likewise.
17292 * localedata/locales/tt_RU@iqtelif: Likewise.
17293 * localedata/locales/ug_CN: Likewise.
17294 * localedata/locales/uk_UA: Likewise.
17295 * localedata/locales/uz_UZ: Likewise.
17296 * localedata/locales/uz_UZ@cyrillic: Likewise.
17297 * localedata/locales/vi_VN: Likewise.
17298 * localedata/locales/yi_US: Likewise.
17299 * localedata/locales/yo_NG: Likewise.
17300
17301 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17302
17303 * gen-locales.mk: Make test files which contain @ modifiers in their
17304 name work.
17305 * localedata/gen-locale.sh: Likewise.
17306
17307 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17308
17309 * posix/tst-fnmatch.input: Fix results for range expressions
17310 for non C locales.
17311 * posix/tst-regexloc.c: Do not use a range expression for
17312 de_DE.ISO-8859-1 locale.
17313
17314 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17315
17316 * posix/bug-regex5.c: Fix test case because with the new
17317 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17318 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17319 file.
17320
17321 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17322
17323 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17324 downloaded from ISO, the collation order of @-. and space has changed.
17325 Therefore, this test file needed to be adapted.
17326 * localedata/fr_CA.UTF-8.in: Likewise.
17327 * localedata/fr_FR.UTF-8.in: Likewise.
17328 * localedata/uk_UA.UTF-8.in: Likewise.
17329
17330 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17331
17332 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17333 order of ȥ in the new iso14651_t1_common file.
17334 * localedata/pl_PL.UTF-8.in: Likewise.
17335
17336 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17337
17338 * localedata/locales/iso14651_t1_common: Add sections for various
17339 scripts to the iso14651_t1_common file.
17340
17341 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17342
17343 * localedata/locales/iso14651_t1_common: Use the code point of a
17344 character in the fourth collation level instead of IGNORE for all
17345 entries which have IGNORE on all 4 levels.
17346
17347 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17348
17349 * localedata/locales/iso14651_t1_common: Add some convenient collation
17350 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17351 rules similar to those in CLDR.
17352
17353 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17354
17355 * localedata/locales/iso14651_t1_common: The new version of this
17356 file downloaded from ISO contained several syntax errors which
17357 are fixed by this patch.
17358
17359 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17360
17361 * localedata/locales/iso14651_t1_common: replace all <U.....>
17362 with <U000.....> because glibc understands only 4 digit or 8 digit
17363
17364 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17365
17366 * localedata/locales/iso14651_t1_common: Necessary changes
17367 to make the file downloaded from ISO usable by glibc.
17368
17369 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17370
17371 [BZ #14095]
17372 * localedata/locales/iso14651_t1_common: Update file to
17373 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17374
17375 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17376
17377 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17378 of <nptl/pthreadP.h>
17379 (thread_attr_compare): Move function to...
17380 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17381 * sysdeps/nptl/timer_routines.h: ... new header.
17382 * sysdeps/mach/hurd/gai_misc.h: New file.
17383
17384 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17385
17386 * string/strcoll_l.c: Include <libc-diag.h>.
17387 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17388 declarations of seq1 and seq2.
17389
17390 [BZ #15105]
17391 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17392 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17393
17394 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17395
17396 [BZ #22433]
17397 [BZ #22807]
17398 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17399 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17400 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17401 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17402 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17403 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17404
17405 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17406
17407 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17408 macros used in __ptrace_request.
17409
17410 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17411
17412 [BZ #22792]
17413 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17414 to $(CC).
17415 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17416 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17417 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17418 <tcb-offsets.h>.
17419
17420 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17421
17422 [BZ #15105]
17423 * ctype/ctype.c (tolower): Use libc_hidden_def.
17424 (toupper): Likewise.
17425 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17426 [!_ISOMAC] (toupper): Likewise.
17427
17428 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17429
17430 * localedata/Makefile: Remove --quiet argument when
17431 installing locales
17432
17433 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17434
17435 [BZ #17438]
17436 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17437 in d_fmt.
17438 * localedata/locales/pt_PT (LC_TIME): likewise
17439
17440 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17441
17442 [BZ #22646]
17443 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17444 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17445 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17446
17447 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17448
17449 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17450
17451 * nptl/Makefile (routines): Remove unregister-atfork.
17452 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17453 (fork_handler_alloc): Remove function.
17454 (fork_handlers, fork_handler_init): New variables.
17455 (__fork_lock): Rename to atfork_lock.
17456 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17457 to use a dynamic array to add/remove atfork handlers.
17458 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17459 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17460 Remove declaration.
17461 (fork_handler): Remove next, refcntr, and need_signal member.
17462 (__run_fork_handler_type): New enum.
17463 (__run_fork_handlers): New prototype.
17464 * nptl/register-atfork.c: Remove file.
17465 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17466
17467 * sysdeps/nptl/nptl-signals.h: Move to ...
17468 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17469 comments.
17470 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17471 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17472 unnecessary check for SIGTIMER.
17473 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17474 remove unnecessary removal of SIGTIMER.
17475 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17476 include-signals.h rename.
17477 * nptl/pthreadP.h: Likewise.
17478 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17479 __is_internal_signal instead of __nptl_is_internal_signal.
17480
17481 2018-02-22 Andrew Waterman <andrew@sifive.com>
17482
17483 [BZ # 22884]
17484 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17485 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17486 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17487 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17488
17489 2018-02-22 DJ Delorie <dj@delorie.com>
17490
17491 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17492
17493 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17494
17495 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17496 do_misaligned, not misaligned8.
17497
17498 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17499
17500 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17501 Add memcpy_thunderx2.
17502 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17503 Increment to 4.
17504 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17505 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17506 and IS_THUNDERX2PA checks.
17507 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17508 Use macro to set name appropriately.
17509 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17510 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17511 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17512 New macro.
17513 (IS_THUNDERX2): New macro.
17514
17515 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17516
17517 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17518
17519 2018-02-21 Zack Weinberg <zackw@panix.com>
17520
17521 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17522 Define here, unconditionally.
17523 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17524 * libio/libioP.h: Remove #if 0 blocks.
17525 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17526 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17527 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17528
17529 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17530 Assume weak_alias is always defined.
17531
17532 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17533 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17534 Remove #if 0 and #ifdef TODO blocks.
17535 Assume text_set_element is always defined.
17536
17537 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17538 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17539 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17540
17541 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17542 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17543 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17544 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17545 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17546 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17547 Reformat bit flags for _flags field to make occupancy clearer.
17548 Update commentary.
17549 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17550 Keep definitions consistent with those in libio/libio.h.
17551
17552 * libio/libio.h (_IO_file_flags): Remove macro.
17553 All uses changed to _flags.
17554
17555 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17556 (__HAVE_COLUMN, _IO_BE): Don't define.
17557 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17558 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17559 * libio/libioP.h (EOF): Don't define.
17560 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17561 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17562 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17563 testing _IO_UNIFIED_JUMPTABLES.
17564
17565 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17566 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17567 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17568 (_IO_size_t): Delete; all uses changed to size_t.
17569 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17570 (_IO_off_t): Delete; all uses changed to off_t.
17571 (_IO_off64_t): Delete; all uses changed to off64_t.
17572 (_IO_pid_t): Delete; all uses changed to pid_t.
17573 (_IO_uid_t): Delete; all uses changed to uid_t.
17574 (_IO_wint_t): Delete; all uses changed to wint_t.
17575 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17576 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17577 (_IO_cookie_io_functions_t): Delete; all uses changed to
17578 cookie_io_functions_t.
17579 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17580 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17581 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17582 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17583
17584 * libio/iofopncook.c: Remove unnecessary forward declarations.
17585 * libio/iolibio.h: Correct outdated commentary.
17586 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17587 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17588 Remove unnecessary casts.
17589 * stdio-common/getline.c: Use _IO_getdelim directly.
17590 Don't redefine ssize_t.
17591 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17592 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17593 Remove outdated comments.
17594 * stdio-common/vfscanf.c: Don't redefine va_list.
17595
17596 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17597 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17598 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17599 which are always true, and __cplusplus, which is always false.
17600
17601 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17602
17603 [BZ #15105]
17604 [BZ #19463]
17605 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17606 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17607 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17608 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17609 libc_hidden_proto.
17610 [!_ISOMAC] (putc_unlocked): Likewise.
17611 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17612 define inline if [__USE_EXTERN_INLINES].
17613 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17614 putc_unlocked.
17615
17616 [BZ #15105]
17617 [BZ #19463]
17618 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17619 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17620 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17621 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17622 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17623 getc_unlocked.
17624 * time/tzfile.c (__tzfile_read): Likewise.
17625
17626 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17627
17628 [BZ #22517]
17629 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17630
17631 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17632
17633 * io/fcntl.h: Fix a typo in a comment.
17634
17635 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17636
17637 [BZ #22862]
17638 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17639 define _DEFAULT_SOURCE.
17640 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17641
17642 2018-02-21 Florian Weimer <fweimer@redhat.com>
17643
17644 [BZ #20890]
17645 * elf/cache.c (save_cache): Call fsync on temporary file before
17646 renaming it.
17647 (save_aux_cache): Call fdatasync on temporary file before renaming
17648 it.
17649
17650 2018-02-21 Florian Weimer <fweimer@redhat.com>
17651
17652 [BZ #22787]
17653 * include/caller.h: Remove file.
17654 * elf/dl-caller.c: Likewise.
17655 * elf/Makefile (dl-routines): Remove dl-caller.
17656 (shared-only-routines): Do not add dl-caller.
17657 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17658 __check_caller.
17659 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17660 member.
17661 (dl_open_worker): Do not call __check_caller.
17662 (_dl_open): Do not set caller_dl_open member.
17663 * elf/rtld.c (_rtld_global_ro): Do not initialize
17664 _dl_check_caller member.
17665 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17666 _dl_check_caller member.
17667 (_dl_check_caller): Remove declaration.
17668 * sysdeps/unix/sysv/linux/dl-execstack.c
17669 (_dl_make_stack_executable): Do not call __check_caller.
17670
17671 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17672
17673 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17674 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17675
17676 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17677
17678 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17679 description.
17680
17681 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17682
17683 [BZ #16335]
17684 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17685 of 199606L, 200112L, and 200809L.
17686 (_XOPEN_SOURCE): Document special values of 600 and 700.
17687 (_ISOC11_SOURCE): Document macro.
17688 (_ATFILE_SOURCE): Likewise.
17689 (_FORTIFY_SOURCE): Likewise.
17690
17691 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17692
17693 [BZ #15105]
17694 [BZ #19463]
17695 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17696 and define as weak alias of __ferror_unlocked. Use
17697 libc_hidden_weak.
17698 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17699 libc_hidden_proto.
17700 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17701 function if [__USE_EXTERN_INLINES].
17702 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17703 ferror_unlocked.
17704
17705 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17706
17707 [BZ #6889]
17708 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17709
17710 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17711
17712 [BZ #22818]
17713 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17714 the GLIBC_2.1 version.
17715
17716 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17717
17718 [BZ #21508]
17719 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17720 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17721 intl/tst-gettext-de.po from po/de.po by removing the
17722 POT-Creation-Date line.
17723 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17724 ../po/de.po.
17725 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17726 ../po/de.po.
17727
17728 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17729
17730 * mach/Makefile (headers): Add mach/param.h.
17731 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17732 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17733 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17734 (__ptsname_r): Move implementation to...
17735 (__ptsname_internal): ... new function. Add filling the STP
17736 structure.
17737
17738 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17739
17740 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17741 idouble to 1 ULP.
17742
17743 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17744
17745 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17746 syntax.
17747
17748 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17749
17750 * nptl/Makefile (tst-mutex8-ENV): Delete.
17751 * nptl/tst-mutex8.c (check_type):
17752 Add runtime check if mutex will be elided.
17753
17754 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17755
17756 [BZ #20980]
17757 [BZ #21234]
17758 * manual/install.texi (Configuring and compiling): Describe
17759 passing CC and CFLAGS on configure command line, not as
17760 environment variables. Use @code markup on those variables.
17761 Specify what options go in CC and what go in CFLAGS. Note the
17762 requirement to compile with optimization.
17763 * INSTALL: Regenerated.
17764
17765 [BZ #18124]
17766 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17767 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17768 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17769 __sigprocmask instead of sigprocmask.
17770 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17771 Likewise.
17772 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17773 __sigsetjmp and sigprocmask.
17774
17775 [BZ #15105]
17776 * include/argz.h (argz_next): Use libc_hidden_proto.
17777 (__argz_next): Likewise.
17778 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17779 (argz_next): Use libc_hidden_weak.
17780
17781 [BZ #15105]
17782 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17783 libc_hidden_proto.
17784 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17785 libc_hidden_def.
17786
17787 [BZ #15105]
17788 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17789 libc_hidden_proto.
17790 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17791
17792 [BZ #15105]
17793 [BZ #19463]
17794 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17795 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17796 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17797 (__feof_unlocked): New declaration, and inline function if
17798 [__USE_EXTERN_INLINES].
17799 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17800 instead of feof_unlocked.
17801 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17802 * nss/nsswitch.c (nss_parse_file): Likewise.
17803 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17804 Likewise.
17805 * time/getdate.c (__getdate_r): Likewise.
17806 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17807 Define as macro to call __feof_unlocked.
17808
17809 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17810
17811 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17812
17813 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17814
17815 * math/Makefile: Remove mpexp.c and mplog.c
17816 * sysdeps/i386/fpu/mpexp.c: Delete file.
17817 * sysdeps/i386/fpu/mplog.c: Likewise.
17818 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17819 * sysdeps/ia64/fpu/mplog.c: Likewise.
17820 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17821 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17822 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17823 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17824 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17825 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17826 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17827 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17828 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17829 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17830 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17831 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17832 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17833 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17834 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17835 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17836
17837 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17838
17839 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17840
17841 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17842
17843 * sysdeps/sh/libm-test-ulps: Update.
17844
17845 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17846
17847 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17848 idouble to 1 ULP.
17849
17850 2018-02-12 Zack Weinberg <zackw@panix.com>
17851
17852 [BZ #19239]
17853 * posix/sys/types.h: Don't include sys/sysmacros.h.
17854 * misc/sys/sysmacros.h: Remove the conditional deprecation
17855 warnings for the macros defined by this header.
17856
17857 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17858
17859 * manual/probes.texi: Remove slowexp probes.
17860 * math/Makefile: Remove slowexp.
17861 * sysdeps/generic/math_private.h (__slowexp): Remove.
17862 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17863 document error bounds.
17864 * sysdeps/i386/fpu/slowexp.c: Remove.
17865 * sysdeps/ia64/fpu/slowexp.c: Remove.
17866 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17867 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17868 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17869 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17870 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17871 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17872 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17873 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17874 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17875 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17876 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17877
17878 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17879
17880 [BZ #13932]
17881 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17882 * benchtests/pow-inputs: Update comment for slow path cases.
17883 * manual/probes.texi (slowpow_p10): Delete removed probe.
17884 (slowpow_p10): Likewise.
17885 * math/Makefile: Remove halfulp.c and slowpow.c.
17886 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17887 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17888 (__halfulp): Remove.
17889 (__slowpow): Remove.
17890 * sysdeps/i386/fpu/halfulp.c: Delete file.
17891 * sysdeps/i386/fpu/slowpow.c: Likewise.
17892 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17893 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17894 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17895 improve comments and add error analysis.
17896 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17897 (power1): Remove function:
17898 (log1): Remove error argument, add error analysis.
17899 (my_log2): Remove function.
17900 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17901 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17902 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17903 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17904 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17905 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17906 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17907 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17908 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17909 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17910 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17911 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17912 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17913 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17914
17915 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17916
17917 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17918 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17919
17920 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17921
17922 [BZ #22433]
17923 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17924 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17925 and PTRACE_SETHBPREGS.
17926
17927 2018-02-10 Zack Weinberg <zackw@panix.com>
17928
17929 [BZ #22830]
17930 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17931 correctly.
17932 * malloc/tst-malloc-stats-cancellation.c: New test case.
17933 * malloc/Makefile: Add new test case.
17934
17935 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17936
17937 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17938
17939 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17940
17941 * math/Makefile (libm-narrow-fns): Add add.
17942 (libm-test-funcs-narrow): Likewise.
17943 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17944 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17945 * math/gen-auto-libm-tests.c (test_functions): Add add.
17946 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17947 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17948 (NARROW_ADD_TRIVIAL): Likewise.
17949 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17950 macro.
17951 (__daddl): Likewise.
17952 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17953 dadd.
17954 (CFLAGS-nldbl-dadd.c): New variable.
17955 (CFLAGS-nldbl-fadd.c): Likewise.
17956 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17957 __nldbl_daddl.
17958 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17959 prototype.
17960 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17961 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17962 * math/auto-libm-test-in: Add tests of add.
17963 * math/auto-libm-test-out-narrow-add: New generated file.
17964 * math/libm-test-narrow-add.inc: New file.
17965 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17966 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17967 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17968 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17969 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17970 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17971 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17972 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17973 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17974 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17975 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17976 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17977 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17978 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17979 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17980 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17981 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17982 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17983 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17984 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17996 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18001 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18005 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18006 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18008 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18011
18012 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18013 (f128-pairs): New variable.
18014 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18015 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18016 to CFLAGS.
18017 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18018 Also make tests add $(f128-loader-link) to gnulib-tests.
18019
18020 2018-02-09 DJ Delorie <dj@redhat.com>
18021
18022 [BZ #22827]
18023 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18024 64-bit ELF type for 64-bit ELF objects.
18025
18026 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18027
18028 * math/libm-test-driver.c (snan_tests_arg): New variable.
18029 * math/libm-test-support.h (snan_tests_arg): New declaration.
18030 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18031
18032 * math/Makefile (test-type-pairs): New variable.
18033 (test-type-pairs-f64xf128-yes): Likewise.
18034 (tests): Add test-narrow-macros.
18035 (libm-test-funcs-narrow): New variable.
18036 (libm-test-c-narrow): Likewise.
18037 (generated): Add $(libm-test-c-narrow).
18038 (libm-tests-base-narrow): New variable.
18039 (libm-tests-narrow): Likewise.
18040 (libm-tests): Add $(libm-tests-narrow).
18041 (libm-tests-for-type): Handle $(libm-tests-narrow).
18042 (libm-test-c-narrow-obj): New variable.
18043 ($(libm-test-c-narrow-obj)): New rule.
18044 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18045 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18046 $(o-iterator) to set dependencies and CFLAGS.
18047 * math/gen-auto-libm-tests.c: Document use for narrowing
18048 functions.
18049 (output_for_one_input_case): Take argument NARROW.
18050 (generate_output): Likewise. Update call to
18051 output_for_one_input_case.
18052 (main): Take --narrow option. Update call to generate_output.
18053 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18054 (apply_lit): Update call to _apply_lit.
18055 (apply_arglit): New function.
18056 (parse_args): Handle "a" arguments.
18057 (parse_auto_input): Handle format names using ":".
18058 * math/README.libm-test: Document "a" parameter type.
18059 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18060 (ARG_TYPE_TRUE_MIN): Likewise.
18061 (ARG_TYPE_MAX): Likwise.
18062 (ARG_MIN_EXP): Likewise.
18063 (ARG_MAX_EXP): Likewise.
18064 (ARG_MANT_DIG): Likewise.
18065 (TEST_COND_arg_ibm128): Likewise.
18066 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18067 (TEST_COND_arg_fmt): New macro.
18068 (init_max_error): Update prototype.
18069 * math/libm-test-support.c (test_ibm128): New variable.
18070 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18071 instead of using [TEST_COND_ibm128] conditional.
18072 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18073 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18074 [TEST_NARROW] (TEST_MSG): New definition.
18075 (arg_plus_zero): New macro.
18076 (arg_minus_zero): Likewise.
18077 (arg_plus_infty): Likewise.
18078 (arg_minus_infty): Likewise.
18079 (arg_qnan_value_pl): Likewise.
18080 (arg_qnan_value): Likewise.
18081 (arg_snan_value_pl): Likewise.
18082 (arg_snan_value): Likewise.
18083 (arg_max_value): Likewise.
18084 (arg_min_value): Likewise.
18085 (arg_min_subnorm_value): Likewise.
18086 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18087 (RUN_TEST_LOOP_aa_f): New macro.
18088 (TEST_SUFF): New macro.
18089 (TEST_SUFF_STR): Likewise.
18090 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18091 (TEST_COND_any_ibm128): New macro.
18092 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18093 this_func. Update call to init_max_error.
18094 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18095 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18096 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18097 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18098 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18099 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18100 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18101 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18102 * math/test-math-vector.h (TEST_NARROW): Likewise.
18103 * math/test-arg-double.h: New file.
18104 * math/test-arg-float128.h: Likewise.
18105 * math/test-arg-float32x.h: Likewise.
18106 * math/test-arg-float64.h: Likewise.
18107 * math/test-arg-float64x.h: Likewise.
18108 * math/test-arg-ldouble.h: Likewise.
18109 * math/test-math-narrow.h: Likewise.
18110 * math/test-narrow-macros.c: Likewise.
18111 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18112 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18113 test-narrow-macros-ldbl-64.
18114 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18115
18116 * math/bits/mathcalls-narrow.h: New file.
18117 * include/bits/mathcalls-narrow.h: Likewise.
18118 * math/math-narrow.h: Likewise.
18119 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18120 (__MATHCALL_NARROW_ARGS_2): Likewise.
18121 (__MATHCALL_NARROW_ARGS_3): Likewise.
18122 (__MATHCALL_NARROW_NORMAL): Likewise.
18123 (__MATHCALL_NARROW_REDIR): Likewise.
18124 (__MATHCALL_NARROW): Likewise.
18125 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18126 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18127 defined.
18128 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18129 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18130 (libm-narrow-fns): New variable.
18131 (libm-narrow-types-basic): Likewise.
18132 (libm-narrow-types-ldouble-yes): Likewise.
18133 (libm-narrow-types-float128-yes): Likewise.
18134 (libm-narrow-types-float128-alias-yes): Likewise.
18135 (libm-narrow-types): Likewise.
18136 (libm-routines): Add narrowing functions.
18137 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18138 (libc_feholdexcept_setroundf128): New macro.
18139 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18140 * sysdeps/ieee754/float128/float128_private.h: Include
18141 <math/math-narrow.h>.
18142 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18143 Undefine and redefine.
18144 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18145 (libm_alias_float_ldouble): Undefine and redefine.
18146 (libm_alias_double_ldouble): Likewise.
18147
18148 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18149
18150 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18151
18152 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18153 FPCR/FPSR.
18154
18155 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18156
18157 * manual/creature.texi: Convert references to gcc.info to gcc.
18158 * manual/stdio.texi: Likewise.
18159 * manual/string.texi: Likewise.
18160
18161 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18162
18163 [BZ #17979]
18164 * posix/bits/types.h (__int_least8_t): New typedef.
18165 (__uint_least8_t): Likewise.
18166 (__int_least16_t): Likewise.
18167 (__uint_least16_t): Likewise.
18168 (__int_least32_t): Likewise.
18169 (__uint_least32_t): Likewise.
18170 (__int_least64_t): Likewise.
18171 (__uint_least64_t): Likewise.
18172 * sysdeps/generic/stdint.h (int_least8_t): Define using
18173 __int_least8_t.
18174 (int_least16_t): Define using __int_least16_t.
18175 (int_least32_t): Define using __int_least32_t.
18176 (int_least64_t): Define using __int_least64_t.
18177 (uint_least8_t): Define using __uint_least8_t.
18178 (uint_least16_t): Define using __uint_least16_t.
18179 (uint_least32_t): Define using __uint_least32_t.
18180 (uint_least64_t): Define using __uint_least64_t.
18181 * wcsmbs/uchar.h: Include <bits/types.h>.
18182 (char16_t): Define using __uint_least16_t conditional only on
18183 [!__USE_ISOCXX11].
18184 (char32_t): Define using __uint_least32_t conditional only on
18185 [!__USE_ISOCXX11].
18186 * wcsmbs/test-char-types.c: New file.
18187 * wcsmbs/Makefile (tests): Add test-char-types.
18188
18189 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18190 version to 4.0.1.
18191
18192 2018-02-07 Zack Weinberg <zackw@panix.com>
18193
18194 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18195 Delete all contents except for definitions of _G_HAVE_MMAP and
18196 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18197 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18198 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18199 change as above.
18200
18201 * libio/libio.h: Don't include bits/_G_config.h here.
18202 Include stddef.h with __need_wchar_t defined. Include
18203 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18204 Define _IO_iconv_t here, directly.
18205 Don't define _IO_HAVE_ST_BLKSIZE.
18206 * libio/libioP.h: Include _G_config.h here. Move include of
18207 shlib-compat.h up with rest of includes. Simplify conditionals
18208 controlling definition of _IO_JUMPS_OFFSET.
18209
18210 * csu/init.c: Remove always-true #if around entire file.
18211 Don't include stdio.h. Set _IO_stdin_used to hardwired
18212 constant 0x20001, and update commentary.
18213 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18214 Replace all uses of _G_va_list with __gnuc_va_list.
18215 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18216 instead of #if _IO_HAVE_ST_BLKSIZE.
18217 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18218 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18219 not #ifdef.
18220
18221 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18222 multiple-include guard to match.
18223 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18224 into this file.
18225 Remove preprocessor conditionals that are always true and/or
18226 redundant to other preprocessor conditionals in the same nest.
18227 Include shlib-compat.h unconditionally.
18228 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18229 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18230 defined after including stdio.h.
18231 Use __BEGIN_DECLS/__END_DECLS.
18232
18233 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18234 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18235 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18236
18237 2018-02-07 Zack Weinberg <zackw@panix.com>
18238
18239 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18240 New single-type headers split from _G_config.h.
18241 * libio/bits/types/cookie_io_functions_t.h
18242 * libio/bits/types/struct_FILE.h
18243 New single-type headers split from libio.h.
18244
18245 * libio/Makefile: Install the above new headers. Don't install
18246 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18247 bits/libio-ldbl.h.
18248 * libio/_G_config.h, libio/libio.h: Delete file.
18249
18250 * libio/bits/libio.h: Remove improper-inclusion guard.
18251 Include stdio.h and don't repeat anything that it does.
18252 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18253 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18254 __io_read_fn as cookie_read_function_t,
18255 __io_write_fn as cookie_write_function_t,
18256 __io_seek_fn as cookie_seek_function_t,
18257 __io_close_fn as cookie_close_function_t,
18258 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18259 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18260 here, in the "compatibility defines" section. Remove an #if 0
18261 block. Use the "body" macros from bits/types/struct_FILE.h to
18262 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18263 and _IO_ferror_unlocked.
18264 Move prototypes of __uflow and __overflow...
18265
18266 * libio/stdio.h: ...here. Don't include bits/libio.h.
18267 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18268 directly from stdarg.h. Include bits/types/__fpos_t.h,
18269 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18270 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18271 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18272 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18273 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18274 __ssize_t, not _IO_ssize_t. Unconditionally define
18275 BUFSIZ as 8192 and EOF as (-1).
18276
18277 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18278 macros from bits/types/struct_FILE.h instead of _IO_* macros
18279 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18280 instead of _IO_ssize_t.
18281 * libio/bits/stdio2.h: Similarly.
18282
18283 * libio/iolibio.h: Add multiple-include guard.
18284 Include bits/libio.h after stdio.h.
18285 * libio/libioP.h: Add multiple-include guard.
18286 Include stdio.h and bits/libio.h before iolibio.h.
18287
18288 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18289 * include/bits/types/cookie_io_functions_t.h
18290 * include/bits/types/struct_FILE.h: New wrappers.
18291
18292 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18293 Get definitions of _G_fpos_t and _G_fpos64_t from
18294 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18295 respectively. Remove improper-inclusion guards.
18296
18297 * conform/data/stdio.h-data: Update expectations of va_list.
18298 * scripts/check-installed-headers.sh: Remove special case for
18299 libio.h and _G_config.h.
18300
18301 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18302
18303 [BZ #15105]
18304 [BZ #19463]
18305 * include/sys/sysmacros.h [!_ISOMAC]
18306 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18307 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18308 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18309 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18310 libc_hidden_proto.
18311 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18312 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18313 Likewise.
18314 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18315 Undefine and redefine to add use __gnu_dev_ prefix.
18316 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18317 Likewise.
18318 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18319 and define as hidden inline function.
18320 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18321 Likewise.
18322 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18323 Likewise.
18324 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18325 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18326 (gnu_dev_minor): Likewise.
18327 (gnu_dev_makedev): Likewise.
18328 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18329 makedev.
18330 * posix/wordexp.c (exec_comm_child): Likewise.
18331 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18332 instead of minor and __gnu_dev_major instead of major.
18333 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18334 __gnu_dev_major instead of major.
18335 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18336 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18337 instead of gnu_dev_minor.
18338 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18339 (SLAVE_P): Likewise.
18340 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18341 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18342 instead of major.
18343
18344 [BZ #21313]
18345 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18346 in another place.
18347 * locale/weightwc.h (findidx): Likewise.
18348
18349 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18350
18351 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18352 (slowlog_inexact): Likewise
18353 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18354 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18355
18356 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18357
18358 [BZ #22797]
18359 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18360 missing second underscore to parameter name.
18361
18362 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18363
18364 [BZ #14508]
18365 [BZ #15512]
18366 [BZ #17082]
18367 [BZ #20530]
18368 * bits/byteswap.h: Update file comment. Do not include
18369 <bits/byteswap-16.h>.
18370 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18371 constant.
18372 (__bswap_16): Define as inline function.
18373 (__bswap_constant_32): Reformat definition.
18374 (__bswap_32): Always define as inline function, not macro, using
18375 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18376 otherwise __bswap_constant_32.
18377 (__bswap_constant_64): Reformat definition. Do not use
18378 __extension__ here.
18379 (__bswap_64): Always define as inline function, not macro. Use
18380 __extension__ on function definition. Use __builtin_bswap64 if
18381 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18382 * string/test-endian-file-scope.c: New file.
18383 * string/test-endian-sign-conversion.c: Likewise.
18384 * string/Makefile (headers): Remove bits/byteswap-16.h.
18385 (tests): Add test-endian-file-scope and
18386 test-endian-sign-conversion.
18387 (CFLAGS-test-endian-sign-conversion.c): New variable.
18388 * bits/byteswap-16.h: Remove file.
18389 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18390 * sysdeps/ia64/bits/byteswap.h: Likewise.
18391 * sysdeps/m68k/bits/byteswap.h: Likewise.
18392 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18393 * sysdeps/s390/bits/byteswap.h: Likewise.
18394 * sysdeps/tile/bits/byteswap.h: Likewise.
18395 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18396 * sysdeps/x86/bits/byteswap.h: Likewise.
18397
18398 [BZ #17721]
18399 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18400 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18401 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18402 199901L] (__restrict): Define to restrict.
18403
18404 [BZ #19667]
18405 * string/testcopy.c: Include <support/support.h>. Do not include
18406 <malloc.h>. Use <support/test-driver.c>.
18407 (main): Rename to do_test. Make static. Use xmalloc instead of
18408 malloc.
18409
18410 [BZ #13575]
18411 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18412 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18413 (SSIZE_MAX): Define to INT_MAX.
18414 * posix/test-ssize-max.c: New file.
18415 * posix/Makefile (tests): Add test-ssize-max.
18416
18417 [BZ #19668]
18418 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18419 <support/support.h>. Do not include <malloc.h>.
18420 (query_auxv): Use xmalloc instead of malloc.
18421
18422 [BZ #14553]
18423 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18424 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18425 instead of loff_t.
18426
18427 2018-02-06 Florian Weimer <fweimer@redhat.com>
18428
18429 [BZ #18023]
18430 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18431 Use scratch_buffer instead of extend_alloca.
18432
18433 2018-02-06 Zack Weinberg <zackw@panix.com>
18434
18435 * libio/stdio.h: Don't define getc or putc as macros.
18436 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18437 not _IO_getc and _IO_putc.
18438
18439 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18440 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18441
18442 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18443
18444 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18445 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18446
18447 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18448
18449 [BZ #14890]
18450 * elf/elf.h (NT_PRFPREG): New macro.
18451 (NT_S390_VXRS_LOW): Likewise.
18452 (NT_S390_VXRS_HIGH): Likewise.
18453 (NT_S390_GS_CB): Likewise.
18454 (NT_S390_GS_BC): Likewise.
18455 (NT_S390_RI_CB): Likewise.
18456
18457 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18458 (MAP_SYNC): New macro.
18459 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18460 Likewise.
18461 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18462 (MAP_SYNC): Likewise.
18463 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18464 (MAP_SYNC): Likewise.
18465 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18466 (MAP_SYNC): Likewise.
18467 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18468 (MAP_SYNC): Likewise.
18469 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18470 (MAP_SYNC): Likewise.
18471 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18472 (MAP_SYNC): Likewise.
18473 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18474 Likewise.
18475 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18476 Likewise.
18477
18478 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18479 (MAP_SHARED_VALIDATE): New macro.
18480 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18481 (MAP_SHARED_VALIDATE): Likewise.
18482
18483 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18484
18485 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18486 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18487 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18488
18489 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18490
18491 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18492 (DT_NUM): Updated to 35.
18493
18494 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18495
18496 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18497 __builtin_expect with __glibc_likely and __glibc_unlikely.
18498 (elf_machine_rela): Likewise.
18499 (elf_machine_lazy_rel): Likewise.
18500
18501 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18502
18503 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18504 __builtin_expect with __glibc_likely and __glibc_unlikely.
18505 (elf_machine_lazy_rel): Likewise.
18506
18507 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18508
18509 [BZ #22638]
18510 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18511 SHARED.
18512 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18513
18514 2018-02-05 Andreas Schwab <schwab@suse.de>
18515
18516 [BZ #22761]
18517 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18518 string.
18519
18520 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18521
18522 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18523 not check against PTHREAD_STACK_MIN.
18524
18525 2018-02-02 Sean McKean <smckean83@gmail.com>
18526
18527 [BZ #22735]
18528 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18529
18530 2018-02-02 Florian Weimer <fweimer@redhat.com>
18531
18532 [BZ #22753]
18533 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18534 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18535 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18536 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18537 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18538 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18539 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18540 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18541 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18542 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18543 * misc/tst-preadvwritev2.c (do_test): Call it.
18544 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18545
18546 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18547
18548 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18549
18550 * benchtests/bench-memcmp.c: Print json instead of plain text.
18551
18552 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18553 every test run.
18554
18555 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18556
18557 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18558 version to 4.15.
18559 (s390_sthyi): New syscall.
18560
18561 * sysdeps/generic/ldbl-classify-compat.h: New file.
18562 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18563 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18564 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18565 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18566 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18567 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18568 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18569 <ldbl-classify-compat.h>.
18570 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18571 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18572 <ldbl-classify-compat.h>.
18573 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18574 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18575 <ldbl-classify-compat.h>.
18576 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18577 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18578 <ldbl-classify-compat.h>.
18579 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18580 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18581 <ldbl-classify-compat.h>.
18582 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18583 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18584 <ldbl-classify-compat.h>.
18585 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18586 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18587 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18588 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18589 * sysdeps/microblaze/math_private.h: Likewise.
18590 * sysdeps/nios2/math_private.h: Likewise.
18591 * sysdeps/sh/math_private.h: Likewise.
18592
18593 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18594 * sysdeps/m68k/coldfire/math_private.h: ... here.
18595 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18596 * sysdeps/tile/math_private.h: Likewise.
18597 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18598 Remove macro.
18599 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18600 Likewise.
18601
18602 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18603 Remove macro.
18604 (libc_fetestexcept): Likewise.
18605 (libc_feupdateenv_test): Likewise.
18606 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18607 (libc_fetestexcept): Likewise.
18608 (libc_feupdateenv_test): Likewise.
18609 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18610 (libc_fetestexcept): Likewise.
18611 (libc_feupdateenv_test): Likewise.
18612 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18613 (libc_fetestexcept): Likewise.
18614 (libc_feupdateenv_test): Likewise.
18615
18616 * sysdeps/generic/math_private.h
18617 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18618 New inline function.
18619 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18620 Likewise.
18621
18622 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18623 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18624 * sysdeps/generic/math_private.h
18625 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18626 inline function.
18627 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18628 Likewise.
18629 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18630 Likewise.
18631 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18632 Likewise.
18633 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18634 Likewise.
18635 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18636 Likewise.
18637 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18638 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18639 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18640 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18641 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18642 (__fegetenv): Likewise.
18643 (fesetenv): Likewise.
18644 (__fesetenv): Likewise.
18645 (feupdateenv): Likewise.
18646 (__feupdateenv): Likewise.
18647 (fegetround): Likewise.
18648 (__fegetround): Likewise.
18649 (fesetround): Likewise.
18650 (__fesetround): Likewise.
18651
18652 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18653 (feraiseexcept): New macro.
18654 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18655 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18656 Remove macro.
18657 (__feraiseexcept): Likewise.
18658 (feclearexcept): Likewise.
18659 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18660 (__feraiseexcept): Likewise.
18661 (feclearexcept): Likewise.
18662 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18663 (__feraiseexcept): Likewise.
18664 (feclearexcept): Likewise.
18665 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18666 (__feraiseexcept): Likewise.
18667 (feclearexcept): Likewise.
18668 (fetestexcept): Likewise.
18669
18670 * sysdeps/m68k/coldfire/math-tests.h: New file.
18671
18672 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18673 * sysdeps/m68k/bits/fenv.h: ... here.
18674 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18675 not define.
18676 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18677 Likewise.
18678 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18679 Likewise.
18680 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18681 Likewise.
18682 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18683 Likewise.
18684 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18685 Define to 0.
18686 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18687 (__FE_UNDEFINED): New enum constant.
18688 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18689 Do not define.
18690 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18691 Likewise.
18692 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18693 Likewise.
18694 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18695 to match generic bits/fenv.h.
18696 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18697 Do not define.
18698
18699 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18700 packed on bits.
18701 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18702 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18703 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18704 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18705
18706 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18707 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18708 Joseph Myers <joseph@codesourcery.com>
18709
18710 [BZ #21314]
18711 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18712 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18713 computation using c.
18714 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18715 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18716 computation using c.
18717
18718 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18719
18720 * version.h (RELEASE): Set to "development".
18721 (VERSION): Set to "2.27.9000".
18722 * NEWS (2.28): New section.
18723
18724 * version.h (RELEASE): Set to "stable".
18725 (VERSION): Set to "2.27".
18726 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18727
18728 * NEWS: Add the list of bugs fixed in 2.27.
18729
18730 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18731
18732 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18733 against PTHREAD_STACK_MIN.
18734
18735 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18736
18737 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18738 New entries.
18739 (Rafal Luzynski, Andreas Schwab): Update.
18740
18741 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18742
18743 [BZ #10871]
18744 * NEWS: List the languages which actually use the alternative
18745 months feature in this release. Also explain that "alt_mon" and
18746 "ab_alt_mon" are optional.
18747
18748 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18749
18750 [BZ #22765]
18751 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18752
18753 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18754
18755 * manual/install.texi (Tools for Compilation): Update the newest
18756 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18757 * INSTALL: Regenerated.
18758
18759 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18760
18761 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18762 instead of __builtin_expect.
18763
18764 2018-01-30 Florian Weimer <fweimer@redhat.com>
18765
18766 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18767 data.
18768 * nss/tst-nss-getpwent.c (do_test): Likewise.
18769
18770 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18771
18772 [BZ #10871]
18773 * localedata/locales/hr_HR (mon): Rename to...
18774 (alt_mon): This.
18775 (mon): Import from CLDR (genitive case).
18776 (d_t_fmt): Update the comment.
18777
18778 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18779
18780 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18781 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18782 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18783
18784 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18785
18786 * mach/Versions: Fix version when __mach_host_self_ was added.
18787 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18788 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18789 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18790 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18791 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18792 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18793 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18794 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18795 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18796 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18797 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18798 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18799 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18800 || to respect codestyle.
18801 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18802 (do_test_bz20181): Rename accordingly.
18803 * malloc/malloc.c: Include <assert.h>.
18804 (assert): Do not define.
18805 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18806 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18807 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18808 * sysdeps/mach/hurd/hp-timing.h: New file.
18809 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18810
18811 2018-01-29 Darius Rad <darius@bluespec.com>
18812
18813 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18814
18815 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18816
18817 * sysdeps/init_array/crti.S (.section .init_array): Add
18818 PREINIT_FUNCTION when defined.
18819 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18820 * config.h.in: Regenerate.
18821 * manual/platform.texi: Add RISC-V documenation for
18822 __riscv_flush_icache.
18823 * sysdeps/riscv/__longjmp.S: New file.
18824 * sysdeps/riscv/backtrace.c: Likewise.
18825 * sysdeps/riscv/bits/endian.h: Likewise.
18826 * sysdeps/riscv/bits/setjmp.h: Likewise.
18827 * sysdeps/riscv/bits/wordsize.h: Likewise.
18828 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18829 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18830 * sysdeps/riscv/dl-trampoline.S: Likewise.
18831 * sysdeps/riscv/gccframe.h: Likewise.
18832 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18833 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18834 * sysdeps/riscv/machine-gmon.h: Likewise.
18835 * sysdeps/riscv/memusage.h: Likewise.
18836 * sysdeps/riscv/setjmp.S: Likewise.
18837 * sysdeps/riscv/sys/asm.h: Likewise.
18838 * sysdeps/riscv/tls-macros.h: Likewise.
18839 * sysdeps/riscv/dl-tls.h: New file.
18840 * sysdeps/riscv/libc-tls.c: Likewise.
18841 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18842 * sysdeps/riscv/nptl/tls.h: Likewise.
18843 * sysdeps/riscv/stackinfo.h: Likewise.
18844 * sysdeps/riscv/bits/fenv.h: New file.
18845 * sysdeps/riscv/e_sqrtl.c: Likewise.
18846 * sysdeps/riscv/fpu_control.h: Likewise.
18847 * sysdeps/riscv/math-tests.h: Likewise.
18848 * sysdeps/riscv/nofpu/Implies: Likewise.
18849 * sysdeps/riscv/sfp-machine.h: Likewise.
18850 * sysdeps/riscv/tininess.h: Likewise.
18851 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18852 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18853 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18854 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18855 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18856 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18857 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18858 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18859 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18860 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18861 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18862 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18863 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18864 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18865 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18866 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18867 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18868 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18869 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18870 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18871 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18872 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18873 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18874 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18875 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18876 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18877 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18878 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18879 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18880 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18881 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18882 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18883 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18884 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18885 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18886 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18887 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18888 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18889 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18890 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18891 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18892 * sysdeps/riscv/rvf/math_private.h: Likewise.
18893 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18894 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18895 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18896 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18897 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18898 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18899 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18900 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18901 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18902 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18903 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18904 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18905 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18906 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18907 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18908 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18909 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18910 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18911 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18912 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18913 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18914 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18915 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18916 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18917 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18918 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18919 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18920 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18921 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18922 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18923 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18924 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18925 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18926 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18927 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18928 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18929 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18930 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18931 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18932 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18933 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18934 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18935 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18936 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18937 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18938 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18939 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18940 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18941 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18942 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18943 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18944 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18945 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18946 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18947 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18948 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18949 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18950 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18951 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18952 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18953 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18956 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18957 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18958 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18959 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18960 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18961 * sysdeps/riscv/Implies: New file.
18962 * sysdeps/riscv/Makefile: Likewise.
18963 * sysdeps/riscv/configure: Likewise.
18964 * sysdeps/riscv/configure.ac: Likewise.
18965 * sysdeps/riscv/nptl/Makefile: Likewise.
18966 * sysdeps/riscv/preconfigure: Likewise.
18967 * sysdeps/riscv/rv64/Implies-after: Likewise.
18968 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18969 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18970 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18971 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18972 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18973 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18974 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18975 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18976 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18977 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18978 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18979 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18980 (Config): Likewise.
18981
18982 2018-01-29 Florian Weimer <fweimer@redhat.com>
18983
18984 [BZ #22701]
18985 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18986 libnsl_hidden_proto.
18987 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18988 libnsl_hidden_proto.
18989 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18990 * nis/Makefile (libnsl-routines): Add nss-default only for
18991 build-obsolete-nsl.
18992 * nis/nis_defaults.c (__nis_default_ttl): Add
18993 libnsl_hidden_nolink_def.
18994 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18995 declaration.
18996 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18997 * nis/ypclnt.c (yp_maplist): Likewise.
18998
18999 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19000
19001 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19002 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19003
19004 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19005
19006 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19007 clean -dxfq for git updates when replacing sources.
19008
19009 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19010 --disable-libcilkrts unconditionally, not just for the final GCC
19011 build for Hurd.
19012
19013 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19014 version to 4.15.
19015
19016 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19017
19018 [BZ #10871]
19019 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19020 case).
19021
19022 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19023
19024 [BZ #10871]
19025 * localedata/locales/be_BY (mon): Rename to...
19026 (alt_mon): This, then synchronize with CLDR (nominative case).
19027 (abmon): Rename to...
19028 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19029 (mon): Import from CLDR (genitive case).
19030 (abmon): Likewise.
19031 * localedata/locales/be_BY@latin (mon): Rename to...
19032 (alt_mon): This.
19033 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19034
19035 * localedata/locales/be_BY@latin (lang_name): Reworded to
19036 "biełaruskaja mova".
19037
19038 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19039
19040 [BZ #10871]
19041 * localedata/locales/el_CY (mon): Renamed to...
19042 (alt_mon): This.
19043 (mon): Import from CLDR (genitive case).
19044 * localedata/locales/el_GR: Likewise.
19045
19046 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19047
19048 [BZ #10871]
19049 * localedata/locales/ru_RU (mon): Rename to...
19050 (alt_mon): This.
19051 (abmon): Rename to...
19052 (ab_alt_mon): This.
19053 (mon): Import from CLDR (genitive case).
19054 (abmon): Copy from the old content except the 5th month which is
19055 now in the genitive case, even when abbreviated.
19056 * localedata/locales/ru_UA: Likewise.
19057 * time/tst-strptime.c (day_tests): Add an actual example of
19058 a difference between %b and %Ob in Russian.
19059
19060 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19061
19062 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19063 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19064 a `c' variable.
19065 * resolv/res-close.c: Include <stdlib.h>.
19066 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19067 <sys/wait.h>, <time.h>, <sys/uio.h>.
19068 (NOT_CANCEL_H): Add inclusion guard.
19069 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19070 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19071 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19072 return 0.
19073 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19074 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19075 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19076 instead of void *.
19077 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19078 timer_ptr2id to cast struct timer_node * to void *.
19079 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19080 --disable-libcilkrts to gcc configure.
19081 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19082 and make them the default for now.
19083 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19084 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19085 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19086 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19087 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19088 MACH_IPC_COMPAT.
19089 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19090 __task_terminate would ever return successfully.
19091 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19092 to global scope.
19093 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19094 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19095 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19096 critical section to make code simpler and avoid warning.
19097 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19098 critical section to make code simpler and avoid warning.
19099 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19100 const char * instead of char *.
19101 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19102 __hurd_file_name_split, hurd_file_name_split,
19103 __hurd_directory_name_split, hurd_directory_name_split,
19104 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19105 hurd_file_name_path_lookup): Make lookup function parameter take a
19106 const char *name instead of char *name.
19107 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19108 __hurd_directory_name_split): Likewise.
19109 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19110 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19111 * sysdeps/mach/hurd/check_native.c: New file.
19112 * sysdeps/mach/hurd/check_pf.c: New file.
19113 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19114 (__freeifaddrs): Define macro to freeifaddrs.
19115 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19116 * sysdeps/mach/libmachuser.abilist: New file.
19117 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19118 (do_test_bz20181): Rename accordingly.
19119 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19120 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19121 <sys/mount.h>.
19122 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19123 version only if __USE_EXTERN_INLINES is defined.
19124 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19125 __hurd_sockfail): Likewise.
19126 (_hurd_fd_get): Always declare functions, and provide inline versions
19127 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19128 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19129 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19130 _hurd_port_set): Always declare functions, and provide inline versions
19131 only if __USE_EXTERN_INLINES and _LIBC are defined and
19132 IS_IN(libc).
19133 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19134 _hurd_critical_section_unlock): Likewise.
19135 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19136 * __hurd_threadvar_location): Likewise.
19137 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19138 _hurd_userlink_clear): Likewise.
19139 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19140 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19141 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19142 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19143 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19144 __spin_lock_locked): Likewise.
19145 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19146 __spin_lock_locked): Likewise.
19147 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19148 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19149 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19150 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19151 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19152 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19153 _POSIX_NO_TRUNC): Define to 0.
19154 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19155 check size against PTHREAD_STACK_MIN.
19156 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19157 IS_IN(libpthread)]: Include <sigsetops.h>.
19158 * mach/Makefile (user-interfaces): Add mach/gnumach.
19159 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19160 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19161 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19162 instead of invalid -1.
19163 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19164 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19165 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19166 <net/ppp_defs.h>.
19167
19168 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19169
19170 * hurd/fcntl-internal.h: New file.
19171
19172 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19173
19174 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19175
19176 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19177
19178 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19179
19180 [BZ #22701]
19181 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19182 Build only shared objects.
19183
19184 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19185
19186 * README: Update for hppa.
19187
19188 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19189
19190 * sysdeps/sparc/fpu/libm-test-ulps: Update
19191 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19192
19193 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19194
19195 Revert:
19196
19197 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19198
19199 [BZ #22563]
19200 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19201 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19202 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19203 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19204 to feature_1.
19205
19206 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19207
19208 [BZ #22563]
19209 * bits/types/__cancel_jmp_buf_tag.h: New file.
19210 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19211 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19212 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19213 * nptl/Makefile (headers): Add
19214 bits/types/__cancel_jmp_buf_tag.h.
19215 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19216 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19217 * sysdeps/nptl/pthread.h: Include
19218 <bits/types/__cancel_jmp_buf_tag.h>.
19219 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19220 __cancel_jmp_buf.
19221 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19222
19223 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19224
19225 [BZ #10871]
19226 * localedata/locales/uk_UA (mon): Renamed to...
19227 (alt_mon): This.
19228 (alt_digits): "0" removed and then renamed to...
19229 (mon): This.
19230 (date_fmt): Definition changed not to use the alternative
19231 digits hack.
19232
19233 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19234
19235 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19236 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19237 * elf/elf.h (EF_RISCV_RVC): New define.
19238 (EF_RISCV_FLOAT_ABI): Likewise.
19239 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19240 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19241 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19242 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19243 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19244 define.
19245 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19246
19247 2018-01-25 Andreas Schwab <schwab@suse.de>
19248
19249 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19250 single quotes.
19251 * sysdeps/gnu/configure: Regenerate.
19252 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19253 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19255 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19256 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19257 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19258 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19259 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19260
19261 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19262
19263 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19264 URL, and run autoconf, make it the default for now.
19265
19266 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19267
19268 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19269 soft-float ColdFire configuration.
19270
19271 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19272 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19273 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19274
19275 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19276 MicroBlaze file.
19277
19278 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19279 ....
19280 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19281 ... here.
19282 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19283 New file.
19284
19285 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19286 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19287 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19288 file.
19289
19290 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19291
19292 [BZ #22742]
19293 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19294 Rename to __reserved and add comment.
19295 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19296 Rename to __reserved.
19297
19298 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19299
19300 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19301 i686-gnu configurations.
19302 (Context.run_builds): Include mig, gnumach and hurd in components
19303 considered.
19304 (Context.checkout): Add mig, gnumach and hurd to components.
19305 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19306 hurd.
19307 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19308 (Config.build): Install gnumach headers, build mig and install
19309 hurd headers for 'gnu' OS.
19310 (Config.install_gnumach_headers): New function.
19311 (Config.install_hurd_headers): Likewise.
19312 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19313 when building for 'gnu' OS.
19314
19315 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19316
19317 * manual/tunables.texi (Hardware Capability Tunables): Fix
19318 spelling.
19319
19320 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19321
19322 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19323 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19324 (ALTMON_11, ALTMON_12): Improve documentation.
19325 * manual/time.texi (strftime): Likewise.
19326
19327 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19328
19329 [BZ #10871]
19330 * localedata/locales/pl_PL: Alternative month names added,
19331 primary month names are genitive now.
19332 * time/tst-strptime.c (day_tests): Actually use a genitive case
19333 of a month name in Polish language.
19334
19335 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19336
19337 [BZ #10871]
19338 * manual/locale.texi: Document ALTMON_1..12 constants for
19339 nl_langinfo. Specify when to use ALTMON instead of MON.
19340 * manual/time.texi (strftime, strptime): Document GNU extension
19341 permitting O modifier with %B and %b. Specify when to use
19342 %OB instead of %B.
19343
19344 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19345
19346 [BZ #10871]
19347 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19348 names, define them as the same as abbreviated month names explicitly.
19349 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19350 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19351 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19352 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19353 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19354 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19355 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19356 _NL_WABALTMON_12): New enum constants.
19357 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19358 wab_alt_mon, and ab_alt_mon_defined members.
19359 (time_output): Output ab_alt_mon and wab_alt_mon members.
19360 (time_read): Read them, initialize them as copies of abmon and wabmon
19361 respectively if they are missing, initialize ab_alt_mon_defined.
19362 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19363 * locale/programs/locfile-kw.h: Regenerate.
19364 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19365 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19366 and ru_RU.UTF-8.
19367 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19368 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19369 (__strftime_internal): Handle %Ob and %Oh formats.
19370 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19371 (__strptime_internal): Handle %Ob and %Oh formats.
19372 * time/tst-strptime.c (day_tests): Add more tests to parse different
19373 forms of month names including the new %Ob format specifier.
19374
19375 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19376
19377 [BZ #10871]
19378 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19379 define them as the same as primary full month names explicitly.
19380 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19381 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19382 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19383 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19384 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19385 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19386 _NL_WALTMON_12): New enum constants.
19387 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19388 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19389 macros.
19390 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19391 walt_mon, and alt_mon_defined members.
19392 (time_output): Output alt_mon and walt_mon members.
19393 (time_read): Read them, initialize them as copies of mon and wmon
19394 respectively if they are missing, initialize alt_mon_defined.
19395 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19396 * locale/programs/locfile-kw.h: Regenerate.
19397 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19398 * localedata/tst-langinfo.c (map): Add tests for the new constants
19399 ALTMON_1 .. ALTMON_12.
19400 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19401 and pl_PL.UTF-8.
19402 * time/strftime_l.c (f_altmonth): New macro.
19403 (__strftime_internal): Handle %OB format.
19404 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19405 (__strptime_internal): Handle %OB format.
19406 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19407 of month names including the new %OB format specifier.
19408
19409 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19410
19411 [BZ #22685]
19412 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19413 from ABORT_TRANSACTION.
19414 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19415 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19416 ABORT_TRANSACTION_IMPL): Likewise.
19417 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19418 Linux code, but remove the code that aborts transactions.
19419
19420 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19421
19422 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19423
19424 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19425
19426 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19427 in date: "2004-14-09" should be "2004-09-14".
19428 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19429 "2003-15-09" should be "2003-09-15".
19430
19431 2018-01-18 Arjun Shankar <arjun@redhat.com>
19432
19433 [BZ #22343]
19434 [BZ #22774]
19435 CVE-2018-6485
19436 CVE-2018-6551
19437 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19438 after padding.
19439 (_int_memalign): check for integer overflow before calling
19440 _int_malloc.
19441 * malloc/tst-malloc-too-large.c: New test.
19442 * malloc/Makefile: Add tst-malloc-too-large.
19443
19444 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19445
19446 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19447 in date: "2017-24-07" should be "2017-07-24".
19448 * localedata/locales/mai_IN: Likewise.
19449 * localedata/locales/mai_NP: Likewise.
19450
19451 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19452
19453 * po/ru.po: Update translations.
19454
19455 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19456
19457 [BZ #22719]
19458 * sysdeps/hppa/backtrace.c: New file.
19459
19460 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19461
19462 [BZ #22715]
19463 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19464 align La_x86_64_retval to VEC_SIZE.
19465
19466 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19467
19468 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19469 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19470
19471 2018-01-16 Florian Weimer <fweimer@redhat.com>
19472
19473 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19474 Move tst-thread-exit-clobber ...
19475 [$(CXX)] (tests-unsupported): ... to here.
19476
19477 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19478
19479 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19480 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19481 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19482 (_dl_aarch64_cap_flags): Update.
19483 (_DL_HWCAP_COUNT): Update.
19484
19485 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19486
19487 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19488 (_DL_HWCAP_LAST): Remove.
19489 (_DL_HWCAP_COUNT): Move to ...
19490 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19491 (_DL_HWCAP_COUNT): ... here.
19492
19493 2018-01-16 Florian Weimer <fweimer@redhat.com>
19494
19495 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19496 mode with GNU extensions.
19497
19498 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19499
19500 * elf/elf.h (NT_ARM_SVE): Define.
19501
19502 2018-01-15 Florian Weimer <fweimer@redhat.com>
19503
19504 [BZ #22636]
19505 * nptl/tst-minstack-throw.cc: New file.
19506 * nptl/Makefile (tests): Add tst-minstack-throw.
19507 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19508 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19509
19510 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19511
19512 * scripts/build-many-glibcs.py (Context.checkout): Default
19513 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19514 version to 1.1.0.
19515
19516 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19517
19518 [BZ #22707]
19519 * elf/elf.h (DF_1_STUB): Define.
19520 (DF_1_PIE): Define.
19521
19522 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19523
19524 [BZ #22697]
19525 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19526 Do not add 0.5 to integer or out-of-range arguments.
19527
19528 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19529
19530 * po/bg.po: Update translations.
19531 * po/cs.po: Likewise.
19532 * po/de.po: Likewise.
19533 * po/ko.po: Likewise.
19534 * po/pl.po: Likewise.
19535 * po/sv.po: Likewise.
19536 * po/uk.po: Likewise.
19537 * po/vi.po: Likewise.
19538
19539 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19540
19541 * aarch64/start.S (_start): Use __wrap_main.
19542 (__wrap_main): New local symbol.
19543
19544 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19545
19546 [BZ #22679]
19547 CVE-2018-1000001
19548 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19549 generic_getcwd if the path returned by getcwd syscall is not absolute.
19550 * io/tst-getcwd-abspath.c: New test.
19551 * io/Makefile (tests): Add tst-getcwd-abspath.
19552
19553 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19554
19555 * malloc/malloc.c (malloc_consolidate): Add size check.
19556
19557 2018-01-12 Florian Weimer <fweimer@redhat.com>
19558
19559 * support/write_message.c (write_message): Preserve errno.
19560 * support/check.c (print_failure): Likewise.
19561 * support/support_test_verify_impl.c (support_test_verify_impl):
19562 Likewise.
19563 * support/support_test_compare_failure.c
19564 (support_test_compare_failure): Likewise.
19565
19566 2018-01-12 Florian Weimer <fweimer@redhat.com>
19567
19568 [BZ #22701]
19569 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19570 Prevent installation of libnsl.so.
19571 (libnsl-inhibit-o): Do not build (or install) static libraries.
19572
19573 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19574
19575 [BZ #22657]
19576 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19577 before the day number which may produce a double space.
19578 (date_fmt): Likewise.
19579
19580 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19581
19582 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19583 instead of fegetenv.
19584
19585 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19586
19587 [BZ #22702]
19588 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19589 comment to say exceptions are discarded.
19590 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19591 __fegetenv.
19592 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19593 be enabled.
19594
19595 2018-01-11 Florian Weimer <fweimer@redhat.com>
19596
19597 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19598 and error message.
19599
19600 2018-01-11 Florian Weimer <fweimer@redhat.com>
19601
19602 [BZ #22636]
19603 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19604 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19605
19606 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19607
19608 [BZ #22693]
19609 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19610 negative arguments in test for NaN or infinity argument.
19611
19612 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19613
19614 * po/libc.pot: Regenerate.
19615
19616 2018-01-10 Florian Weimer <fweimer@redhat.com>
19617
19618 [BZ #22636]
19619 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19620 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19621
19622 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19623
19624 * hurd/hurd/fd.h: Include <fcntl.h>
19625 (__hurd_at_flags): New function.
19626 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19627 with call to __hurd_at_flags.
19628 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19629 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19630 __faccessat
19631 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19632 (__access_noerrno): Use __faccessat_common instead of access_common.
19633 (__access): Likewise.
19634 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19635 with a call to __faccessat.
19636 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19637 (__faccessat_common): ... this. Move implementation of __access into it when
19638 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19639 reauthenticate_cwdir_at helper to implement AT mechanism.
19640 (__faccessat_noerrno): New function, just calls __faccessat_common.
19641 (__faccessat): New function, just calls __faccessat_common.
19642 (faccessat): Define weak alias.
19643
19644 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19645
19646 [BZ #22691]
19647 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19648 (CFLAGS-s_fmaxmagl.c): New variable.
19649 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19650
19651 [BZ #22690]
19652 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19653 long int for arguments of possibly overflowing addition or
19654 subtraction.
19655 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19656
19657 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19658
19659 [BZ #22688]
19660 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19661 (CFLAGS-e_remainderl.c): New variable.
19662
19663 [BZ #22687]
19664 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19665 variable.
19666 (CFLAGS-s_cacoshl.c): Likewise.
19667 (CFLAGS-s_casinhl.c): Likewise.
19668 (CFLAGS-s_catanl.c): Likewise.
19669 (CFLAGS-s_catanhl.c): Likewise.
19670 (CFLAGS-s_cexpl.c): Likewise.
19671 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19672 (CFLAGS-s_csinhl.c): Likewise.
19673 (CFLAGS-s_clogl.c): Likewise.
19674 (CFLAGS-s_clog10l.c): Likewise.
19675 (CFLAGS-s_csinl.c): Likewise.
19676 (CFLAGS-s_csqrtl.c): Likewise.
19677
19678 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19679 2017-01-09 Svante Signell <svante.signell@gmail.com>
19680
19681 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19682 (_hurd_exec_paths): New function.
19683 * hurd/hurd.h (_hurd_exec): Deprecate function.
19684 (_hurd_exec_paths): Declare function.
19685 * hurd/Versions: Export _hurd_exec_paths.
19686 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19687 (__execve): Use __getcwd to build absolute path, and use
19688 _hurd_exec_paths instead of _hurd_exec.
19689 * sysdeps/mach/hurd/spawni.c: Likewise.
19690 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19691 _hurd_exec.
19692
19693 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19694
19695 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19696 test instead of failing in case of ENOENT returned by posix_openpt.
19697
19698 2018-01-08 Florian Weimer <fweimer@redhat.com>
19699
19700 resolv: Support binary labels in test framework.
19701 * support/resolv_test.c (struct to_be_freed): Remove.
19702 (struct compressed_name): New.
19703 (allocate_compressed_name, ascii_tolower)
19704 (compare_compressed_name): New functions.
19705 (struct resolv_response_builder): Update type of
19706 compression_offsets for use with tsearch. Rempve to_be_freed.
19707 (response_push_pointer_to_free): Remove function.
19708 (resolv_response_add_name): Rewrite using struct compressed_name
19709 and tsearch instead of hsearch_r.
19710 (response_builder_allocate): Remove initialization of
19711 compression_offsets.
19712 (response_builder_free): Update for removal of to_be_freed. Use
19713 tdestroy instead of hdestroy_r.
19714 * resolv/Makefile (tests): Add tst-resolv-binary.
19715 (tst-resolv-binary): Link with -lresolv -lpthread.
19716
19717 2018-01-08 Florian Weimer <fweimer@redhat.com>
19718
19719 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19720 time. Pass positive flag instead of negative flag to
19721 support_test_compare_failure.
19722 (support_test_compare_failure): Change negative parameter to
19723 positive.
19724 * support/support_test_compare_failure.c (report)
19725 (support_test_compare_failure): Likewise.
19726 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19727 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19728
19729 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19730
19731 [BZ #22637]
19732 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19733 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19734 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19735 stacksize.
19736 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19737
19738 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19739
19740 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19741 Add s_sincosf-sse2 and s_sincosf-fma.
19742 (CFLAGS-s_sincosf-fma.c): New.
19743 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19744 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19745 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19746 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19747 __sincosf is defined.
19748
19749 2018-01-08 Florian Weimer <fweimer@redhat.com>
19750
19751 * nptl/tst-thread-exit-clobber.cc: New file.
19752 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19753 C++11 mode.
19754 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19755 (tests): Add tst-thread-exit-clobber.
19756 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19757
19758 2018-01-08 Florian Weimer <fweimer@redhat.com>
19759
19760 * support/check.h (support_static_assert): Define.
19761 (TEST_COMPARE): Use it.
19762
19763 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19764
19765 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19766 [!__RLIM_T_MATCHES_RLIM64_T]
19767 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19768 __getrlimit64. Add libc_hidden_weak.
19769
19770 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19771
19772 * elf/elf.h (R_RISCV_NONE): New define.
19773 (R_RISCV_32): Likewise.
19774 (R_RISCV_64): Likewise.
19775 (R_RISCV_RELATIVE): Likewise.
19776 (R_RISCV_COPY): Likewise.
19777 (R_RISCV_JUMP_SLOT): Likewise.
19778 (R_RISCV_TLS_DTPMOD32): Likewise.
19779 (R_RISCV_TLS_DTPMOD64): Likewise.
19780 (R_RISCV_TLS_DTPREL32): Likewise.
19781 (R_RISCV_TLS_DTPREL64): Likewise.
19782 (R_RISCV_TLS_TPREL32): Likewise.
19783 (R_RISCV_TLS_TPREL64): Likewise.
19784 * Makerules (make-link-multidir): Make directories before linking into
19785 them.
19786 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19787 define.
19788 (VDSO_HASH_LINUX_4_15): Likewise.
19789 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19790 in subdirectories of lib.
19791 * nptl/Makefile (/librt.so): Always depend on
19792 "$(shared-thread-library)".
19793
19794 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19795
19796 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19797 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19798 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19799 (___tls_get_addr).
19800 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19801 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19802 "-O2 -march=i686".
19803 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19804 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19805 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19806 * sysdeps/gnu/glob-lstat-compat.c: New file.
19807 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19808 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19809
19810 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19811
19812 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19813 Reserve 16 chars to reloc_addr before calling _itoa_word.
19814
19815 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19816
19817 [BZ #22678]
19818 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19819 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19820
19821 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19822 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19823
19824 * resource/tst-getrlimit.c: Add copyright header.
19825
19826 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19827 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19828
19829 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19830 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19831 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19832 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19833 instead.
19834 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19835 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19836 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19837 RLIM64_INFINITY): Fix values to match the kernel ones.
19838 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19839 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19840 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19841 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19842 getrlimit64@@GLIBC_2_27.
19843 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19844 and setrlimit64.
19845 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19846 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19847 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19848 setrlimit, getrlimit64 and setrlimit64.
19849
19850 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19851
19852 [BZ #22648]
19853 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19854 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19855
19856 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19857
19858 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19859 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19860 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19861
19862 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19863
19864 [BZ #15479]
19865 [BZ #22666]
19866 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19867 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19868
19869 [BZ #15479]
19870 [BZ #22665]
19871 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19872 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19873 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19874 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19875
19876 2018-01-04 Florian Weimer <fweimer@redhat.com>
19877
19878 [BZ #22667]
19879 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19880 Align the stack before calling exit.
19881 * stdlib/tst-makecontext-align.c: New file.
19882 * stdlib/Makefile (tests): Add tst-makecontext-align.
19883
19884 2018-01-04 Florian Weimer <fweimer@redhat.com>
19885
19886 Add support for calling dlvsym from libc.so.
19887 * include/dlfcn.h (__libc_dlvsym): Declare.
19888 * elf/Makefile (tests-static-internal): Add
19889 tst-libc_dlvsym-static.
19890 (tests-internal): Add tst-libc_dlvsym.
19891 (modules-names): Add tst-libc_dlvsym-dso.
19892 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19893 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19894 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19895 object tst-libc_dlvsym-dso.so needs to be built before running
19896 these tests.
19897 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19898 * elf/Versions: Export __libc_dlvsym.
19899 * elf/dl-libc.c (struct do_dlvsym_args): New.
19900 (do_dlvsym, __libc_dlvsym): New functions.
19901 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19902 (_dl_open_hook2): New variable.
19903 (__libc_register_dl_open_hook): Set it.
19904 * elf/tst-libc_dlvsym-dso.c: New file.
19905 * elf/tst-libc_dlvsym-static.c: Likewise.
19906 * elf/tst-libc_dlvsym.c: Likewise.
19907 * elf/tst-libc_dlvsym.h: Likewise.
19908
19909 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19910
19911 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19912 include <sys/mount.h>.
19913
19914 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19915
19916 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19917 Add __NO_MATH_ERRNO__ check.
19918
19919 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19920
19921 * sysdeps/mips/mips32/libm-test-ulps: Update.
19922 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19923
19924 2018-01-02 Florian Weimer <fweimer@redhat.com>
19925
19926 * misc/tst-pselect.c: Add copyright header.
19927
19928 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19929
19930 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19931 comment.
19932 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19933 comment.
19934 (settrlimit): Rename into setrlimit.
19935 (__sttrlimit): Rename into __setrlimit.
19936
19937 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19938 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19939 never defined in that case.
19940
19941 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19942
19943 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19944
19945 * sysdeps/arm/libm-test-ulps: Update.
19946
19947 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19948 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19949
19950 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19951
19952 * NEWS: Add cosf and sincosf to list of optimized functions.
19953
19954 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19955
19956 [BZ #22660]
19957 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19958 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19959 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19960 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19961
19962 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19963
19964 [BZ #22433]
19965 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19966
19967 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19968 making a copy of it.
19969
19970 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19971
19972 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19973 trailing whitespace removed.
19974 * scripts/config.guess: Update to version 2018-01-01.
19975 * scripts/config.sub: Update to version 2018-01-01.
19976 * scripts/move-if-change: Update from gnulib.
19977
19978 * NEWS: Update copyright dates.
19979 * catgets/gencat.c (print_version): Likewise.
19980 * csu/version.c (banner): Likewise.
19981 * debug/catchsegv.sh: Likewise.
19982 * debug/pcprofiledump.c (print_version): Likewise.
19983 * debug/xtrace.sh (do_version): Likewise.
19984 * elf/ldconfig.c (print_version): Likewise.
19985 * elf/ldd.bash.in: Likewise.
19986 * elf/pldd.c (print_version): Likewise.
19987 * elf/sotruss.sh: Likewise.
19988 * elf/sprof.c (print_version): Likewise.
19989 * iconv/iconv_prog.c (print_version): Likewise.
19990 * iconv/iconvconfig.c (print_version): Likewise.
19991 * locale/programs/locale.c (print_version): Likewise.
19992 * locale/programs/localedef.c (print_version): Likewise.
19993 * login/programs/pt_chown.c (print_version): Likewise.
19994 * malloc/memusage.sh (do_version): Likewise.
19995 * malloc/memusagestat.c (print_version): Likewise.
19996 * malloc/mtrace.pl: Likewise.
19997 * manual/libc.texinfo: Likewise.
19998 * nptl/version.c (banner): Likewise.
19999 * nscd/nscd.c (print_version): Likewise.
20000 * nss/getent.c (print_version): Likewise.
20001 * nss/makedb.c (print_version): Likewise.
20002 * posix/getconf.c (main): Likewise.
20003 * scripts/test-installation.pl: Likewise.
20004 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20005
20006 * All files with FSF copyright notices: Update copyright dates
20007 using scripts/update-copyrights.
20008 * locale/programs/charmap-kw.h: Regenerated.
20009 * locale/programs/locfile-kw.h: Likewise.
20010
20011 2017-12-31 Zack Weinberg <zackw@panix.com>
20012
20013 * libio/bits/libio-ldbl.h: Correct check for improper
20014 inclusion. Add own multiple include guard.
20015
20016 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20017 Dmitry V. Levin <ldv@altlinux.org>
20018
20019 [BZ #22625]
20020 CVE-2017-16997
20021 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20022 string token expansion. Check for NULL pointer or empty string possibly
20023 returned by expand_dynamic_string_token.
20024 (decompose_rpath): Check for empty path after dynamic string
20025 token expansion.
20026
20027 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20028
20029 [BZ #22433]
20030 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20031
20032 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20033 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20034 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20035 and PTRACE_SYSCALL.
20036 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20037 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20038 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20039 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20040 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20041 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20042
20043 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20044 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20045 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20046 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20047 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20048 bits/ptrace-shared.h.
20049 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20050 <bits/ptrace-shared.h>.
20051 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20052 __ptrace_peeksiginfo_flags, ptrace): Remove.
20053 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20054 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20055 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20056 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20057 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20058
20059 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20060
20061 [BZ #17804]
20062 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20063 end of the loop. Improve comments.
20064
20065 2017-12-29 Zack Weinberg <zackw@panix.com>
20066
20067 [BZ #22615]
20068 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20069 might be set on success.
20070
20071 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20072
20073 [BZ #22611]
20074 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20075 is unchanged on success.
20076
20077 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20078
20079 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20080 updated.
20081 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20082 expand_dynamic_string_token): Likewise.
20083 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20084 is_path argument.
20085
20086 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20087 contains ':'.
20088
20089 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20090 is set and name contains ':', and all code depending on these checks.
20091
20092 2017-12-24 Zack Weinberg <zackw@panix.com>
20093
20094 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20095 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20096 respectively.
20097 * libio/libio.h: Rename the original version of this file to
20098 libio/bits/libio.h. Error out if not included by stdio.h or the
20099 stub libio.h.
20100 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20101 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20102 if not included by bits/libio.h or the stub _G_config.h.
20103 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20104 sysdeps/unix/sysv/linux/bits. Error out if not included by
20105 bits/libio.h or the stub _G_config.h.
20106 * libio/stdio.h: Include bits/libio.h, not libio.h.
20107 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20108 well as libio.h and _G_config.h.
20109
20110 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20111 * libio/strfile.h, stdio-common/vfscanf.c
20112 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20113 Include stdio.h, not _G_config.h nor libio.h.
20114 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20115 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20116
20117 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20118
20119 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20120
20121 [BZ #22347]
20122 * stdlib/getrandom.c (getrandom): Fix comment.
20123 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20124
20125 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20126
20127 [BZ #21161]
20128 * manual/arith.texi (strtoul): Fix a typo.
20129
20130 [BZ #22596]
20131 * manual/arith.texi (finite): Fix the description of the return
20132 value.
20133
20134 2017-12-22 Eric Blake <ebb9@byu.net>
20135
20136 Avoid gcc warnings on cygwin
20137 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20138 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20139 Avoid unused variable.
20140
20141 2017-12-22 Florian Weimer <fweimer@redhat.com>
20142
20143 * io/Makefile (routines): Add copy_file_range.
20144 (tests): Add tst-copy_file_range.
20145 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20146 * io/Versions (GLIBC_2.27): Export copy_file_range.
20147 * io/copy_file_range-compat.c: New file.
20148 * io/copy_file_range.c: Likewise.
20149 * io/tst-copy_file_range-compat.c: Likewise.
20150 * io/tst-copy_file_range.c: Likewise.
20151 * manual/llio.texi (Copying File Data): New section.
20152 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20153 * support/Makefile (libsupport-routines): Add support-xfstat,
20154 xftruncate, xlseek.
20155 * support/support-xfstat.c: New file.
20156 * support/xftruncate.c: Likewise.
20157 * support/xlseek.c: Likewise.
20158 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20159 * sysdeps/unix/sysv/linux/**.abilist: Update.
20160 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20161
20162 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20163
20164 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20165 disable-multi-arch variant to aarch64-linux-gnu.
20166
20167 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20168
20169 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20170 trailing whitespace removed.
20171 * scripts/config.guess: Update to version 2017-12-17.
20172 * scripts/config.sub: Update to version 2017-11-23.
20173 * scripts/install-sh: Update to version 2017-09-23.17.
20174 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20175
20176 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20177
20178 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20179 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20180 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20181 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20182 * sysdeps/tile/crtn.S: Likewise.
20183 * sysdeps/tile/dl-start.S (_start): Likewise.
20184 * sysdeps/tile/dl-trampoline.S: Likewise.
20185 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20186 * sysdeps/tile/start.S (_start): Likewise.
20187 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20188 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20189 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20190 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20191 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20192 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20193 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20194
20195 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20196 comment.
20197 * sysdeps/tile/preconfigure: Remove tilegx folder.
20198 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20199 * sysdeps/tile/Implies: ... here.
20200 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20201 * sysdeps/tile/Makefile: ... here.
20202 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20203 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20204 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20205 * sysdeps/tile/bits/wordsize.h: ... here.
20206 * sysdeps/tile/tilegx/*: Move to ...
20207 * sysdeps/tile/*: ... here.
20208 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20209 * sysdeps/tile/tilegx32/Implies: ... here.
20210 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20211 * sysdeps/tile/tilegx64/Implies: ... here.
20212 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20213 to ...
20214 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20215 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20216 * sysdeps/unix/sysv/linux/tile/*: ... here.
20217 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20218 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20219 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20220 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20221
20222 * README: Remove tilepro-*-linux-gnu from supported architecture.
20223 * scripts/build-many-glibcs.py: Likewise.
20224 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20225 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20226 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20227 elf_machine_matches_host, elf_machine_dynamic,
20228 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20229 howto, elf_machine_rela): Likewise.
20230 * sysdeps/tile/dl-start.S (_start): Likewise.
20231 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20232 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20233 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20234 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20235 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20236 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20237 Likewise.
20238 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20239 * sysdeps/tile/preconfigure: Likewise.
20240 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20241 POINTER_CHK_GUARD): Likewise.
20242 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20243 * sysdeps/tile/start.S (_start): Likewise.
20244 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20245 Likewise.
20246 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20247 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20248 CMOVNEZ): Remove.
20249 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20250 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20251 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20252 Likewise.
20253 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20254 * sysdeps/tile/tilepro/Implies: Remove file.
20255 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20256 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20257 * sysdeps/tile/tilepro/memchr.c: Likewise.
20258 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20259 * sysdeps/tile/tilepro/memset.c: Likewise.
20260 * sysdeps/tile/tilepro/memusage.h: Likewise.
20261 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20262 * sysdeps/tile/tilepro/strchr.c: Likewise.
20263 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20264 * sysdeps/tile/tilepro/strlen.c: Likewise.
20265 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20266 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20267 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20268 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20269 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20270 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20271 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20272 Likewise.
20273 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20274 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20275 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20276 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20277 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20278 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20279 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20280 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20281 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20282 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20283 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20284 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20285 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20286 tilepro mention in comment.
20287
20288 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20289 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20290 * nptl/pthread_join_common.c: New file: common function used on
20291 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20292 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20293 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20294 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20295 (cleanup): Move definition to pthread_join_common.c.
20296 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20297 Remove superflous checks.
20298 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20299 Likewise.
20300
20301 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20302
20303 * sysdeps/aarch64/libm-test-ulps: Update.
20304
20305 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20306
20307 * sysdeps/aarch64/memset.S (MEMSET): Define.
20308
20309 2017-12-20 Florian Weimer <fweimer@redhat.com>
20310
20311 [BZ #22635]
20312 nptl: Provide full implementation of pthread_self in libc.so.
20313 * nptl/Makefile (routines): Add pthread_self.
20314 (libpthread-routines): Replace pthread_self with
20315 compat-pthread_self.
20316 * nptl/forward.c (pthread_self): Remove.
20317 * nptl/nptl-init.c (pthread_functions): Do not initialize
20318 ptr_pthread_self.
20319 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20320 * nptl/compat-pthread_self.c: New file.
20321 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20322 Remove ptr_pthread_self.
20323
20324 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20325
20326 * posix/regcomp.c: Fix spelling in comments.
20327 * posix/regex.h: Likewise.
20328 * posix/regex_internal.c: Likewise.
20329 * posix/regexec.c: Likewise.
20330
20331 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20332
20333 [BZ #22377]
20334 * math/Makefile [C++] (tests): Add test for iseqsig.
20335 * math/math.h [C++] (iseqsig): New implementation, which does
20336 not rely on __MATH_TG/__builtin_types_compatible_p.
20337 * math/test-math-iseqsig.cc: New file.
20338 * sysdeps/powerpc/powerpc64le/Makefile
20339 (CFLAGS-test-math-iseqsig.cc): New variable.
20340
20341 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20342
20343 * elf/dl-load.c (is_trusted_path): Remove.
20344 (fillin_rpath): Remove check_trusted argument and its use,
20345 all callers changed.
20346
20347 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20348
20349 [BZ #22630]
20350 * Makeconfig (link-pie-before-libc): Replace -pie with
20351 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20352 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20353 (tst-dlopen-aout-no-pie): New.
20354 (LDFLAGS-tst-prelink): Removed.
20355 (tst-prelink-no-pie): New.
20356 (LDFLAGS-tst-main1): Removed.
20357 (tst-main1-no-pie): New.
20358 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20359 (tst-gmon-no-pie): New.
20360
20361 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20362
20363 * manual/install.texi: Document that --enable-static-pie
20364 implies PIE.
20365 * INSTALL: Regenerated.
20366
20367 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20368
20369 [BZ #21309]
20370 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20371 unsigned.
20372
20373 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20374
20375 Revert:
20376
20377 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20378
20379 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20380
20381 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20382
20383 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20384 <errno.h>. Include "eexp.tbl".
20385 (half): New constant.
20386 (one): Likewise.
20387 (__ieee754_exp): Rewrite.
20388 (__slowexp): Remove prototype.
20389 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20390 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20391 * sysdeps/i386/fpu/slowexp.c: Likewise.
20392 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20393 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20394 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20395 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20396 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20397 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20398 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20399 comment.
20400 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20401 (CPPFLAGS-slowexp.c): Remove variable.
20402 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20403 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20404 (CFLAGS-slowexp-fma.c): Remove variable.
20405 (CFLAGS-slowexp-fma4.c): Likewise.
20406 (CFLAGS-slowexp-avx.c): Likewise.
20407 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20408 define as macro.
20409 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20410 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20411 * math/Makefile (type-double-routines): Remove slowexp.
20412 * manual/probes.texi (slowexp_p6): Remove.
20413 (slowexp_p32): Likewise.
20414
20415 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20416
20417 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20418 arithmetic.
20419
20420 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20421
20422 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20423
20424 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20425
20426 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20427
20428 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20429 <errno.h>. Include "eexp.tbl".
20430 (half): New constant.
20431 (one): Likewise.
20432 (__ieee754_exp): Rewrite.
20433 (__slowexp): Remove prototype.
20434 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20435 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20436 * sysdeps/i386/fpu/slowexp.c: Likewise.
20437 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20438 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20439 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20440 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20441 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20442 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20443 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20444 comment.
20445 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20446 (CPPFLAGS-slowexp.c): Remove variable.
20447 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20448 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20449 (CFLAGS-slowexp-fma.c): Remove variable.
20450 (CFLAGS-slowexp-fma4.c): Likewise.
20451 (CFLAGS-slowexp-avx.c): Likewise.
20452 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20453 define as macro.
20454 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20455 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20456 * math/Makefile (type-double-routines): Remove slowexp.
20457 * manual/probes.texi (slowexp_p6): Remove.
20458 (slowexp_p32): Likewise.
20459
20460 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20461 James Clarke <jrtc27@jrtc27.com>
20462
20463 [BZ #22603]
20464 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20465 addition.
20466
20467 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20468
20469 [BZ #22605]
20470 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20471 code.
20472
20473 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20474
20475 [BZ #22563]
20476 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20477 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20478 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20479 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20480 to feature_1.
20481
20482 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20483
20484 [BZ #22563]
20485 * bits/types/__cancel_jmp_buf_tag.h: New file.
20486 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20487 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20488 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20489 * nptl/Makefile (headers): Add
20490 bits/types/__cancel_jmp_buf_tag.h.
20491 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20492 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20493 * sysdeps/nptl/pthread.h: Include
20494 <bits/types/__cancel_jmp_buf_tag.h>.
20495 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20496 __cancel_jmp_buf.
20497 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20498
20499 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20500
20501 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20502 --enable-static-pie variants to x86_64, x32 and i686.
20503
20504 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20505
20506 [BZ #22631]
20507 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20508 argument for attrubutes. All callers changed.
20509 (__inline_mathop1): Likewise. All callers changed.
20510 (__inline_mathop): Likewise. All callers changed.
20511 [__USE_MISC] (scalbn): Use __inline_forward instead of
20512 __inline_forward_c.
20513 [__USE_ISOC99] (scalbln): Likewise.
20514 [__USE_ISOC99] (nearbyint): Likewise.
20515 [__USE_ISOC99] (lrint): Likewise.
20516 [__USE_MISC] (scalbnf): Likewise.
20517 [__USE_ISOC99] (scalblnf): Likewise.
20518 [__USE_ISOC99] (nearbyintf): Likewise.
20519 [__USE_ISOC99] (lrintf): Likewise.
20520 [__USE_MISC] (scalbnl): Likewise.
20521 [__USE_ISOC99] (scalblnl): Likewise.
20522 [__USE_ISOC99] (nearbyintl): Likewise.
20523 [__USE_ISOC99] (lrintl): Likewise.
20524 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20525 __inline_mathop and __m81_defun changed.
20526
20527 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20528 CPU or FPU for ARM hard-float configurations.
20529
20530 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20531
20532 * nptl/tst-attr3.c: Include <libc-diag.h>.
20533 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20534
20535 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20536
20537 * string/tester.c (test_strncat): Also disable -Warray-bounds
20538 warnings for two tests.
20539
20540 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20541
20542 [BZ #22614]
20543 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20544 $(cc-pie-default) == yes.
20545 * config.make.in (cc-pie-default): New.
20546 * configure.ac (libc_cv_pie_default): Renamed to ...
20547 (libc_cv_cc_pie_default): This.
20548 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20549 * configure: Regenerated.
20550
20551 2017-12-18 Florian Weimer <fweimer@redhat.com>
20552
20553 [BZ #20204]
20554 ld.so: Harden dl-libc/libdl hooks.
20555 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20556 (rtld_active): New function.
20557 * dlfcn/dladdr.c (__dladdr): Call it.
20558 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20559 * dlfcn/dlclose.c (__dlcose): Likewise.
20560 * dlfcn/dlerror.c (__dlerror): Likewise.
20561 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20562 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20563 * dlfcn/dlopen.c (__dlopen): Likewise.
20564 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20565 * dlfcn/dlsym.c (__dlsym): Likewise.
20566 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20567 * libio/vtables.c (_IO_vtable_check): Likewise.
20568 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20569 (__libc_dlclose): Likewise.
20570 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20571 assignment.
20572
20573 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20574
20575 [BZ #22446]
20576 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20577 buffers for readlink input and output.
20578
20579 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20580
20581 [BZ #22624]
20582 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20583 inhibit_stack_protector.
20584
20585 [BZ #22624]
20586 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20587 inhibit_stack_protector.
20588
20589 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20590
20591 [BZ #22627]
20592 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20593 code and invocation.
20594
20595 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20596
20597 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20598
20599 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20600
20601 [BZ #22505]
20602 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20603
20604 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20605
20606 * sysdeps/s390/fpu/libm-test-ulps: Update.
20607
20608 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20609
20610 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20611
20612 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20613
20614 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20615 constants to s_sincosf.h file.
20616 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20617 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20618 implementation.
20619 * sysdeps/ieee754/flt-32/s_sincosf.h:
20620 New file.
20621
20622 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20623
20624 [BZ #14681]
20625 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20626 before mtrace.
20627
20628 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20629
20630 [BZ #19574]
20631 * INSTALL: Regenerated.
20632 * Makeconfig (real-static-start-installed-name): New.
20633 (pic-default): Updated for --enable-static-pie.
20634 (pie-default): New for --enable-static-pie.
20635 (default-pie-ldflag): Likewise.
20636 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20637 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20638 Replace $(static-start-installed-name) with
20639 $(real-static-start-installed-name).
20640 (+prectorT): Updated for --enable-static-pie.
20641 (+postctorT): Likewise.
20642 (CFLAGS-.o): Add $(pie-default).
20643 (CFLAGS-.op): Likewise.
20644 * NEWS: Mention --enable-static-pie.
20645 * config.h.in (ENABLE_STATIC_PIE): New.
20646 * configure.ac (--enable-static-pie): New configure option.
20647 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20648 (have-static-pie): Likewise.
20649 Enable static PIE if linker supports --no-dynamic-linker.
20650 (ENABLE_STATIC_PIE): New AC_DEFINE.
20651 (enable-static-pie): New LIBC_CONFIG_VAR.
20652 * configure: Regenerated.
20653 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20654 gr$(start-installed-name) for --enable-static-pie.
20655 (extra-objs): Likewise.
20656 (install-lib): Likewise.
20657 (extra-objs): Add static-reloc.o and static-reloc.os
20658 ($(objpfx)$(start-installed-name)): Also depend on
20659 $(objpfx)static-reloc.o.
20660 ($(objpfx)r$(start-installed-name)): New.
20661 ($(objpfx)g$(start-installed-name)): Also depend on
20662 $(objpfx)static-reloc.os.
20663 ($(objpfx)gr$(start-installed-name)): New.
20664 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20665 in libc.a.
20666 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20667 initimage.
20668 * csu/static-reloc.c: New file.
20669 * elf/Makefile (routines): Add dl-reloc-static-pie.
20670 (elide-routines.os): Likewise.
20671 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20672 (tst-tls1-static-non-pie-no-pie): New.
20673 * elf/dl-reloc-static-pie.c: New file.
20674 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20675 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20676 STATIC_PIE_BOOTSTRAP.
20677 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20678 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20679 (tests-static): Likewise.
20680 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20681 (tst-gmon-static-no-pie): New.
20682 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20683 (CRT-tst-gmon-static-pie): Likewise.
20684 (tst-gmon-static-pie-ENV): Likewise.
20685 (tests-special): Likewise.
20686 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20687 (clean-tst-gmon-static-pie-data): Likewise.
20688 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20689 * gmon/tst-gmon-static-pie.c: New file.
20690 * manual/install.texi: Document --enable-static-pie.
20691 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20692 (_dl_get_dl_main_map): Likewise.
20693 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20694 * sysdeps/x86_64/configure.ac: Likewise.
20695 * sysdeps/i386/configure: Regenerated.
20696 * sysdeps/x86_64/configure: Likewise.
20697 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20698 (ASFLAGS-.op): Likewise.
20699
20700 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20701
20702 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20703 * posix/tst-mmap-offset.c (fname): Use /tmp.
20704 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20705
20706 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20707
20708 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20709
20710 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20711
20712 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20713 errno.
20714
20715 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20716
20717 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20718 --with-float=hard for arm-linux-gnueabihf configurations.
20719
20720 [BZ #14121]
20721 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20722 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20723 ($(mo-installed)): Use $(objpfx)%.mo.
20724 (realclean): Remove rule.
20725
20726 * po/Makefile (linguas): Remove rule and dependencies.
20727 (linguas.mo): Likewise.
20728 (.PHONY): Do not depend on linguas and linguas.mo.
20729 (podir): Remove variable.
20730 (pofiles): Likewise.
20731 [$(pofiles)] (%.po): Remove rule.
20732
20733 * sysdeps/sparc/sparc32/Makefile
20734 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20735 start-of-line whitespace in argument of echo.
20736 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20737 with whitespace. Generate __wrap_.udiv alias.
20738 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20739 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20740 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20741 * sysdeps/sparc/sparc32/urem.S: Likewise.
20742
20743 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20744
20745 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20746 for aligned inputs.
20747
20748 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20749
20750 * benchtests/bench-strcmp.c: Print output in JSON format.
20751
20752 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20753
20754 2017-12-14 Florian Weimer <fweimer@redhat.com>
20755
20756 [BZ #22607]
20757 CVE-2017-1000409
20758 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20759 the expanded path string.
20760
20761 2017-12-14 Florian Weimer <fweimer@redhat.com>
20762
20763 [BZ #22606]
20764 CVE-2017-1000408
20765 * elf/dl-load.c (system_dirs): Update comment.
20766 (nsystem_dirs_len): Use array_length.
20767 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20768
20769 2017-12-14 Florian Weimer <fweimer@redhat.com>
20770
20771 Simplify compiling most of support/ outside of glibc.
20772 * support/check_addrinfo.c: Include <string.h>.
20773 * support/check_dns_packet.c: Likewise.
20774 * support/check_hostent.c: Likewise.
20775 * support/support_can_chroot.c: Include <support/xunistd.h>.
20776 * support/support_format_addrinfo.c: Include <stdlib.h>
20777 * support/support_format_dns_packet.c: Include <stdbool.h>.
20778 * support/support_format_hostent.c: Include <stdlib.h>.
20779 * support/support_format_netent.c: Likewise.
20780 * support/support_write_string.c: Include <support/xunistd.h>.
20781 * support/xdlfcn.c: Include <stddef.h>.
20782
20783 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20784
20785 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20786
20787 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20788 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20789
20790 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20791 (sysdeps_routines): Add memset-niagara7.
20792 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20793 Likewise.
20794 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20795 file.
20796 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20797 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20798 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20799 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20800 Add niagara7 option.
20801 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20802 memset.
20803
20804 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20805 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20806 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20807 Likewise.
20808 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20809 New file.
20810 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20811 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20812 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20813 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20814 and __memmove_niagara7.
20815 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20816 Add niagara7 option.
20817 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20818 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20819 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20820 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20821 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20822
20823 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20824
20825 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20826 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20827 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20828 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20829
20830 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20831 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20832 _dl_sparc_cap_flags array.
20833 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20834
20835 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20836
20837 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20838 time whenever possible.
20839
20840 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20841
20842 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20843 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20844
20845 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20846
20847 * soft-fp/fmadf4.c: Move to ....
20848 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20849 * soft-fp/fmasf4.c: Move to ....
20850 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20851 * soft-fp/fmatf4.c: Move to ....
20852 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20853 * sysdeps/ieee754/soft-fp/Makefile: New file.
20854 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20855 * sysdeps/arm/preconfigure: Regenerated.
20856 * sysdeps/arm/nofpu/Implies: New file.
20857 * sysdeps/arm/s_fma.c: Remove file.
20858 * sysdeps/arm/s_fmaf.c: Likewise.
20859 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20860 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20861 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20862 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20863 * sysdeps/microblaze/s_fma.c: Remove file.
20864 * sysdeps/microblaze/s_fmaf.c: Likewise.
20865 * sysdeps/mips/mips32/nofpu/Implies: New file.
20866 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20867 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20868 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20869 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20870 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20871 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20872 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20873 implementation.
20874 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20875 * sysdeps/nios2/s_fma.c: Remove file.
20876 * sysdeps/nios2/s_fmaf.c: Likewise.
20877 * sysdeps/sh/nofpu/Implies: New file.
20878 * sysdeps/sh/s_fma.c: Remove file.
20879 * sysdeps/sh/s_fmaf.c: Likewise.
20880 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20881 * sysdeps/tile/s_fma.c: Remove file.
20882 * sysdeps/tile/s_fmaf.c: Likewise.
20883
20884 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20885
20886 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20887 Add s_cosf-sse2 and s_cosf-fma.
20888 (CFLAGS-s_cosf-fma.c): New.
20889 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20890 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20891 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20892
20893 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20894
20895 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20896
20897 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20898
20899 * libio/Makefile (tests): Add tst-bz22415.
20900 (tst-bz22415-ENV): New rule.
20901 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20902 (tests-special): Add tst-bz22415-mem.out.
20903 ($(objpfx)tst-bz22415-mem.out): New rule.
20904 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20905 in case of a successful seek operation.
20906 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20907 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20908 buffer is required.
20909 * libio/tst-bz22415.c: New test.
20910
20911 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20912
20913 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20914
20915 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20916 __IPC_64 to 0 to avoid IPC_64 being set.
20917
20918 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20919
20920 [BZ #22593]
20921 * math/bits/mathcalls.h (nextafter): Remove const.
20922 (nexttoward): Likewise.
20923
20924 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20925
20926 * configure.ac (--with-fp): Remove configure option.
20927 (with_fp_cond): New variable.
20928 (libc_cv_with_fp): New configure test. Use this variable instead
20929 of with_fp.
20930 * configure: Regenerated.
20931 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20932 * manual/install.texi (Configuring and compiling): Remove
20933 --without-fp.
20934 * INSTALL: Regenerated.
20935 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20936 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20937 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20938 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20939 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20940 use --without-fp to configure glibc.
20941
20942 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20943
20944 * manual/locale.texi (nl_langinfo): Fix a typo.
20945
20946 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20947
20948 [BZ #22588]
20949 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20950
20951 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20952
20953 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20954 (CFLAGS-argp-parse.c): Likewise.
20955 (CFLAGS-argp-fmtstream.c): Likewise.
20956 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20957 (CPPFLAGS-sha512-crypt.c): Likewise.
20958 (CPPFLAGS-md5-crypt.c): Likewise.
20959 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20960 (CFLAGS-stack_chk_fail_local.c): Likewise.
20961 (CFLAGS-backtrace.c): Likewise.
20962 (CFLAGS-sprintf_chk.c): Likewise.
20963 (CFLAGS-snprintf_chk.c): Likewise.
20964 (CFLAGS-vsprintf_chk.c): Likewise.
20965 (CFLAGS-vsnprintf_chk.c): Likewise.
20966 (CFLAGS-asprintf_chk.c): Likewise.
20967 (CFLAGS-vasprintf_chk.c): Likewise.
20968 (CFLAGS-obprintf_chk.c): Likewise.
20969 (CFLAGS-dprintf_chk.c): Likewise.
20970 (CFLAGS-vdprintf_chk.c): Likewise.
20971 (CFLAGS-printf_chk.c): Likewise.
20972 (CFLAGS-fprintf_chk.c): Likewise.
20973 (CFLAGS-vprintf_chk.c): Likewise.
20974 (CFLAGS-vfprintf_chk.c): Likewise.
20975 (CFLAGS-gets_chk.c): Likewise.
20976 (CFLAGS-fgets_chk.c): Likewise.
20977 (CFLAGS-fgets_u_chk.c): Likewise.
20978 (CFLAGS-fread_chk.c): Likewise.
20979 (CFLAGS-fread_u_chk.c): Likewise.
20980 (CFLAGS-swprintf_chk.c): Likewise.
20981 (CFLAGS-vswprintf_chk.c): Likewise.
20982 (CFLAGS-wprintf_chk.c): Likewise.
20983 (CFLAGS-fwprintf_chk.c): Likewise.
20984 (CFLAGS-vwprintf_chk.c): Likewise.
20985 (CFLAGS-vfwprintf_chk.c): Likewise.
20986 (CFLAGS-fgetws_chk.c): Likewise.
20987 (CFLAGS-fgetws_u_chk.c): Likewise.
20988 (CFLAGS-read_chk.c): Likewise.
20989 (CFLAGS-pread_chk.c): Likewise.
20990 (CFLAGS-pread64_chk.c): Likewise.
20991 (CFLAGS-recv_chk.c): Likewise.
20992 (CFLAGS-recvfrom_chk.c): Likewise.
20993 (CFLAGS-tst-longjmp_chk.c): Likewise.
20994 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20995 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20996 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20997 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20998 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20999 (CFLAGS-tst-chk1.c): Likewise.
21000 (CFLAGS-tst-chk2.c): Likewise.
21001 (CFLAGS-tst-chk3.c): Likewise.
21002 (CFLAGS-tst-chk4.cc): Likewise.
21003 (CFLAGS-tst-chk5.cc): Likewise.
21004 (CFLAGS-tst-chk6.cc): Likewise.
21005 (CFLAGS-tst-lfschk1.c): Likewise.
21006 (CFLAGS-tst-lfschk2.c): Likewise.
21007 (CFLAGS-tst-lfschk3.c): Likewise.
21008 (CFLAGS-tst-lfschk4.cc): Likewise.
21009 (CFLAGS-tst-lfschk5.cc): Likewise.
21010 (CFLAGS-tst-lfschk6.cc): Likewise.
21011 (CFLAGS-tst-ssp-1.c): Likewise.
21012 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21013 (CFLAGS-scandir64.c): Likewise.
21014 (CFLAGS-scandir-tail.c): Likewise.
21015 (CFLAGS-scandir64-tail.c): Likewise.
21016 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21017 (CFLAGS-dl-tunables.c): Likewise.
21018 (CFLAGS-dl-runtime.c): Likewise.
21019 (CFLAGS-dl-lookup.c): Likewise.
21020 (CFLAGS-dl-iterate-phdr.c): Likewise.
21021 (CFLAGS-vismain.c): Likewise.
21022 (CFLAGS-tst-linkall-static.c): Likewise.
21023 (CFLAGS-tst-linkall-static.c): Likewise.
21024 (CPPFLAGS-dl-load.c): Likewise.
21025 (CFLAGS-ldconfig.c): Likewise.
21026 (CFLAGS-dl-cache.c): Likewise.
21027 (CFLAGS-cache.c): Likewise.
21028 (CFLAGS-rtld.c): Likewise.
21029 (CFLAGS-multiload.c): Likewise.
21030 (CFLAGS-filtmod1.c): Likewise.
21031 (CFLAGS-tst-align.c): Likewise.
21032 (CFLAGS-tst-align2.c): Likewise.
21033 (CFLAGS-tst-alignmod.c): Likewise.
21034 (CFLAGS-tst-alignmod2.c): Likewise.
21035 (CPPFLAGS-tst-execstack.c): Likewise.
21036 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21037 (CFLAGS-tst-latepthreadmod.c): Likewise.
21038 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21039 (CFLAGS-getgrnam_r.c): Likewise.
21040 (CFLAGS-getgrent_r.c): Likewise.
21041 (CFLAGS-getgrent.c): Likewise.
21042 (CFLAGS-fgetgrent.c): Likewise.
21043 (CFLAGS-fgetgrent_r.c): Likewise.
21044 (CFLAGS-putgrent.c): Likewise.
21045 (CFLAGS-initgroups.c): Likewise.
21046 (CFLAGS-getgrgid.c): Likewise.
21047 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21048 (CFLAGS-getsgent.c): Likewise.
21049 (CFLAGS-fgetsgent.c): Likewise.
21050 (CFLAGS-fgetsgent_r.c): Likewise.
21051 (CFLAGS-putsgent.c): Likewise.
21052 (CFLAGS-getsgnam.c): Likewise.
21053 (CFLAGS-getsgnam_r.c): Likewise.
21054 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21055 (CFLAGS-iconv_charmap.c): Likewise.
21056 (CFLAGS-dummy-repertoire.c): Likewise.
21057 (CFLAGS-charmap.c): Likewise.
21058 (CFLAGS-linereader.c): Likewise.
21059 (CFLAGS-simple-hash.c): Likewise.
21060 (CFLAGS-gconv_conf.c): Likewise.
21061 (CFLAGS-iconvconfig.c): Likewise.
21062 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21063 (CFLAGS-gethstbyad.c): Likewise.
21064 (CFLAGS-gethstbynm_r.c): Likewise.
21065 (CFLAGS-gethstbynm.c): Likewise.
21066 (CFLAGS-gethstbynm2_r.c): Likewise.
21067 (CFLAGS-gethstbynm2.c): Likewise.
21068 (CFLAGS-gethstent_r.c): Likewise.
21069 (CFLAGS-gethstent.c): Likewise.
21070 (CFLAGS-rcmd.c): Likewise.
21071 (CFLAGS-getnetbynm_r.c): Likewise.
21072 (CFLAGS-getnetbynm.c): Likewise.
21073 (CFLAGS-getnetbyad_r.c): Likewise.
21074 (CFLAGS-getnetbyad.c): Likewise.
21075 (CFLAGS-getnetent_r.c): Likewise.
21076 (CFLAGS-getnetent.c): Likewise.
21077 (CFLAGS-getaliasent_r.c): Likewise.
21078 (CFLAGS-getaliasent.c): Likewise.
21079 (CFLAGS-getrpcent_r.c): Likewise.
21080 (CFLAGS-getrpcent.c): Likewise.
21081 (CFLAGS-getservent_r.c): Likewise.
21082 (CFLAGS-getservent.c): Likewise.
21083 (CFLAGS-getprtent_r.c): Likewise.
21084 (CFLAGS-getprtent.c): Likewise.
21085 (CFLAGS-either_ntoh.c): Likewise.
21086 (CFLAGS-either_hton.c): Likewise.
21087 (CFLAGS-getnetgrent.c): Likewise.
21088 (CFLAGS-getnetgrent_r.c): Likewise.
21089 (CFLAGS-tst-checks-posix.c): Likewise.
21090 (CFLAGS-tst-sockaddr.c): Likewise.
21091 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21092 (CFLAGS-tst-translit.c): Likewise.
21093 (CFLAGS-tst-gettext2.c): Likewise.
21094 (CFLAGS-tst-codeset.c): Likewise.
21095 (CFLAGS-tst-gettext3.c): Likewise.
21096 (CFLAGS-tst-gettext4.c): Likewise.
21097 (CFLAGS-tst-gettext5.c): Likewise.
21098 (CFLAGS-tst-gettext6.c): Likewise.
21099 * io/Makefile (CFLAGS-open.c): Likewise.
21100 (CFLAGS-open64.c): Likewise.
21101 (CFLAGS-creat.c): Likewise.
21102 (CFLAGS-creat64.c): Likewise.
21103 (CFLAGS-fcntl.c): Likewise.
21104 (CFLAGS-poll.c): Likewise.
21105 (CFLAGS-ppoll.c): Likewise.
21106 (CFLAGS-lockf.c): Likewise.
21107 (CFLAGS-statfs.c): Likewise.
21108 (CFLAGS-fstatfs.c): Likewise.
21109 (CFLAGS-statvfs.c): Likewise.
21110 (CFLAGS-fstatvfs.c): Likewise.
21111 (CFLAGS-fts.c): Likewise.
21112 (CFLAGS-fts64.c): Likewise.
21113 (CFLAGS-ftw.c): Likewise.
21114 (CFLAGS-ftw64.c): Likewise.
21115 (CFLAGS-lockf.c): Likewise.
21116 (CFLAGS-posix_fallocate.c): Likewise.
21117 (CFLAGS-posix_fallocate64.c): Likewise.
21118 (CFLAGS-fallocate.c): Likewise.
21119 (CFLAGS-fallocate64.c): Likewise.
21120 (CFLAGS-read.c): Likewise.
21121 (CFLAGS-write.c): Likewise.
21122 (CFLAGS-test-stat.c): Likewise.
21123 (CFLAGS-test-lfs.c): Likewise.
21124 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21125 (CFLAGS-fputc.c): Likewise.
21126 (CFLAGS-fputwc.c): Likewise.
21127 (CFLAGS-freopen64.c): Likewise.
21128 (CFLAGS-freopen.c): Likewise.
21129 (CFLAGS-fseek.c): Likewise.
21130 (CFLAGS-fseeko64.c): Likewise.
21131 (CFLAGS-fseeko.c): Likewise.
21132 (CFLAGS-ftello64.c): Likewise.
21133 (CFLAGS-ftello.c): Likewise.
21134 (CFLAGS-fwide.c): Likewise.
21135 (CFLAGS-genops.c): Likewise.
21136 (CFLAGS-getc.c): Likewise.
21137 (CFLAGS-getchar.c): Likewise.
21138 (CFLAGS-getwc.c): Likewise.
21139 (CFLAGS-getwchar.c): Likewise.
21140 (CFLAGS-iofclose.c): Likewise.
21141 (CFLAGS-iofflush.c): Likewise.
21142 (CFLAGS-iofgetpos64.c): Likewise.
21143 (CFLAGS-iofgetpos.c): Likewise.
21144 (CFLAGS-iofgets.c): Likewise.
21145 (CFLAGS-iofgetws.c): Likewise.
21146 (CFLAGS-iofputs.c): Likewise.
21147 (CFLAGS-iofputws.c): Likewise.
21148 (CFLAGS-iofread.c): Likewise.
21149 (CFLAGS-iofsetpos64.c): Likewise.
21150 (CFLAGS-iofsetpos.c): Likewise.
21151 (CFLAGS-ioftell.c): Likewise.
21152 (CFLAGS-iofwrite.c): Likewise.
21153 (CFLAGS-iogetdelim.c): Likewise.
21154 (CFLAGS-iogetline.c): Likewise.
21155 (CFLAGS-iogets.c): Likewise.
21156 (CFLAGS-iogetwline.c): Likewise.
21157 (CFLAGS-ioputs.c): Likewise.
21158 (CFLAGS-ioseekoff.c): Likewise.
21159 (CFLAGS-ioseekpos.c): Likewise.
21160 (CFLAGS-iosetbuffer.c): Likewise.
21161 (CFLAGS-iosetvbuf.c): Likewise.
21162 (CFLAGS-ioungetc.c): Likewise.
21163 (CFLAGS-ioungetwc.c): Likewise.
21164 (CFLAGS-oldfileops.c): Likewise.
21165 (CFLAGS-oldiofclose.c): Likewise.
21166 (CFLAGS-oldiofgetpos64.c): Likewise.
21167 (CFLAGS-oldiofgetpos.c): Likewise.
21168 (CFLAGS-oldiofsetpos64.c): Likewise.
21169 (CFLAGS-oldiofsetpos.c): Likewise.
21170 (CFLAGS-peekc.c): Likewise.
21171 (CFLAGS-putc.c): Likewise.
21172 (CFLAGS-putchar.c): Likewise.
21173 (CFLAGS-putwc.c): Likewise.
21174 (CFLAGS-putwchar.c): Likewise.
21175 (CFLAGS-rewind.c): Likewise.
21176 (CFLAGS-wfileops.c): Likewise.
21177 (CFLAGS-wgenops.c): Likewise.
21178 (CFLAGS-oldiofopen.c): Likewise.
21179 (CFLAGS-iofopen.c): Likewise.
21180 (CFLAGS-iofopen64.c): Likewise.
21181 (CFLAGS-oldtmpfile.c): Likewise.
21182 (CFLAGS-tst_putwc.c): Likewise.
21183 * locale/Makefile (CFLAGS-md5.c): Likewise.
21184 (CFLAGS-charmap.c): Likewise.
21185 (CFLAGS-locfile.c): Likewise.
21186 (CFLAGS-charmap-dir.c): Likewise.
21187 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21188 (CFLAGS-getpt.c): Likewise.
21189 (CFLAGS-pt_chown.c): Likewise.
21190 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21191 (CFLAGS-obstack.c): Likewise.
21192 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21193 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21194 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21195 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21196 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21197 (CFLAGS-test-tgmath.c): Likewise.
21198 (CFLAGS-test-tgmath2.c): Likewise.
21199 (CFLAGS-test-tgmath-ret.c): Likewise.
21200 (CFLAGS-test-powl.c): Likewise.
21201 (CFLAGS-test-snan.c): Likewise.
21202 (CFLAGS-test-signgam-finite.c): Likewise.
21203 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21204 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21205 (CFLAGS-test-signgam-uchar.c): Likewise.
21206 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21207 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21208 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21209 (CFLAGS-test-signgam-uint.c): Likewise.
21210 (CFLAGS-test-signgam-uint-init.c): Likewise.
21211 (CFLAGS-test-signgam-uint-static.c): Likewise.
21212 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21213 (CFLAGS-test-signgam-ullong.c): Likewise.
21214 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21215 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21216 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21217 (CFLAGS-test-math-cxx11.cc): Likewise.
21218 (CFLAGS-test-math-isinff.cc): Likewise.
21219 (CFLAGS-test-math-iszero.cc): Likewise.
21220 (CFLAGS-test-math-issignaling.cc): Likewise.
21221 (CFLAGS-test-math-iscanonical.cc): Likewise.
21222 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21223 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21224 (CFLAGS-test-flt-eval-method.c): Likewise.
21225 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21226 (CFLAGS-test-finite-macros.c): Likewise.
21227 * misc/Makefile (CFLAGS-select.c): Likewise.
21228 (CFLAGS-tsearch.c): Likewise.
21229 (CFLAGS-lsearch.c): Likewise.
21230 (CFLAGS-pselect.c): Likewise.
21231 (CFLAGS-readv.c): Likewise.
21232 (CFLAGS-writev.c): Likewise.
21233 (CFLAGS-preadv.c): Likewise.
21234 (CFLAGS-preadv64.c): Likewise.
21235 (CFLAGS-pwritev.c): Likewise.
21236 (CFLAGS-pwritev64.c): Likewise.
21237 (CFLAGS-preadv2.c): Likewise.
21238 (CFLAGS-preadv64v2.c): Likewise.
21239 (CFLAGS-pwritev2.c): Likewise.
21240 (CFLAGS-pwritev64v2.c): Likewise.
21241 (CFLAGS-usleep.c): Likewise.
21242 (CFLAGS-syslog.c): Likewise.
21243 (CFLAGS-error.c): Likewise.
21244 (CFLAGS-getpass.c): Likewise.
21245 (CFLAGS-mkstemp.c): Likewise.
21246 (CFLAGS-mkstemp64.c): Likewise.
21247 (CFLAGS-getsysstats.c): Likewise.
21248 (CFLAGS-getusershell.c): Likewise.
21249 (CFLAGS-err.c): Likewise.
21250 (CFLAGS-tst-tsearch.c): Likewise.
21251 (CFLAGS-msync.c): Likewise.
21252 (CFLAGS-fdatasync.c): Likewise.
21253 (CFLAGS-fsync.c): Likewise.
21254 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21255 (CFLAGS-unwind.c): Likewise.
21256 (CFLAGS-unwind-forcedunwind.c): Likewise.
21257 (CFLAGS-pthread_cancel.c): Likewise.
21258 (CFLAGS-pthread_setcancelstate.c): Likewise.
21259 (CFLAGS-pthread_setcanceltype.c): Likewise.
21260 (CFLAGS-cancellation.c): Likewise.
21261 (CFLAGS-libc-cancellation.c): Likewise.
21262 (CFLAGS-pthread_exit.c): Likewise.
21263 (CFLAGS-forward.c): Likewise.
21264 (CFLAGS-pthread_testcancel.c): Likewise.
21265 (CFLAGS-pthread_join.c): Likewise.
21266 (CFLAGS-pthread_timedjoin.c): Likewise.
21267 (CFLAGS-pthread_once.c): Likewise.
21268 (CFLAGS-pthread_cond_wait.c): Likewise.
21269 (CFLAGS-sem_wait.c): Likewise.
21270 (CFLAGS-sem_timedwait.c): Likewise.
21271 (CFLAGS-fcntl.c): Likewise.
21272 (CFLAGS-lockf.c): Likewise.
21273 (CFLAGS-pread.c): Likewise.
21274 (CFLAGS-pread64.c): Likewise.
21275 (CFLAGS-pwrite.c): Likewise.
21276 (CFLAGS-pwrite64.c): Likewise.
21277 (CFLAGS-wait.c): Likewise.
21278 (CFLAGS-waitpid.c): Likewise.
21279 (CFLAGS-sigwait.c): Likewise.
21280 (CFLAGS-msgrcv.c): Likewise.
21281 (CFLAGS-msgsnd.c): Likewise.
21282 (CFLAGS-tcdrain.c): Likewise.
21283 (CFLAGS-open.c): Likewise.
21284 (CFLAGS-open64.c): Likewise.
21285 (CFLAGS-pause.c): Likewise.
21286 (CFLAGS-recv.c): Likewise.
21287 (CFLAGS-send.c): Likewise.
21288 (CFLAGS-accept.c): Likewise.
21289 (CFLAGS-sendto.c): Likewise.
21290 (CFLAGS-connect.c): Likewise.
21291 (CFLAGS-recvfrom.c): Likewise.
21292 (CFLAGS-recvmsg.c): Likewise.
21293 (CFLAGS-sendmsg.c): Likewise.
21294 (CFLAGS-close.c): Likewise.
21295 (CFLAGS-read.c): Likewise.
21296 (CFLAGS-write.c): Likewise.
21297 (CFLAGS-nanosleep.c): Likewise.
21298 (CFLAGS-sigsuspend.c): Likewise.
21299 (CFLAGS-msync.c): Likewise.
21300 (CFLAGS-fdatasync.c): Likewise.
21301 (CFLAGS-fsync.c): Likewise.
21302 (CFLAGS-pt-system.c): Likewise.
21303 (CFLAGS-tst-cleanup2.c): Likewise.
21304 (CFLAGS-tst-cleanupx2.c): Likewise.
21305 (CFLAGS-flockfile.c): Likewise.
21306 (CFLAGS-ftrylockfile.c): Likewise.
21307 (CFLAGS-funlockfile.c): Likewise.
21308 (CFLAGS-tst-initializers1.c): Likewise.
21309 (CFLAGS-tst-initializers1-c89.c): Likewise.
21310 (CFLAGS-tst-initializers1-c99.c): Likewise.
21311 (CFLAGS-tst-initializers1-c11.c): Likewise.
21312 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21313 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21314 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21315 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21316 (CFLAGS-nscd_getgr_r.c): Likewise.
21317 (CFLAGS-nscd_gethst_r.c): Likewise.
21318 (CFLAGS-nscd_getai.c): Likewise.
21319 (CFLAGS-nscd_initgroups.c): Likewise.
21320 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21321 (CFLAGS-pause.c): Likewise.
21322 (CFLAGS-pread.c): Likewise.
21323 (CFLAGS-pread64.c): Likewise.
21324 (CFLAGS-pwrite.c): Likewise.
21325 (CFLAGS-pwrite64.c): Likewise.
21326 (CFLAGS-sleep.c): Likewise.
21327 (CFLAGS-wait.c): Likewise.
21328 (CFLAGS-waitid.c): Likewise.
21329 (CFLAGS-waitpid.c): Likewise.
21330 (CFLAGS-getopt.c): Likewise.
21331 (CFLAGS-wordexp.c): Likewise.
21332 (CFLAGS-sysconf.c): Likewise.
21333 (CFLAGS-pathconf.c): Likewise.
21334 (CFLAGS-fpathconf.c): Likewise.
21335 (CFLAGS-spawn.c): Likewise.
21336 (CFLAGS-spawnp.c): Likewise.
21337 (CFLAGS-spawni.c): Likewise.
21338 (CFLAGS-glob.c): Likewise.
21339 (CFLAGS-glob64.c): Likewise.
21340 (CFLAGS-getconf.c): Likewise.
21341 (CFLAGS-nanosleep.c): Likewise.
21342 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21343 (CFLAGS-getpwent.c): Likewise.
21344 (CFLAGS-getpw.c): Likewise.
21345 (CFLAGS-fgetpwent_r.c): Likewise.
21346 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21347 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21348 (CFLAGS-mq_timedreceive.c): Likewise.
21349 (CFLAGS-mq_timedsend.c): Likewise.
21350 (CFLAGS-clock_nanosleep.c): Likewise.
21351 (CFLAGS-librt-cancellation.c): Likewise.
21352 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21353 (CFLAGS-getspent.c): Likewise.
21354 (CFLAGS-fgetspent.c): Likewise.
21355 (CFLAGS-fgetspent_r.c): Likewise.
21356 (CFLAGS-putspent.c): Likewise.
21357 (CFLAGS-getspnam.c): Likewise.
21358 (CFLAGS-getspnam_r.c): Likewise.
21359 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21360 (CFLAGS-sigsuspend.c): Likewise.
21361 (CFLAGS-sigtimedwait.c): Likewise.
21362 (CFLAGS-sigwait.c): Likewise.
21363 (CFLAGS-sigwaitinfo.c): Likewise.
21364 (CFLAGS-sigreturn.c): Likewise.
21365 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21366 (CFLAGS-vfwprintf.c): Likewise.
21367 (CFLAGS-tmpfile.c): Likewise.
21368 (CFLAGS-tmpfile64.c): Likewise.
21369 (CFLAGS-tempname.c): Likewise.
21370 (CFLAGS-psignal.c): Likewise.
21371 (CFLAGS-vprintf.c): Likewise.
21372 (CFLAGS-cuserid.c): Likewise.
21373 (CFLAGS-errlist.c): Likewise.
21374 (CFLAGS-siglist.c): Likewise.
21375 (CFLAGS-scanf15.c): Likewise.
21376 (CFLAGS-scanf17.c): Likewise.
21377 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21378 (CFLAGS-msort.c): Likewise.
21379 (CFLAGS-qsort.c): Likewise.
21380 (CFLAGS-system.c): Likewise.
21381 (CFLAGS-fmtmsg.c): Likewise.
21382 (CFLAGS-strfmon.c): Likewise.
21383 (CFLAGS-strfmon_l.c): Likewise.
21384 (CFLAGS-strfromd.c): Likewise.
21385 (CFLAGS-strfromf.c): Likewise.
21386 (CFLAGS-strfroml.c): Likewise.
21387 (CFLAGS-tst-bsearch.c): Likewise.
21388 (CFLAGS-tst-qsort.c): Likewise.
21389 (CFLAGS-tst-makecontext2.c): Likewise.
21390 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21391 (CFLAGS-xnlm_prot.c): Likewise.
21392 (CFLAGS-xrstat.c): Likewise.
21393 (CFLAGS-xyppasswd.c): Likewise.
21394 (CFLAGS-xklm_prot.c): Likewise.
21395 (CFLAGS-xrex.c): Likewise.
21396 (CFLAGS-xsm_inter.c): Likewise.
21397 (CFLAGS-xmount.c): Likewise.
21398 (CFLAGS-xrusers.c): Likewise.
21399 (CFLAGS-xspray.c): Likewise.
21400 (CFLAGS-xnfs_prot.c): Likewise.
21401 (CFLAGS-xrquota.c): Likewise.
21402 (CFLAGS-xkey_prot.c): Likewise.
21403 (CFLAGS-auth_unix.c): Likewise.
21404 (CFLAGS-key_call.c): Likewise.
21405 (CFLAGS-pmap_rmt.c): Likewise.
21406 (CFLAGS-clnt_perr.c): Likewise.
21407 (CFLAGS-openchild.c): Likewise.
21408 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21409 (CFLAGS-msgsnd.c): Likewise.
21410 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21411 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21412 (CFLAGS-tzset.c): Likewise.
21413 (CFLAGS-getdate.c): Likewise.
21414 (CFLAGS-test_time.c): Likewise.
21415 (CPPFLAGS-tst-tzname.c): Likewise.
21416 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21417 (CFLAGS-zic.c): Likewise.
21418 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21419 (CFLAGS-wcswidth.c): Likewise.
21420 (CFLAGS-wcstol.c): Likewise.
21421 (CFLAGS-wcstoul.c): Likewise.
21422 (CFLAGS-wcstoll.c): Likewise.
21423 (CFLAGS-wcstoull.c): Likewise.
21424 (CFLAGS-wcstod.c): Likewise.
21425 (CFLAGS-wcstold.c): Likewise.
21426 (CFLAGS-wcstof128.c): Likewise.
21427 (CFLAGS-wcstof.c): Likewise.
21428 (CFLAGS-wcstol_l.c): Likewise.
21429 (CFLAGS-wcstoul_l.c): Likewise.
21430 (CFLAGS-wcstoll_l.c): Likewise.
21431 (CFLAGS-wcstoull_l.c): Likewise.
21432 (CFLAGS-wcstod_l.c): Likewise.
21433 (CFLAGS-wcstold_l.c): Likewise.
21434 (CFLAGS-wcstof128_l.c): Likewise.
21435 (CFLAGS-wcstof_l.c): Likewise.
21436 (CPPFLAGS-tst-wchar-h.c): Likewise.
21437 (CPPFLAGS-wcstold_l.c): Likewise.
21438
21439 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21440
21441 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21442
21443 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21444 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21445
21446 * manual/tunables.texi (Hardware Capability Tunables): Document
21447 glibc.tune.cached_memopt.
21448 * sysdeps/powerpc/cpu-features.c: New file.
21449 * sysdeps/powerpc/cpu-features.h: New file.
21450 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21451 _dl_powerpc_cpu_features.
21452 * sysdeps/powerpc/dl-tunables.list: New file.
21453 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21454 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21455 (INIT_ARCH): Initialize use_aligned_memopt.
21456 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21457 IS_IN(rtld))]: Restrict dl_platform_init availability and
21458 initialize CPU features used by tunables.
21459 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21460 Add memcpy-power8-cached.
21461 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21462 __memcpy_power8_cached.
21463 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21464 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21465 New file.
21466
21467 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21468
21469 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21470 (CFLAGS-noinl-tester.c): Likewise.
21471 (CFLAGS-tst-strlen.c): Likewise.
21472 (CFLAGS-stratcliff.c): Likewise.
21473 (CFLAGS-test-ffs.c): Likewise.
21474 (CFLAGS-tst-inlcall.c): Likewise.
21475 (CFLAGS-tst-xbzero-opt.c): Likewise.
21476 (CFLAGS-memcpy.c): Likewise.
21477 (CFLAGS-wordcopy.c): Likewise.
21478
21479 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21480
21481 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21482 Store r15 on stack and add cfi rule.
21483 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21484 Likewise.
21485
21486 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21487
21488 [BZ #22577]
21489 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21490 call.
21491
21492 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21493
21494 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21495 Add s_sinf-sse2 and s_sinf-fma.
21496 (CFLAGS-s_sinf-fma.c): New.
21497 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21498 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21499 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21500
21501 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21502
21503 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21504
21505 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21506
21507 [BZ #22568]
21508 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21509 part of result to imaginary part of argument if it is zero and the
21510 real part of the argument is not finite.
21511 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21512 of result to real part of argument if it is zero and the imaginary
21513 part of the argument is not finite.
21514
21515 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21516
21517 [BZ #22524]
21518 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21519 and to the list of locales to be built for testing.
21520 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21521 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21522 and build the collation rules upon that.
21523
21524 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21525
21526 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21527 * manual/math.texi (Mathematics): Document support for _Float32.
21528 * math/Makefile (test-types): Add float32.
21529 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21530 * stdlib/Versions (GLIBC_2.27): Likewise.
21531 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21532 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21533 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21534 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21535 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21536 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21537 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21538 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21539 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21540 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21541 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21542 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21543 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21544 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21545 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21546 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21547 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21548 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21549 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21550 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21551 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21552 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21553 Likewise.
21554 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21555 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21556 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21557 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21558 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21560 Likewise.
21561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21562 Likewise.
21563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21564 Likewise.
21565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21566 Likewise.
21567
21568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21569 Likewise.
21570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21571 Likewise.
21572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21573 Likewise.
21574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21575 Likewise.
21576 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21577 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21578 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21579 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21580 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21581 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21582 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21583 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21584 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21585 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21586 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21587 Likewise.
21588 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21589 Likewise.
21590 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21591 Likewise.
21592 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21593 Likewise.
21594 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21595 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21596 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21597 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21598 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21599 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21600 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21601 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21602
21603 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21604
21605 * stdlib/strtof.c: Include <bits/floatn.h>
21606 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21607 and later undefine as macro. Define as weak alias if
21608 [!USE_WIDE_CHAR].
21609 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21610 and later undefine as macro. Define as weak alias if
21611 [USE_WIDE_CHAR].
21612 * stdlib/strtof_l.c: Include <bits/floatn.h>
21613 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21614 and later undefine as macro. Define as weak alias if
21615 [!USE_WIDE_CHAR].
21616 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21617 and later undefine as macro. Define as weak alias if
21618 [USE_WIDE_CHAR].
21619
21620 * stdlib/strfromf.c: Include <bits/floatn.h>.
21621 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21622 and later undefine as macro and define as weak alias.
21623
21624 * math/test-float32.h: New file.
21625
21626 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21627 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21628 (libm_alias_float_other_r): Create f32 alias.
21629 (libm_alias_float_r): Use semicolon before call to
21630 libm_alias_float_other_r.
21631
21632 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21633 second argument to libm_alias_float_other.
21634 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21635 second argument to libm_alias_float_other.
21636 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21637 argument to libm_alias_float_other.
21638
21639 [BZ #22561]
21640 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21641 real part of result for argument 0 + i * NaN.
21642 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21643 results for tests of 0 + i * NaN.
21644
21645 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21646
21647 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21648
21649 2017-12-06 David S. Miller <davem@davemloft.net>
21650
21651 * sysdeps/sparc/fpu/libm-test-ulps: Update
21652 exp_{downward,towardzero,upward} ulps.
21653
21654 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21655
21656 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21657 variables static.
21658
21659 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21660 (Y0_2D): Likewise.
21661 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21662 (Y0_2D): Likewise.
21663 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21664 (Y0_2D): Likewise.
21665 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21666 (Y0_2D): Likewise.
21667
21668 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21669
21670 [BZ #22515]
21671 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21672 and to the list of locales to be built for testing.
21673 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21674 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21675 and build the collation rules upon that.
21676
21677 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21678
21679 * NEWS: Add sinf to list of optimized functions.
21680
21681 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21682
21683 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21684 (__HAVE_FLOAT32X): Likewise.
21685 * manual/math.texi (Mathematics): Document support for _Float64
21686 and _Float32x.
21687 * math/Makefile (test-types): Add float64 and float32x.
21688 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21689 functions.
21690 * stdlib/Versions (GLIBC_2.27): Likewise.
21691 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21692 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21693 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21694 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21695 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21696 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21697 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21698 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21699 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21700 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21701 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21702 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21703 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21704 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21705 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21706 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21707 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21708 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21709 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21710 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21711 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21712 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21713 Likewise.
21714 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21715 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21716 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21717 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21718 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21720 Likewise.
21721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21722 Likewise.
21723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21724 Likewise.
21725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21726 Likewise.
21727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21728 Likewise.
21729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21730 Likewise.
21731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21732 Likewise.
21733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21734 Likewise.
21735 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21736 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21737 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21738 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21739 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21740 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21741 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21742 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21743 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21744 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21745 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21746 Likewise.
21747 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21748 Likewise.
21749 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21750 Likewise.
21751 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21752 Likewise.
21753 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21754 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21755 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21756 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21757 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21758 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21759 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21760 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21761
21762 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21763
21764 * bits/floatn-common.h: Include <bits/long-double.h>.
21765 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21766 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21767 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21768 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21769 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21770 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21771 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21772 (__builtin_huge_valf64): Use __builtin_huge_vall.
21773 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21774 (__builtin_inff64): Use __builtin_infl.
21775 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21776 (__builtin_nanf64): Use __builtin_nanl.
21777 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21778 (__builtin_nansf64): Use __builtin_nansl.
21779
21780 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21781 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21782 Carlos O'Donnell <carlos@redhat.com>
21783
21784 * elf/dl-tunables.list: Add elision parameters.
21785 * manual/tunables.texi: Add entries about elision tunable.
21786 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21787 Add callback functions to dynamically enable/disable elision.
21788 Add multiple callbacks functions to set elision parameters.
21789 Deleted __libc_enable_secure check.
21790 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21791 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21792 * configure: Regenerated.
21793 * configure.ac: Option enable_lock_elision was deleted.
21794 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21795 * config.make.in: Remove references to enable_lock_elision.
21796 * manual/install.texi: Elision configure option was removed.
21797 * INSTALL: Regenerated to remove enable_lock_elision.
21798 * nptl/Makefile:
21799 Disable elision so it can verify error case for destroying a mutex.
21800 * sysdeps/powerpc/nptl/elide.h:
21801 Cleanup ENABLE_LOCK_ELISION check.
21802 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21803 * sysdeps/s390/configure: Regenerated.
21804 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21805 * nptl/tst-mutex8.c:
21806 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21807 * sysdeps/powerpc/powerpc32/sysdep.h:
21808 Deleted all ENABLE_LOCK_ELISION checks.
21809 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21810 * sysdeps/powerpc/sysdep.h: Likewise.
21811 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21812 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21813 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21814 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21815 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21816 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21817 enable-lock-elision.
21818
21819 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21820
21821 * stdlib/strtod.c: Include <bits/floatn.h>.
21822 (BUILD_DOUBLE): New macro.
21823 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21824 (strtof64): Define and later undefine as macro. Define as weak
21825 alias if [!USE_WIDE_CHAR].
21826 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21827 (wcstof64): Define and later undefine as macro. Define as weak
21828 alias if [USE_WIDE_CHAR].
21829 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21830 (strtof32x): Define and later undefine as macro. Define as weak
21831 alias if [!USE_WIDE_CHAR].
21832 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21833 (wcstof32x): Define and later undefine as macro. Define as weak
21834 alias if [USE_WIDE_CHAR].
21835 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21836 (BUILD_DOUBLE): New macro.
21837 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21838 (strtof64_l): Define and later undefine as macro. Define as weak
21839 alias if [!USE_WIDE_CHAR].
21840 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21841 (wcstof64_l): Define and later undefine as macro. Define as weak
21842 alias if [USE_WIDE_CHAR].
21843 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21844 (strtof32x_l): Define and later undefine as macro. Define as weak
21845 alias if [!USE_WIDE_CHAR].
21846 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21847 (wcstof32x_l): Define and later undefine as macro. Define as weak
21848 alias if [USE_WIDE_CHAR].
21849
21850 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21851
21852 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21853 (reduced): Use ones as double instead of integer.
21854
21855 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21856
21857 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21858
21859 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21860
21861 * stdlib/strfromd.c: Include <bits/floatn.h>.
21862 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21863 and later undefine as macro and define as weak alias.
21864 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21865 Likewise.
21866
21867 * math/test-float32x.h: New file.
21868 * math/test-float64.h: Likewise.
21869
21870 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21871 (libm_alias_double_other_r_f64): New macro.
21872 (libm_alias_double_other_r_f32x): Likewise.
21873 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21874 libm_alias_double_other_r_f32x.
21875 (libm_alias_double_r): Use semicolon before call to
21876 libm_alias_double_other_r.
21877 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21878 <bits/floatn.h>.
21879 (libm_alias_double_other_r_f64): New macro.
21880 (libm_alias_double_other_r_f32x): Likewise.
21881 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21882 libm_alias_double_other_r_f32x.
21883
21884 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21885
21886 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21887 int.
21888 (SINF_FUNC): Likewise. Replace floor with simple casts.
21889
21890 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21891
21892 [BZ #22517]
21893 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21894 and to the list of locales to be built for testing.
21895 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21896 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21897 and build the collation rules upon that.
21898
21899 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21900
21901 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21902 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21903 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21904 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21905 instead of __insn__xxx.
21906 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21907 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21908 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21909 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21910 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21911 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21912
21913 2017-12-05 Florian Weimer <fweimer@redhat.com>
21914
21915 Linux: Implement interfaces for memory protection keys
21916 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21917 xsignal, xsysconf.
21918 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21919 * support/xunistd.h (xsysconf): Declare.
21920 * support/xraise.c: New file.
21921 * support/xsigaction.c: Likewise.
21922 * support/xsignal.c: Likewise.
21923 * support/xsysconf.c: Likewise.
21924 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21925 pkey_set, pkey_get, pkey_mprotect.
21926 [misc] (tests): Add tst-pkey.
21927 (tst-pkey): Link with -lpthread.
21928 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21929 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21930 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21931 (PKEY_DISABLE_WRITE): Define.
21932 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21933 Declare.
21934 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21935 (SEGV_PKUERR): Add.
21936 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21937 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21938 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21939 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21940 Add.
21941 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21942 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21943 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21944 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21945 * sysdeps/unix/sysv/linux/**.abilist: Update.
21946
21947 2017-12-05 Florian Weimer <fweimer@redhat.com>
21948
21949 * support/tst-test_compare.c (subprocess): Use long long instead
21950 of long argument for consistent type width across 32-bit and
21951 64-bit architectures.
21952 (do_test): Adjust expected output.
21953
21954 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21955
21956 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21957 (cosf): Define using libm_alias_float.
21958 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21959 (fabsf): Define using libm_alias_float.
21960 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21961 (fmaf): Define using libm_alias_float.
21962 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21963 (rintf): Define using libm_alias_float.
21964 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21965 (sinf): Define using libm_alias_float.
21966 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21967 <libm-alias-float.h>.
21968 (modff): Define using libm_alias_float.
21969 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21970 <libm-alias-float.h>.
21971 (logbf): Define using libm_alias_float.
21972 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21973 <libm-alias-float.h>.
21974 (ceilf): Define using libm_alias_float.
21975 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21976 <libm-alias-float.h>.
21977 (copysignf): Define using libm_alias_float.
21978 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21979 <libm-alias-float.h>.
21980 (floorf): Define using libm_alias_float.
21981 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21982 <libm-alias-float.h>.
21983 (llrintf): Define using libm_alias_float.
21984 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21985 <libm-alias-float.h>.
21986 (llroundf): Define using libm_alias_float.
21987 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21988 <libm-alias-float.h>.
21989 (lrintf): Define using libm_alias_float.
21990 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21991 <libm-alias-float.h>.
21992 (lroundf): Define using libm_alias_float.
21993 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21994 <libm-alias-float.h>.
21995 (nearbyintf): Define using libm_alias_float.
21996 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21997 <libm-alias-float.h>.
21998 (rintf): Define using libm_alias_float.
21999 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22000 <libm-alias-float.h>.
22001 (roundf): Define using libm_alias_float.
22002 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22003 <libm-alias-float.h>.
22004 (truncf): Define using libm_alias_float.
22005 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22006 Include <libm-alias-float.h>.
22007 (ceilf): Define using libm_alias_float.
22008 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22009 Include <libm-alias-float.h>.
22010 (copysignf): Define using libm_alias_float.
22011 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22012 Include <libm-alias-float.h>.
22013 (floorf): Define using libm_alias_float.
22014 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22015 Include <libm-alias-float.h>.
22016 (llrintf): Define using libm_alias_float.
22017 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22018 Include <libm-alias-float.h>.
22019 (llroundf): Define using libm_alias_float.
22020 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22021 Include <libm-alias-float.h>.
22022 (logbf): Define using libm_alias_float.
22023 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22024 Include <libm-alias-float.h>.
22025 (lrintf): Define using libm_alias_float.
22026 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22027 Include <libm-alias-float.h>.
22028 (lroundf): Define using libm_alias_float.
22029 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22030 Include <libm-alias-float.h>.
22031 (modff): Define using libm_alias_float.
22032 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22033 Include <libm-alias-float.h>.
22034 (roundf): Define using libm_alias_float.
22035 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22036 Include <libm-alias-float.h>.
22037 (truncf): Define using libm_alias_float.
22038 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22039 <libm-alias-float.h>.
22040 (llrintf): Define using libm_alias_float.
22041 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22042 <libm-alias-float.h>.
22043 (llroundf): Define using libm_alias_float.
22044 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22045 <libm-alias-float.h>.
22046 (ceilf): Define using libm_alias_float.
22047 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22048 <libm-alias-float.h>.
22049 (floorf): Define using libm_alias_float.
22050 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22051 <libm-alias-float.h>.
22052 (llroundf): Define using libm_alias_float.
22053 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22054 <libm-alias-float.h>.
22055 (lroundf): Define using libm_alias_float.
22056 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22057 <libm-alias-float.h>.
22058 (roundf): Define using libm_alias_float.
22059 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22060 <libm-alias-float.h>.
22061 (truncf): Define using libm_alias_float.
22062 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22063 <libm-alias-float.h>.
22064 (copysignf): Define using libm_alias_float.
22065 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22066 <libm-alias-float.h>.
22067 (llrintf): Define using libm_alias_float.
22068 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22069 <libm-alias-float.h>.
22070 (llroundf): Define using libm_alias_float.
22071 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22072 <libm-alias-float.h>.
22073 (lrintf): Define using libm_alias_float.
22074 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22075 <libm-alias-float.h>.
22076 (lroundf): Define using libm_alias_float.
22077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22078 <libm-alias-float.h>.
22079 (ceilf): Define using libm_alias_float.
22080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22081 <libm-alias-float.h>.
22082 (copysignf): Define using libm_alias_float.
22083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22084 <libm-alias-float.h>.
22085 (cosf): Define using libm_alias_float.
22086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22087 <libm-alias-float.h>.
22088 (floorf): Define using libm_alias_float.
22089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22090 <libm-alias-float.h>.
22091 (llrintf): Define using libm_alias_float.
22092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22093 <libm-alias-float.h>.
22094 (llroundf): Define using libm_alias_float.
22095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22096 <libm-alias-float.h>.
22097 (logbf): Define using libm_alias_float.
22098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22099 <libm-alias-float.h>.
22100 (modff): Define using libm_alias_float.
22101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22102 <libm-alias-float.h>.
22103 (roundf): Define using libm_alias_float.
22104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22105 <libm-alias-float.h>.
22106 (sinf): Define using libm_alias_float.
22107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22108 <libm-alias-float.h>.
22109 (truncf): Define using libm_alias_float.
22110 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22111 <libm-alias-float.h>.
22112 (ceilf): Define using libm_alias_float.
22113 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22114 <libm-alias-float.h>.
22115 (copysignf): Define using libm_alias_float.
22116 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22117 <libm-alias-float.h>.
22118 (floorf): Define using libm_alias_float.
22119 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22120 <libm-alias-float.h>.
22121 (llrintf): Define using libm_alias_float.
22122 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22123 <libm-alias-float.h>.
22124 (llroundf): Define using libm_alias_float.
22125 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22126 <libm-alias-float.h>.
22127 (nearbyintf): Define using libm_alias_float.
22128 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22129 <libm-alias-float.h>.
22130 (rintf): Define using libm_alias_float.
22131 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22132 <libm-alias-float.h>.
22133 (roundf): Define using libm_alias_float.
22134 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22135 <libm-alias-float.h>.
22136 (truncf): Define using libm_alias_float.
22137 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22138 <libm-alias-float.h>.
22139 (ceilf): Define using libm_alias_float.
22140 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22141 <libm-alias-float.h>.
22142 (floorf): Define using libm_alias_float.
22143 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22144 <libm-alias-float.h>.
22145 (llroundf): Define using libm_alias_float.
22146 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22147 <libm-alias-float.h>.
22148 (roundf): Define using libm_alias_float.
22149 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22150 <libm-alias-float.h>.
22151 (truncf): Define using libm_alias_float.
22152 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22153 <libm-alias-float.h>.
22154 (copysignf): Define using libm_alias_float.
22155 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22156 <libm-alias-float.h>.
22157 (llrintf): Define using libm_alias_float.
22158 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22159 <libm-alias-float.h>.
22160 (llroundf): Define using libm_alias_float.
22161 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22162 <libm-alias-float.h>.
22163 (cosf): Define using libm_alias_float.
22164 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22165 <libm-alias-float.h>.
22166 (llrintf): Define using libm_alias_float.
22167 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22168 <libm-alias-float.h>.
22169 (llroundf): Define using libm_alias_float.
22170 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22171 <libm-alias-float.h>.
22172 (sinf): Define using libm_alias_float.
22173
22174 2017-12-04 Florian Weimer <fweimer@redhat.com>
22175
22176 * support/check.h (TEST_COMPARE): Define.
22177 (support_test_compare_failure): Declare.
22178 * support/Makefile (libsupport-routines): Add
22179 support_test_compare_failure.
22180 (tests): Add tst-test_compare.
22181 * support /support_test_compare_failure.c: New file.
22182 * support/tst-test_compare.c: Likewise.
22183
22184 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22185
22186 [BZ #22527]
22187 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22188 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22189 available, this rewrite of the collation rules does reproduce
22190 the test file in the same order.
22191
22192 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22193
22194 [BZ #10580]
22195 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22196 digraphs in the month and day names. Using single code points for
22197 digraphs is deprecated. While there are dedicated Unicode
22198 codepoints, for the digraphs, these are included for backwards
22199 compatibility and modern texts use a sequence of Basic Latin
22200 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22201 This makes the month and day names agree exactly with CLDR now,
22202 CLDR does not use the single code points for the digraphs either.
22203
22204 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22205
22206 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22207
22208 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22209
22210 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22211 of floor.
22212
22213 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22214
22215 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22216 Define only for libc.so.
22217
22218 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22219
22220 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22221 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22222 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22223 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22224 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22225
22226 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22227
22228 [BZ #5997]
22229 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22230
22231 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22232
22233 [BZ libc/19170]
22234 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22235 PREINIT_FUNCTION_WEAK is nonzero.
22236 (gmon_initializer): New function. Put procedure label for it in
22237 .init_array section.
22238 (_init): Don't call PREINIT_FUNCTION.
22239 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22240 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22241 value when map argument is null.
22242
22243 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22244 depi instruction from PIC pc-relative sequence.
22245 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22246 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22247 (elf_machine_load_address): Likewise.
22248 (elf_machine_runtime_setup): Likewise.
22249
22250 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22251
22252 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22253 <libm-alias-double.h>.
22254 (logb): Define using libm_alias_double.
22255 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22256 <libm-alias-double.h>.
22257 (copysign): Define using libm_alias_double.
22258 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22259 <libm-alias-double.h>.
22260 (llrint): Define using libm_alias_double.
22261 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22262 <libm-alias-double.h>.
22263 (llround): Define using libm_alias_double.
22264 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22265 <libm-alias-double.h>.
22266 (lrint): Define using libm_alias_double.
22267 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22268 <libm-alias-double.h>.
22269 (lround): Define using libm_alias_double.
22270 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22271 Include <libm-alias-double.h>.
22272 (copysign): Define using libm_alias_double.
22273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22274 Include <libm-alias-double.h>.
22275 (llrint): Define using libm_alias_double.
22276 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22277 Include <libm-alias-double.h>.
22278 (llround): Define using libm_alias_double.
22279 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22280 <libm-alias-double.h>.
22281 (logb): Define using libm_alias_double.
22282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22283 Include <libm-alias-double.h>.
22284 (lrint): Define using libm_alias_double.
22285 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22286 Include <libm-alias-double.h>.
22287 (lround): Define using libm_alias_double.
22288 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22289 <libm-alias-double.h>.
22290 (llrint): Define using libm_alias_double.
22291 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22292 <libm-alias-double.h>.
22293 (llround): Define using libm_alias_double.
22294 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22295 <libm-alias-double.h>.
22296 (llround): Define using libm_alias_double.
22297 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22298 <libm-alias-double.h>.
22299 (lround): Define using libm_alias_double.
22300 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22301 <libm-alias-double.h>.
22302 (copysign): Define using libm_alias_double.
22303 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22304 <libm-alias-double.h>.
22305 (llrint): Define using libm_alias_double.
22306 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22307 <libm-alias-double.h>.
22308 (llround): Define using libm_alias_double.
22309 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22310 <libm-alias-double.h>.
22311 (lrint): Define using libm_alias_double.
22312 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22313 <libm-alias-double.h>.
22314 (lround): Define using libm_alias_double.
22315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22316 <libm-alias-double.h>.
22317 (copysign): Define using libm_alias_double.
22318 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22319 <libm-alias-double.h>.
22320 (llrint): Define using libm_alias_double.
22321 (lrint): Likewise.
22322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22323 <libm-alias-double.h>.
22324 (llround): Define using libm_alias_double.
22325 (lround): Likewise.
22326 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22327 <libm-alias-double.h>.
22328 (logb): Define using libm_alias_double.
22329 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22330 <libm-alias-double.h>.
22331 (copysign): Define using libm_alias_double.
22332 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22333 <libm-alias-double.h>.
22334 (llrint): Define using libm_alias_double.
22335 (lrint): Likewise.
22336 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22337 <libm-alias-double.h>.
22338 (llround): Define using libm_alias_double.
22339 (lround): Likewise.
22340 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22341 <libm-alias-double.h>.
22342 (llround): Define using libm_alias_double.
22343 (lround): Likewise.
22344 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22345 <libm-alias-double.h>.
22346 (copysign): Define using libm_alias_double.
22347 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22348 <libm-alias-double.h>.
22349 (llrint): Define using libm_alias_double.
22350 (lrint): Likewise.
22351 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22352 <libm-alias-double.h>.
22353 (llround): Define using libm_alias_double.
22354 (lround): Likewise.
22355 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22356 <libm-alias-double.h>.
22357 (llrint): Define using libm_alias_double.
22358 (lrint): Likewise.
22359 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22360 <libm-alias-double.h>.
22361 (llround): Define using libm_alias_double.
22362 (lround): Likewise.
22363
22364 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22365
22366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22367 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22368 compat symbol based on llround.
22369
22370 * sysdeps/powerpc/power7/fpu/s_logb.c
22371 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22372 symbol based on __logb, not on logb.
22373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22374 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22376 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22377
22378 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22379 (rint): Define using libm_alias_double.
22380 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22381 <libm-alias-double.h>.
22382 (modf): Define using libm_alias_double.
22383 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22384 <libm-alias-double.h>.
22385 (ceil): Define using libm_alias_double.
22386 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22387 <libm-alias-double.h>.
22388 (floor): Define using libm_alias_double.
22389 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22390 <libm-alias-double.h>.
22391 (nearbyint): Define using libm_alias_double.
22392 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22393 <libm-alias-double.h>.
22394 (rint): Define using libm_alias_double.
22395 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22396 <libm-alias-double.h>.
22397 (round): Define using libm_alias_double.
22398 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22399 <libm-alias-double.h>.
22400 (trunc): Define using libm_alias_double.
22401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22402 <libm-alias-double.h>.
22403 (ceil): Define using libm_alias_double.
22404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22405 Include <libm-alias-double.h>.
22406 (floor): Define using libm_alias_double.
22407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22408 <libm-alias-double.h>.
22409 (modf): Define using libm_alias_double.
22410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22411 Include <libm-alias-double.h>.
22412 (round): Define using libm_alias_double.
22413 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22414 Include <libm-alias-double.h>.
22415 (trunc): Define using libm_alias_double.
22416 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22417 <libm-alias-double.h>.
22418 (ceil): Define using libm_alias_double.
22419 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22420 <libm-alias-double.h>.
22421 (floor): Define using libm_alias_double.
22422 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22423 <libm-alias-double.h>.
22424 (round): Define using libm_alias_double.
22425 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22426 <libm-alias-double.h>.
22427 (trunc): Define using libm_alias_double.
22428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22429 <libm-alias-double.h>.
22430 (ceil): Define using libm_alias_double.
22431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22432 <libm-alias-double.h>.
22433 (floor): Define using libm_alias_double.
22434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22435 <libm-alias-double.h>.
22436 (modf): Define using libm_alias_double.
22437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22438 <libm-alias-double.h>.
22439 (round): Define using libm_alias_double.
22440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22441 <libm-alias-double.h>.
22442 (trunc): Define using libm_alias_double.
22443 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22444 <libm-alias-double.h>.
22445 (ceil): Define using libm_alias_double.
22446 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22447 <libm-alias-double.h>.
22448 (floor): Define using libm_alias_double.
22449 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22450 <libm-alias-double.h>.
22451 (nearbyint): Define using libm_alias_double.
22452 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22453 <libm-alias-double.h>.
22454 (rint): Define using libm_alias_double.
22455 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22456 <libm-alias-double.h>.
22457 (round): Define using libm_alias_double.
22458 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22459 <libm-alias-double.h>.
22460 (trunc): Define using libm_alias_double.
22461 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22462 <libm-alias-double.h>.
22463 (ceil): Define using libm_alias_double.
22464 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22465 <libm-alias-double.h>.
22466 (floor): Define using libm_alias_double.
22467 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22468 <libm-alias-double.h>.
22469 (round): Define using libm_alias_double.
22470 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22471 <libm-alias-double.h>.
22472 (trunc): Define using libm_alias_double.
22473
22474 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22475 (fabs): Define using libm_alias_double.
22476 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22477 (fma): Define using libm_alias_double.
22478 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22479 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22480 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22481 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22482
22483 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22484
22485 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22486
22487 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22488 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22489 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22490
22491 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22492 due redirect macro.
22493
22494 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22495
22496 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22497
22498 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22499
22500 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22501 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22502 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22503 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22504
22505 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22506 (libm-sysdep_routines): Add s_nearbyintf-generic and
22507 s_nearbyint-generic.
22508 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22509 New file.
22510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22511 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22512 Likewise.
22513 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22514 Likewise.
22515 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22516 file.
22517 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22518 Likewise.
22519
22520 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22521 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22522 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22523 file.
22524 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22526 Likewise.
22527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22529 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22530
22531 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22532 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22533 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22534 file.
22535 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22537 Likewise.
22538 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22539 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22541
22542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22543 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22544 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22545 file.
22546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22548 Likewise.
22549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22550 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22552
22553 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22554 (sysdep_calls): New rule.
22555 (sysdep_routines): Use sysdep_calls as base.
22556 (libm-sysdep_routines): Add generic rule for symbols shared with
22557 libc. Add s_copysign-generic and s_copysign-generic objects.
22558 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22559 New file.
22560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22562 Likewise.
22563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22566
22567 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22568
22569 [BZ #22519]
22570 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22571 the list of locales to be built for testing.
22572 * localedata/is_IS.UTF-8.in: New file.
22573 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22574 on iso14651_t1.
22575
22576 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22577
22578 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22579 <libm-alias-float.h>.
22580 (fabsf): Define using libm_alias_float.
22581
22582 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22583
22584 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22585
22586 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22587
22588 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22589 <libm-alias-float.h>.
22590 (fabsf): Define using libm_alias_float.
22591 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22592 <libm-alias-float.h>.
22593 (lrintf): Define using libm_alias_float.
22594 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22595 <libm-alias-float.h>.
22596 (rintf): Define using libm_alias_float.
22597
22598 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22599 <libm-alias-double.h>.
22600 (fabs): Define using libm_alias_double.
22601 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22602 <libm-alias-double.h>.
22603 (lrint): Define using libm_alias_double.
22604 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22605 <libm-alias-double.h>.
22606 (rint): Define using libm_alias_double.
22607
22608 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22609 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22610 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22611 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22612 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22613 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22614 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22615 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22616 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22617 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22618 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22619 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22620 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22621 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22622 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22623 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22624 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22625 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22626 s_atan_template.c.
22627 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22628 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22629 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22630 s_ceil_template.c.
22631 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22632 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22633 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22634 s_cos_template.c.
22635 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22636 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22637 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22638 s_expm1_template.c.
22639 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22640 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22641 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22642 s_fabs_template.c.
22643 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22644 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22645 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22646 s_floor_template.c.
22647 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22648 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22649 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22650 s_frexp_template.c.
22651 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22652 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22653 s_lrint_template.c.
22654 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22655 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22656 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22657 s_modf_template.c.
22658 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22659 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22660 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22661 s_nearbyint_template.c.
22662 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22663 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22664 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22665 s_remquo_template.c.
22666 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22667 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22668 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22669 s_rint_template.c.
22670 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22671 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22672 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22673 s_sin_template.c.
22674 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22675 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22676 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22677 s_sincos_template.c.
22678 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22679 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22680 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22681 s_tan_template.c.
22682 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22683 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22684 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22685 s_tanh_template.c.
22686 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22687 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22688 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22689 s_trunc_template.c.
22690 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22691 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22692 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22693 s_atan.c instead of including s_atan.c.
22694 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22695 s_atanf.c instead of including s_atanf.c.
22696 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22697 s_atanl.c instead of including s_atanl.c.
22698 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22699 instead of s_atan.c.
22700 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22701 instead of s_atanf.c.
22702 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22703 instead of s_atanl.c.
22704
22705 * scripts/update-copyrights: Do not handle intl/plural.c
22706 specially.
22707
22708 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22709
22710 [BZ #22432]
22711 * configure.ac (BISON): Require to be present.
22712 * configure: Regenerated.
22713 * intl/Makefile (generated): Add plural.c.
22714 [$(BISON) != no]: Make code unconditional.
22715 (plural.c): Change rule to $(objpfx)plural.c.
22716 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22717 * intl/plural.c: Remove.
22718 * manual/install.texi (Tools for Compilation): Document bison as
22719 required.
22720 * INSTALL: Regenerated.
22721
22722 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22723
22724 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22725 <libm-alias-double.h>.
22726 (llrint): Define using libm_alias_double.
22727 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22728 <libm-alias-float.h>.
22729 (llrintf): Define using libm_alias_float.
22730 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22731 <libm-alias-ldouble.h>.
22732 (llrintl): Define using libm_alias_ldouble.
22733
22734 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22735 declare_mgen_alias instead of weak_alias.
22736 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22737 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22738 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22739
22740 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22741
22742 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22743 Add add_n-generic.
22744 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22745 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22746 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22747
22748 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22749 Add submul_1-generic.
22750 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22751 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22752 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22753
22754 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22755 Add addmul_1-generic.
22756 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22757 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22758 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22759
22760 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22761 Add sub_n-generic.
22762 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22763 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22764 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22765
22766 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22767 Add mul_1-generic.
22768 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22769 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22770 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22771
22772 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22773
22774 According to CLDR, collation rules for Serbian and Bosnian
22775 should be the same as for Croatian.
22776
22777 [BZ #22534]
22778 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22779 and to the list of locales to be built for testing.
22780 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22781 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22782 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22783 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22784
22785 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22786
22787 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22788 to make test case pass.
22789 * localedata/hr_HR.UTF-8.in: Add more test strings.
22790
22791 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22792
22793 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22794
22795 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22796
22797 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22798 the list of locales to built for testing.
22799 * localedata/hr_HR.UTF-8.in: New file.
22800
22801 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22802
22803 [BZ #10580]
22804 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22805 iso14651_t1.
22806 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22807 CLDR (except use ligatures for the digraphs, CLDR does not use
22808 the ligatures), add first_workday, some fixes in the date and time
22809 formats.
22810 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22811 for Đ and đ.
22812 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22813 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22814 Add int_p_cs_precedes and int_n_cs_precedes.
22815 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22816 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22817 LC_MONETARY now).
22818 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22819 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22820 name_miss.
22821 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22822 and lang_lib. Change postal_fmt.
22823
22824 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22825
22826 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22827 <setjmp.h>.
22828 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22829 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22830 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22831 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22832 * sysdeps/generic/setjmpP.h: New file.
22833 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22834 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22835 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22836 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22837 Add jmp_buf-ssp.sym.
22838 (tests): Add tst-saved_mask-1.
22839
22840 2017-11-30 Arjun Shankar <arjun@redhat.com>
22841
22842 [BZ #22375]
22843 CVE-2017-17426
22844 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22845 instead of request2size.
22846
22847 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22848
22849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22850 (__lllrint): Remove alias.
22851 (lllrint): Likewise.
22852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22853 (__lllrintf): Likewise.
22854 (lllrintf): Likewise.
22855
22856 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22857 <libm-alias-float.h>.
22858 (copysignf): Define using libm_alias_float.
22859 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22860 <libm-alias-float.h>.
22861 (fabsf): Define using libm_alias_float.
22862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22863 Include <libm-alias-float.h>.
22864 (copysignf): Define using libm_alias_float.
22865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22866 <libm-alias-float.h>.
22867 (fabsf): Define using libm_alias_float.
22868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22869 <libm-alias-float.h>.
22870 (fdimf): Define using libm_alias_float.
22871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22872 <libm-alias-float.h>.
22873 (fmaf): Define using libm_alias_float.
22874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22875 <libm-alias-float.h>.
22876 (llrintf): Define using libm_alias_float.
22877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22878 Include <libm-alias-float.h>.
22879 (nearbyintf): Define using libm_alias_float.
22880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22881 <libm-alias-float.h>.
22882 (rintf): Define using libm_alias_float.
22883 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22884 <libm-alias-float.h>.
22885 (llrintf): Define using libm_alias_float.
22886 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22887 <libm-alias-float.h>.
22888 (lrintf): Define using libm_alias_float.
22889 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22890 <libm-alias-float.h>.
22891 (nearbyintf): Define using libm_alias_float.
22892 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22893 <libm-alias-float.h>.
22894 (rintf): Define using libm_alias_float.
22895 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22896 <libm-alias-float.h>.
22897 (ceilf): Define using libm_alias_float.
22898 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22899 <libm-alias-float.h>.
22900 (floorf): Define using libm_alias_float.
22901 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22902 <libm-alias-float.h>.
22903 (fmaf): Define using libm_alias_float.
22904 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22905 <libm-alias-float.h>.
22906 (lrintf): Define using libm_alias_float.
22907 (llrintf): Likewise.
22908 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22909 <libm-alias-float.h>.
22910 (nearbyintf): Define using libm_alias_float.
22911 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22912 <libm-alias-float.h>.
22913 (rintf): Define using libm_alias_float.
22914 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22915 <libm-alias-float.h>.
22916 (truncf): Define using libm_alias_float.
22917 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22918 <libm-alias-float.h>.
22919 (copysignf): Define using libm_alias_float.
22920 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22921 <libm-alias-float.h>.
22922 (fabsf): Define using libm_alias_float.
22923 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22924 <libm-alias-float.h>.
22925 (lrintf): Define using libm_alias_float.
22926 (llrintf): Likewise.
22927 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22928 <libm-alias-float.h>.
22929 (nearbyintf): Define using libm_alias_float.
22930 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22931 <libm-alias-float.h>.
22932 (rintf): Define using libm_alias_float.
22933
22934 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22935
22936 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22937 <libm-alias-double.h>.
22938 (copysign): Define using libm_alias_double.
22939 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22940 <libm-alias-double.h>.
22941 (fabs): Define using libm_alias_double.
22942 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22943 Include <libm-alias-double.h>.
22944 (copysign): Define using libm_alias_double.
22945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22946 <libm-alias-double.h>.
22947 (fabs): Define using libm_alias_double.
22948 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22949 <libm-alias-double.h>.
22950 (fdim): Define using libm_alias_double.
22951 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22952 <libm-alias-double.h>.
22953 (fma): Define using libm_alias_double.
22954 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22955 <libm-alias-double.h>.
22956 (llrint): Define using libm_alias_double.
22957 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22958 Include <libm-alias-double.h>.
22959 (nearbyint): Define using libm_alias_double.
22960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22961 <libm-alias-double.h>.
22962 (rint): Define using libm_alias_double.
22963 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22964 <libm-alias-double.h>.
22965 (fabs): Define using libm_alias_double.
22966 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22967 <libm-alias-double.h>.
22968 (llrint): Define using libm_alias_double.
22969 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22970 <libm-alias-double.h>.
22971 (nearbyint): Define using libm_alias_double.
22972 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22973 <libm-alias-double.h>.
22974 (rint): Define using libm_alias_double.
22975 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22976 <libm-alias-double.h>.
22977 (ceil): Define using libm_alias_double.
22978 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22979 <libm-alias-double.h>.
22980 (floor): Define using libm_alias_double.
22981 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22982 <libm-alias-double.h>.
22983 (fma): Define using libm_alias_double.
22984 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22985 <libm-alias-double.h>.
22986 (lrint): Define using libm_alias_double.
22987 (llrint): Likewise.
22988 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22989 <libm-alias-double.h>.
22990 (nearbyint): Define using libm_alias_double.
22991 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22992 <libm-alias-double.h>.
22993 (rint): Define using libm_alias_double.
22994 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22995 <libm-alias-double.h>.
22996 (trunc): Define using libm_alias_double.
22997 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22998 <libm-alias-double.h>.
22999 (copysign): Define using libm_alias_double.
23000 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23001 <libm-alias-double.h>.
23002 (fabs): Define using libm_alias_double.
23003 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23004 <libm-alias-double.h>.
23005 (lrint): Define using libm_alias_double.
23006 (llrint): Likewise.
23007 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23008 <libm-alias-double.h>.
23009 (nearbyint): Define using libm_alias_double.
23010 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23011 <libm-alias-double.h>.
23012 (rint): Define using libm_alias_double.
23013
23014 [BZ #22229]
23015 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23016 <math_ldbl_opt.h>.
23017 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23018
23019 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23020 SPARC --disable-multi-arch glibc variants.
23021
23022 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23023 <libm-alias-float.h>.
23024 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23025 if [SHARED].
23026 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23027 <libm-alias-float.h>.
23028 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23029 if [SHARED].
23030 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23031 <libm-alias-float.h>.
23032 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23033 if [SHARED].
23034 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23035 <libm-alias-float.h>.
23036 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23037 if [SHARED].
23038 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23039 <libm-alias-float.h>.
23040 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23041 if [SHARED].
23042 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23043 <libm-alias-float.h>.
23044 (ceilf): Define using libm_alias_float.
23045 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23046 <libm-alias-float.h>.
23047 (floorf): Define using libm_alias_float.
23048 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23049 <libm-alias-float.h>.
23050 (fmaf): Define using libm_alias_float.
23051 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23052 <libm-alias-float.h>.
23053 (nearbyintf): Define using libm_alias_float.
23054 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23055 <libm-alias-float.h>.
23056 (rintf): Define using libm_alias_float.
23057 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23058 <libm-alias-float.h>.
23059 (truncf): Define using libm_alias_float.
23060 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23061 (copysignf): Define using libm_alias_float.
23062 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23063 (cosf): Define using libm_alias_float.
23064 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23065 (fabsf): Define using libm_alias_float.
23066 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23067 (fmaxf): Define using libm_alias_float.
23068 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23069 (fminf): Define using libm_alias_float.
23070 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23071 (llrintf): Define using libm_alias_float.
23072 [!__ILP32__] (lrintf): Likewise.
23073 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23074 (sincosf): Define using libm_alias_float.
23075 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23076 (sinf): Define using libm_alias_float.
23077 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23078 (lrintf): Define using libm_alias_float.
23079
23080 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23081 <libm-alias-double.h>.
23082 (atan): Define using libm_alias_double.
23083 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23084 <libm-alias-double.h>.
23085 (ceil): Define using libm_alias_double.
23086 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23087 <libm-alias-double.h>.
23088 (floor): Define using libm_alias_double.
23089 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23090 <libm-alias-double.h>.
23091 (fma): Define using libm_alias_double.
23092 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23093 <libm-alias-double.h>.
23094 (nearbyint): Define using libm_alias_double.
23095 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23096 <libm-alias-double.h>.
23097 (rint): Define using libm_alias_double.
23098 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23099 <libm-alias-double.h>.
23100 (sin): Define using libm_alias_double.
23101 (cos): Likewise.
23102 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23103 <libm-alias-double.h>.
23104 (tan): Define using libm_alias_double.
23105 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23106 <libm-alias-double.h>.
23107 (trunc): Define using libm_alias_double.
23108 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23109 (copysign): Define using libm_alias_double.
23110 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23111 (fabs): Define using libm_alias_double.
23112 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23113 (fmax): Define using libm_alias_double.
23114 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23115 (fmin): Define using libm_alias_double.
23116 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23117 (llrint): Define using libm_alias_double.
23118 [!__ILP32__] (lrint): Likewise.
23119 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23120 (lrint): Define using libm_alias_double.
23121
23122 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23123
23124 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23125 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23126 objects.
23127 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23128 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23129 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23130 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23131 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23132 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23133
23134 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23135 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23136 objects.
23137 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23138 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23139 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23140 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23141 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23142 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23143
23144 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23145 (libm-sysdep_routines): Add s_nearbyint-generic and
23146 s_nearbyintf-generic objects.
23147 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23148 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23149 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23150 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23151 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23152 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23153
23154 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23155 Add s_finitef-generic and s_finite-generic objects.
23156 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23157 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23158 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23159 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23160 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23161 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23162
23163 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23164 Add s_isinff-generic and s_isinf-generic objects.
23165 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23166 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23167 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23168 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23169 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23170 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23171
23172 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23173 Add s_isnanf-generic and s_isnan-generic objects.
23174 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23175 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23176 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23177 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23178 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23179 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23180
23181 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23182 macro.
23183 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23184 rule.
23185 (sysdep_routines): Use sysdep_calls as base.
23186 (libm-sysdep_routines): Add generic rule for symbols shared with
23187 libc. Add s_signbit-generic and s_signbitf-generic objects.
23188 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23189 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23190 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23191 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23192 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23193 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23194
23195 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23196
23197 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23198 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23199 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23200 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23201 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23202 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23203 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23204 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23205 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23206 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23207 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23208 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23209 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23210 libm_alias_float_r.
23211 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23212 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23213 (logf): Likewise.
23214 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23215 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23216 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23217 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23218 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23219 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23220 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23221 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23222 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23223 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23224 libm_alias_float.
23225 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23226 (cosf): Likewise.
23227 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23228 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23229 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23230 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23231 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23232 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23233 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23234 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23235 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23236 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23237 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23238 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23239 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23240 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23241 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23242 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23243 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23244 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23245 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23246 libm_alias_float.
23247 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23248 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23249 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23250 * sysdeps/ia64/fpu/w_lgammaf_main.c
23251 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23252 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23253
23254 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23255 Alexandre Oliva <aoliva@redhat.com>
23256
23257 [BZ #17750]
23258 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23259 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23260 accents sorting.
23261 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23262 sorting.
23263 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23264 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23265 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23266 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23267 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23268 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23269 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23270 instead of “ifdef DIACRIT_BACKWARD”.
23271
23272 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23273
23274 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23275 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23276 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23277 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23278 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23279 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23280 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23281 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23282 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23283 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23284 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23285 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23286 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23287 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23288 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23289 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23290 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23291 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23293 ($(have-as-vis3) == yes): Remove conditional.
23294 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23295 Likewise.
23296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23297 file.
23298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23299 file.
23300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23301 file.
23302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23303 file.
23304 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23305 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23306 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23307 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23308 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23309 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23310 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23311 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23312
23313 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23314
23315 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23316 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23317 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23318 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23319 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23320 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23321 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23322 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23323 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23324 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23325 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23326 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23327 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23328 libm_alias_double_r.
23329 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23330 (log): Likewise.
23331 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23332 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23333 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23334 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23335 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23336 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23337 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23338 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23339 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23340 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23341 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23342 libm_alias_double.
23343 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23344 (cos): Likewise.
23345 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23346 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23347 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23348 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23349 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23350 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23351 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23352 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23353 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23354 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23355 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23356 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23357 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23358 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23359 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23360 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23361 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23362 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23363 libm_alias_double.
23364 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23365 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23366 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23367 * sysdeps/ia64/fpu/w_lgamma_main.c
23368 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23369 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23370
23371 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23372
23373 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23374 address of $global$ into %dp register earlier. Use pc-relative
23375 instruction sequence for PIC case.
23376
23377 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23378
23379 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23380 (asinhf): Define using libm_alias_float.
23381 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23382 (atanf): Define using libm_alias_float.
23383 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23384 (cbrtf): Define using libm_alias_float.
23385 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23386 (ceilf): Define using libm_alias_float.
23387 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23388 (copysignf): Define using libm_alias_float.
23389 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23390 (expm1f): Define using libm_alias_float.
23391 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23392 (fabsf): Define using libm_alias_float.
23393 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23394 (floorf): Define using libm_alias_float.
23395 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23396 (fmaxf): Define using libm_alias_float.
23397 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23398 (fminf): Define using libm_alias_float.
23399 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23400 (frexpf): Define using libm_alias_float.
23401 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23402 (llrintf): Define using libm_alias_float.
23403 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23404 (logbf): Define using libm_alias_float.
23405 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23406 (lrintf): Define using libm_alias_float.
23407 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23408 (nearbyintf): Define using libm_alias_float.
23409 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23410 (remquof): Define using libm_alias_float.
23411 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23412 (rintf): Define using libm_alias_float.
23413 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23414 (truncf): Define using libm_alias_float.
23415 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23416 <libm-alias-float.h>.
23417 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23418 if [SHARED].
23419 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23420 <libm-alias-float.h>.
23421 (expf): Define using libm_alias_float, or libm_alias_float_other
23422 if [SHARED].
23423 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23424 <libm-alias-float.h>.
23425 (log2f): Define using libm_alias_float, or libm_alias_float_other
23426 if [SHARED].
23427 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23428 <libm-alias-float.h>.
23429 (logf): Define using libm_alias_float, or libm_alias_float_other
23430 if [SHARED].
23431 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23432 <libm-alias-float.h>.
23433 (powf): Define using libm_alias_float, or libm_alias_float_other
23434 if [SHARED].
23435 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23436 <libm-alias-float.h>.
23437 (cosf): Define using libm_alias_float.
23438 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23439 <libm-alias-float.h>.
23440 (sincosf): Define using libm_alias_float.
23441 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23442 <libm-alias-float.h>.
23443 (sinf): Define using libm_alias_float.
23444 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23445 (fmaxf): Define using libm_alias_float.
23446 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23447 (fminf): Define using libm_alias_float.
23448 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23449 <libm-alias-float.h>.
23450 (fmaf): Define using libm_alias_float.
23451
23452 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23453 (asinh): Define using libm_alias_double.
23454 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23455 (atan): Define using libm_alias_double.
23456 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23457 (cbrt): Define using libm_alias_double.
23458 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23459 (ceil): Define using libm_alias_double.
23460 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23461 (copysign): Define using libm_alias_double.
23462 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23463 (expm1): Define using libm_alias_double.
23464 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23465 (fabs): Define using libm_alias_double.
23466 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23467 (fdim): Define using libm_alias_double.
23468 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23469 (floor): Define using libm_alias_double.
23470 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23471 (fmax): Define using libm_alias_double.
23472 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23473 (fmin): Define using libm_alias_double.
23474 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23475 (frexp): Define using libm_alias_double.
23476 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23477 (llrint): Define using libm_alias_double.
23478 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23479 (logb): Define using libm_alias_double.
23480 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23481 (lrint): Define using libm_alias_double.
23482 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23483 (nearbyint): Define using libm_alias_double.
23484 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23485 (remquo): Define using libm_alias_double.
23486 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23487 (rint): Define using libm_alias_double.
23488 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23489 (trunc): Define using libm_alias_double.
23490 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23491 (fmax): Define using libm_alias_double.
23492 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23493 (fmin): Define using libm_alias_double.
23494 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23495 (fma): Define using libm_alias_double.
23496
23497 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23498
23499 [BZ #22370]
23500 * elf/dl-hwcaps.c (ROUND): Removed.
23501 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23502 and ELF_NOTE_NEXT_OFFSET.
23503 * elf/dl-load.c (ROUND): Removed.
23504 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23505 * elf/readelflib.c (ROUND): Removed.
23506 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23507 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23508 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23509 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23510
23511 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23512
23513 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23514 [!__fmaf] (fmaf): Define using libm_alias_float.
23515
23516 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23517 [!__fma] (fma): Define using libm_alias_double.
23518 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23519
23520 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23521
23522 [BZ #22336]
23523 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23524 and implement the collation rules for cs from CLDR on top of that.
23525 * Makefile: Add cs_CZ.UTF-8 to test-input.
23526 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23527
23528 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23529
23530 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23531
23532 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23533 Icarus Sparry <icarus.w.sparry@intel.com>
23534
23535 * benchtests/Makefile:Add BENCHSET to allow subsets of
23536 benchmarks to be run.
23537 * benchtests/README: Add documentation for: Running subsets of
23538 benchmarks.
23539
23540 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23541
23542 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23543 range of tests names.
23544
23545 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23546 result from property and remove "max", min" and "mean" from
23547 required properties based on benchtests/bench-skeleton.c.
23548
23549 2017-11-28 Florian Weimer <fweimer@redhat.com>
23550
23551 [BZ #20826]
23552 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23553 due to Internet requirement.
23554 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23555 tst-getaddrinfo5.
23556 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23557
23558 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23559
23560 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23561 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23562 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23563 (sysdep_routines): Add memset-ultra1.
23564 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23565 file.
23566 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23567 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23568 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23569 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23570 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23571 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23572 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23573 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23574
23575 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23576 file.
23577 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23578 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23579 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23580 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23581 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23582 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23583 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23584 macro.
23585 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23586 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23587 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23588 (sysdep_routines): Add memcpy-ultra1.
23589 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23590 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23591
23592 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23593
23594 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23595 (cfloat_versions): Take function argument without trailing 'f'.
23596 Call libm_alias_float_other.
23597 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23598 * sysdeps/alpha/fpu/cargf.c: Likewise.
23599 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23600 * sysdeps/alpha/fpu/conjf.c: Likewise.
23601 * sysdeps/alpha/fpu/crealf.c: Likewise.
23602 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23603 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23604 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23605 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23606 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23607 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23608 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23609 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23610 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23611 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23612 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23613 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23614 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23615 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23616 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23617 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23618 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23619 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23620 (clog10f): Use libm_alias_float_other.
23621 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23622 (ceilf): Define using libm_alias_float.
23623 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23624 (copysignf): Define using libm_alias_float.
23625 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23626 (fabsf): Define using libm_alias_float.
23627 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23628 (floorf): Define using libm_alias_float.
23629 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23630 (fmaxf): Define using libm_alias_float.
23631 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23632 (fminf): Define using libm_alias_float.
23633 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23634 (lrintf): Define using libm_alias_float.
23635 (llrintf): Likewise.
23636 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23637 (lroundf): Define using libm_alias_float.
23638 (llroundf): Likewise.
23639 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23640 (rintf): Define using libm_alias_float.
23641 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23642 (truncf): Define using libm_alias_float.
23643
23644 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23645 (ceilf): Define using libm_alias_float.
23646 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23647 (floorf): Define using libm_alias_float.
23648 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23649 (fmaf): Define using libm_alias_float.
23650 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23651 (fmaxf): Define using libm_alias_float.
23652 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23653 (fminf): Define using libm_alias_float.
23654 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23655 (llrintf): Define using libm_alias_float.
23656 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23657 (llroundf): Define using libm_alias_float.
23658 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23659 (lrintf): Define using libm_alias_float.
23660 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23661 (lroundf): Define using libm_alias_float.
23662 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23663 <libm-alias-float.h>.
23664 (nearbyintf): Define using libm_alias_float.
23665 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23666 (rintf): Define using libm_alias_float.
23667 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23668 (roundf): Define using libm_alias_float.
23669 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23670 (truncf): Define using libm_alias_float.
23671
23672 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23673 (ceil): Define using libm_alias_double.
23674 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23675 (copysign): Define using libm_alias_double.
23676 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23677 (fabs): Define using libm_alias_double.
23678 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23679 (floor): Define using libm_alias_double.
23680 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23681 (fmax): Define using libm_alias_double.
23682 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23683 (fmin): Define using libm_alias_double.
23684 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23685 (lrint): Define using libm_alias_double.
23686 (llrint): Likewise.
23687 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23688 (lround): Define using libm_alias_double.
23689 (llround): Likewise.
23690 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23691 (rint): Define using libm_alias_double.
23692 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23693 (trunc): Define using libm_alias_double.
23694
23695 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23696 (libm_alias_double_r): Add semicolon after weak_alias call.
23697
23698 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23699
23700 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23701 (ceil): Define using libm_alias_double.
23702 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23703 (floor): Define using libm_alias_double.
23704 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23705 (fma): Define using libm_alias_double.
23706 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23707 (fmax): Define using libm_alias_double.
23708 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23709 (fmin): Define using libm_alias_double.
23710 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23711 (llrint): Define using libm_alias_double.
23712 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23713 (llround): Define using libm_alias_double.
23714 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23715 (lrint): Define using libm_alias_double.
23716 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23717 (lround): Define using libm_alias_double.
23718 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23719 (nearbyint): Define using libm_alias_double.
23720 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23721 (rint): Define using libm_alias_double.
23722 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23723 (round): Define using libm_alias_double.
23724 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23725 (trunc): Define using libm_alias_double.
23726
23727 2017-11-27 Florian Weimer <fweimer@redhat.com>
23728
23729 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23730 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23731 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23732 (tests): Add tst-mlock2.
23733 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23734 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23735 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23736 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23737 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23738 for mlock. Document mlock2.
23739
23740 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23741
23742 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23743 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23744 Likewise.
23745 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23746 Likewise.
23747 * sysdeps/x86/Makeconfig: New file.
23748 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23749 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23750 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23751 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23752 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23753 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23754 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23755 Likewise.
23756 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23757 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23758 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23759 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23760 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23761 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23762 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23763 * manual/math.texi (Mathematics): Document support for _Float64x.
23764 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23765 * stdlib/Versions (GLIBC_2.27): Likewise.
23766 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23767 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23768 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23769 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23770 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23771 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23772 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23773 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23774 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23775 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23776 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23777 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23779 Likewise.
23780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23781 Likewise.
23782 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23783 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23784 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23785 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23786 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23787 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23788 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23789 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23790 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23791 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23792 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23793 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23794 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23795 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23796
23797 2017-11-27 Andreas Schwab <schwab@suse.de>
23798
23799 * elf/Makefile (dl-routines): Add dl-sort-maps.
23800 * elf/dl-sort-maps.c: New file.
23801 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23802 (_dl_sort_maps): Declare.
23803 * elf/dl-fini.c (_dl_sort_fini): Remove.
23804 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23805 * elf/dl-close.c (_dl_close_worker): Likewise.
23806 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23807 open-coding it.
23808 * elf/dl-open.c (dl_open_worker): Likewise.
23809
23810 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23811
23812 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23813 using libm_alias_float128.
23814 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23815 Likewise.
23816 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23817 Likewise.
23818 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23819 (setpayloadsigf128): Likewise.
23820 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23821 Likewise.
23822 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23823 Likewise.
23824
23825 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23826 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23827 -mfloat128 to CFLAGS.
23828 ($(foreach
23829 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23830 Likewise.
23831 (CFLAGS-libm-test-support-float64x.c): New variable.
23832 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23833 $(f128-loader-link) to gnulib-tests.
23834
23835 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23836 (libm_alias_float128_other_r): If
23837 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23838 alias.
23839 (libm_alias_float128_r): Add semicolon after weak_alias call.
23840 * sysdeps/generic/libm-alias-ldouble.h
23841 (libm_alias_ldouble_other_r_f128): New macro.
23842 (libm_alias_ldouble_other_r_f64x): Likewise.
23843 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23844 and libm_alias_ldouble_other_r_f64x.
23845 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23846 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23847 (libm_alias_ldouble_other_r_f128): New macro.
23848 (libm_alias_ldouble_other_r_f64x): Likewise.
23849 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23850 and libm_alias_ldouble_other_r_f64x.
23851
23852 * stdlib/strfroml.c: Always include <stdlib.h>.
23853 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23854 undefine as macro and define as weak alias.
23855 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23856 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23857 <stdlib.h>.
23858 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23859 Define and later undefine as macro and define as weak alias.
23860
23861 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23862 Define and later undefine as macro. Define as weak alias if
23863 [!USE_WIDE_CHAR].
23864 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23865 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23866 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23867 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23868 Define and later undefine as macro. Define as weak alias if
23869 [!USE_WIDE_CHAR].
23870 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23871 Define and later undefine as macro. Define as weak alias if
23872 [USE_WIDE_CHAR].
23873 * sysdeps/ieee754/float128/strtof128_l.c
23874 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23875 Define and later undefine as macro. Define as weak alias if
23876 [!USE_WIDE_CHAR].
23877 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23878 Define and later undefine as macro. Define as weak alias if
23879 [USE_WIDE_CHAR].
23880 * sysdeps/ieee754/ldbl-128/strtold_l.c
23881 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23882 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23883 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23884 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23885 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23886 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23887 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23888 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23889 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23890 * sysdeps/ieee754/ldbl-96/strtold_l.c
23891 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23892 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23893 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23894 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23895
23896 * math/test-float64x.h: New file.
23897 * math/Makefile (type-float64x-yes): New variable.
23898 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23899
23900 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23901 function-like macro.
23902 (min_of_type_): Likewise.
23903 (min_of_type_l): Likewise.
23904 (min_of_type_f128): Likewise.
23905 (min_of_type): Pass () as last argument of __MATH_TG.
23906
23907 * stdlib/tst-strtod-round-skeleton.c
23908 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23909 headers.
23910
23911 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23912 for combinations of long double with _Float64 and _Float64x.
23913
23914 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23915 (__DECL_SIMD_cosf32): Likewise.
23916 (__DECL_SIMD_cosf64): Likewise.
23917 (__DECL_SIMD_cosf32x): Likewise.
23918 (__DECL_SIMD_cosf64x): Likewise.
23919 (__DECL_SIMD_cosf128x): Likewise.
23920 (__DECL_SIMD_sinf16): Likewise.
23921 (__DECL_SIMD_sinf32): Likewise.
23922 (__DECL_SIMD_sinf64): Likewise.
23923 (__DECL_SIMD_sinf32x): Likewise.
23924 (__DECL_SIMD_sinf64x): Likewise.
23925 (__DECL_SIMD_sinf128x): Likewise.
23926 (__DECL_SIMD_sincosf16): Likewise.
23927 (__DECL_SIMD_sincosf32): Likewise.
23928 (__DECL_SIMD_sincosf64): Likewise.
23929 (__DECL_SIMD_sincosf32x): Likewise.
23930 (__DECL_SIMD_sincosf64x): Likewise.
23931 (__DECL_SIMD_sincosf128x): Likewise.
23932 (__DECL_SIMD_logf16): Likewise.
23933 (__DECL_SIMD_logf32): Likewise.
23934 (__DECL_SIMD_logf64): Likewise.
23935 (__DECL_SIMD_logf32x): Likewise.
23936 (__DECL_SIMD_logf64x): Likewise.
23937 (__DECL_SIMD_logf128x): Likewise.
23938 (__DECL_SIMD_expf16): Likewise.
23939 (__DECL_SIMD_expf32): Likewise.
23940 (__DECL_SIMD_expf64): Likewise.
23941 (__DECL_SIMD_expf32x): Likewise.
23942 (__DECL_SIMD_expf64x): Likewise.
23943 (__DECL_SIMD_expf128x): Likewise.
23944 (__DECL_SIMD_powf16): Likewise.
23945 (__DECL_SIMD_powf32): Likewise.
23946 (__DECL_SIMD_powf64): Likewise.
23947 (__DECL_SIMD_powf32x): Likewise.
23948 (__DECL_SIMD_powf64x): Likewise.
23949 (__DECL_SIMD_powf128x): Likewise.
23950
23951 * stdlib/Versions (libc): Move entries for wcstof128 and
23952 wcstof128_l to ....
23953 * wcsmbs/Versions (libc): ... here.
23954 Include <float128-abi.h>.
23955
23956 2017-11-24 Florian Weimer <fweimer@redhat.com>
23957
23958 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23959 bits/mman-shared.h.
23960 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23961 <bits/mman-shared.h>.
23962 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23963 to ...
23964 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23965 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23966 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23967 <bits/mman-shared.h>.
23968
23969 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23970
23971 [BZ #22457]
23972 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23973 posix_memalign/free.
23974 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23975
23976 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23977
23978 [BZ #22469]
23979 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23980 and implement the collation rules for pl from CLDR on top of that.
23981 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23982 of locales to be built for testing.
23983 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23984
23985 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23986
23987 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23988 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23989 libm_alias_ldouble_other.
23990 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23991 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23992 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23993 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23994 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23995 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23996 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23997 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23998 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23999 libm_alias_ldouble_r.
24000 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24001 libm_alias_ldouble_other.
24002 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24003 (log10l): Likewise.
24004 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24005 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24006 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24007 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24008 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24009 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24010 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24011 (atan2l): Likewise.
24012 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24013 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24014 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24015 libm_alias_ldouble.
24016 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24017 (cosl): Likewise.
24018 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24019 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24020 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24021 (expl): Likewise.
24022 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24023 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24024 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24025 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24026 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24027 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24028 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24029 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24030 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24031 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24032 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24033 libm_alias_ldouble.
24034 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24035 libm_alias_ldouble_other.
24036 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24037 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24038 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24039 libm_alias_ldouble.
24040 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24041 libm_alias_ldouble_other.
24042 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24043 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24044 * sysdeps/ia64/fpu/w_lgammal_main.c
24045 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24046 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24047
24048 2017-11-23 Florian Weimer <fweimer@redhat.com>
24049
24050 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24051 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24052 alike. Remove freeres marker.
24053 * malloc/arena.c (arena_thread_freeres): Call
24054 tcache_thread_shutdown.
24055
24056 2017-11-23 Florian Weimer <fweimer@redhat.com>
24057
24058 [BZ #22459]
24059 Export nscd hash function as __nss_hash.
24060 * include/nss.h (__nss_hash): Declare.
24061 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24062 symbol.
24063 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24064 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24065 of __nscd_hash.
24066 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24067 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24068 * nss/Makefiles (routines): Add nss_hash.
24069 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24070 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24071 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24072 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24073
24074 2017-11-23 Florian Weimer <fweimer@redhat.com>
24075
24076 [BZ #22478]
24077 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24078 Return error code, not -1.
24079 * signal/tst-sigwait-eintr.c: New file.
24080 * signal/Makefile (tests): Add tst-sigwait-eintr.
24081
24082 2017-11-23 Florian Weimer <fweimer@redhat.com>
24083
24084 Linux: Add memfd_create system call wrapper
24085 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24086 tst-memfd_create.
24087 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24088 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24089 [__USE_GNU] (memfd_create): Declare.
24090 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24091 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24092 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24093 * sysdeps/unix/sysv/linux/**.abilist: Update.
24094 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24095
24096 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24097
24098 * localedata/gen-locale.sh: Fix typo in variable name.
24099
24100 * resolv/res_debug.c (p_secstodate): Condition definition on
24101 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24102 directly as __p_secstodate, and as a compat symbol. Do not use
24103 libresolv_hidden_def.
24104 * resolv/resolv.h (p_secstodate): Remove macro and function
24105 declaration.
24106 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24107 using p_secstodate.
24108 * include/resolv.h (__p_secstodate): Do not use
24109 libresolv_hidden_proto.
24110 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24111 (tests-internal): ... here.
24112 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24113 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24114 and declare and use __p_secstodate and use compat_symbol_reference
24115 in that case.
24116 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24117 implementation returning 77.
24118
24119 [BZ #22463]
24120 * resolv/res_debug.c: Include <libc-diag.h>.
24121 (p_secstodate): Assert time_t at least as wide as u_long. On
24122 overflow, use integer seconds since the epoch as output, or use
24123 "<overflow>" as output and set errno to EOVERFLOW if integer
24124 seconds since the epoch would be 14 or more characters.
24125 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24126 for sprintf call.
24127 * resolv/tst-p_secstodate.c: New file.
24128 * resolv/Makefile (tests): Add tst-p_secstodate.
24129 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24130
24131 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24132 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24133 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24134
24135 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24136
24137 * posix/regcomp.c (init_word_char): Add comments.
24138
24139 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24140
24141 [BZ #22447]
24142 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24143 strlen to compute length of ut_user and set trailing NUL byte of
24144 result explicitly.
24145
24146 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24147
24148 [BZ #15537]
24149 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24150 using “copy "iso14651_t1"” and then implementing the
24151 collation rules for lv from CLDR on top of that.
24152 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24153 of locales to be built for testing.
24154 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24155 sorting.
24156
24157 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24158
24159 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24160 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24161 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24162 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24163 [__USE_MISC] (MADV_HWPOISON): New macro.
24164 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24165
24166 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24167
24168 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24169 -Wmissing-braces on GCC 4.9.
24170
24171 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24172
24173 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24174 * sysdeps/s390/s390-32/start.S (_start): Likewise
24175 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24176 (thread_start): Likewise.
24177 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24178 (thread_start): Likewise.
24179 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24180 (__makecontext_ret): Likewise.
24181 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24182 (__makecontext_ret): Likewise.
24183
24184 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24185
24186 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24187 __wcschrnul): Remove attribute_hidden.
24188
24189 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24190
24191 regex: don't assume uint64_t or uint32_t
24192 This avoids -Werror=overflow errors for 32-bit systems in
24193 the 64-bit case. Problem reported by Joseph Myers in:
24194 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24195 Also, when this code is used in Gnulib it ports to platforms
24196 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24197 them, and on some 32-bit compilers there is no uint64_t.
24198 Problem reported by Gianluigi Tiesi in:
24199 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24200 * posix/regcomp.c (init_word_char): Don't assume that the types
24201 uint64_t and uint32_t exist. Adapted from Gnulib patch
24202 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24203 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24204
24205 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24206
24207 * sysdeps/aarch64/memset-reg.h: New file.
24208 * sysdeps/aarch64/memset.S: Use it.
24209 (__memset): Rename to MEMSET macro.
24210 [ZVA_MACRO]: Use zva_macro.
24211 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24212 Add memset_generic and memset_falkor.
24213 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24214 (__libc_ifunc_impl_list): Add memset ifuncs.
24215 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24216 local variable zva_size.
24217 * sysdeps/aarch64/multiarch/memset.c: New file.
24218 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24219 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24220 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24221 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24222 (DCZID_DZP_MASK): New macro.
24223 (DCZID_BS_MASK): Likewise.
24224 (init_cpu_features): Read and set zva_size.
24225 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24226 (struct cpu_features): New member zva_size.
24227
24228 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24229 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24230 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24231
24232 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24233 backwards. Fix timing computation.
24234 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24235 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24236 on memset by N at a time. Fix timing computation.
24237
24238 2017-11-20 Florian Weimer <fweimer@redhat.com>
24239
24240 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24241 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24242
24243 2017-11-19 Florian Weimer <fweimer@redhat.com>
24244
24245 manual: Document mprotect
24246 * manual/memory.texi (Memory Protection): New section.
24247 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24248 documentation of PROT_* flags and reference the Memory Protection
24249 section instead.
24250
24251 2017-11-19 Florian Weimer <fweimer@redhat.com>
24252
24253 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24254 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24255 (Scatter-Gather): ... to here. Remove misleading comment.
24256
24257 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24258
24259 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24260 style.
24261
24262 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24263 when /proc/<pid>/setgroups does not exist.
24264
24265 2017-11-18 Florian Weimer <fweimer@redhat.com>
24266
24267 * sysdeps/unix/sysv/linux/tst-ttyname.c
24268 (become_root_in_mount_ns): Remove.
24269 (do_in_chroot_1): Call support_enter_mount_namespace.
24270 (do_in_chroot_2): Likewise.
24271 (do_test): Call support_become_root early.
24272
24273 2017-11-18 Florian Weimer <fweimer@redhat.com>
24274
24275 * support/namespace.h (support_enter_mount_namespace): Declare.
24276 * support/support_enter_mount_namespace.c: New file.
24277 * support/Makefile (libsupport-routines): Add
24278 support_enter_mount_namespace.
24279
24280 2017-11-18 Florian Weimer <fweimer@redhat.com>
24281
24282 * support/temp_file.c (support_create_temp_directory): Use
24283 test_dir and do not rely on the presence of the XXXXXX suffix.
24284 * support/temp_file.h (support_create_temp_directory): Update
24285 comment.
24286 * support/tst-xreadlink.c (do_test): Adjust.
24287 * support/support_chroot.c (support_chroot_create): Likewise.
24288
24289 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24290
24291 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24292 macro.
24293 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24294 htm-no-suspend.
24295
24296 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24297
24298 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24299 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24300 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24301 (ceill): Define using libm_alias_ldouble.
24302 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24303 <libm-alias-ldouble.h>.
24304 (copysignl): Define using libm_alias_ldouble.
24305 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24306 (fabsl): Define using libm_alias_ldouble.
24307 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24308 (floorl): Define using libm_alias_ldouble.
24309 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24310 (fmaxl): Define using libm_alias_ldouble.
24311 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24312 (fminl): Define using libm_alias_ldouble.
24313 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24314 (llrintl): Define using libm_alias_ldouble.
24315 (lrintl): Likewise.
24316 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24317 <libm-alias-ldouble.h>.
24318 (nearbyintl): Define using libm_alias_ldouble.
24319 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24320 (truncl): Define using libm_alias_ldouble.
24321 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24322 <libm-alias-ldouble.h>.
24323 (lrintl): Define using libm_alias_ldouble.
24324
24325 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24326 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24327 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24328 (asinhl): Define using libm_alias_ldouble.
24329 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24330 (atanl): Define using libm_alias_ldouble.
24331 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24332 (cbrtl): Define using libm_alias_ldouble.
24333 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24334 (ceill): Define using libm_alias_ldouble.
24335 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24336 (copysignl): Define using libm_alias_ldouble.
24337 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24338 (fabsl): Define using libm_alias_ldouble.
24339 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24340 (floorl): Define using libm_alias_ldouble.
24341 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24342 (fmaxl): Define using libm_alias_ldouble.
24343 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24344 (fminl): Define using libm_alias_ldouble.
24345 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24346 (frexpl): Define using libm_alias_ldouble.
24347 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24348 (llrintl): Define using libm_alias_ldouble.
24349 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24350 (logbl): Define using libm_alias_ldouble.
24351 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24352 (lrintl): Define using libm_alias_ldouble.
24353 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24354 (nearbyintl): Define using libm_alias_ldouble.
24355 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24356 (nextafterl): Define using libm_alias_ldouble.
24357 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24358 (remquol): Define using libm_alias_ldouble.
24359 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24360 (rintl): Define using libm_alias_ldouble.
24361 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24362 (truncl): Define using libm_alias_ldouble.
24363 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24364 (fmaxl): Define using libm_alias_ldouble.
24365 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24366 (fminl): Define using libm_alias_ldouble.
24367
24368 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24369 to C syntax instead of availability and properties of types.
24370 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24371 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24372 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24373 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24374 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24375 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24376
24377 2017-11-17 Florian Weimer <fweimer@redhat.com>
24378
24379 support_become_root: Enable file creation in namespaces.
24380 * support/support_become_root.c (setup_mapping): New function.
24381 (support_become_root): Call it.
24382
24383 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24384
24385 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24386 macro.
24387
24388 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24389
24390 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24391 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24392
24393 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24394
24395 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24396
24397 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24398 version to 4.14.
24399
24400 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24401
24402 * INSTALL: Fix botched up regeneration.
24403
24404 * NEWS: Update sourceare link to https.
24405 * configure.ac: Likewise.
24406 * crypt/md5test-giant.c: Likewise.
24407 * dlfcn/bug-atexit1.c: Likewise.
24408 * dlfcn/bug-atexit2.c: Likewise.
24409 * localedata/README: Likewise.
24410 * malloc/tst-mallocfork.c: Likewise.
24411 * manual/install.texi: Likewise.
24412 * nptl/tst-pthread-getattr.c: Likewise.
24413 * stdio-common/tst-fgets.c: Likewise.
24414 * stdio-common/tst-fwrite.c: Likewise.
24415 * sunrpc/Makefile: Likewise.
24416 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24417 * wcsmbs/tst-mbrtowc2.c: Likewise.
24418 * configure: Regenerate.
24419 * INSTALL: Regenerate.
24420
24421 2017-11-15 Martin Sebor <msebor@redhat.com>
24422
24423 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24424 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24425 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24426
24427 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24428
24429 [BZ #22145]
24430 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24431 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24432
24433 [BZ #22145]
24434 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24435 Defer is_pty check until end of the function.
24436 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24437
24438 [BZ #22145]
24439 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24440 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24441 (ttyname): Likewise.
24442 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24443 (__ttyname_r): Likewise.
24444
24445 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24446 int to bool.
24447
24448 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24449
24450 * manual/terminal.texi (Is It a Terminal):
24451 Mention ENODEV for ttyname and ttyname_r.
24452
24453 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24454
24455 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24456 constant and macro.
24457
24458 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24459 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24460 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24461 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24462 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24463 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24464
24465 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24466
24467 * signal/sigrelse.c (sigrelse): Optimize implementation.
24468
24469 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24470 (__sigpause): Rely on __sigsuspend to implement single thread
24471 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24472
24473 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24474
24475 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24476 kernel version to 4.14.
24477
24478 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24479
24480 [BZ #22442]
24481 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24482 Check if ifname is too long.
24483
24484 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24485
24486 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24487
24488 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24489
24490 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24491 was accidentally lost.
24492
24493 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24494
24495 * localedata/locales/az_IR: Add standard copyright header.
24496
24497 2017-11-15 Florian Weimer <fweimer@redhat.com>
24498
24499 [BZ #22439]
24500 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24501 not just the top one. Output a new "subheaps" statistic.
24502
24503 2017-11-15 Florian Weimer <fweimer@redhat.com>
24504
24505 [BZ #22408]
24506 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24507 under the per-arena lock.
24508 * malloc/Makefile (tests): Add tst-malloc_info.
24509 (tst-malloc_info): Link with libpthread.
24510 * malloc/tst-malloc_info.c: New file.
24511
24512 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24513
24514 [BZ #21660]
24515 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24516 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24517 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24518 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24519 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24520 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24521 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24522 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24523 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24524 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24525 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24526 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24527 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24528 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24529 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24530 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24531 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24532 (__floating_type): Likewise.
24533 (__real_integer_type): Likewise.
24534 (__complex_integer_type): Likewise.
24535 (__expr_is_real): Likewise.
24536 (__tgmath_real_type_sub): Likewise.
24537 (__tgmath_real_type): Likewise.
24538 (__tgmath_complex_type_sub): Likewise.
24539 (__tgmath_complex_type): Likewise.
24540 (__TGMATH_F128): Likewise.
24541 (__TGMATH_CF128): Likewise.
24542 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24543 new macros.
24544 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24545 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24546 Likewise.
24547 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24548 Likewise.
24549 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24550 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24551 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24552 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24553 Likewise.
24554 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24555 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24556 Likewise.
24557 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24558 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24559 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24560 Likewise.
24561 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24562 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24563 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24564 (cimag): Likewise.
24565 (creal): Likewise.
24566
24567 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24568
24569 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24570 for stpncpy calls for GCC 8.
24571 (test_strncat): Disable -Wstringop-truncation warning for strncat
24572 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24573 strncat call for GCC 7.
24574 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24575 calls for GCC 8.
24576 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24577 trailing NUL.
24578
24579 * string/bug-strncat1.c: Include <libc-diag.h>.
24580 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24581
24582 2017-11-13 Claude Paroz <claude@2xlibre.net>
24583
24584 [BZ #22387]
24585 * localedata/locales/aa_DJ: Improved readibility by replacing
24586 <Uxxxx> sequences in the ASCII printable range by their ASCII
24587 character equivalents.
24588 * localedata/locales/aa_ER: Likewise.
24589 * localedata/locales/aa_ER@saaho: Likewise.
24590 * localedata/locales/aa_ET: Likewise.
24591 * localedata/locales/af_ZA: Likewise.
24592 * localedata/locales/agr_PE: Likewise.
24593 * localedata/locales/ak_GH: Likewise.
24594 * localedata/locales/am_ET: Likewise.
24595 * localedata/locales/anp_IN: Likewise.
24596 * localedata/locales/ar_AE: Likewise.
24597 * localedata/locales/ar_BH: Likewise.
24598 * localedata/locales/ar_DZ: Likewise.
24599 * localedata/locales/ar_EG: Likewise.
24600 * localedata/locales/ar_IN: Likewise.
24601 * localedata/locales/ar_IQ: Likewise.
24602 * localedata/locales/ar_JO: Likewise.
24603 * localedata/locales/ar_KW: Likewise.
24604 * localedata/locales/ar_LB: Likewise.
24605 * localedata/locales/ar_LY: Likewise.
24606 * localedata/locales/ar_MA: Likewise.
24607 * localedata/locales/ar_OM: Likewise.
24608 * localedata/locales/ar_QA: Likewise.
24609 * localedata/locales/ar_SA: Likewise.
24610 * localedata/locales/ar_SD: Likewise.
24611 * localedata/locales/ar_SS: Likewise.
24612 * localedata/locales/ar_SY: Likewise.
24613 * localedata/locales/ar_TN: Likewise.
24614 * localedata/locales/ar_YE: Likewise.
24615 * localedata/locales/as_IN: Likewise.
24616 * localedata/locales/ast_ES: Likewise.
24617 * localedata/locales/ayc_PE: Likewise.
24618 * localedata/locales/az_AZ: Likewise.
24619 * localedata/locales/az_IR: Likewise.
24620 * localedata/locales/be_BY: Likewise.
24621 * localedata/locales/be_BY@latin: Likewise.
24622 * localedata/locales/bem_ZM: Likewise.
24623 * localedata/locales/ber_DZ: Likewise.
24624 * localedata/locales/ber_MA: Likewise.
24625 * localedata/locales/bg_BG: Likewise.
24626 * localedata/locales/bhb_IN: Likewise.
24627 * localedata/locales/bho_IN: Likewise.
24628 * localedata/locales/bi_VU: Likewise.
24629 * localedata/locales/bn_BD: Likewise.
24630 * localedata/locales/bn_IN: Likewise.
24631 * localedata/locales/bo_CN: Likewise.
24632 * localedata/locales/bo_IN: Likewise.
24633 * localedata/locales/br_FR: Likewise.
24634 * localedata/locales/brx_IN: Likewise.
24635 * localedata/locales/bs_BA: Likewise.
24636 * localedata/locales/byn_ER: Likewise.
24637 * localedata/locales/ca_AD: Likewise.
24638 * localedata/locales/ca_ES: Likewise.
24639 * localedata/locales/ca_FR: Likewise.
24640 * localedata/locales/ca_IT: Likewise.
24641 * localedata/locales/ce_RU: Likewise.
24642 * localedata/locales/chr_US: Likewise.
24643 * localedata/locales/cmn_TW: Likewise.
24644 * localedata/locales/crh_UA: Likewise.
24645 * localedata/locales/cs_CZ: Likewise.
24646 * localedata/locales/csb_PL: Likewise.
24647 * localedata/locales/cv_RU: Likewise.
24648 * localedata/locales/cy_GB: Likewise.
24649 * localedata/locales/da_DK: Likewise.
24650 * localedata/locales/de_AT: Likewise.
24651 * localedata/locales/de_BE: Likewise.
24652 * localedata/locales/de_CH: Likewise.
24653 * localedata/locales/de_DE: Likewise.
24654 * localedata/locales/de_IT: Likewise.
24655 * localedata/locales/de_LI: Likewise.
24656 * localedata/locales/de_LU: Likewise.
24657 * localedata/locales/doi_IN: Likewise.
24658 * localedata/locales/dv_MV: Likewise.
24659 * localedata/locales/dz_BT: Likewise.
24660 * localedata/locales/el_CY: Likewise.
24661 * localedata/locales/el_GR: Likewise.
24662 * localedata/locales/en_AG: Likewise.
24663 * localedata/locales/en_AU: Likewise.
24664 * localedata/locales/en_BW: Likewise.
24665 * localedata/locales/en_CA: Likewise.
24666 * localedata/locales/en_DK: Likewise.
24667 * localedata/locales/en_GB: Likewise.
24668 * localedata/locales/en_HK: Likewise.
24669 * localedata/locales/en_IE: Likewise.
24670 * localedata/locales/en_IL: Likewise.
24671 * localedata/locales/en_IN: Likewise.
24672 * localedata/locales/en_NG: Likewise.
24673 * localedata/locales/en_NZ: Likewise.
24674 * localedata/locales/en_PH: Likewise.
24675 * localedata/locales/en_SG: Likewise.
24676 * localedata/locales/en_US: Likewise.
24677 * localedata/locales/en_ZA: Likewise.
24678 * localedata/locales/en_ZM: Likewise.
24679 * localedata/locales/en_ZW: Likewise.
24680 * localedata/locales/eo: Likewise.
24681 * localedata/locales/es_AR: Likewise.
24682 * localedata/locales/es_BO: Likewise.
24683 * localedata/locales/es_CL: Likewise.
24684 * localedata/locales/es_CO: Likewise.
24685 * localedata/locales/es_CR: Likewise.
24686 * localedata/locales/es_CU: Likewise.
24687 * localedata/locales/es_DO: Likewise.
24688 * localedata/locales/es_EC: Likewise.
24689 * localedata/locales/es_ES: Likewise.
24690 * localedata/locales/es_GT: Likewise.
24691 * localedata/locales/es_HN: Likewise.
24692 * localedata/locales/es_MX: Likewise.
24693 * localedata/locales/es_NI: Likewise.
24694 * localedata/locales/es_PA: Likewise.
24695 * localedata/locales/es_PE: Likewise.
24696 * localedata/locales/es_PR: Likewise.
24697 * localedata/locales/es_PY: Likewise.
24698 * localedata/locales/es_SV: Likewise.
24699 * localedata/locales/es_US: Likewise.
24700 * localedata/locales/es_UY: Likewise.
24701 * localedata/locales/es_VE: Likewise.
24702 * localedata/locales/et_EE: Likewise.
24703 * localedata/locales/eu_ES: Likewise.
24704 * localedata/locales/eu_ES@euro: Likewise.
24705 * localedata/locales/fa_IR: Likewise.
24706 * localedata/locales/ff_SN: Likewise.
24707 * localedata/locales/fi_FI: Likewise.
24708 * localedata/locales/fil_PH: Likewise.
24709 * localedata/locales/fo_FO: Likewise.
24710 * localedata/locales/fr_BE: Likewise.
24711 * localedata/locales/fr_CA: Likewise.
24712 * localedata/locales/fr_CH: Likewise.
24713 * localedata/locales/fr_FR: Likewise.
24714 * localedata/locales/fr_LU: Likewise.
24715 * localedata/locales/fur_IT: Likewise.
24716 * localedata/locales/fy_DE: Likewise.
24717 * localedata/locales/fy_NL: Likewise.
24718 * localedata/locales/ga_IE: Likewise.
24719 * localedata/locales/gd_GB: Likewise.
24720 * localedata/locales/gez_ER: Likewise.
24721 * localedata/locales/gez_ET: Likewise.
24722 * localedata/locales/gl_ES: Likewise.
24723 * localedata/locales/gu_IN: Likewise.
24724 * localedata/locales/gv_GB: Likewise.
24725 * localedata/locales/ha_NG: Likewise.
24726 * localedata/locales/hak_TW: Likewise.
24727 * localedata/locales/he_IL: Likewise.
24728 * localedata/locales/hi_IN: Likewise.
24729 * localedata/locales/hif_FJ: Likewise.
24730 * localedata/locales/hne_IN: Likewise.
24731 * localedata/locales/hr_HR: Likewise.
24732 * localedata/locales/hsb_DE: Likewise.
24733 * localedata/locales/ht_HT: Likewise.
24734 * localedata/locales/hu_HU: Likewise.
24735 * localedata/locales/hy_AM: Likewise.
24736 * localedata/locales/i18n: Likewise.
24737 * localedata/locales/ia_FR: Likewise.
24738 * localedata/locales/id_ID: Likewise.
24739 * localedata/locales/ig_NG: Likewise.
24740 * localedata/locales/ik_CA: Likewise.
24741 * localedata/locales/is_IS: Likewise.
24742 * localedata/locales/it_CH: Likewise.
24743 * localedata/locales/it_IT: Likewise.
24744 * localedata/locales/iu_CA: Likewise.
24745 * localedata/locales/ja_JP: Likewise.
24746 * localedata/locales/ka_GE: Likewise.
24747 * localedata/locales/kk_KZ: Likewise.
24748 * localedata/locales/kl_GL: Likewise.
24749 * localedata/locales/kn_IN: Likewise.
24750 * localedata/locales/ko_KR: Likewise.
24751 * localedata/locales/kok_IN: Likewise.
24752 * localedata/locales/ks_IN: Likewise.
24753 * localedata/locales/ks_IN@devanagari: Likewise.
24754 * localedata/locales/ku_TR: Likewise.
24755 * localedata/locales/kw_GB: Likewise.
24756 * localedata/locales/ky_KG: Likewise.
24757 * localedata/locales/lb_LU: Likewise.
24758 * localedata/locales/lg_UG: Likewise.
24759 * localedata/locales/li_BE: Likewise.
24760 * localedata/locales/li_NL: Likewise.
24761 * localedata/locales/lij_IT: Likewise.
24762 * localedata/locales/ln_CD: Likewise.
24763 * localedata/locales/lo_LA: Likewise.
24764 * localedata/locales/lt_LT: Likewise.
24765 * localedata/locales/lv_LV: Likewise.
24766 * localedata/locales/lzh_TW: Likewise.
24767 * localedata/locales/mag_IN: Likewise.
24768 * localedata/locales/mai_IN: Likewise.
24769 * localedata/locales/mg_MG: Likewise.
24770 * localedata/locales/mhr_RU: Likewise.
24771 * localedata/locales/mi_NZ: Likewise.
24772 * localedata/locales/mk_MK: Likewise.
24773 * localedata/locales/ml_IN: Likewise.
24774 * localedata/locales/mn_MN: Likewise.
24775 * localedata/locales/mni_IN: Likewise.
24776 * localedata/locales/mr_IN: Likewise.
24777 * localedata/locales/ms_MY: Likewise.
24778 * localedata/locales/mt_MT: Likewise.
24779 * localedata/locales/my_MM: Likewise.
24780 * localedata/locales/nan_TW: Likewise.
24781 * localedata/locales/nan_TW@latin: Likewise.
24782 * localedata/locales/nb_NO: Likewise.
24783 * localedata/locales/nds_DE: Likewise.
24784 * localedata/locales/nds_NL: Likewise.
24785 * localedata/locales/ne_NP: Likewise.
24786 * localedata/locales/nhn_MX: Likewise.
24787 * localedata/locales/niu_NU: Likewise.
24788 * localedata/locales/niu_NZ: Likewise.
24789 * localedata/locales/nl_AW: Likewise.
24790 * localedata/locales/nl_BE: Likewise.
24791 * localedata/locales/nl_NL: Likewise.
24792 * localedata/locales/nn_NO: Likewise.
24793 * localedata/locales/nr_ZA: Likewise.
24794 * localedata/locales/nso_ZA: Likewise.
24795 * localedata/locales/oc_FR: Likewise.
24796 * localedata/locales/om_ET: Likewise.
24797 * localedata/locales/om_KE: Likewise.
24798 * localedata/locales/or_IN: Likewise.
24799 * localedata/locales/os_RU: Likewise.
24800 * localedata/locales/pa_IN: Likewise.
24801 * localedata/locales/pa_PK: Likewise.
24802 * localedata/locales/pap_AW: Likewise.
24803 * localedata/locales/pap_CW: Likewise.
24804 * localedata/locales/pl_PL: Likewise.
24805 * localedata/locales/ps_AF: Likewise.
24806 * localedata/locales/pt_BR: Likewise.
24807 * localedata/locales/pt_PT: Likewise.
24808 * localedata/locales/quz_PE: Likewise.
24809 * localedata/locales/raj_IN: Likewise.
24810 * localedata/locales/ro_RO: Likewise.
24811 * localedata/locales/ru_RU: Likewise.
24812 * localedata/locales/ru_UA: Likewise.
24813 * localedata/locales/rw_RW: Likewise.
24814 * localedata/locales/sa_IN: Likewise.
24815 * localedata/locales/sat_IN: Likewise.
24816 * localedata/locales/sc_IT: Likewise.
24817 * localedata/locales/sd_IN: Likewise.
24818 * localedata/locales/sd_IN@devanagari: Likewise.
24819 * localedata/locales/se_NO: Likewise.
24820 * localedata/locales/sgs_LT: Likewise.
24821 * localedata/locales/shs_CA: Likewise.
24822 * localedata/locales/si_LK: Likewise.
24823 * localedata/locales/sid_ET: Likewise.
24824 * localedata/locales/sk_SK: Likewise.
24825 * localedata/locales/sl_SI: Likewise.
24826 * localedata/locales/sm_WS: Likewise.
24827 * localedata/locales/so_DJ: Likewise.
24828 * localedata/locales/so_ET: Likewise.
24829 * localedata/locales/so_KE: Likewise.
24830 * localedata/locales/so_SO: Likewise.
24831 * localedata/locales/sq_AL: Likewise.
24832 * localedata/locales/sq_MK: Likewise.
24833 * localedata/locales/sr_ME: Likewise.
24834 * localedata/locales/sr_RS: Likewise.
24835 * localedata/locales/sr_RS@latin: Likewise.
24836 * localedata/locales/ss_ZA: Likewise.
24837 * localedata/locales/st_ZA: Likewise.
24838 * localedata/locales/sv_FI: Likewise.
24839 * localedata/locales/sv_SE: Likewise.
24840 * localedata/locales/sw_KE: Likewise.
24841 * localedata/locales/sw_TZ: Likewise.
24842 * localedata/locales/szl_PL: Likewise.
24843 * localedata/locales/ta_IN: Likewise.
24844 * localedata/locales/ta_LK: Likewise.
24845 * localedata/locales/tcy_IN: Likewise.
24846 * localedata/locales/te_IN: Likewise.
24847 * localedata/locales/tg_TJ: Likewise.
24848 * localedata/locales/th_TH: Likewise.
24849 * localedata/locales/the_NP: Likewise.
24850 * localedata/locales/ti_ER: Likewise.
24851 * localedata/locales/ti_ET: Likewise.
24852 * localedata/locales/tig_ER: Likewise.
24853 * localedata/locales/tk_TM: Likewise.
24854 * localedata/locales/tl_PH: Likewise.
24855 * localedata/locales/tn_ZA: Likewise.
24856 * localedata/locales/to_TO: Likewise.
24857 * localedata/locales/tpi_PG: Likewise.
24858 * localedata/locales/tr_CY: Likewise.
24859 * localedata/locales/tr_TR: Likewise.
24860 * localedata/locales/ts_ZA: Likewise.
24861 * localedata/locales/tt_RU: Likewise.
24862 * localedata/locales/tt_RU@iqtelif: Likewise.
24863 * localedata/locales/ug_CN: Likewise.
24864 * localedata/locales/uk_UA: Likewise.
24865 * localedata/locales/unm_US: Likewise.
24866 * localedata/locales/ur_IN: Likewise.
24867 * localedata/locales/ur_PK: Likewise.
24868 * localedata/locales/uz_UZ: Likewise.
24869 * localedata/locales/uz_UZ@cyrillic: Likewise.
24870 * localedata/locales/ve_ZA: Likewise.
24871 * localedata/locales/vi_VN: Likewise.
24872 * localedata/locales/wa_BE: Likewise.
24873 * localedata/locales/wae_CH: Likewise.
24874 * localedata/locales/wal_ET: Likewise.
24875 * localedata/locales/wo_SN: Likewise.
24876 * localedata/locales/xh_ZA: Likewise.
24877 * localedata/locales/yi_US: Likewise.
24878 * localedata/locales/yo_NG: Likewise.
24879 * localedata/locales/yue_HK: Likewise.
24880 * localedata/locales/yuw_PG: Likewise.
24881 * localedata/locales/zh_CN: Likewise.
24882 * localedata/locales/zh_HK: Likewise.
24883 * localedata/locales/zh_SG: Likewise.
24884 * localedata/locales/zh_TW: Likewise.
24885 * localedata/locales/zu_ZA: Likewise.
24886
24887 2017-11-13 Florian Weimer <fweimer@redhat.com>
24888
24889 * support/next_to_fault.h, support/next_to_fault.c: New files.
24890 * support/Makefile (libsupport-routines): Add next_to_fault.
24891 * resolv/tst-inet_pton.c (struct next_to_fault)
24892 (next_to_fault_allocate, next_to_fault_free): Remove.
24893 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24894
24895 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24896
24897 * elf/dl-support.c: Include <dl-procruntime.c>.
24898 * include/link.h: Include <link_map.h>.
24899 * sysdeps/generic/dl-procruntime.c: New file.
24900 * sysdeps/generic/link_map.h: Likewise.
24901 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24902 the writable ld.so namespace.
24903
24904 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24905
24906 timezone: pacify GCC -Wstringop-truncation
24907 Problem reported by Martin Sebor in:
24908 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24909 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24910
24911 2017-11-12 Florian Weimer <fweimer@redhat.com>
24912
24913 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24914 tst-xreadlink.
24915 (tests): Add tst-xreadlink.
24916 * support/support.h (xstrndup): Declare.
24917 * support/xunistd.h (xunlink, xreadlink): Declare.
24918 * support/temp_file.h (support_create_temp_directory): Declare.
24919 * support/temp_file.c (support_create_temp_directory): New function.
24920 * support/support_chroot.c (support_chroot_create): Use it.
24921 * support/xreadlink.c: New file.
24922 * support/xstrndup.c: Likewise.
24923 * support/xunlink.c: Likewise.
24924 * support/tst-xreadlink.c: Likewise.
24925
24926 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24927
24928 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24929
24930 2017-11-11 Florian Weimer <fweimer@redhat.com>
24931
24932 [BZ #22409]
24933 [BZ #22412]
24934 * resolv/res_comp.c (printable_string, binary_hnok)
24935 (binary_leading_dash): New functions.
24936 (res_hnok): Reimplement using these functions and ns_name_pton.
24937 (res_ownok): Likewise.
24938 (res_mailok): Reimplement using printable_string, ns_name_pton and
24939 binary_hnok.
24940 (res_dnok): Reimplement using printable_string and ns_name_pton.
24941 * resolv/tst-res_hnok.c (tests): Add additional tests.
24942 (LETTERDIGITS, PRINTABLE): Define.
24943 (do_test): Adjust one_char results.
24944
24945 2017-11-11 Florian Weimer <fweimer@redhat.com>
24946
24947 [BZ #22413]
24948 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24949 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24950
24951 2017-11-11 Florian Weimer <fweimer@redhat.com>
24952
24953 * resolv/tst-ns_name_pton.c: New file.
24954 * resolv/Makefile (tests): Add tst-ns_name_pton.
24955 (tst-ns_name_pton): Link against libresolv.
24956
24957 2017-11-11 Florian Weimer <fweimer@redhat.com>
24958
24959 * resolv/tst-res_hnok.c: New file.
24960 * resolv/Makefile (tests): Add tst-res_hnok.
24961 (tst-res_hnok): Link against libresolv.
24962
24963 2017-11-11 Florian Weimer <fweimer@redhat.com>
24964
24965 * resolv/tst-resolv-network.c: Use test framework instead explicit
24966 main function.
24967
24968 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24969
24970 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24971 <jmp_buf-macros.h>.
24972 [!_ISOMAC] (STR_HELPER): New.
24973 [!_ISOMAC] (STR): Likewise.
24974 [!_ISOMAC] (TEST_SIZE): Likewise.
24975 [!_ISOMAC] (TEST_ALIGN): Likewise.
24976 [!_ISOMAC] (TEST_OFFSET): Likewise.
24977 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24978 field offsets of jmp_buf as well as sigjmp_buf.
24979 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24980 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24981 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24982 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24983 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24984 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24985 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24986 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24987 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24988 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24989 Likewise.
24990 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24991 Likewise.
24992 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24994 Likewise.
24995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24996 Likewise.
24997 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24998 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24999 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25000 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25001 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25002 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25003 Likewise.
25004 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25005 Likewise.
25006 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25007 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25008 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25009
25010 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25011
25012 * include/float.h
25013 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25014 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25015 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25016 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25017 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25018 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25019 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25020 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25021 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25022 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25023 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25024 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25025 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25026 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25027 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25028 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25029 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25030 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25031 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25032 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25033 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25034 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25035 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25036 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25037 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25038 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25039 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25040 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25041 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25042 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25043 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25044 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25045 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25046 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25047 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25048 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25049 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25050 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25051 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25052 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25053 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25054 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25055 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25056 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25057 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25058 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25059 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25060 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25061 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25062 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25063 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25064 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25065 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25066 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25067 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25068 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25069 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25070 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25071 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25072 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25073 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25074 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25075 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25076 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25077 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25078 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25079 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25080 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25081 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25082 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25083 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25084 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25086 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25088 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25090 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25092 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25094 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25096 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25098 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25099 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25100 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25101
25102 * stdlib/tst-strtod.h (F16): New macro.
25103 (F32): Likewise.
25104 (F64): Likewise.
25105 (F32X): Likewise.
25106 (F64X): Likewise.
25107 (F128X): Likewise.
25108 (IF_FLOAT16): Likewise.
25109 (IF_FLOAT32): Likewise.
25110 (IF_FLOAT64): Likewise.
25111 (IF_FLOAT32X): Likewise.
25112 (IF_FLOAT64X): Likewise.
25113 (IF_FLOAT128X): Likewise.
25114 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25115 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25116 (STRTOD_TEST_FOREACH): Likewise.
25117 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25118 (CHOOSE_f64): Likewise.
25119 (CHOOSE_f32x): Likewise.
25120 (CHOOSE_f64x): Likewise.
25121
25122 2017-11-07 Andreas Schwab <schwab@suse.de>
25123
25124 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25125
25126 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25127
25128 [BZ #22403]
25129 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25130 to be escaped.
25131 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25132 to be escaped.
25133
25134 2017-11-07 Claude Paroz <claude@2xlibre.net>
25135
25136 [BZ #22403]
25137 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25138 to be escaped.
25139 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25140 to be escaped.
25141 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25142 to be escaped.
25143
25144 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25145
25146 [BZ #22298]
25147 * nptl/allocatestack.c (allocate_stack): Check if
25148 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25149 __PTHREAD_MUTEX_HAVE_PREV is defined.
25150 * nptl/descr.h (pthread): Likewise.
25151 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25152 Likewise.
25153 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25154 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25155 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25156 * sysdeps/nptl/bits/thread-shared-types.h
25157 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25158 defines.
25159 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25160 of __WORDSIZE for internal layout.
25161 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25162 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25163 instead of __WORDSIZE whether to use an union for __spins and __list
25164 fields.
25165 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25166 case.
25167 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25168 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25169 defines.
25170 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25171 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25172 Likewise.
25173 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25174 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25175 Likewise.
25176 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25177 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25178 Likewise.
25179 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25180 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25181 Likewise.
25182 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25183 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25184 Likewise.
25185 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25186 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25187 Likewise.
25188 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25189 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25190 Likewise.
25191 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25192 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25193 Likewise.
25194 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25195 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25196 Likewise.
25197 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25198 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25199 Likewise.
25200 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25201 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25202 Likewise.
25203 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25204 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25205 Likewise.
25206 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25207 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25208 Likewise.
25209 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25210 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25211 Likewise.
25212
25213 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25214 New macros.
25215 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25216 checks for expected input type size.
25217 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25218 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25219 Likewise.
25220 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25221 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25222 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25223 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25224 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25225 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25226 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25227 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25228 superflous runtime assert check.
25229 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25230 Likewise.
25231 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25232 Likewise.
25233 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25234 Likewise.
25235 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25236 Likewise.
25237 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25238 Likewise.
25239 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25240 Likewise.
25241 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25242 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25243 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25244 Likewise.
25245 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25246 Likewise.
25247 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25248 Likewise.
25249 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25250 Likewise.
25251 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25252 Likewise.
25253 * nptl/pthread_attr_setinheritsched.c
25254 (__pthread_attr_setinheritsched): Likewise.
25255 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25256 Likewise.
25257 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25258 Likewise.
25259 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25260 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25261 __old_pthread_attr_setstack): Likewise.
25262 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25263 Likewise.
25264 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25265 Likewise.
25266 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25267 Likewise.
25268 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25269 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25270 Likewise.
25271 * nptl/tst-typesizes.c: Remove file.
25272
25273 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25274 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25275 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25276 checks for internal pthread_mutex_t offsets.
25277 * sysdeps/aarch64/nptl/pthread-offsets.h
25278 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25279 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25280 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25281 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25282 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25283 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25284 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25285 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25286 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25287 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25288 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25289 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25290 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25291 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25292 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25293 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25294 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25295 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25296
25297 2017-11-07 Florian Weimer <fweimer@redhat.com>
25298
25299 * bits/mman-linux.h: Move ...
25300 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25301 comment.
25302 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25303 outdated comment.
25304
25305 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25306
25307 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25308 Redefine STRNLEN as __strnlen_power8.
25309
25310 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25311
25312 * signal/sighold.c (sighold): Optimize implementation.
25313
25314 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25315 __NR_rt_sigqueueinfo.
25316
25317 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25318 __sigtimedwait.
25319 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25320 assume __NR_rt_sigtimedwait.
25321 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25322 and add LIBC_CANCEL_HANDLED for cancellation marking.
25323 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25324
25325 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25326 (sysdeps_routines): Add memchr_noneon.
25327 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25328 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25329 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25330 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25331 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25332 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25333 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25334
25335 * sysdeps/arm/arm-ifunc.h: New file.
25336 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25337 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25338 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25339 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25340 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25341 (__memcpy_neon): Avoid create hidden alias.
25342 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25343 (__memcpy_vfp): Likewise.
25344 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25345 (sysdep_routines): Add memcpy_arm.
25346 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25347
25348 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25349
25350 [BZ #22362]
25351 * Makerules (make-link-multidir): New.
25352 * config.make.in (multidir): New.
25353 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25354 * configure: Regenerated.
25355 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25356 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25357 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25358 New target.
25359
25360 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25361
25362 [BZ #22402]
25363 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25364 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25365
25366 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25367
25368 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25369 to be escaped.
25370
25371 2017-11-04 Florian Weimer <fweimer@redhat.com>
25372
25373 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25374
25375 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25376
25377 * math/math.h [__HAVE_DISTINCT_FLOAT16
25378 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25379 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25380 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25381 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25382 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25383 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25384 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25385 (__MATH_TG_F32): New macro.
25386 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25387 (__MATH_TG_F64X): Likewise.
25388 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25389 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25390
25391 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25392
25393 * po/de.po: Update translations.
25394 * po/ru.po: Likewise.
25395
25396 2017-11-03 Florian Weimer <fweimer@redhat.com>
25397
25398 * manual/filesys.texi (Hard Links): Document linkat.
25399
25400 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25401
25402 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25403 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25404 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25405 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25406 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25407 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25408 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25409 the same as _Float128.
25410 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25411 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25412 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25413
25414 * stdlib/stdlib.h
25415 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25416 Declare.
25417 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25418 Likewise.
25419 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25420 Likewise.
25421 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25422 (strtof32x): Likewise.
25423 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25424 (strtof64x): Likewise.
25425 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25426 (strtof128x): Likewise.
25427 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25428 (strfromf16): Likewise.
25429 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25430 (strfromf32): Likewise.
25431 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25432 (strfromf64): Likewise.
25433 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25434 (strfromf32x): Likewise.
25435 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25436 (strfromf64x): Likewise.
25437 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25438 (strfromf128x): Likewise.
25439 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25440 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25441 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25442 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25443 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25444 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25445
25446 2017-11-03 Richard Henderson <rth@twiddle.net>
25447
25448 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25449
25450 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25451
25452 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25453
25454 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25455
25456 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25457 DT_TLSDESC_GOT initialization.
25458 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25459 (_dl_tlsdesc_resolve_hold): Likewise.
25460 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25461 (_dl_tlsdesc_resolve_hold): Likewise.
25462 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25463 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25464
25465 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25466
25467 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25468
25469 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25470
25471 [BZ #18572]
25472 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25473 non-lazily for R_ARM_TLS_DESC.
25474
25475 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25476
25477 [BZ #17078]
25478 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25479 R_ARM_TLS_DESC case.
25480 (elf_machine_lazy_rel): Remove the prelink check.
25481
25482 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25483
25484 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25485 DT_TLSDESC_GOT initialization.
25486 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25487 (_dl_tlsdesc_resolve_rela): Likewise.
25488 (_dl_tlsdesc_resolve_hold): Likewise.
25489 (_dl_tlsdesc_undefweak): Remove ldar.
25490 (_dl_tlsdesc_dynamic): Likewise.
25491 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25492 (_dl_tlsdesc_resolve_rela): Likewise.
25493 (_dl_tlsdesc_resolve_hold): Likewise.
25494 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25495 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25496 (_dl_tlsdesc_resolve_rela): Likewise.
25497 (_dl_tlsdesc_resolve_hold): Likewise.
25498
25499 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25500
25501 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25502 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25503
25504 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25505
25506 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25507 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25508
25509 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25510
25511 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25512 Declare.
25513 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25514 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25515 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25516 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25517 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25518 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25519 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25520 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25521 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25522 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25523 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25524
25525 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25526
25527 [BZ #22382]
25528 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25529 * localedata/locales/tpi_PG: Add standard header.
25530
25531 2017-11-02 Florian Weimer <fweimer@redhat.com>
25532
25533 test-errno-linux: quotactl can fail with EPERM in containers.
25534 * sysdeps/unix/sysv/linux/test-errno-linux.c
25535 (LIST, LIST_FORWARD): New macros.
25536 (check_error_in_list): New function.
25537 (test_wrp_rv): Accept list of permitted error codes.
25538 (test_wrp_rv2): Remove.
25539 (test_wrp): Call test_wrp_rv with list of error codes.
25540 (test_wrp2): Accept list of error codes.
25541 (do_test): Adjust. Allow EPERM for quotactl.
25542
25543 2017-11-02 Florian Weimer <fweimer@redhat.com>
25544
25545 * stdio-common/bug16.c (do_test): Use array_length.
25546 * stdio-common/errlist.c (_sys_nerr): Likewise.
25547 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25548 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25549 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25550 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25551 (do_test): Use array_length.
25552 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25553 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25554 * stdio-common/tst-printf-round.c (do_test): Likewise.
25555 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25556 (CHECK): Use array_length.
25557 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25558 * stdio-common/tstscanf.c (main): Likewise.
25559 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25560
25561 2017-11-02 Florian Weimer <fweimer@redhat.com>
25562
25563 Add array_length and array_end macros.
25564 * include/array_length.h: New file.
25565
25566 2017-11-02 Florian Weimer <fweimer@redhat.com>
25567
25568 [BZ #22332]
25569 * posix/tst-glob-tilde.c (do_noescape): New variable.
25570 (one_test): Process it.
25571 (do_test): Set do_noescape. Add unescaping test case.
25572
25573 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25574
25575 * math/complex.h
25576 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25577 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25578 with appropriate macros defined and undefined.
25579 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25580 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25581 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25582 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25583 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25584 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25585 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25586 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25587 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25588 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25589
25590 * math/complex.h
25591 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25592 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25593 that for long double. Do not condition define and undefine of
25594 _Mdouble_complex_ on [__CFLOAT128].
25595
25596 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25597
25598 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25599 of <sysdeps/generic/sysdep.h>.
25600 (ALIGNARG): Removed.
25601 (ASM_SIZE_DIRECTIVE): Likewise.
25602 (ENTRY): Likewise.
25603 (END): Likewise.
25604 (ENTRY_CHK): Likewise.
25605 (END_CHK): Likewise.
25606 (syscall_error): Likewise.
25607 (mcount): Likewise.
25608 (PSEUDO_END): Likewise.
25609 (L): Likewise.
25610 (atom_text_section): Likewise.
25611 * sysdeps/x86/sysdep.h: New file.
25612 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25613 of <sysdeps/generic/sysdep.h>.
25614 (ALIGNARG): Removed.
25615 (ASM_SIZE_DIRECTIVE): Likewise.
25616 (ENTRY): Likewise.
25617 (END): Likewise.
25618 (ENTRY_CHK): Likewise.
25619 (END_CHK): Likewise.
25620 (syscall_error): Likewise.
25621 (mcount): Likewise.
25622 (PSEUDO_END): Likewise.
25623 (L): Likewise.
25624 (atom_text_section): Likewise.
25625
25626 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25627
25628 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25629 category of LC_CTYPE set to "i18n:2012".
25630 * localedata/locales/i18n_ctype: Regenerate.
25631
25632 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25633
25634 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25635 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25636 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25637 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25638
25639 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25640 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25641 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25642 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25643
25644 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25645
25646 * math/complex.h
25647 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25648 New macro.
25649 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25650 Likewise.
25651 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25652 Likewise.
25653 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25654 (CMPLXF32X): Likewise.
25655 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25656 (CMPLXF64X): Likewise.
25657 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25658 (CMPLXF128X): Likewise.
25659
25660 * math/math.h
25661 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25662 (__MATH_EVAL_FMT2): Define to add 0.0f.
25663
25664 2017-10-31 Alan Modra <amodra@gmail.com>
25665
25666 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25667 include sysdep.h.
25668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25680 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25681 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25682 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25683 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25684 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25685 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25686 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25687 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25688 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25689 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25690 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25691 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25692 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25693 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25694 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25695 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25696 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25697 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25698 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25699 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25700 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25701 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25702 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25703 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25704 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25705 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25706 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25707 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25708 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25709 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25710 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25711 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25712 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25713 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25714 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25715 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25716 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25717 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25718 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25719 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25720 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25721 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25722 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25723 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25724 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25725 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25726 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25727 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25728 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25729 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25730 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25731 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25732 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25733 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25734 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25735 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25736 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25737
25738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25739 include sysdep.h and math_ldbl_opt.h.
25740
25741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25742 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25767
25768 2017-10-31 Alan Modra <amodra@gmail.com>
25769
25770 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25771 string/strncase_l.c, not string/strncase.c.
25772 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25773 (libc_hidden_def): Redefine.
25774
25775 2017-10-31 Alan Modra <amodra@gmail.com>
25776
25777 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25778 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25779 (__strcasecmp): Don't define.
25780
25781 2017-10-31 Alan Modra <amodra@gmail.com>
25782
25783 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25784 IS_IN (libc).
25785 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25786 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25787 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25788
25789 2017-10-31 Alan Modra <amodra@gmail.com>
25790
25791 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25792 USE_AS_STPNCPY.
25793
25794 2017-10-31 Alan Modra <amodra@gmail.com>
25795
25796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25797 Redefine only when SHARED.
25798
25799 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25800
25801 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25802 Include <bits/math-finite.h> with appropriate macros defined and
25803 undefined.
25804 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25805 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25806 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25807 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25808 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25809
25810 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25811 [!_Mlong_double_] (_Mlong_double_): Likewise.
25812 [!_Mfloat16_] (_Mfloat16_): Likewise.
25813 [!_Mfloat32_] (_Mfloat32_): Likewise.
25814 [!_Mfloat64_] (_Mfloat64_): Likewise.
25815 [!_Mfloat128_] (_Mfloat128_): Likewise.
25816 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25817 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25818 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25819 (_Mdouble_): Define without indirection through those macros.
25820 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25821 [!_Mfloat128_] (_Mfloat128_): Likewise.
25822 [_Mlong_double_] (_Mlong_double_): Likewise.
25823 (_Mdouble_): Define without indirection through those macros.
25824 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25825 not add -D_Mlong_double_=double.
25826 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25827 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25828
25829 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25830
25831 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25832
25833 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25834
25835 * sysdeps/x86/libc-start.c: Reformat.
25836
25837 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25838
25839 [BZ #22353]
25840 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25841 (1): Renamed to ...
25842 (L(Src0)): This.
25843 (L(Src1)): New.
25844 (L(Src2)): Likewise.
25845 (L(1)): Renamed to ...
25846 (L(Src3)): This.
25847
25848 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25849
25850 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25851 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25852 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25853 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25854 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25855 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25856 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25857 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25858 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25859 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25860 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25861 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25862 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25863 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25864 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25865 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25866 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25867 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25868 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25869 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25870 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25871 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25872 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25873 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25874 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25875 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25876 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25877 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25878 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25879 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25880 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25881 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25882 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25883 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25884 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25885 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25886 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25887 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25888 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25889 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25890 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25891 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25892 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25893 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25894 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25895 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25896 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25897 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25898 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25899 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25900 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25901 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25902 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25903 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25904 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25905 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25906 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25907 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25908 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25909 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25910 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25911 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25912 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25913 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25914 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25915 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25916
25917 2017-10-30 Florian Weimer <fweimer@redhat.com>
25918
25919 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25920 always defined.
25921 * io/tst-mkdirat.c (do_test): Likewise.
25922 * io/tst-mkfifoat.c (do_test): Likewise.
25923 * io/tst-mknodat.c (do_test): Likewise.
25924 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25925 * locale/programs/locale.c (select_dirs): Likewise.
25926 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25927 * posix/bug-glob2.c (my_readdir): Likewise.
25928 * posix/tst-dir.c (main): Likewise.
25929 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25930 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25931
25932 2017-10-30 Florian Weimer <fweimer@redhat.com>
25933
25934 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25935 just __USE_GNU.
25936
25937 2017-10-30 Florian Weimer <fweimer@redhat.com>
25938
25939 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25940 Convert to support/test-driver.c.
25941 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25942 New macro parameters.
25943 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25944 * posix/tst-gnuglob.c: New file.
25945 * posix/tst-gnuglob64.c: Likewise.
25946 * posix/Makefile (tests): Add tst-gnuglob64.
25947
25948 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25949
25950 [BZ #19485]
25951 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25952 and use a better translation for March in “mon”.
25953 * localedata/locales/csb_PL: Use more ASCII to improve the
25954 readability of the source.
25955
25956 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25957
25958 [BZ #13953]
25959 * localedata/locales/km_KH: Use ASCII as much
25960 as possible for better readability of the source and
25961 remove useless comments.
25962 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25963 was commented out and apparently wrong anyway because it was
25964 using Lao characters. If Buddhist era should be used
25965 for km_KH, a native speaker should write the correct formaat
25966 for Khmer.
25967 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25968 (According to CLDR, the first weekday for Cambodia is Sunday).
25969 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25970 (These were using Lao characters which must be wrong. If we get
25971 the correct data from a native speaker, we could add it back, until
25972 then it is better not to have name_mr and name_mrs at all than
25973 having it wrong).
25974
25975 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25976
25977 * locale/loadlocale.c: Correct size of
25978 _nl_value_type_LC_<category> arrays.
25979
25980 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25981
25982 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25983 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25984 with appropriate macros defined and undefined.
25985 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25986 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25987 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25988 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25989 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25990
25991 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25992
25993 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25994 "-O2 -march=i586".
25995
25996 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25997
25998 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25999 with lowercase letters to make it agree with CLDR.
26000
26001 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26002
26003 [BZ #15260]
26004 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26005 first letters of yesstr and nostr in yesexpr and noexpr,
26006 not for the full words.
26007 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26008 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26009 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26010 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26011 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26012 first letters of yesstr and nostr in yesexpr and noexpr,
26013 until now only English was matched in yesexpr and noexpr.
26014 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26015 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26016 fil but not for tl. As tl and fil are very similar, using fil
26017 is probably better than using English.
26018
26019 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26020
26021 [BZ #21706]
26022 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26023 in yesstr and nostr.
26024
26025 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26026
26027 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26028 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26029 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26030 Likewise.
26031 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26032 Likewise.
26033 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26034 Likewise.
26035 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26036 Likewise.
26037 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26038 (SNANF128X): Likewise.
26039
26040 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26041 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26042 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26043 (HUGE_VAL_F32): Likewise.
26044 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26045 (HUGE_VAL_F64): Likewise.
26046 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26047 (HUGE_VAL_F32X): Likewise.
26048 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26049 (HUGE_VAL_F64X): Likewise.
26050 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26051 (HUGE_VAL_F128X): Likewise.
26052
26053 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26054
26055 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26056 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26057 for the br_FR locale.
26058
26059 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26060
26061 [BZ #21706]
26062 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26063
26064 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26065
26066 * locale/programs/record-status.h: Define globals, and function
26067 prototypes. Move function bodies...
26068 * locale/programs/record-status.c: ... to here. New file.
26069 * iconv/Makefile (iconv_prog-modules): Add record-status.
26070 * locale/Makefile (lib-modules): Likewise.
26071 * iconv/iconv_prog.c: Remove verbose.
26072 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26073 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26074 record a warning about ASCII compatibility.
26075 * locale/programs/ld-monetary.c (monetary_finish): If
26076 warn_int_curr_symbol is true then record a warning about the symbol
26077 not being in our ISO 4217 list.
26078 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26079 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26080 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26081 (OPT_NO_WARN): Define.
26082 (OPT_WARN): Define.
26083 (options): Add entry for --no-warnings, and --warnings.
26084 (set_warnings): New function to enable/disable warnings.
26085 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26086 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26087 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26088 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26089 Pass flags to generate_locale.
26090 (generate_locale): Accept new flag argument and pass it to localedef
26091 invocation.
26092 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26093 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26094
26095 * localedata/Makefile (test-input-data): Use full file name.
26096 * localedata/da_DK.in: Rename to...
26097 * localedata/da_DK.ISO-8859-1.in: ...this.
26098 * localedata/de_DE.in: Rename to...
26099 * localedata/de_DE.ISO-8859-1.in: ...this.
26100 * localedata/en_US.in: Rename to...
26101 * localedata/en_US.ISO-8859-1.in: ...this.
26102 * localedata/fr_FR.in: Rename to...
26103 * localedata/fr_FR.UTF-8.in: ... this.
26104 * localedata/hr_HR.in: Rename to...
26105 * localedata/hr_HR.ISO-8859-2.in: ...this.
26106 * localedata/hu_HU.in: Rename to...
26107 * localedata/hu_HU.UTF-8.in: ...this.
26108 * localedata/si_LK.in: Rename to...
26109 * localedata/si_LK.UTF-8.in: ...this.
26110 * localedata/sv_SE.in: Rename to...
26111 * localedata/sv_SE.ISO-8859-1.in: ...this.
26112 * localedata/tr_TR.in: Rename to...
26113 * localedata/tr_TR.UTF-8.in: ...this.
26114 * localedata/uk_UA.in: Rename to...
26115 * localedata/uk_UA.UTF-8.in: ...this.
26116 * localedata/sort-test.sh: Test file is locale name with the
26117 suffix.
26118
26119 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26120 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26121 file.
26122 * localedata/locales/i18n_ctype: Regenerate.
26123 * localedata/locales/tr_TR: Likewise.
26124 * localedata/locales/translit_circle: Likewise.
26125 * localedata/locales/translit_cjk_compat: Likewise.
26126 * localedata/locales/translit_combining: Likewise.
26127 * localedata/locales/translit_compat: Likewise.
26128 * localedata/locales/translit_font: Likewise.
26129 * localedata/locales/translit_fraction: Likewise.
26130
26131 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26132
26133 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26134 lxvd2x/stxvd2x with lvx/stvx.
26135 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26136
26137 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26138
26139 * include/alloc_buffer.h: Replace "if if " with "if " in
26140 comments.
26141 * sysdeps/mips/memcpy.S: Likkewise.
26142 * sysdeps/mips/memset.S: Likewise.
26143 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26144 Likewise.
26145 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26146 Likewise.
26147 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26148 Likewise.
26149
26150 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26151
26152 [BZ #15261]
26153 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26154 yesexpr and noexpr.
26155 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26156 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26157 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26158 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26159 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26160 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26161 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26162
26163 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26164
26165 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26166 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26167 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26168 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26169 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26170 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26171 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26172 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26173 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26174 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26175 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26176 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26177
26178 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26179
26180 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26181 as possible for better readability of the source.
26182 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26183 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26184 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26185 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26186 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26187 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26188 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26189 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26190 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26191 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26192 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26193 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26194 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26195 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26196 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26197 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26198 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26199 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26200 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26201 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26202 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26203 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26204 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26205 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26206 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26207 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26208 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26209 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26210 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26211 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26212 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26213 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26214 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26215 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26216 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26217 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26218 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26219 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26220 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26221 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26222 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26223 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26224 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26225 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26226 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26227 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26228 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26229 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26230 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26231 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26232 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26233 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26234 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26235 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26236 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26237 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26238 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26239 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26240 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26241 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26242 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26243 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26244 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26245 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26246 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26247 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26248 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26249 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26250 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26251 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26252 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26253 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26254 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26255 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26256 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26257 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26258 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26259 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26260 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26261 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26262 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26263 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26264 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26265 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26266 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26267 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26268 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26269 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26270 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26271 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26272 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26273 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26274 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26275 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26276 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26277 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26278 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26279 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26280 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26281 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26282 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26283 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26284 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26285 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26286 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26287 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26288 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26289 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26290 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26291 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26292 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26293 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26294 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26295 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26296 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26297 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26298 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26299 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26300 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26301 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26302 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26303 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26304 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26305 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26306 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26307 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26308 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26309 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26310 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26311 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26312 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26313 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26314 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26315 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26316 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26317 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26318 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26319 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26320 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26321 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26322 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26323 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26324 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26325 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26326 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26327 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26328 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26329 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26330 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26331 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26332 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26333 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26334 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26335 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26336 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26337 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26338 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26339 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26340 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26341 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26342 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26343 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26344 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26345 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26346 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26347 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26348 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26349 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26350 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26351 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26352 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26353 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26354 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26355 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26356
26357 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26358
26359 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26360 (Use first letters of yesstr and nostr correctly instead of using
26361 full words).
26362
26363 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26364
26365 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26366 (Use first letters of yesstr and nostr correctly).
26367
26368 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26369
26370 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26371 also check for the first characters of yesstr and nostr.
26372 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26373 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26374
26375 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26376
26377 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26378 also check for Chinese characters.
26379
26380 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26381
26382 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26383 match also for the contents of yesstr and nostr. As the first letter
26384 of yesstr and nostr is equal, checking only for the first letter
26385 is not enough.
26386
26387 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26388
26389 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26390 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26391
26392 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26393
26394 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26395 of main contributor.
26396
26397 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26398
26399 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26400 instead of using English.
26401
26402 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26403
26404 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26405 by including the first letters of nostr and yesexpr in the regexp.
26406 Also make it more readable by using ASCII where possible.
26407
26408 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26409
26410 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26411 the first letter of nostr in the regexp. It agrees with CLDR now.
26412 Also make it more readable by using ASCII where possible.
26413
26414 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26415
26416 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26417 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26418 these strings contain a U+17D6 (which somewhat looks like a colon)
26419 instead of a real colon to separate the full words for “yes”
26420 and “no” from the single letter responses.
26421
26422 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26423
26424 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26425 it agree with CLDR (include the first letter of yesstr).
26426 Also make it more readable by using ASCII where possible.
26427
26428 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26429
26430 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26431 and improve yesexpr and noexpr. The yesstr and nostr apparently
26432 came from CLDR. And CLDR has a bug there: these strings contain
26433 a U+0903 (which looks like a colon) instead of a real colon
26434 to separate the full words for “yes” and “no” from the single
26435 letter responses.
26436
26437 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26438
26439 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26440 letters of the full yesstr and nostr in yesexpr and noexpr.
26441
26442 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26443
26444 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26445 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26446 * localedata/locales/an_ES: Make source more readable by using ASCII
26447 where possible.
26448
26449 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26450
26451 [BZ #20952]
26452 * localedata/locales/yuw_PG: New file.
26453 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26454 * locale/iso-639.def: Add Yau (Uruwa).
26455
26456 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26457
26458 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26459
26460 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26461
26462 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26463 (__libc_realloc): Likewise.
26464 (_mid_memalign): Likewise.
26465 (__libc_calloc): Likewise.
26466
26467 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26468
26469 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26470 by adding the generic +1 and -0 as in all other locales.
26471 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26472 day names and make it more readable by using ASCII where possible.
26473
26474 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26475
26476 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26477 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26478
26479 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26480
26481 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26482 WNOHANG in waitpid call.
26483
26484 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26485
26486 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26487 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26488
26489 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26490 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26491 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26492 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26493 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26494 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26495 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26496 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26497 variables.
26498
26499 2017-10-23 Michael Collison <michael.collison@arm.com>
26500
26501 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26502 with __builtin_sqrt.
26503 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26504 with __builtin_sqrtf.
26505 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26506 with __builtin_ceil.
26507 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26508 with __builtin_ceilf.
26509 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26510 with __builtin_floor.
26511 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26512 with __builtin_floorf.
26513 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26514 with __builtin_fma.
26515 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26516 with __builtin_fmaf.
26517 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26518 with __builtin_fmax.
26519 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26520 with __builtin_fmaxf.
26521 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26522 with __builtin_fmin.
26523 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26524 with __builtin_fminf.
26525 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26526 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26527 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26528 with builtin_rint and conversion to int.
26529 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26530 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26531 with builtin_llround.
26532 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26533 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26534 with builtin_rint and conversion to long int.
26535 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26536 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26537 with builtin_lround.
26538 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26539 with builtin_lroundf.
26540 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26541 statements with __builtin_nearbyint.
26542 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26543 statements with __builtin_nearbyintf.
26544 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26545 with __builtin_rint.
26546 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26547 with __builtin_rintf.
26548 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26549 with __builtin_round.
26550 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26551 with __builtin_roundf.
26552 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26553 with __builtin_trunc.
26554 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26555 with __builtin_truncf.
26556 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26557 and s_l[l]round[f].c too.
26558
26559 2017-10-23 Alan Modra <amodra@gmail.com>
26560
26561 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26562 Adjust stack after restoring regs. Add missing LR cfi_restore.
26563
26564 2017-10-23 Alan Modra <amodra@gmail.com>
26565
26566 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26567 Move LR save and frame setup/teardown and LR restore to
26568 immediately around memset call. Provide cfi.
26569
26570 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26571
26572 * sysdeps/i386/fpu/e_powf.S: Removed.
26573 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26574 * sysdeps/i386/fpu/w_powf.c: Likewise.
26575 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26576 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26577 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26578 Add e_powf-sse2.
26579 (CFLAGS-e_powf-sse2.c): New.
26580 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26581 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26582
26583 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26584
26585 * sysdeps/i386/fpu/e_log2f.S: Removed.
26586 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26587 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26588 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26589 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26590 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26591 Add e_log2f-sse2.
26592 (CFLAGS-e_log2f-sse2.c): New.
26593 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26594 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26595
26596 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26597
26598 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26599 Add e_powf-fma.
26600 (CFLAGS-e_powf-fma.c): New.
26601 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26602 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26603
26604 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26605
26606 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26607 Add e_log2f-fma.
26608 (CFLAGS-e_log2f-fma.c): New.
26609 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26610 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26611
26612 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26613
26614 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26615 Add e_logf-fma.
26616 (CFLAGS-e_logf-fma.c): New.
26617 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26618 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26619
26620 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26621
26622 * sysdeps/i386/fpu/e_logf.S: Removed.
26623 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26624 * sysdeps/i386/fpu/w_logf.c: Likewise.
26625 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26626 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26627 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26628 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26629 Add e_logf-sse2.
26630 (CFLAGS-e_logf-sse2.c): New.
26631 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26632 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26633
26634 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26635
26636 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26637 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26638 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26639 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26640 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26641 Add e_exp2f-sse2.
26642 (CFLAGS-e_exp2f-sse2.c): New.
26643 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26644 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26645
26646 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26647
26648 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26649 Add e_exp2f-fma.
26650 (CFLAGS-e_exp2f-fma.c): New.
26651 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26652 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26653
26654 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26655
26656 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26657 * sysdeps/i386/fpu/e_expf.S: Likewise.
26658 * sysdeps/i386/fpu/math_errf.c: Likewise.
26659 * sysdeps/i386/fpu/w_expf.c: Likewise.
26660 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26661 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26662 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26663 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26664 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26665 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26666 Remove e_expf-ia32.
26667 (CFLAGS-e_expf-sse2.c): New.
26668 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26669 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26670
26671 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26672
26673 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26674 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26675 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26676 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26677 e_expf.c.
26678 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26679 New.
26680 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26681 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26682 Renamed to ...
26683 (__redirect_expf): This.
26684 (SYMBOL_NAME): Changed to expf.
26685 (__ieee754_expf): Renamed to ...
26686 (__expf): This.
26687 (__GI___expf): This.
26688 (__ieee754_expf): Add strong_alias.
26689 (__expf_finite): Likewise.
26690 (__expf): New.
26691 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26692
26693 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26694
26695 [BZ #22332]
26696 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26697 unescaping.
26698
26699 2017-10-21 Florian Weimer <fweimer@redhat.com>
26700
26701 * posix/Makefile (tests): Add tst-glob-tilde.
26702 (tests-special): Add tst-glob-tilde-mem.out
26703 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26704 (tst-glob-tilde-mem.out): Add mtrace check.
26705 * posix/tst-glob-tilde.c: New file.
26706
26707 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26708
26709 * bits/floatn-common.h: New file.
26710 * math/Makefile (headers): Add bits/floatn-common.h.
26711 * bits/floatn.h: Include <bits/floatn-common.h>.
26712 * sysdeps/ia64/bits/floatn.h: Likewise.
26713 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26714 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26715 * sysdeps/powerpc/bits/floatn.h: Likewise.
26716 * sysdeps/x86/bits/floatn.h: Likewise.
26717
26718 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26719
26720 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26721 indicates whether compiler emits an warning for alias for
26722 functions with incompatible types.
26723
26724 [BZ #22273]
26725 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26726 the auxiliary process is terminated by a signal before calling _exit
26727 or execve.
26728
26729 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26730
26731 [BZ #21265]
26732 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26733 New.
26734 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26735 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26736 and bit_arch_XSAVEC_Usable if needed.
26737 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26738 and bit_arch_Use_dl_runtime_resolve_opt.
26739 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26740 Removed.
26741 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26742 (bit_arch_Prefer_No_AVX512): Updated.
26743 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26744 (bit_arch_XSAVEC_Usable): New.
26745 (STATE_SAVE_OFFSET): Likewise.
26746 (STATE_SAVE_MASK): Likewise.
26747 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26748 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26749 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26750 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26751 (index_arch_XSAVEC_Usable): New.
26752 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26753 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26754 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26755 is enabled.
26756 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26757 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26758 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26759 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26760 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26761 _dl_runtime_resolve_xsavec.
26762 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26763 Removed.
26764 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26765 instead of VEC_SIZE.
26766 (REGISTER_SAVE_BND0): Removed.
26767 (REGISTER_SAVE_BND1): Likewise.
26768 (REGISTER_SAVE_BND3): Likewise.
26769 (REGISTER_SAVE_RAX): Always defined to 0.
26770 (VMOV): Removed.
26771 (_dl_runtime_resolve_avx): Likewise.
26772 (_dl_runtime_resolve_avx_slow): Likewise.
26773 (_dl_runtime_resolve_avx_opt): Likewise.
26774 (_dl_runtime_resolve_avx512): Likewise.
26775 (_dl_runtime_resolve_avx512_opt): Likewise.
26776 (_dl_runtime_resolve_sse): Likewise.
26777 (_dl_runtime_resolve_sse_vex): Likewise.
26778 (USE_FXSAVE): New.
26779 (_dl_runtime_resolve_fxsave): Likewise.
26780 (USE_XSAVE): Likewise.
26781 (_dl_runtime_resolve_xsave): Likewise.
26782 (USE_XSAVEC): Likewise.
26783 (_dl_runtime_resolve_xsavec): Likewise.
26784 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26785 Removed.
26786 (_dl_runtime_resolve_avx512_opt): Likewise.
26787 (_dl_runtime_resolve_avx): Likewise.
26788 (_dl_runtime_resolve_avx_opt): Likewise.
26789 (_dl_runtime_resolve_sse): Likewise.
26790 (_dl_runtime_resolve_sse_vex): Likewise.
26791 (_dl_runtime_resolve_fxsave): New.
26792 (_dl_runtime_resolve_xsave): Likewise.
26793 (_dl_runtime_resolve_xsavec): Likewise.
26794
26795 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26796
26797 [BZ #22320]
26798 CVE-2017-15670
26799 * posix/glob.c (__glob): Fix one-byte overflow.
26800
26801 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26802
26803 * malloc/malloc.c (sysdep-cancel.h): Add include.
26804
26805 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26806
26807 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26808
26809 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26810
26811 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26812 (tests): Remove $(objpfx)ga_test depdendency.
26813 * resolv/ga_test.c: Remove file.
26814
26815 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26816
26817 [BZ #18812]
26818 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26819 * localedata/locales/kab_DZ: New file.
26820
26821 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26822
26823 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26824 _dl_relocate_static_pie instead of _dl_start to compute load
26825 address in static PIE.
26826
26827 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26828
26829 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26830
26831 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26832
26833 [BZ #13605]
26834 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26835 * localedata/locales/shn_MM: New file.
26836
26837 2017-10-20 Florian Weimer <fweimer@redhat.com>
26838
26839 [BZ #22321]
26840 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26841 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26842 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26843 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26844 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26845 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26846
26847 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26848
26849 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26850
26851 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26852
26853 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26854
26855 [BZ #22322]
26856 * sysdeps/mips/bits/long-double.h: Move to ....
26857 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26858
26859 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26860
26861 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26862
26863 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26864 H.J. Lu <hongjiu.lu@intel.com>
26865
26866 [BZ #22299]
26867 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26868 GLRO(dl_platform) to NULL.
26869 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26870 (modules-names): Add tst-platformmod-1 and
26871 x86_64/tst-platformmod-2.
26872 (CFLAGS-tst-platform-1.c): New.
26873 (CFLAGS-tst-platformmod-1.c): Likewise.
26874 (CFLAGS-tst-platformmod-2.c): Likewise.
26875 (LDFLAGS-tst-platformmod-2.so): Likewise.
26876 ($(objpfx)tst-platform-1): Likewise.
26877 ($(objpfx)tst-platform-1.out): Likewise.
26878 (tst-platform-1-ENV): Likewise.
26879 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26880 * sysdeps/x86_64/tst-platform-1.c: New file.
26881 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26882 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26883
26884 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26885
26886 [BZ #13994]
26887 * locale/iso-639.def: Add Karbi.
26888 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26889 * localedata/locales/mjw_IN: New file.
26890
26891 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26892
26893 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26894 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26895 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26896 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26897 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26898 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26899 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26900 <bits/floatn.h>.
26901 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26902 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26903 * manual/math.texi (Mathematics): Document additional architecture
26904 support for _Float128.
26905 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26906 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26907 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26908 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26909 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26910 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26911 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26912 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26913 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26914 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26915 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26916 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26917 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26918 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26919 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26920
26921 2017-10-18 Renlin Li <renlin.li@arm.com>
26922
26923 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26924 _DYNAMIC symbol to calculate load address.
26925
26926 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26927
26928 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26929 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26930 summary bits.
26931 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26932 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26933
26934 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26935
26936 [BZ #16777]
26937 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26938 and improve readability by using more ASCII.
26939 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26940 and improve readability by using more ASCII.
26941
26942 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26943
26944 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26945 not all targets support atomics on bool.
26946
26947 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26948
26949 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26950 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26951 __f128.
26952 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26953 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26954 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26955 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26956 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26957 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26958
26959 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26960
26961 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26962 defines.
26963
26964 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26965
26966 [BZ #22159]
26967 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26968 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26969 (do_check_remalloced_chunk): Fix build bug.
26970 (do_check_malloc_state): Add assert that checks arena->top.
26971 (malloc_consolidate): Remove initialization.
26972 (int_mallinfo): Remove call to malloc_consolidate.
26973 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26974
26975 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26976
26977 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26978 (have_fastchunks): Remove.
26979 (clear_fastchunks): Remove.
26980 (set_fastchunks): Remove.
26981 (malloc_state): Add have_fastchunks.
26982 (malloc_init_state): Use have_fastchunks.
26983 (do_check_malloc_state): Remove incorrect invariant checks.
26984 (_int_malloc): Use have_fastchunks.
26985 (_int_free): Likewise.
26986 (malloc_consolidate): Likewise.
26987
26988 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26989
26990 * malloc/malloc.c (tcache_put): Inline.
26991 (tcache_get): Inline.
26992
26993 2017-10-17 Jordi Mallach <jordi@gnu.org>
26994
26995 Aurelien Jarno <aurelien@aurel32.net>
26996 [BZ #2522]
26997 * localedata/locales/ca_ES@valencia: New file.
26998 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26999
27000 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27001
27002 [BZ #22296]
27003 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27004 < 6.x
27005
27006 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27007
27008 * scripts/build-many-glibcs.py (Context.add_all_configs):
27009 Add arm-linux-gnueabihf multiarch extra_glibcs.
27010
27011 * sysdeps/generic/ifunc-init.h: New file.
27012 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27013
27014 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27015
27016 [BZ #22019]
27017 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27018 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27019 * stdlib/tst-strfmon_l.c: adapt test case.
27020
27021 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27022
27023 * sysdeps/generic/float128-abi.h: New file.
27024 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27025 non-__prefixed symbols to ....
27026 * math/Versions: ... here. Include <float128-abi.h>.
27027 * stdlib/Versions ... and here. Include <float128-abi.h>
27028
27029 2017-10-16 Florian Weimer <fweimer@redhat.com>
27030
27031 * version.h (VERSION): Switch to ".9000" as the development
27032 version suffix.
27033
27034 2017-10-16 Florian Weimer <fweimer@redhat.com>
27035
27036 [BZ #22050]
27037 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27038 compat_symbol_reference to access non-default version.
27039
27040 2017-10-16 Florian Weimer <fweimer@redhat.com>
27041
27042 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27043
27044 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27045
27046 * include/shlib-compat.h (compat_symbol_reference): Update
27047 comment.
27048
27049 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27050
27051 * math/Makefile (test-types): Add
27052 $(type-float128-$(float128-alias-fcts)).
27053 * math/test-float128.h (TYPE_STR): Define conditional on
27054 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27055 (ULP_IDX): Likewise.
27056 (ULP_I_IDX): Likewise.
27057
27058 * stdlib/strtold.c: Include <bits/floatn.h>
27059 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27060 and later undefine as macro. Define as weak alias if
27061 [!USE_WIDE_CHAR].
27062 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27063 and later undefine as macro. Define as weak alias if
27064 [USE_WIDE_CHAR].
27065 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27066 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27067 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27068 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27069 Define and later undefine as macro. Define as weak alias if
27070 [USE_WIDE_CHAR].
27071 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27072 <bits/floatn.h>.
27073 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27074 Define and later undefine as macro. Define as weak alias if
27075 [!USE_WIDE_CHAR].
27076 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27077 Define and later undefine as macro. Define as weak alias if
27078 [USE_WIDE_CHAR].
27079
27080 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27081
27082 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27083 record_verbose messages.
27084
27085 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27086
27087 [BZ #22052]
27088 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27089 to silence -O3 -Wall warning with GCC 7.
27090
27091 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27092
27093 * Makeconfig (+link-static-before-libc): Use the first of
27094 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27095 * gmon/Makefile (tests): Add tst-gmon-static.
27096 (tests-static): Likewise.
27097 (CFLAGS-tst-gmon-static.c): New.
27098 (CRT-tst-gmon-static): Likewise.
27099 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27100 (tst-gmon-static-ENV): Likewise.
27101 (tests-special): Likewise.
27102 ($(objpfx)tst-gmon-static.out): Likewise.
27103 (clean-tst-gmon-static-data): Likewise.
27104 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27105 * gmon/tst-gmon-static-gprof.sh: New file.
27106 * gmon/tst-gmon-static.c: Likewise.
27107
27108 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27109
27110 [BZ #22295]
27111 * locale/programs/linereader.c (get_string): Don't warn on
27112 non-symbolic character.
27113
27114 [BZ #22294]
27115 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27116 int_curr_symbol.
27117
27118 [BZ #22292]
27119 * locale/programs/record-status.h: New file
27120 * locale/programs/locale.c: Add comment.
27121 * locale/programs/charmap-dir.c: Don't include error.h.
27122 (charmap_opendir): Use record_error.
27123 * locale/programs/charmap.c: Don't include error.h.
27124 (charmap_read): Use record_error, and record_warning.
27125 (parse_charmap): Likewise.
27126 * locale/programs/ld-address.c: Don't include error.h.
27127 (address_finish): Use record_error, and record_warning.
27128 * locale/programs/ld-collate.c: Don't include error.h.
27129 (collate_finish): Use record_error, and record_error_at_line.
27130 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27131 (ctype_class_new): Likewise.
27132 (ctype_map_new): Likewise.
27133 (set_one_default): Likewise.
27134 (set_class_defaults): Likewise.
27135 (translit_flatten): Likewise.
27136 (allocate_arrays): Use record_error, and record_verbose.
27137 * locale/programs/ld-identification.c: Don't include error.h.
27138 (indentation_finish): Use record_error and record_warning.
27139 * locale/programs/ld-measurement.c: Don't include error.h.
27140 (measurement_finish): Use record_error.
27141 * locale/programs/ld-messages.c
27142 (message_finish): Likewise.
27143 * locale/programs/ld-monetary.c
27144 (monetary_finish): Likewise.
27145 * locale/programs/ld-name.c (name_finish): Use record_error
27146 and record_warning.
27147 * locale/programs/ld-numeric.c
27148 (numeric_finish): Use record_error.
27149 * locale/programs/ld-paper.c: Don't include error.h.
27150 (paper_finish): Use record_error.
27151 * locale/programs/ld-telephone.c: Don't include error.h.
27152 (telephone_finish): Use record_error.
27153 * locale/programs/ld-time.c (time_finish): Likewise.
27154 * locale/programs/linereader.h (lr_error): Make inline func.
27155 * locale/programs/localedef.c: Define recorded_warning_count,
27156 and recorded_error_count.
27157 (main): Use record_error. Use recorded_error_count and
27158 recorded_warning_count to issue correct error returns.
27159 (add_to_readlist): Use record_error.
27160 (find_locale): Likewise.
27161 (load_locale): Likewise.
27162 * locale/programs/localedef.h: Remove be_quiet
27163 and WITH_CUR_LOCALE.
27164 * locale/programs/locarchive.c (compare_from_file): Use
27165 record_error.
27166 * locale/programs/locfile.c (write_locale_data): Use
27167 record_error.
27168 * locale/programs/repertoire.c: Dont include error.h.
27169 (repertoire_complain): Use record_error.
27170 * localedata/tst-fmon.sh: Expect failures from localedef.
27171 * localedata/tst-locale.sh: Likewise.
27172 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27173
27174 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27175 (REPORTS): Likewise.
27176 (check): Likewise.
27177 (i18n): Rename to...
27178 (i18n_ctype): ...this.
27179 (i18n-report): Rename to...
27180 (i18n_ctype-report): ...this.
27181 * localedata/locales/i18n_ctype: Regenerate.
27182 * localedata/locales/i18n: copy i18n_ctype.
27183
27184 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27185
27186 * stdlib/strfroml.c: Include <bits/floatn.h>.
27187 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27188 Define before include of <stdlib.h> and undefine afterwards, then
27189 define as weak alias.
27190
27191 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27192 Undefine and restore default definition. Use
27193 libm_alias_ldouble_other.
27194
27195 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27196
27197 [BZ #22153]
27198 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27199 in coredumps.
27200
27201 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27202
27203 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27204 Assign sym_map to be map for local symbols, as TLS relocations
27205 use sym_map to determine whether the symbol is defined and to
27206 extract the TLS information.
27207 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27208 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27209
27210 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27211
27212 [BZ #22189]
27213 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27214 (math_force_eval): Add powerpc version.
27215
27216 [BZ #22142]
27217 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27218 -DBL_MAX.
27219 (do_test): Likewise.
27220 * stdio-common/tst-printf.sh: Likewise.
27221 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27222 ifdef clause in order to set the carry bit right. Replace r0 by
27223 0 without changing the behavior.
27224
27225 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27226
27227 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27228 <libm-alias-ldouble.h>.
27229 (fabsl): Define using libm_alias_ldouble.
27230 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27231 <libm-alias-ldouble.h>.
27232 (fabsl): Define using libm_alias_ldouble.
27233
27234 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27235 Remove conditional code.
27236
27237 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27238 Rename to __clog10_internal_l.
27239 (__clog10_internal_l): Define aliases using
27240 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27241 with __clog10.
27242
27243 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27244
27245 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27246 * benchtests/sincosf-inputs: New file.
27247 * benchtests/cosf-inputs: New file.
27248 * benchtests/sinf-inputs: New file.
27249
27250 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27251
27252 * posix/tst-spawn.c (do_test): Wait for both children.
27253
27254 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27255
27256 [BZ #22284]
27257 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27258 tests-pie): Add tst-gmon-pie.
27259 (CFLAGS-tst-gmon-pie.c): New.
27260 (CRT-tst-gmon-pie): Likewise.
27261 (tst-gmon-pie-ENV): Likewise.
27262 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27263 ($(objpfx)tst-gmon-pie.out): Likewise.
27264 (clean-tst-gmon-pie-data): Likewise.
27265 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27266 * gmon/gmon.c [PIC]: Include <link.h>.
27267 [PIC] (callback): New function.
27268 (write_hist): Add an argument for load address. Subtract load
27269 address from PCs.
27270 (write_call_graph): Likewise.
27271 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27272 it to write_hist and write_call_graph.
27273 * gmon/tst-gmon-pie.c: New file.
27274
27275 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27276
27277 * math/Makefile (test-types-basic): New variable.
27278 (test-types): Likewise.
27279 (libm-test-support): Use $(test-types) instead of $(types).
27280 (libm-tests-base-normal): Likewise.
27281 (libm-tests-base-finite): Likewise.
27282 (libm-tests-base-inline): Likewise.
27283 (generated): Likewise.
27284 ($(objpfx)libm-test-support-$(t).c): Likewise.
27285 (libm-tests-for-type iterator): Likewise.
27286 (libm-test-support iterator): Likewise.
27287 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27288 (ulp_idx): Use ULP_IDX.
27289 * math/test-ldouble.h: Include <float.h>.
27290 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27291 (ULP_IDX): New macro.
27292 (ULP_I_IDX): Likewise.
27293 * math/test-double.h (ULP_IDX): Likewise.
27294 (ULP_I_IDX): Likewise.
27295 * math/test-float.h (ULP_IDX): Likewise.
27296 (ULP_I_IDX): Likewise.
27297 * math/test-float128.h (ULP_IDX): Likewise.
27298 (ULP_I_IDX): Likewise.
27299
27300 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27301
27302 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27303 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27304 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27305 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27306 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27307 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27308 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27309 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27310 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27311 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27312 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27313 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27314 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27315 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27316 (SINGLE_THREAD_BY_GLOBAL): Define.
27317 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27318 Likewise.
27319 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27320 Likewise.
27321 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27322 Likewise.
27323 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27324 Likewise.
27325 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27326 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27327 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27328 Likewise.
27329
27330 2017-10-11 Andreas Schwab <schwab@suse.de>
27331
27332 * nis/Makefile (aux): Remove.
27333 * nscd/Makefile (aux): Add nscd_hash.
27334 (nscd-modules): Likewise.
27335 ($(objpfx)nscd): Don't depend on libnsl.
27336 * nscd/nscd_hash.c: New file.
27337 * nscd/nscd_hash.h: Likewise.
27338 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27339 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27340 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27341 instead of <nis/rpcsvc/nis.h>.
27342 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27343
27344 2017-10-11 Florian Weimer <fweimer@redhat.com>
27345
27346 [BZ #22078]
27347 Avoid large NSS buffers with many addresses, aliases.
27348 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27349 using dynarrays and struct alloc_buffer.
27350 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27351 (tst-nss-files-hosts-multi): Link with -ldl.
27352 * nss/tst-nss-files-hosts-multi.c: New file.
27353
27354 2017-10-11 Florian Weimer <fweimer@redhat.com>
27355
27356 [BZ #18023]
27357 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27358 scratch_buffer. Eliminate gotos.
27359
27360 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27361
27362 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27363 libm_alias_ldouble_other.
27364 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27365 undefine and redefine.
27366 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27367 (exp10l): Do not define here.
27368 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27369 (weak_alias): Undefine and redefine.
27370 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27371 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27372 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27373 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27374
27375 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27376 [!__fma] (fma): Define using libm_alias_double.
27377 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27378 [!__fmaf] (fmaf): Define using libm_alias_float.
27379 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27380 (fmal): Define using libm_alias_ldouble.
27381
27382 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27383
27384 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27385 New macro.
27386 (libm_alias_double_other): Likewise.
27387 (libm_alias_double_r): Use libm_alias_double_other_r.
27388 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27389 New macro.
27390 (libm_alias_float_other): Likewise.
27391 (libm_alias_float_r): Use libm_alias_float_other_r.
27392 * sysdeps/generic/libm-alias-float128.h
27393 (libm_alias_float128_other_r): New macro.
27394 (libm_alias_float128_other): Likewise.
27395 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27396 * sysdeps/generic/libm-alias-ldouble.h
27397 (libm_alias_ldouble_other_r): New macro.
27398 (libm_alias_ldouble_other): Likewise.
27399 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27400 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27401 (libm_alias_double_other_r): New macro.
27402 (libm_alias_double_other): Likewise.
27403 (libm_alias_double_r): Use libm_alias_double_other_r.
27404 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27405 (libm_alias_ldouble_other_r): New macro.
27406 (libm_alias_ldouble_other): Likewise.
27407 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27408 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27409 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27410 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27411 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27412 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27413 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27414 * math/w_exp2f.c: Use libm_alias_float_other.
27415 * math/w_expf.c: Likewise.
27416 * math/w_log2f.c: Likewise.
27417 * math/w_logf.c: Likewise.
27418 * math/w_powf.c: Likewise.
27419 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27420 [!__exp2f]: Use libm_alias_float_other.
27421 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27422 [!__expf]: Use libm_alias_float_other.
27423 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27424 [!__log2f]: Use libm_alias_float_other.
27425 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27426 [!__logf]: Use libm_alias_float_other.
27427 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27428 [!__powf]: Use libm_alias_float_other.
27429
27430 2017-10-10 Florian Weimer <fweimer@redhat.com>
27431
27432 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27433 function.
27434 (_nss_files_gethostbyname3_r): Call it.
27435
27436 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27437
27438 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27439 error. Remove default definition of declare_mgen_alias.
27440 [!declare_mgen_alias_r]: Likewise.
27441 * sysdeps/generic/math-type-macros-double.h
27442 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27443 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27444 (declare_mgen_alias_r): Likewise.
27445 * sysdeps/generic/math-type-macros-float128.h
27446 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27447 * sysdeps/generic/math-type-macros-ldouble.h
27448 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27449 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27450 macro.
27451 (declare_mgen_alias_r_s): Likewise.
27452 (declare_mgen_alias_r): Likewise.
27453 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27454 (lgamma_r): Define using libm_alias_double_r.
27455 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27456 (lgammaf_r): Define using libm_alias_float_r.
27457 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27458 (lgammal_r): Define using libm_alias_ldouble_r.
27459 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27460 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27461
27462 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27463
27464 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27465 extern declaration.
27466
27467 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27468
27469 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27470
27471 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27472
27473 [BZ #21326]
27474 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27475 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27476 * math/Makefile (test-math-cxx11): New test.
27477 * math/test-math-cxx11.cc: New file.
27478
27479 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27480
27481 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27482
27483 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27484 call to allocate the slave pty file descriptor.
27485
27486 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27487
27488 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27489 [!__fma] (fma): Define using libm_alias_double.
27490 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27491 [!__fma] (fma): Define using libm_alias_double.
27492
27493 * sysdeps/ieee754/float128/float128_private.h: Include
27494 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27495 (libm_alias_ldouble_r): Undefine and redefine.
27496 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27497 <libm-alias-ldouble.h>.
27498 (asinhl): Define using libm_alias_ldouble.
27499 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27500 <libm-alias-ldouble.h>.
27501 (atanl): Define using libm_alias_ldouble.
27502 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27503 <libm-alias-ldouble.h>.
27504 (cbrtl): Define using libm_alias_ldouble.
27505 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27506 <libm-alias-ldouble.h>.
27507 (ceill): Define using libm_alias_ldouble.
27508 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27509 <libm-alias-ldouble.h>.
27510 (copysignl): Define using libm_alias_ldouble.
27511 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27512 <libm-alias-ldouble.h>.
27513 (cosl): Define using libm_alias_ldouble.
27514 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27515 <libm-alias-ldouble.h>.
27516 (erfl): Define using libm_alias_ldouble.
27517 (erfcl): Likewise.
27518 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27519 <libm-alias-ldouble.h>.
27520 (expm1l): Define using libm_alias_ldouble.
27521 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27522 <libm-alias-ldouble.h>.
27523 (fabsl): Define using libm_alias_ldouble.
27524 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27525 <libm-alias-ldouble.h>.
27526 (floorl): Define using libm_alias_ldouble.
27527 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27528 <libm-alias-ldouble.h>.
27529 (fmal): Define using libm_alias_ldouble.
27530 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27531 <libm-alias-ldouble.h>.
27532 (frexpl): Define using libm_alias_ldouble.
27533 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27534 libm_alias_ldouble.
27535 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27536 <libm-alias-ldouble.h>.
27537 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27538 libm_alias_ldouble.
27539 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27540 <libm-alias-ldouble.h>.
27541 (getpayloadl): Define using libm_alias_ldouble.
27542 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27543 <libm-alias-ldouble.h>.
27544 (llrintl): Define using libm_alias_ldouble.
27545 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27546 <libm-alias-ldouble.h>.
27547 (llroundl): Define using libm_alias_ldouble.
27548 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27549 <libm-alias-ldouble.h>.
27550 (logbl): Define using libm_alias_ldouble.
27551 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27552 <libm-alias-ldouble.h>.
27553 (lrintl): Define using libm_alias_ldouble.
27554 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27555 <libm-alias-ldouble.h>.
27556 (lroundl): Define using libm_alias_ldouble.
27557 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27558 <libm-alias-ldouble.h>.
27559 (modfl): Define using libm_alias_ldouble.
27560 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27561 <libm-alias-ldouble.h>.
27562 (nearbyintl): Define using libm_alias_ldouble.
27563 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27564 <libm-alias-ldouble.h>.
27565 (nextafterl): Define using libm_alias_ldouble.
27566 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27567 <libm-alias-ldouble.h>.
27568 (nextupl): Define using libm_alias_ldouble.
27569 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27570 <libm-alias-ldouble.h>.
27571 (remquol): Define using libm_alias_ldouble.
27572 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27573 <libm-alias-ldouble.h>.
27574 (rintl): Define using libm_alias_ldouble.
27575 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27576 <libm-alias-ldouble.h>.
27577 (roundevenl): Define using libm_alias_ldouble.
27578 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27579 <libm-alias-ldouble.h>.
27580 (roundl): Define using libm_alias_ldouble.
27581 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27582 using libm_alias_ldouble.
27583 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27584 <libm-alias-ldouble.h>.
27585 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27586 Define using libm_alias_ldouble.
27587 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27588 <libm-alias-ldouble.h>.
27589 (sincosl): Define using libm_alias_ldouble.
27590 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27591 <libm-alias-ldouble.h>.
27592 (sinl): Define using libm_alias_ldouble.
27593 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27594 <libm-alias-ldouble.h>.
27595 (tanhl): Define using libm_alias_ldouble.
27596 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27597 <libm-alias-ldouble.h>.
27598 (tanl): Define using libm_alias_ldouble.
27599 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27600 <libm-alias-ldouble.h>.
27601 (totalorderl): Define using libm_alias_ldouble.
27602 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27603 <libm-alias-ldouble.h>.
27604 (totalordermagl): Define using libm_alias_ldouble.
27605 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27606 <libm-alias-ldouble.h>.
27607 (truncl): Define using libm_alias_ldouble.
27608 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27609 libm_alias_ldouble.
27610 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27611 libm_alias_ldouble.
27612 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27613 <libm-alias-ldouble.h>.
27614 (weak_alias): Do not undefine and redefine.
27615 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27616 (copysignl): Define with long_double_symbol only if [IS_IN
27617 (libc)].
27618 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27619 <libm-alias-ldouble.h>.
27620 (weak_alias): Do not undefine and redefine.
27621 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27622 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27623 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27624 <libm-alias-ldouble.h>.
27625 (weak_alias): Do not undefine and redefine.
27626 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27627 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27628 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27629 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27630 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27631 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27632 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27633 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27634 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27635 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27636 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27637 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27638 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27639 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27640 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27641 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27642 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27643 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27644 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27645 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27646 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27647 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27648 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27649 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27650 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27651 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27652
27653 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27654
27655 [BZ #22111]
27656 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27657 (tcache_thread_freeres): Set tcache_shutting_down before
27658 freeing the tcache.
27659 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27660 * malloc/tst-malloc-tcache-leak.c: New file.
27661
27662 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27663
27664 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27665 back to powerpc32 file.
27666 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27667 (memrchr): Add __memrchr_power8 to ifunc list.
27668 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27669 extra bytes for unaligned inputs.
27670
27671 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27672
27673 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27674 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27675 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27676 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27677 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27678
27679 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27680
27681 * sysdeps/arm/libm-test-ulps: Update.
27682
27683 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27684 <libm-alias-ldouble.h>.
27685 (asinhl): Define using libm_alias_ldouble.
27686 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27687 <libm-alias-ldouble.h>.
27688 (cbrtl): Define using libm_alias_ldouble.
27689 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27690 <libm-alias-ldouble.h>.
27691 (copysignl): Define using libm_alias_ldouble.
27692 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27693 <libm-alias-ldouble.h>.
27694 (cosl): Define using libm_alias_ldouble.
27695 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27696 <libm-alias-ldouble.h>.
27697 (erfl): Define using libm_alias_ldouble.
27698 (erfcl): Likewise.
27699 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27700 <libm-alias-ldouble.h>.
27701 (fmal): Define using libm_alias_ldouble.
27702 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27703 <libm-alias-ldouble.h>.
27704 (frexpl): Define using libm_alias_ldouble.
27705 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27706 libm_alias_ldouble.
27707 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27708 <libm-alias-ldouble.h>.
27709 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27710 libm_alias_ldouble.
27711 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27712 <libm-alias-ldouble.h>.
27713 (getpayloadl): Define using libm_alias_ldouble.
27714 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27715 <libm-alias-ldouble.h>.
27716 (llrintl): Define using libm_alias_ldouble.
27717 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27718 <libm-alias-ldouble.h>.
27719 (llroundl): Define using libm_alias_ldouble.
27720 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27721 <libm-alias-ldouble.h>.
27722 (lrintl): Define using libm_alias_ldouble.
27723 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27724 <libm-alias-ldouble.h>.
27725 (lroundl): Define using libm_alias_ldouble.
27726 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27727 <libm-alias-ldouble.h>.
27728 (modfl): Define using libm_alias_ldouble.
27729 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27730 <libm-alias-ldouble.h>.
27731 (nextupl): Define using libm_alias_ldouble.
27732 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27733 <libm-alias-ldouble.h>.
27734 (remquol): Define using libm_alias_ldouble.
27735 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27736 <libm-alias-ldouble.h>.
27737 (roundevenl): Define using libm_alias_ldouble.
27738 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27739 <libm-alias-ldouble.h>.
27740 (roundl): Define using libm_alias_ldouble.
27741 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27742 using libm_alias_ldouble.
27743 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27744 <libm-alias-ldouble.h>.
27745 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27746 <libm-alias-ldouble.h>.
27747 (setpayloadsigl): Define using libm_alias_ldouble.
27748 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27749 <libm-alias-ldouble.h>.
27750 (sincosl): Define using libm_alias_ldouble.
27751 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27752 <libm-alias-ldouble.h>.
27753 (sinl): Define using libm_alias_ldouble.
27754 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27755 <libm-alias-ldouble.h>.
27756 (tanhl): Define using libm_alias_ldouble.
27757 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27758 <libm-alias-ldouble.h>.
27759 (tanl): Define using libm_alias_ldouble.
27760 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27761 <libm-alias-ldouble.h>.
27762 (totalorderl): Define using libm_alias_ldouble.
27763 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27764 <libm-alias-ldouble.h>.
27765 (totalordermagl): Define using libm_alias_ldouble.
27766 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27767 libm_alias_ldouble.
27768 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27769 libm_alias_ldouble.
27770
27771 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27772
27773 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27774 memmove_falkor.
27775 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27776 (__libc_ifunc_impl_list): Likewise.
27777 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27778 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27779
27780 * benchtests/bench-memmove-walk.c: New file.
27781 * benchtests/Makefile (string-benchset): Add it.
27782
27783 * benchtests/bench-memset-walk.c: New file.
27784 * benchtests/Makefile (string-benchset): Add it.
27785
27786 * benchtests/bench-memcpy-walk.c: New file.
27787 * benchtests/Makefile (string-benchset): Add it.
27788
27789 2017-10-05 Florian Weimer <fweimer@redhat.com>
27790
27791 nscd: Eliminate compilation time dependency in the build output.
27792 * nscd/nscd_stat.c (STATDATA_VERSION)
27793 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27794 (STATDATA_VERSION_FULL): New macro definitions.
27795 (compilation): Remove.
27796 (struct statdata): Adjust version member.
27797 (send_stats): Set version from STATDATA_VERSION_FULL.
27798 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27799
27800 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27801
27802 * configure.ac (--enable-add-ons): Remove option.
27803 (machine): Do not mention add-ons in comment.
27804 (LIBC_PRECONFIGURE): Likewise.
27805 (add_ons): Remove variable and sanity checks and logic to locate
27806 add-ons.
27807 (add_ons_automatic): Remove variable.
27808 (configured_add_ons): Likewise.
27809 (add_ons_sfx): Likewise.
27810 (add_ons_pfx): Likewise.
27811 (add_on_subdirs): Likewise.
27812 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27813 consideration of add-ons in Implies handling.
27814 (sysdeps_add_ons): Likewise.
27815 * configure: Regenerated.
27816 * libidn/configure.ac: Remove.
27817 * libidn/configure: Likewise.
27818 * sysdeps/unix/inet/configure.ac: New file.
27819 * sysdeps/unix/inet/configure: New generated file.
27820 * sysdeps/unix/inet/Subdirs: Add libidn.
27821 * Makeconfig (sysdeps-srcdirs): Remove variable.
27822 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27823 ($(common-objpfx)config.status): Do not depend on add-on files.
27824 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27825 comment.
27826 (all-subdirs): Do not include $(add-on-subdirs).
27827 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27828 * config.make.in (add-ons): Remove variable.
27829 (add-on-subdirs): Likewise.
27830 (sysdeps-add-ons): Likewise.
27831 * manual/Makefile (add-chapters): Remove.
27832 ($(objpfx)texis): Do not depend on $(add-chapters).
27833 (nonexamples): Do not handle $(add-chapters).
27834 (examples): Do not handle $(add-ons).
27835 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27836 libc-texinfo.sh.
27837 * manual/install.texi (Installation): Do not mention add-ons.
27838 (--enable-add-ons): Do not document configure option.
27839 * INSTALL: Regenerated.
27840 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27841 * manual/maint.texi (Hierarchy Conventions): Do not mention
27842 add-ons.
27843 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27844 --enable-add-ons.
27845 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27846 add-ons.
27847 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27848 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27849
27850 2017-10-05 Andreas Schwab <schwab@suse.de>
27851
27852 [BZ #15142]
27853 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27854 (_IO_flush_all_lockp): Always lock list_all_lock.
27855 (_IO_flush_all_linebuffered): Likewise.
27856 (_IO_unbuffer_all): Likewise.
27857
27858 2017-10-05 Florian Weimer <fweimer@redhat.com>
27859
27860 [BZ #15436]
27861 Do not flush stdio streams on abort.
27862 * stdlib/abort.c (fflush): Remove macro definition.
27863 (abort): Remove stages related to stdio flushing.
27864
27865 2017-10-05 Florian Weimer <fweimer@redhat.com>
27866
27867 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27868
27869 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27870
27871 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27872
27873 2017-10-05 Florian Weimer <fweimer@redhat.com>
27874
27875 * support/support_format_hostent.c (support_format_hostent): Add
27876 more error information for NETDB_INTERNAL.
27877
27878 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27879
27880 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27881 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27882 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27883 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27884 AC_DEFINE if multi-arch is enabled.
27885 * sysdeps/i386/configure: Regenerated.
27886
27887 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27888
27889 * Makeconfig (+link-static-before-libc): Use
27890 $(DEFAULT-LDFLAGS-$(@F)).
27891 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27892 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27893 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27894
27895 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27896
27897 * elf/Makefile (tests): Add tst-main1.
27898 (modules-names): Add tst-main1mod.
27899 ($(objpfx)tst-main1): New.
27900 (CRT-tst-main1): Likewise.
27901 (LDFLAGS-tst-main1): Likewise.
27902 (LDLIBS-tst-main1): Likewise.
27903 (tst-main1mod.so-no-z-defs): Likewise.
27904 * elf/tst-main1.c: New file.
27905 * elf/tst-main1mod.c: Likewise.
27906
27907 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27908
27909 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27910
27911 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27912
27913 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27914 (fma): Define using libm_alias_double.
27915 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27916 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27917 <math_ldbl_opt.h>.
27918 (fmal): Do not define as compat symbol here.
27919 * sysdeps/alpha/fpu/s_fma.c: New file.
27920
27921 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27922
27923 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27924
27925 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27926
27927 [BZ #22229]
27928 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27929 <math_ldbl_opt.h>
27930 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27931 and libc.
27932 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27933 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27934 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27935 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27937 Include <math_ldbl_opt.h>
27938 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27939 and libc.
27940 (compat_symbol): Undefine and redefine.
27941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27942 <math_ldbl_opt.h>
27943 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27944 (compat_symbol): Undefine and redefine.
27945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27946 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27947 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27948 GLIBC_2_1 for libm.
27949 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27950 GLIBC_2.0 copysignl symbol.
27951 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27952 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27953
27954 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27955
27956 2017-10-04 Florian Weimer <fweimer@redhat.com>
27957
27958 * scripts/check-local-headers.sh: Ignore nspr4 header file
27959 directory in addition to nspr.
27960
27961 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27962
27963 [BZ #17956]
27964 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27965 * configure: Regenerate.
27966 * crypt/Makefile (nss-cpp-flags): New variable.
27967 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27968 (CPPFLAGS-md5-crypt.c): Use it.
27969 * scripts/check-local-headers.sh: Ignore nspr header file
27970 directory.
27971
27972 2017-10-04 Andreas Schwab <schwab@suse.de>
27973
27974 * nis/Makefile (services): Remove compat.
27975 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27976 ($(objpfx)libnss_compat.so): Remove rule.
27977 * nis/Versions (libnss_compat): Remove.
27978 * nss/Makefile (services): Add compat.
27979 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27980 * nss/Versions (libnss_compat): Define.
27981 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27982 Don't include <rpc/types.h>. Replace bool_t by bool.
27983 * nss/nss_compat/compat-initgroups.c: Likewise.
27984 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27985 instead of <rpcsrv/ypclnt.h>.
27986 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27987 yp_get_default_domain.
27988 * nss/nss_compat/compat-pwd.c: Likewise.
27989 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27990 yp_get_default_domain.
27991 * nss/nss_compat/nisdomain.c: New file.
27992 * nss/nss_compat/nisdomain.h: Likewise.
27993
27994 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27995
27996 [BZ #22244]
27997 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27998 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27999
28000 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28001
28002 [BZ #22243]
28003 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28004 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28005
28006 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28007
28008 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28009 "movl main@GOTOFF(%ebx), %eax".
28010
28011 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28012
28013 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28014 allow undefined _DYNAMIC in PIE libc.a.
28015 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28016 Likewse.
28017
28018 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28019
28020 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28021 check _DYNAMIC.
28022
28023 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28024
28025 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28026 check _DYNAMIC.
28027
28028 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28029
28030 * math/test-math-iscanonical.cc (error): Replace bool with int.
28031
28032 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28033
28034 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28035 (modf): Define using libm_alias_double, only if [!__modf].
28036 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28037 <libm-alias-double.h>.
28038 (modf): Define using libm_alias_double, only if [!__modf].
28039 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28040 compat symbol here.
28041 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28042 (weak_alias): Do not undefine and redefine.
28043 (strong_alias): Likewise.
28044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28045 (weak_alias): Likewise.
28046 (strong_alias): Likewise.
28047
28048 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28049 (logb): Define using libm_alias_double, only if [!__logb].
28050 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28051 <libm-alias-double.h>.
28052 (logb): Define using libm_alias_double, only if [!__logb].
28053 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28054 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28055 (weak_alias): Do not undefine and redefine.
28056 (strong_alias): Likewise.
28057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28058 (weak_alias): Likewise.
28059 (strong_alias): Likewise.
28060
28061 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28062
28063 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28064 Check SHARED instead PIC.
28065
28066 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28067
28068 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28069 [!__fmaf] (fmaf): Define using libm_alias_float.
28070
28071 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28072 (frexp): Define using libm_alias_double.
28073 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28074 <libm-alias-double.h>.
28075 (frexp): Define using libm_alias_double.
28076 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28077 compat symbol here.
28078
28079 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28080
28081 [BZ #22235]
28082 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28083 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28084 (CFLAGS-test-math-iscanonical.cc): New variable.
28085 * math/test-math-iscanonical.cc: New file.
28086 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28087 Provide a C++ implementation based on function overloading,
28088 rather than using __MATH_TG, which uses C-only builtins.
28089 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28090 Likewise.
28091 * sysdeps/powerpc/powerpc64le/Makefile
28092 (CFLAGS-test-math-iscanonical.cc): New variable.
28093
28094 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28095
28096 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28097 (ceil): Define using libm_alias_double.
28098 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28099 (floor): Define using libm_alias_double.
28100 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28101 <libm-alias-double.h>.
28102 (llround): Define using libm_alias_double.
28103 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28104 <libm-alias-double.h>.
28105 (lround): Define using libm_alias_double.
28106 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28107 <libm-alias-double.h>.
28108 (nearbyint): Define using libm_alias_double.
28109 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28110 <libm-alias-double.h>.
28111 (remquo): Define using libm_alias_double.
28112 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28113 (rint): Define using libm_alias_double.
28114 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28115 (round): Define using libm_alias_double.
28116 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28117 (trunc): Define using libm_alias_double.
28118 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28119 <libm-alias-double.h>.
28120 (ceil): Define using libm_alias_double.
28121 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28122 <libm-alias-double.h>.
28123 (floor): Define using libm_alias_double.
28124 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28125 <libm-alias-double.h>.
28126 (llround): Define using libm_alias_double.
28127 [_LP64] (lround): Likewise.
28128 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28129 <libm-alias-double.h>.
28130 [!_LP64] (lround): Define using libm_alias_double.
28131 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28132 <libm-alias-double.h>.
28133 (nearbyint): Define using libm_alias_double.
28134 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28135 <libm-alias-double.h>.
28136 (remquo): Define using libm_alias_double.
28137 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28138 <libm-alias-double.h>.
28139 (rint): Define using libm_alias_double.
28140 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28141 <libm-alias-double.h>.
28142 (round): Define using libm_alias_double.
28143 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28144 <libm-alias-double.h>.
28145 (trunc): Define using libm_alias_double.
28146 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28147 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28148 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28149 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28150 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28151 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28152 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28153 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28154 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28155
28156 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28157
28158 * math/w_remainder.c: New file.
28159 * math/w_remainderf.c: New file.
28160 * math/w_remainderl.c: New file.
28161
28162 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28163
28164 * elf/rtld.c (BOOTSTRAP_MAP): New.
28165 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28166 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28167 Likewise.
28168 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28169 Likewise.
28170 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28171 Likewise.
28172
28173 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28174
28175 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28176 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28177 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28178 rtld_hidden_data_ver): Define to empty.
28179 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28180 __assert_perror_fail): Likewise.
28181 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28182 (__rewinddir): Likewise.
28183 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28184 (__profile_frequency): Likewise.
28185 * include/setjmp.h (__sigsetjmp): Likewise.
28186 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28187 __libc_sigaction): Likewise.
28188 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28189 not set hidden attribute.
28190 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28191 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28192 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28193 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28194 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28195 __fxstatat64): Likewise.
28196 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28197 (__uname): Likewise.
28198 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28199 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28200 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28201 (NO_RTLD_HIDDEN): Set.
28202 * sysdeps/mach/hurd/configure: Refresh.
28203 * config.h.in: Refresh.
28204
28205 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28206
28207 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28208 (atan): Define using libm_alias_double.
28209 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28210 (tan): Define using libm_alias_double.
28211 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28212 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28213
28214 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28215 define as weak alias of __atan. Do not define any aliases if
28216 [__atan].
28217 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28218 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28219 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28220 as weak alias of __tan. Do not define any aliases if [__tan].
28221 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28222 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28223 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28224 __atan.
28225 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28226 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28227 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28228 and define as weak alias of __atan.
28229 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28230 __atan.
28231 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28232 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28233 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28234 define as weak alias of __tan.
28235
28236 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28237
28238 * math/w_lgamma.c: New file.
28239 * math/w_lgammaf.c: New file.
28240 * math/w_lgammal.c: New file.
28241
28242 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28243
28244 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28245 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28246 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28247 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28248 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28249 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28250 * sysdeps/i386/fpu/w_log2f.c: New file.
28251 * sysdeps/i386/fpu/w_logf.c: New file.
28252 * sysdeps/i386/fpu/w_powf.c: New file.
28253 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28254 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28255 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28256
28257 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28258 H.J. Lu <hongjiu.lu@intel.com>
28259
28260 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28261 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28262 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28263 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28264 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28265 the new expf code.
28266 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28267 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28268 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28269 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28270 * sysdeps/i386/fpu/w_exp2f.c: New file.
28271 * sysdeps/i386/fpu/w_expf.c: New file.
28272 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28273 * sysdeps/x86_64/fpu/w_expf.c: New file.
28274
28275 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28276
28277 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28278 (log2f): Likewise.
28279 (powf): Likewise.
28280 * math/w_log2f.c: New file.
28281 * math/w_logf.c: New file.
28282 * math/w_powf.c: New file.
28283 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28284 * math/w_logf_compat.c (__logf_compat): Likewise.
28285 * math/w_powf_compat.c (__powf_compat): Likewise.
28286 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28287 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28288 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28289 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28290 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28291 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28292 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28293 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28294 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28295 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28296 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28297 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28298 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28299 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28300 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28302 Likewise.
28303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28304 Likewise.
28305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28306 Likewise.
28307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28308 Likewise.
28309 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28310 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28311 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28312 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28313 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28314 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28315 Likewise.
28316 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28317 Likewise.
28318 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28319 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28320 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28321
28322 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28323
28324 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28325 (sysdep_routines): Add memrchr_power8.
28326 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28327 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28328 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28329 New file.
28330 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28331 (memrchr): Add __memrchr_power8 to ifunc list.
28332 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28333
28334 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28335
28336 [BZ #18822]
28337 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28338 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28339 libc_hidden_def.
28340 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28341 (__posix_fallocate64_l64): Likewise.
28342
28343 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28344
28345 [BZ #18822]
28346 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28347 (__sched_setaffinity_new): Add libc_hidden_proto and
28348 libc_hidden_def.
28349
28350 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28351
28352 [BZ #18822]
28353 * include/glob.h (__glob64): Add libc_hidden_proto.
28354 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28355 libc_hidden_def.
28356
28357 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28358
28359 [BZ #18822]
28360 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28361 attribute_hidden.
28362
28363 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28364
28365 [BZ #18822]
28366 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28367
28368 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28369
28370 [BZ #18822]
28371 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28372 libc_hidden_def.
28373
28374 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28375
28376 [BZ #18822]
28377 * csu/version.c (__libc_print_version): Add attribute_hidden.
28378
28379 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28380
28381 [BZ #18822]
28382 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28383
28384 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28385
28386 [BZ #18822]
28387 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28388
28389 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28390
28391 [BZ #18822]
28392 * nscd/nscd_helper.c (__nis_hash): New prototype.
28393
28394 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28395
28396 [BZ #18822]
28397 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28398 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28399 libc_hidden_def.
28400 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28401 * termios/tcgetattr.c (__tcgetattr): Likewise.
28402
28403 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28404
28405 [BZ #18822]
28406 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28407 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28408 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28409 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28410 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28411
28412 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28413
28414 [BZ #18822]
28415 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28416
28417 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28418
28419 [BZ #18822]
28420 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28421 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28422
28423 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28424
28425 [BZ #18822]
28426 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28427
28428 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28429
28430 [BZ #18822]
28431 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28432 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28433
28434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28435
28436 [BZ #18822]
28437 * include/ifreq.h: New file.
28438 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28439 (__ifreq): Likewise.
28440 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28441 (__ifreq): Likewise.
28442
28443 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28444
28445 [BZ #18822]
28446 * include/idna.h: New file.
28447 * inet/getnameinfo.c: Include <idna.h> instead of
28448 <libidn/idna.h>.
28449 (__idna_to_unicode_lzlz): Removed.
28450 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28451 <libidn/idna.h>.
28452 (__idna_to_ascii_lz): Removed.
28453 (__idna_to_unicode_lzlz): Likewise.
28454
28455 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28456
28457 [BZ #18822]
28458 * include/plural-exp.h: New file.
28459 * intl/plural-exp.c: Include <plural-exp.h> instead of
28460 "plural-exp.h".
28461
28462 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28463
28464 [BZ #18822]
28465 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28466 "getsourcefilter.h".
28467 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28468 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28469 "getsourcefilter.h".
28470 (__get_sol): Removed.
28471
28472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28473
28474 [BZ #18822]
28475 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28476 to ...
28477 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28478
28479 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28480
28481 [BZ #18822]
28482 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28483 attribute_hidden.
28484
28485 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28486
28487 [BZ #18822]
28488 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28489
28490 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28491
28492 [BZ #18822]
28493 * include/search.h (__tdestroy): Add libc_hidden_proto.
28494 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28495
28496 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28497
28498 [BZ #18822]
28499 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28500
28501 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28502
28503 [BZ #18822]
28504 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28505 attribute_hidden.
28506
28507 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28508
28509 [BZ #18822]
28510 * include/signal.h (__kill): Add libc_hidden_proto.
28511 (__sigblock): Likewise.
28512 (__sigprocmask): Likewise.
28513 (__sigaltstack): Likewise.
28514 * signal/kill.c (__kill): Add libc_hidden_def.
28515 * signal/sigblock.c (__sigblock): Likewise.
28516 * signal/sigprocmask.c (__sigprocmask): Likewise.
28517 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28518 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28519 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28520 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28521 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28522 Likewise.
28523 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28524 Likewise.
28525 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28526 (__sigprocmask): Likewise.
28527 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28528 Likewise.
28529 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28530 (__sigprocmask): Likewise.
28531 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28532 Likewise.
28533
28534 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28535
28536 [BZ #18822]
28537 * include/string.h (__strsep): Add libc_hidden_proto.
28538 * string/strsep.c (__strsep): Add libc_hidden_def.
28539
28540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28541
28542 [BZ #18822]
28543 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28544 attribute_hidden.
28545 (__spawni): Likewise.
28546
28547 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28548
28549 [BZ #18822]
28550 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28551 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28552 libc_hidden_def.
28553
28554 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28555
28556 [BZ #18822]
28557 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28558
28559 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28560
28561 [BZ #18822]
28562 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28563 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28564 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28565 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28566 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28567 Likewise.
28568 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28569 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28570
28571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28572
28573 [BZ #18822]
28574 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28575 (__dcigettext): Likewise.
28576
28577 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28578
28579 [BZ #18822]
28580 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28581 libc_hidden_proto.
28582 (__get_nprocs): Likewise.
28583 (__get_phys_pages): Likewise.
28584 (__get_avphys_pages): Likewise.
28585 (__get_child_max): Add attribute_hidden.
28586 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28587 (__get_nprocs): Likewise.
28588 (__get_phys_pages): Likewise.
28589 (__get_avphys_pages): Likewise.
28590 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28591 libc_hidden_def.
28592 (__get_nprocs): Likewise.
28593 (__get_phys_pages): Likewise.
28594 (__get_avphys_pages): Likewise.
28595 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28596 libc_hidden_def.
28597 (__get_nprocs_conf): Likewise.
28598 (__get_phys_pages): Likewise.
28599 (__get_avphys_pages): Likewise.
28600
28601 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28602
28603 [BZ #18822]
28604 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28605 attribute_hidden.
28606 (__netlink_close): Likewise.
28607 (__netlink_free_handle): Likewise.
28608 (__netlink_request): Likewise.
28609
28610 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28611
28612 [BZ #18822]
28613 * include/rpc/rpc.h (__rpc_thread_variables): Add
28614 attribute_hidden.
28615 (__rpc_thread_svc_cleanup): Likewise.
28616 (__rpc_thread_clnt_cleanup): Likewise.
28617 (__rpc_thread_key_cleanup): Likewise.
28618
28619 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28620
28621 [BZ #18822]
28622 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28623 (__writev): Likewise.
28624 * misc/readv.c (__readv): Add libc_hidden_def.
28625 * misc/writev.c (__writev): Likewise.
28626 * sysdeps/posix/readv.c (__readv): Likewise.
28627 * sysdeps/posix/writev.c (__writev): Likewise.
28628 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28629 (__readv): Likewise.
28630 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28631 (__writev): Likewise.
28632
28633 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28634
28635 [BZ #18822]
28636 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28637 (__regcomp): Add libc_hidden_proto.
28638 (__regexec): Likewise.
28639 (__regfree): Likewise.
28640 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28641 (__regfree): Likewise.
28642 * posix/regexec.c (__regexec): Likewise.
28643
28644 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28645
28646 [BZ #18822]
28647 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28648 (__getutent): Likewise.
28649 (__getutid): Likewise.
28650 (__getutline): Likewise.
28651 (__pututline): Likewise.
28652 (__getutent_r): Likewise.
28653 (__getutid_r): Likewise.
28654 (__getutline_r): Likewise.
28655 (__utmpname): Add attribute_hidden.
28656 (__setutent): Likewise.
28657 (__endutent): Likewise.
28658 * login/getutent.c (__getutent): Add libc_hidden_def.
28659 * login/getutent_r.c (__getutent_r): Likewise.
28660 (__pututline): Likewise.
28661 * login/getutid.c (__getutid): Likewise.
28662 * login/getutid_r.c (__getutid_r): Likewise.
28663 * login/getutline.c (__getutline): Likewise.
28664 * login/getutline_r.c (__getutline_r): Likewise.
28665 * login/updwtmp.c (__updwtmp): Likewise.
28666
28667 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28668
28669 [BZ #18822]
28670 * include/dirent.h (__opendir): Always add attribute_hidden.
28671 (__fdopendir): Likewise.
28672 (__closedir): Likewise.
28673 (__readdir): Likewise.
28674 (__readdir64): Add libc_hidden_proto.
28675 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28676 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28677 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28678 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28679 New alias.
28680
28681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28682
28683 [BZ #18822]
28684 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28685 * include/netdb.h (__gethostbyaddr_r): Likewise.
28686 (__gethostbyname_r): Likewise.
28687 (__gethostbyname2_r): Likewise.
28688 (__getnetbyaddr_r): Likewise.
28689 (__getnetbyname_r): Likewise.
28690 (__getservbyname_r): Likewise.
28691 (__getservbyport_r): Likewise.
28692 (__getprotobyname_r): Likewise.
28693 (__getprotobynumber_r): Likewise.
28694 (__getnetgrent_r): Likewise.
28695 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28696 (__getrpcbynumber_r): Likewise.
28697 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28698
28699 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28700
28701 [BZ #18822]
28702 * include/stdio.h (__fcloseall): Add attribute_hidden.
28703 (__getline): Likewise.
28704 (__path_search): Likewise.
28705 (__gen_tempname): Likewise.
28706 (__libc_message): Likewise.
28707 (__flockfile): Likewise.
28708 (__funlockfile): Likewise.
28709 (__fxprintf): Likewise.
28710 (__fxprintf_nocancel): Likewise.
28711
28712 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28713
28714 [BZ #18822]
28715 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28716 (__sgetsgent_r): Likewise.
28717
28718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28719
28720 [BZ #18822]
28721 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28722 (__statfs64): Likewise.
28723 (__fstatfs64): Likewise.
28724 * include/sys/statvfs.h (__statvfs64): Likewise.
28725 (__fstatvfs64): Likewise.
28726 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28727 (__statfs_filesize_max): Likewise.
28728 (__statfs_symlinks): Likewise.
28729 (__statfs_chown_restricted): Likewise.
28730
28731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28732
28733 [BZ #18822]
28734 * include/time.h (__tzstring): Add attribute_hidden.
28735 (__tzfile_read): Likewise.
28736 (__tzfile_compute): Likewise.
28737 (__tzfile_default): Likewise.
28738 (__tzset_parse_tz): Likewise.
28739 (__offtime): Likewise.
28740 (__asctime_r): Likewise.
28741 (__tzset): Likewise.
28742 (__tz_convert): Likewise.
28743 (__getdate_r): Likewise.
28744 (__getclktck): Likewise.
28745
28746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28747
28748 [BZ #18822]
28749 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28750 (__nscd_unmap): Likewise.
28751 (__nscd_cache_search): Likewise.
28752 (__nscd_get_nl_timestamp): Likewise.
28753 (__nscd_getpwnam_r): Likewise.
28754 (__nscd_getpwuid_r): Likewise.
28755 (__nscd_getgrnam_r): Likewise.
28756 (__nscd_getgrgid_r): Likewise.
28757 (__nscd_gethostbyname_r): Likewise.
28758 (__nscd_gethostbyname2_r): Likewise.
28759 (__nscd_gethostbyaddr_r): Likewise.
28760 (__nscd_getai): Likewise.
28761 (__nscd_getgrouplist): Likewise.
28762 (__nscd_getservbyname_r): Likewise.
28763 (__nscd_getservbyport_r): Likewise.
28764 (__nscd_innetgr): Likewise.
28765 (__nscd_setnetgrent): Likewise.
28766
28767 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28768
28769 [BZ #18822]
28770 * include/gmp.h: Declare internal functions only if _ISOMAC is
28771 undefined.
28772 (__mpn_extract_double): Add attribute_hidden.
28773 (__mpn_extract_long_double): Likewise.
28774 (__mpn_extract_float128): Likewise.
28775 (__mpn_construct_float): Likewise.
28776 (__mpn_construct_double): Likewise.
28777 (__mpn_construct_long_double): Likewise.
28778 (__mpn_construct_float128): Likewise.
28779 (mpn_add_1): Likewise.
28780 (mpn_addmul_1): Likewise.
28781 (mpn_add_n): Likewise.
28782 (mpn_cmp): Likewise.
28783 (mpn_divrem): Likewise.
28784 (mpn_lshift): Likewise.
28785 (mpn_mul): Likewise.
28786 (mpn_mul_1): Likewise.
28787 (mpn_rshift): Likewise.
28788 (mpn_sub_1): Likewise.
28789 (mpn_submul_1): Likewise.
28790 (mpn_sub_n): Likewise.
28791
28792 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28793
28794 [BZ #18822]
28795 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28796 (__wcscat): Likewise.
28797 (__btowc): Likewise.
28798 (__wcrtomb): Likewise.
28799 (__mbsrtowcs): Likewise.
28800 (__wcsrtombs): Likewise.
28801 (__mbsnrtowcs): Likewise.
28802 (__wcsnrtombs): Likewise.
28803 (__wcsncpy): Likewise.
28804 (__wcpncpy): Likewise.
28805 (__wmemcpy): Likewise.
28806 (__wmempcpy): Likewise.
28807 (__wmemmove): Likewise.
28808 (__wcschrnul): Likewise.
28809 (__vfwscanf): Likewise.
28810 (__vswprintf): Likewise.
28811 (__fwprintf): Likewise.
28812 (__vfwprintf): Likewise.
28813
28814 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28815
28816 [BZ #18822]
28817 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28818 (__getgrgid_r): Likewise.
28819 (__getgrnam_r): Likewise.
28820 * include/pwd.h (__getpwuid_r): Likewise.
28821 (__getpwnam_r): Likewise.
28822 (__fgetpwent_r): Likewise.
28823 * include/shadow.h (__getspnam_r): Likewise.
28824 (__sgetspent_r): Likewise.
28825 (__fgetspent_r): Likewise.
28826
28827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28828
28829 [BZ #18822]
28830 * include/unistd.h (__access): Add attribute_hidden.
28831 (__lseek64): Likewise.
28832 (__libc_pread64): Likewise.
28833 (__pipe2): Likewise.
28834 (__sleep): Likewise.
28835 (__chdir): Likewise.
28836 (__fchdir): Likewise.
28837 (__getcwd): Likewise.
28838 (__rmdir): Likewise.
28839 (__execvpe): Likewise.
28840 (__execve): Likewise.
28841 (__setsid): Likewise.
28842 (__getuid): Likewise.
28843 (__geteuid): Likewise.
28844 (__getgid): Likewise.
28845 (__getegid): Likewise.
28846 (__getgroups): Likewise.
28847 (__group_member): Likewise.
28848 (__ttyname_r): Likewise.
28849 (__isatty): Likewise.
28850 (__readlink): Likewise.
28851 (__unlink): Likewise.
28852 (__gethostname): Likewise.
28853 (__profil): Likewise.
28854 (__getdtablesize): Likewise.
28855 (__brk): Likewise.
28856 (__ftruncate): Likewise.
28857 (__ftruncate64): Likewise.
28858
28859 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28860
28861 [BZ #18822]
28862 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28863 * argp/argp-fs-xinl.c: Likewise.
28864 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28865 * argp/argp-parse.c: Include <argp.h>.
28866 * argp/argp-xinl.c: Likewise.
28867 * include/argp-fmtstream.h: New file.
28868 * include/argp.h (__argp_error): Add attribute_hidden.
28869 (__argp_failure): Likewise.
28870 (__argp_input): Likewise.
28871 (__argp_state_help): Likewise.
28872
28873 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28874
28875 [BZ #18822]
28876 * include/wchar.h (____wcstof_l_internal): New prototype.
28877 (____wcstod_l_internal): Likewise.
28878 (____wcstold_l_internal): Likewise.
28879 (____wcstol_l_internal): Likewise.
28880 (____wcstoul_l_internal): Likewise.
28881 (____wcstoll_l_internal): Likewise.
28882 (____wcstoull_l_internal): Likewise.
28883 (____wcstof128_l_internal): Likewise.
28884 * sysdeps/ieee754/float128/wcstof128.c
28885 (____wcstof128_l_internal): Removed.
28886 * sysdeps/ieee754/float128/wcstof128_l.c
28887 (____wcstof128_l_internal): Likewise.
28888 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28889 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28890 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28891 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28892 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28893 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28894 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28895 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28896 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28897 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28898
28899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28900
28901 [BZ #18822]
28902 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28903 instead of <sys/statvfs.h>.
28904 (__internal_statvfs): Removed.
28905 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28906 instead of <sys/statvfs.h>.
28907 (__internal_statvfs64): Removed.
28908 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28909 "internal_statvfs.h" instead of <sys/statvfs.h>.
28910 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28911 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28912 instead of <sys/statvfs.h>.
28913 (__internal_statvfs): Removed.
28914 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28915 instead of <sys/statvfs.h>.
28916 (__internal_statvfs64): Removed.
28917
28918 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28919
28920 [BZ #18822]
28921 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28922 (__gconv_close): Likewise.
28923 (__gconv): Likewise.
28924 (__gconv_find_transform): Likewise.
28925 (__gconv_lookup_cache): Likewise.
28926 (__gconv_compare_alias_cache): Likewise.
28927 (__gconv_load_cache): Likewise.
28928 (__gconv_get_path): Likewise.
28929 (__gconv_close_transform): Likewise.
28930 (__gconv_release_cache): Likewise.
28931 (__gconv_find_shlib): Likewise.
28932 (__gconv_release_shlib): Likewise.
28933 (__gconv_get_builtin_trans): Likewise.
28934 (__gconv_compare_alias): Likewise.
28935 * include/dlfcn.h (_dlerror_run): Likewise.
28936 * include/stdio.h (__fortify_fail_abort): Likewise.
28937 * include/time.h (__tz_compute): Likewise.
28938 (__strptime_internal): Likewise.
28939 * intl/gettextP.h (_nl_find_domain): Likewise.
28940 (_nl_load_domain): Likewise.
28941 (_nl_find_msg): Likewise.
28942 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28943 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28944 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28945 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28946 (__gai_find_request): Likewise.
28947 (__gai_remove_request): Likewise.
28948 (__gai_notify): Likewise.
28949 (__gai_notify_only): Likewise.
28950 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28951 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28952 (_dl_non_dynamic_init): Likewise.
28953 (_dl_aux_init): Likewise.
28954 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28955 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28956 Likewise.
28957 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28958 (__wcsmbs_clone_conv): Likewise.
28959 (__wcsmbs_named_conv): Likewise.
28960
28961 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28962
28963 [BZ #18822]
28964 * include/stdlib.h (__random): Add attribute_hidden.
28965 (__random_r): Likewise.
28966 (__srandom_r): Likewise.
28967 (__initstate_r): Likewise.
28968 (__setstate_r): Likewise.
28969 (__erand48_r): Likewise.
28970 (__nrand48_r): Likewise.
28971 (__jrand48_r): Likewise.
28972 (__srand48_r): Likewise.
28973 (__seed48_r): Likewise.
28974 (__lcong48_r): Likewise.
28975 (__drand48_iterate): Likewise.
28976 (__setenv): Likewise.
28977 (__unsetenv): Likewise.
28978 (__clearenv): Likewise.
28979 (__ptsname_r): Likewise.
28980 (__posix_openpt): Likewise.
28981 (__add_to_environ): Likewise.
28982 (__realpath): Add libc_hidden_proto.
28983 (__ecvt_r): Likewise.
28984 (__fcvt_r): Likewise.
28985 (__qecvt_r): Likewise.
28986 (__qfcvt_r): Likewise.
28987 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28988 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28989
28990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28991
28992 [BZ #18822]
28993 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28994 * include/time.h (__mktime_internal): Likewise.
28995 * libio/iolibio.h (__fopen_internal): Likewise.
28996
28997 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28998
28999 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29000 pointer in frame.
29001 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29002 Correct offset used to restore PIC register.
29003
29004 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29005
29006 [BZ libc/22165]
29007 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29008 code to load address of __getcontext_ret when generating PIC code.
29009
29010 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29011
29012 * elf/Makefile (tests-static-internal): Add
29013 tst-tls1-static-non-pie.
29014 (LDFLAGS-tst-tls1-static-non-pie): New.
29015 * elf/tst-tls1-static-non-pie.c: New file.
29016
29017 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29018
29019 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29020 (asinh): Define using libm_alias_double.
29021 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29022 (cbrt): Define using libm_alias_double.
29023 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29024 <libm-alias-double.h>.
29025 (copysign): Define using libm_alias_double.
29026 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29027 (erf): Define using libm_alias_double.
29028 (erfc): Likewise.
29029 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29030 (expm1): Define using libm_alias_double.
29031 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29032 (fabs): Define using libm_alias_double.
29033 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29034 libm_alias_double.
29035 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29036 <libm-alias-double.h>.
29037 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29038 libm_alias_double.
29039 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29040 <libm-alias-double.h>.
29041 (getpayload): Define using libm_alias_double.
29042 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29043 <libm-alias-double.h>.
29044 (llrint): Define using libm_alias_double.
29045 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29046 (lrint): Define using libm_alias_double.
29047 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29048 <libm-alias-double.h>.
29049 (nextup): Define using libm_alias_double.
29050 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29051 <libm-alias-double.h>.
29052 (roundeven): Define using libm_alias_double.
29053 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29054 libm_alias_double.
29055 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29056 <libm-alias-double.h>.
29057 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29058 using libm_alias_double.
29059 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29060 (cos): Define using libm_alias_double.
29061 (sin): Likewise.
29062 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29063 <libm-alias-double.h>.
29064 (sincos): Define using libm_alias_double.
29065 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29066 (tanh): Define using libm_alias_double.
29067 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29068 <libm-alias-double.h>.
29069 (totalorder): Define using libm_alias_double.
29070 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29071 <libm-alias-double.h>.
29072 (totalordermag): Define using libm_alias_double.
29073 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29074 libm_alias_double.
29075 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29076 libm_alias_double.
29077 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29078 <libm-alias-double.h>.
29079 (getpayload): Define using libm_alias_double.
29080 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29081 <libm-alias-double.h>.
29082 (roundeven): Define using libm_alias_double.
29083 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29084 <libm-alias-double.h>.
29085 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29086 <libm-alias-double.h>.
29087 (totalorder): Define using libm_alias_double.
29088 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29089 <libm-alias-double.h>.
29090 (totalordermag): Define using libm_alias_double.
29091 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29092 libc compat symbol here.
29093 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29094 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29095 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29096 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29097 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29098 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29099 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29100 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29101 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29102 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29103
29104 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29105
29106 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29107 _dl_relocate_static_pie instead of _dl_start to compute load
29108 address in static PIE. Return 0 if _DYNAMIC is undefined for
29109 static executable.
29110
29111 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29112
29113 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29114 _DYNAMIC is undefined for static executable.
29115
29116 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29117
29118 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29119
29120 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29121
29122 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29123
29124 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29125
29126 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29127 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29128 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29129 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29130 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29131 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29132 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29133 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29134 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29135 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29136 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29137 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29138 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29139 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29140 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29141 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29142 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29143
29144 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29145
29146 * math/bits/cmathcalls.h (cimag): Remove inline.
29147 (creal): Remove inline.
29148 (conj): Remove inline.
29149
29150 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29151
29152 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29153 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29154 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29155 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29156 (issignalingf_inline): Likewise.
29157 (POWF_LOG2_TABLE_BITS): Likewise.
29158 (POWF_LOG2_POLY_ORDER): Likewise.
29159 (POWF_SCALE_BITS): Likewise.
29160 (POWF_SCALE): Likewise.
29161 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29162 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29163 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29164
29165 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29166
29167 * math/Makefile (type-float-routines): Add e_log2f_data.
29168 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29169 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29170 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29171 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29172 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29173 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29174 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29175
29176 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29177
29178 * math/Makefile (type-float-routines): Add e_logf_data.
29179 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29180 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29181 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29182 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29183 * sysdeps/i386/fpu/e_logf_data.c: New file.
29184 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29185 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29186
29187 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29188
29189 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29190 undefined _DYNAMIC in PIE libc.a.
29191 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29192 Likewse.
29193
29194 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29195
29196 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29197 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29198 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29199 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29200 (__signbit): Remove.
29201 (__signbitl): Remove.
29202 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29203 (__signbit): Remove.
29204 (__signbitl): Remove.
29205 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29206 (__signbit): Remove.
29207 (__signbitl): Remove.
29208 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29209 (__signbit): Remove.
29210 (__signbitl): Remove.
29211 * sysdeps/tile/bits/mathinline.h: Delete file.
29212 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29213 (__signbit): Remove.
29214 (__signbitl): Remove.
29215
29216 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29217
29218 * math/math.h: Improve handling of C99 isgreater macros.
29219 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29220 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29221 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29222 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29223 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29224
29225 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29226
29227 * sysdeps/aarch64/libm-test-ulps: Update.
29228
29229 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29230
29231 [BZ #22225]
29232 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29233 math_opt_barrier on argument when doing arithmetic on it.
29234 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29235 Likewise. Use math_force_eval not math_opt_barrier after
29236 arithmetic.
29237 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29238 math_opt_barrier on argument when doing arithmetic on it.
29239 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29240 Likewise.
29241
29242 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29243
29244 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29245 libc_hidden_def.
29246 (__freeifaddrs): Likewise.
29247
29248 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29249
29250 * include/dirent.h (__dirfd): New declaration.
29251 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29252 alias.
29253 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29254 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29255 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29256 * include/unistd.h (__revoke): New declaration.
29257 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29258 alias.
29259 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29260 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29261 revoke.
29262 * include/dirent.h (__seekdir): New declaration.
29263 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29264 redefine as weak alias.
29265 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29266 of seekdir.
29267 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29268 and use libc_hidden_def on them.
29269 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29270 them.
29271 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29272 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29273 instead of getifaddrs and freeifaddrs.
29274
29275 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29276
29277 [BZ #18822]
29278 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29279 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29280 (__dso_handle): Remove declaration.
29281 * dlfcn/tstatexit.c (__dso_handle): Removed.
29282 (main): Don't check __dso_handle.
29283 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29284 (main): Don't check __dso_handle.
29285 * include/dso_handle.h: New file.
29286 * malloc/mtrace.c: Include <dso_handle.h>.
29287 (mtrace): Pass __dso_handle directly.
29288 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29289 (__dso_handle): Remove declaration.
29290 (__pthread_atfork): Pass __dso_handle directly.
29291 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29292 (__dso_handle): Removed.
29293 * posix/wordexp-test.c: Include <dso_handle.h>.
29294 (__dso_handle): Remove declaration.
29295 (__app_register_atfork): Pass __dso_handle directly.
29296 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29297 (__dso_handle): Remove declaration.
29298 (at_quick_exit): Pass __dso_handle directly.
29299 * stdlib/atexit.c: Include <dso_handle.h>.
29300 (__dso_handle): Remove declaration.
29301 (atexit): Pass __dso_handle directly.
29302 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29303 (__dso_handle): Removed.
29304
29305 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29306
29307 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29308 using VDSO.
29309
29310 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29311
29312 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29313 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29314 values to correct default value for given type.
29315
29316 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29317
29318 [BZ #22101]
29319 * elf/Makefile (tests): Add tst-debug1.
29320 ($(objpfx)tst-debug1): New.
29321 ($(objpfx)tst-debug1.out): Likewise.
29322 ($(objpfx)tst-debug1mod1.so): Likewise.
29323 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29324 with p_filesz == 0.
29325 * elf/tst-debug1.c: New file.
29326
29327 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29328
29329 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29330 Define using __ifunc.
29331
29332 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29333
29334 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29335 exp2f() values.
29336
29337 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29338
29339 [BZ #22156]
29340 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29341
29342 2017-09-26 Florian Weimer <fweimer@redhat.com>
29343
29344 * resolv/Makefile (tests-internal): Fix typo in comment.
29345
29346 2017-09-26 Florian Weimer <fweimer@redhat.com>
29347
29348 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29349
29350 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29351
29352 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29353 Use an union instead of a max_align_t array for __space,
29354 so that __space is the same size on all platforms.
29355 * malloc/scratch_buffer_grow_preserve.c
29356 (__libc_scratch_buffer_grow_preserve): Likewise.
29357
29358 [BZ #22183]
29359 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29360 version to 2.
29361 * posix/Makefile (routines): Add glob-lstat-compat and
29362 glob64-lstat-compat.
29363 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29364 * posix/glob-lstat-compat.c: New file.
29365 * posix/glob64-lstat-compat.c: Likewise.
29366 * posix/tst-glob_lstat_compat.c: Likewise.
29367 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29368 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29369 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29370 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29371 Likewise.
29372 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29373 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29374 * posix/glob.c (glob_lstat): New function.
29375 (glob): Rename to __glob and add versioned symbol to 2.27.
29376 (glob_in_dir): Use glob_lstat.
29377 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29378 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29379 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29380 2.27.
29381 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29382 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29383 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29384 gl_lstat on glob call.
29385 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29386 and glob64 symbols.
29387 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29388 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29389 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29390 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29391 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29392 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29393 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29394 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29395 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29396 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29397 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29398 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29400 Likewise.
29401 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29403 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29404 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29405 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29406 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29407 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29408 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29409 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29410 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29411 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29412 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29413
29414 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29415
29416 * configure.ac (AS): Require binutils 2.25 or later.
29417 * configure: Regenerated.
29418
29419 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29420
29421 [BZ #22207]
29422 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29423 VM size.
29424
29425 2017-09-25 DJ Delorie <dj@redhat.com>
29426
29427 [BZ #22161]
29428 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29429 resetting timeout.
29430
29431 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29432
29433 * sysdeps/ieee754/dbl-64/sincos32.h
29434 [SINCCOS32_H]: Remove define.
29435 [SINCOS32_H]: Define.
29436
29437 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29438
29439 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29440 (exp2f): Likewise.
29441 * math/w_exp2f.c: New file.
29442 * math/w_expf.c: New file.
29443 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29444 * math/w_expf_compat.c (__expf_compat): Likewise.
29445 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29446 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29447 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29448 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29449 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29450 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29451 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29452 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29453 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29454 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29455 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29456 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29457 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29458 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29460 Likewise.
29461 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29462 Likewise.
29463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29464 Likewise.
29465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29466 Likewise.
29467 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29468 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29469 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29470 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29471 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29472 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29473 Likewise.
29474 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29475 Likewise.
29476 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29477 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29478 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29479
29480 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29481
29482 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29483 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29484 (roundtoint, converttoint): Likewise.
29485 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29486 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29487 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29488 * sysdeps/ieee754/flt-32/math_config.h: New file.
29489 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29490 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29491 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29492 * sysdeps/i386/fpu/math_errf.c: New file.
29493 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29494 * sysdeps/ia64/fpu/math_errf.c: New file.
29495 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29496 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29497
29498 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29499
29500 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29501 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29502 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29503 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29504 to make sure that these symbols are defined.
29505 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29506 of <limits.h>
29507 (__need_NULL): Do not define.
29508 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29509 alignment.
29510 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29511 CMGROUP_MAX, cmsgcred): Do not define.
29512 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29513 NULL.
29514 * bits/socket.h: Likewise.
29515 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29516 __gettimeofday instead of gettimeofday.
29517 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29518 instead of settimeofday.
29519
29520 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29521
29522 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29523 (asinhf): Define using libm_alias_float.
29524 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29525 (atanf): Define using libm_alias_float.
29526 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29527 (cbrtf): Define using libm_alias_float.
29528 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29529 (ceilf): Define using libm_alias_float.
29530 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29531 <libm-alias-float.h>.
29532 (copysignf): Define using libm_alias_float.
29533 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29534 (cosf): Define using libm_alias_float.
29535 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29536 (erff): Define using libm_alias_float.
29537 (erfcf): Likewise.
29538 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29539 (expm1f): Define using libm_alias_float.
29540 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29541 (fabsf): Define using libm_alias_float.
29542 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29543 (floorf): Define using libm_alias_float.
29544 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29545 (frexpf): Define using libm_alias_float.
29546 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29547 libm_alias_float.
29548 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29549 <libm-alias-float.h>.
29550 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29551 libm_alias_float.
29552 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29553 <libm-alias-float.h>.
29554 (getpayloadf): Define using libm_alias_float.
29555 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29556 <libm-alias-float.h>.
29557 (llrintf): Define using libm_alias_float.
29558 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29559 <libm-alias-float.h>.
29560 (llroundf): Define using libm_alias_float.
29561 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29562 (logbf): Define using libm_alias_float.
29563 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29564 (lrintf): Define using libm_alias_float.
29565 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29566 (lroundf): Define using libm_alias_float.
29567 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29568 (modff): Define using libm_alias_float.
29569 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29570 <libm-alias-float.h>.
29571 (nearbyintf): Define using libm_alias_float.
29572 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29573 <libm-alias-float.h>.
29574 (nextafterf): Define using libm_alias_float.
29575 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29576 <libm-alias-float.h>.
29577 (nextupf): Define using libm_alias_float.
29578 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29579 <libm-alias-float.h>.
29580 (remquof): Define using libm_alias_float.
29581 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29582 (rintf): Define using libm_alias_float.
29583 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29584 <libm-alias-float.h>.
29585 (roundevenf): Define using libm_alias_float.
29586 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29587 (roundf): Define using libm_alias_float.
29588 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29589 using libm_alias_float.
29590 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29591 <libm-alias-float.h>.
29592 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29593 Define using libm_alias_float.
29594 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29595 <libm-alias-float.h>.
29596 (sincosf): Define using libm_alias_float.
29597 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29598 (sinf): Define using libm_alias_float.
29599 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29600 (tanf): Define using libm_alias_float.
29601 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29602 (tanhf): Define using libm_alias_float.
29603 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29604 <libm-alias-float.h>.
29605 (totalorderf): Define using libm_alias_float.
29606 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29607 <libm-alias-float.h>.
29608 (totalordermagf): Define using libm_alias_float.
29609 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29610 (truncf): Define using libm_alias_float.
29611 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29612 libm_alias_float.
29613 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29614 libm_alias_float.
29615
29616 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29617
29618 [BZ #22146]
29619 math/math.h: Let fpclassify use the builtin in C++ mode, even
29620 when optimazing for size.
29621
29622 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29623
29624 * csu/Makefile (generated): Do not add version-info.h.
29625 (before-compile): Likewise.
29626 (all-Banner-files): Remove variable.
29627 ($(objpfx)version-info.h): Remove rule.
29628 * csu/version.c (banner): Do not include "version-info.h".
29629 * libidn/Banner: Remove.
29630 * manual/contrib.texi (Simon Josefsson): New entry.
29631
29632 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29633
29634 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29635 Remove conditionals on LDBL_MANT_DIG.
29636 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29637 (__ieee754_lgammal_r): Likewise.
29638
29639 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29640
29641 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29642 _Float128 and L().
29643 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29644 _Float128 and L(). Replace _Float128 with long double and L(x)
29645 with xL, throughout the file.
29646 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29647 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29648 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29649 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29650
29651 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29652
29653 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29654 sysdeps/ieee754/ldbl-128ibm.
29655 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29656 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29657 of including it. Keep _Float128 and L() intact. These will be
29658 reviewed by a separate patch.
29659 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29660 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29661 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29662 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29663
29664 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29665
29666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29667 (__finitef128): Define to __redirect___finitef128.
29668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29669 (__isinff128): Define to __redirect___isinff128.
29670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29671 (__isnanf128): Define to __redirect___isnanf128.
29672
29673 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29674
29675 * sysdeps/powerpc/powerpc64le/Makefile
29676 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29677 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29678
29679 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29680 Carlos O'Donell <carlos@redhat.com>
29681
29682 [BZ #22180]
29683 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29684 * stdlib/test-dlclose-exit-race.c: New file.
29685 * stdlib/test-dlclose-exit-race-helper.c: New file.
29686 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29687
29688 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29689
29690 * crypt/Banner: Remove file.
29691 * nptl/Banner: Likewise.
29692 * resolv/Banner: Likewise.
29693 * soft-fp/Banner: Likewise.
29694 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29695 ($(objpfx)version.d): Remove dependency on banner.h.
29696 ($(objpfx)version.os): Likewise.
29697 * nptl/version.c (banner): Do not include banner.h.
29698 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29699 Jelinek and BIND code.
29700
29701 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29702 Carlos O'Donell <carlos@redhat.com>
29703
29704 * support/xdlfcn.h: New file.
29705 * support/xdlfcn.c: New file.
29706 * support/Makefile (libsupport-routines): Add xdlfcn.
29707 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29708
29709 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29710
29711 [BZ #20142]
29712 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29713 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29714 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29715 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29716 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29717 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29718 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29719 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29720
29721 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29722 Ricky Zhou <rickyz@google.com>
29723 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29724
29725 [BZ #14333]
29726 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29727 Remove atomics.
29728 (__new_exitfn): Fail registration when we finished at_exit processing.
29729 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29730 * stdlib/on_exit.c (__on_exit): Likewise.
29731 * stdlib/exit.c (__exit_funcs_done): New variable.
29732 (__run_exit_handlers): Use __exit_funcs_lock.
29733 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29734 declarations.
29735 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29736 (test-cxa_atexit-race, test-on_exit-race): New tests.
29737 * stdlib/test-atexit-race-common.c: New file.
29738 * stdlib/test-atexit-race.c: New file.
29739 * stdlib/test-at_quick_exit-race.c: New file.
29740 * stdlib/test-cxa_atexit-race.c: New file.
29741 * stdlib/test-on_exit-race.c: New file.
29742
29743 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29744
29745 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29746 * benchtests/exp2f-inputs: Copy of expf-inputs.
29747 * benchtests/log2f-inputs: Copy of logf-inputs.
29748
29749 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29750
29751 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29752 Explicitly take address of first element of array arguments in
29753 call to INLINE_SYSCALL.
29754
29755 2017-09-19 Andreas Schwab <schwab@suse.de>
29756
29757 [BZ #22134]
29758 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29759 execveat first.
29760 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29761 unimplemented.
29762 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29763 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29764 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29765 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29766 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29767 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29768 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29769 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29770 * posix/Makefile (tests): Add tst-fexecve.
29771 * posix/tst-fexecve.c: New file.
29772
29773 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29774
29775 * benchtests/Makefile: Add logf benchmark.
29776 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29777
29778 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29779
29780 * benchtests/Makefile: Add expf benchmark.
29781 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29782
29783 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29784
29785 * csu/Makefile: Add -funwind-tables to libc-start.c.
29786 * debug/Makefile: Add -funwind-tables to backtrace.c.
29787 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29788 * sysdeps/arm/Makefile: Likewise.
29789 * sysdeps/i386/Makefile: Likewise.
29790 * sysdeps/m68k/Makefile: Likewise.
29791 * sysdeps/mips/Makefile: Likewise.
29792 * sysdeps/nios2/Makefile: Likewise.
29793 * sysdeps/sh/Makefile: Likewise.
29794 * sysdeps/sparc/Makefile: Likewise.
29795
29796 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29797
29798 * benchtests/Makefile (bench-math): Add trunc and truncf.
29799 (CFLAGS-bench-trunc.c): New variable.
29800 (CFLAGS-bench-truncf.c): Likewise.
29801 * benchtests/trunc-inputs: New file.
29802 * benchtests/truncf-inputs: Likewise.
29803
29804 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29805
29806 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29807
29808 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29809
29810 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29811 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29812 redefine.
29813 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29814 (exp10l): Define as weak alias.
29815 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29816 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29817 and redefine.
29818 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29819 (remainderl): Define as weak alias.
29820
29821 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29822 (fmal): Define using libm_alias_ldouble.
29823 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29824 (acoshl): Define using libm_alias_ldouble.
29825 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29826 (acosl): Define using libm_alias_ldouble.
29827 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29828 (asinl): Define using libm_alias_ldouble.
29829 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29830 (atan2l): Define using libm_alias_ldouble.
29831 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29832 (atanhl): Define using libm_alias_ldouble.
29833 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29834 (coshl): Define using libm_alias_ldouble.
29835 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29836 (exp10l): Define using libm_alias_ldouble.
29837 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29838 (exp2l): Define using libm_alias_ldouble.
29839 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29840 (expl): Define using libm_alias_ldouble.
29841 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29842 (fmodl): Define using libm_alias_ldouble.
29843 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29844 (hypotl): Define using libm_alias_ldouble.
29845 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29846 (j0l): Define using libm_alias_ldouble.
29847 (y0l): Likewise.
29848 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29849 (j1l): Define using libm_alias_ldouble.
29850 (y1l): Likewise.
29851 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29852 (jnl): Define using libm_alias_ldouble.
29853 (ynl): Likewise.
29854 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29855 (log10l): Define using libm_alias_ldouble.
29856 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29857 (log2l): Define using libm_alias_ldouble.
29858 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29859 (logl): Define using libm_alias_ldouble.
29860 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29861 (powl): Define using libm_alias_ldouble.
29862 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29863 (remainderl): Define using libm_alias_ldouble.
29864 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29865 (sinhl): Define using libm_alias_ldouble.
29866 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29867 (sqrtl): Define using libm_alias_ldouble.
29868 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29869 (tgammal): Define using libm_alias_ldouble.
29870 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29871 (exp10l): Do not use long_double_symbol here.
29872 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29873 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29874 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29875 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29876 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29877 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29878 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29879 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29880 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29881 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29882 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29883 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29884 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29885 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29886 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29887 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29888 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29889 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29890 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29891 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29892 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29893 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29894
29895 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29896
29897 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29898 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29899
29900 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29901
29902 * io/read.c (read): Add libc_hidden_weak.
29903 * sysdeps/mach/hurd/read.c (read): Likewise.
29904 * io/write.c (write): Likewise.
29905 * sysdeps/mach/hurd/write.c (write): Likewise.
29906 * io/pread64.c (__pread64): Likewise.
29907 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29908 * posix/pread64.c (__pread64): Add libc_hidden_def.
29909
29910 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29911
29912 * benchtests/scripts/compare_strings.py: New option -g.
29913 (draw_graph): Print a message that a graph is being generated.
29914 (process_results): Generate graph only if -g is passed.
29915 (main): Process option -g.
29916
29917 * benchtests/scripts/compare_strings.py (process_results):
29918 Better spacing for output.
29919
29920 * benchtests/scripts/compare_strings.py: Use argparse.
29921 * benchtests/README: Document existence of compare_strings.py.
29922
29923 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29924
29925 * math/s_fma.c: Include <libm-alias-double.h>.
29926 (fma): Define using libm_alias_double.
29927 * math/s_nextafter.c: Include <libm-alias-double.h>.
29928 (nextafter): Define using libm_alias_double.
29929 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29930 (acos): Define using libm_alias_double.
29931 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29932 (aocsh): Define using libm_alias_double.
29933 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29934 (asin): Define using libm_alias_double.
29935 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29936 (atan2): Define using libm_alias_double.
29937 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29938 (atanh): Define using libm_alias_double.
29939 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29940 (cosh): Define using libm_alias_double.
29941 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29942 (exp10): Define using libm_alias_double.
29943 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29944 (exp2): Define using libm_alias_double.
29945 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29946 (exp): Define using libm_alias_double.
29947 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29948 (fmod): Define using libm_alias_double.
29949 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29950 (hypot): Define using libm_alias_double.
29951 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29952 (j0): Define using libm_alias_double.
29953 (y0): Likewise.
29954 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29955 (j1): Define using libm_alias_double.
29956 (y1): Likewise.
29957 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29958 (jn): Define using libm_alias_double.
29959 (yn): Likewise.
29960 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29961 (log10): Define using libm_alias_double.
29962 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29963 (log2): Define using libm_alias_double.
29964 * math/w_log_compat.c: Include <libm-alias-double.h>.
29965 (log): Define using libm_alias_double.
29966 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29967 (pow): Define using libm_alias_double.
29968 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29969 (remainder): Define using libm_alias_double.
29970 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29971 (sinh): Define using libm_alias_double.
29972 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29973 (sqrt): Define using libm_alias_double.
29974 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29975 (tgamma): Define using libm_alias_double.
29976 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29977 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29978 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29979 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29980 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29981 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29982 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29983 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29984 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29985 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29986 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29987 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29988 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29989 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29990 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29991 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29992 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29993 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29994 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29995 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29996 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29997 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29998 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29999 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30000 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30001
30002 * math/e_acoshl.c: Remove.
30003 * math/e_acosl.c: Likewise.
30004 * math/e_asinl.c: Likewise.
30005 * math/e_atan2l.c: Likewise.
30006 * math/e_atanhl.c: Likewise.
30007 * math/e_coshl.c: Likewise.
30008 * math/e_expl.c: Likewise.
30009 * math/e_fmodl.c: Likewise.
30010 * math/e_gammal_r.c: Likewise.
30011 * math/e_hypotl.c: Likewise.
30012 * math/e_j0l.c: Likewise.
30013 * math/e_j1l.c: Likewise.
30014 * math/e_jnl.c: Likewise.
30015 * math/e_lgammal_r.c: Likewise.
30016 * math/e_log10l.c: Likewise.
30017 * math/e_log2l.c: Likewise.
30018 * math/e_logl.c: Likewise.
30019 * math/e_powl.c: Likewise.
30020 * math/e_rem_pio2l.c: Likewise.
30021 * math/e_sinhl.c: Likewise.
30022 * math/e_sqrtf128.c: Likewise.
30023 * math/e_sqrtl.c: Likewise.
30024 * math/k_cosl.c: Likewise.
30025 * math/k_sinl.c: Likewise.
30026 * math/k_tanl.c: Likewise.
30027 * math/s_asinhl.c: Likewise.
30028 * math/s_atanl.c: Likewise.
30029 * math/s_cbrtl.c: Likewise.
30030 * math/s_erfl.c: Likewise.
30031 * math/s_expm1l.c: Likewise.
30032 * math/s_log1pl.c: Likewise.
30033 * math/s_tanhl.c: Likewise.
30034
30035 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30036
30037 [BZ #21745]
30038 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30039 [$(subdir) = math] (sysdep_calls): New variable. Has the
30040 previous contents of sysdep_routines, but re-sorted..
30041 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30042 sysdep_calls.
30043 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30044 defined in sysdep_calls and replace by the respective m_* names.
30045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30046 (compat_symbol): Undefine to avoid duplicated compat symbols in
30047 libc.
30048
30049 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30050
30051 * math/s_fmaf.c: Include <libm-alias-float.h>.
30052 (fmaf): Define using libm_alias_float.
30053 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30054 (acosf): Define using libm_alias_float.
30055 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30056 (acoshf): Define using libm_alias_float.
30057 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30058 (asinf): Define using libm_alias_float.
30059 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30060 (atan2f): Define using libm_alias_float.
30061 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30062 (atanhf): Define using libm_alias_float.
30063 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30064 (coshf): Define using libm_alias_float.
30065 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30066 (exp10f): Define using libm_alias_float.
30067 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30068 (fmodf): Define using libm_alias_float.
30069 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30070 (hypotf): Define using libm_alias_float.
30071 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30072 (j0f): Define using libm_alias_float.
30073 (y0f): Likewise.
30074 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30075 (j1f): Define using libm_alias_float.
30076 (y1f): Likewise.
30077 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30078 (jnf): Define using libm_alias_float.
30079 (ynf): Likewise.
30080 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30081 (log10f): Define using libm_alias_float.
30082 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30083 (log2f): Define using libm_alias_float.
30084 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30085 (logf): Define using libm_alias_float.
30086 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30087 (powf): Define using libm_alias_float.
30088 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30089 (remainderf): Define using libm_alias_float.
30090 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30091 (sinhf): Define using libm_alias_float.
30092 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30093 (sqrtf): Define using libm_alias_float.
30094 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30095 (tgammaf): Define using libm_alias_float.
30096
30097 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30098
30099 * include/math.h (roundeven): Change hidden_proto call to
30100 __roundeven.
30101 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30102 alias.
30103 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30104 (y0): Rename to __y0 and define as weak alias.
30105 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30106 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30107 alias.
30108 (y0f): Rename to __y0f and define as weak alias.
30109 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30110 alias.
30111 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30112 (y1): Rename to __y1 and define as weak alias.
30113 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30114 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30115 alias.
30116 (y1f): Rename to __y1f and define as weak alias.
30117 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30118 alias.
30119 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30120 (yn): Rename to __yn and define as weak alias.
30121 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30122 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30123 alias.
30124 (ynf): Rename to __ynf and define as weak alias.
30125 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30126 (fromfp): Define as weak alias.
30127 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30128 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30129 (fromfpx): Define as weak alias.
30130 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30131 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30132 __getpayload and define as weak alias.
30133 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30134 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30135 __roundeven and define as weak alias.
30136 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30137 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30138 __setpayload.
30139 (setpayload): Define as weak alias.
30140 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30141 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30142 __setpayloadsig.
30143 (setpayloadsig): Define as weak alias.
30144 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30145 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30146 __totalorder and define as weak alias.
30147 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30148 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30149 to __totalordermag and define as weak alias.
30150 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30151 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30152 (ufromfp): Define as weak alias.
30153 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30154 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30155 __ufromfpx.
30156 (ufromfpx): Define as weak alias.
30157 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30158 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30159 Rename to __getpayload and define as weak alias.
30160 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30161 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30162 Rename to __roundeven and define as weak alias.
30163 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30164 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30165 Rename to __totalorder and define as weak alias.
30166 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30167 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30168 (totalordermag): Rename to __totalordermag and define as weak
30169 alias.
30170 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30171 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30172 macro.
30173 (__roundevenl): Likewise.
30174 (__totalorderl): Likewise.
30175 (__totalordermagl): Likewise
30176 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30177 __fromfpf128.
30178 (fromfpf128): Define as weak alias.
30179 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30180 __fromfpxf128.
30181 (fromfpxf128): Define as weak alias.
30182 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30183 __setpayloadf128.
30184 (setpayloadf128): Define as weak alias.
30185 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30186 __setpayloadsigf128.
30187 (setpayloadsigf128): Define as weak alias.
30188 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30189 __ufromfpf128.
30190 (ufromfpf128): Define as weak alias.
30191 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30192 __ufromfpxf128.
30193 (ufromfpxf128): Define as weak alias.
30194 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30195 (fromfpf): Define as weak alias.
30196 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30197 __fromfpxf.
30198 (fromfpxf): Define as weak alias.
30199 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30200 __getpayloadf and define as weak alias.
30201 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30202 __roundevenf and define as weak alias.
30203 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30204 __setpayloadf.
30205 (setpayloadf): Define as weak alias.
30206 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30207 __setpayloadsigf.
30208 (setpayloadsigf): Define as weak alias.
30209 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30210 __totalorderf and define as weak alias.
30211 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30212 Rename to __totalordermagf and define as weak alias.
30213 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30214 __ufromfpf.
30215 (ufromfpf): Define as weak alias.
30216 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30217 __ufromfpxf.
30218 (ufromfpxf): Define as weak alias.
30219 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30220 __fromfpl.
30221 (fromfpl): Define as weak alias.
30222 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30223 __fromfpxl.
30224 (fromfpxl): Define as weak alias.
30225 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30226 to __getpayloadl and define as weak alias.
30227 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30228 __roundevenl and define as weak alias.
30229 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30230 __setpayloadl.
30231 (setpayloadl): Define as weak alias.
30232 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30233 __setpayloadsigl.
30234 (setpayloadsigl): Define as weak alias.
30235 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30236 to __totalorderl and define as weak alias.
30237 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30238 Rename to __totalordermagl and define as weak alias.
30239 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30240 __ufromfpl.
30241 (ufromfpl): Define as weak alias.
30242 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30243 __ufromfpxl.
30244 (ufromfpxl): Define as weak alias.
30245 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30246 __fromfpl.
30247 (fromfpl): Define as weak alias.
30248 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30249 __fromfpxl.
30250 (fromfpxl): Define as weak alias.
30251 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30252 Rename to __getpayloadl and define as weak alias.
30253 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30254 to __roundevenl and define as weak alias. Call __roundeven
30255 instead of roundeven.
30256 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30257 __setpayloadl.
30258 (setpayloadl): Define as weak alias.
30259 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30260 __setpayloadsigl.
30261 (setpayloadsigl): Define as weak alias.
30262 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30263 Rename to __totalorderl and define as weak alias.
30264 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30265 Rename to __totalordermagl and define as weak alias.
30266 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30267 __ufromfpl.
30268 (ufromfpl): Define as weak alias.
30269 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30270 __ufromfpxl.
30271 (ufromfpxl): Define as weak alias.
30272 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30273 __fromfpl.
30274 (fromfpl): Define as weak alias.
30275 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30276 __fromfpxl.
30277 (fromfpxl): Define as weak alias.
30278 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30279 __getpayloadl and define as weak alias.
30280 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30281 __roundevenl and define as weak alias.
30282 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30283 __setpayloadl.
30284 (setpayloadl): Define as weak alias.
30285 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30286 __setpayloadsigl.
30287 (setpayloadsigl): Define as weak alias.
30288 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30289 __totalorderl and define as weak alias.
30290 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30291 Rename to __totalordermagl and define as weak alias.
30292 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30293 __ufromfpl.
30294 (ufromfpl): Define as weak alias.
30295 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30296 __ufromfpxl.
30297 (ufromfpxl): Define as weak alias.
30298
30299 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30300
30301 * benchtests/bench-string.h (realloc_bufs): New function.
30302 (test_init): Call it.
30303 * benchtests/bench-memset-large.c (do_test): Likewise.
30304 * benchtests/bench-memset.c (do_test): Likewise.
30305
30306 * benchtests/bench-memset-large.c: Print output in JSON
30307 format.
30308 * benchtests/bench-memset.c: Likewise.
30309
30310 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30311
30312 [BZ #21084]
30313 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30314 * iconvdata/Makefile: Add IBM858.
30315 * iconvdata/gconv-modules: Likewise.
30316 * iconvdata/tst-tables.sh: Likewise.
30317 * iconvdata/ibm858.c: New file.
30318 * localedata/charmaps/IBM858: Likewise.
30319
30320 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30321
30322 [BZ #22023]
30323 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30324 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30325
30326 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30327
30328 [BZ #22112]
30329 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30330 and add tel_int_fmt.
30331
30332 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30333
30334 * sysdeps/generic/libm-alias-float128.h: New file.
30335 * sysdeps/generic/math-type-macros-float128.h: Include
30336 <libm-alias-float128.h>.
30337 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30338
30339 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30340
30341 * sysdeps/generic/libm-alias-ldouble.h: New file.
30342 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30343 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30344 * sysdeps/generic/math-type-macros-ldouble.h: Include
30345 <libm-alias-ldouble.h>.
30346 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30347 libm_alias_ldouble.
30348
30349 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30350
30351 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30352 * math/w_exp_compat.c: ... here.
30353 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30354 * math/w_expf_compat.c: ... here.
30355 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30356 * math/w_expl_compat.c: ... here.
30357 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30358 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30359 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30360 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30361
30362 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30363
30364 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30365 redefine.
30366 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30367 macro.
30368 (ldexpl): Only define as compat symbol for libc, not libm.
30369 (scalbnl): Define as compat symbol for libc here.
30370 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30371 define for [IS_IN (libc)].
30372 (__ldexpl_2): Remove alias.
30373 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30374 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30375 name in long_double_symbol call.
30376 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30377 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30378 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30379 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30380 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30381 Remove macro.
30382 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30383 Define as compat symbol.
30384
30385 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30386
30387 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30388 * sysdeps/unix/sysv/linux/alpha/Makefile
30389 [$(subdir) = csu] (sysdep_routines): Remove rule.
30390
30391 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30392
30393 * sysdeps/generic/libm-alias-double.h: New file.
30394 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30395 * sysdeps/generic/math-type-macros-double.h: Include
30396 <libm-alias-double.h>.
30397 [declare_mgen_alias] (declare_mgen_alias): Define to use
30398 libm_alias_double.
30399 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30400 (M_LIBM_NEED_COMPAT): Remove macro.
30401 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30402 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30403 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30404 code.
30405 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30406 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30407 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30408 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30409 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30410 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30411 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30412 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30413 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30414 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30415 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30416 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30417 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30418 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30419 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30420 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30421 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30422 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30423 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30424 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30425 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30426 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30427 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30428 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30429 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30430 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30431 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30432 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30433 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30434 macro.
30435 (declare_mgen_alias): New macro.
30436 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30437 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30439 (M_LIBM_NEED_COMPAT): Remove macro.
30440 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30441 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30442 <first-versions.h>.
30443 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30444 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30445
30446 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30447
30448 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30449 (declare_mgen_alias_2): Remove.
30450 * sysdeps/generic/math-type-macros-double.h
30451 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30452 Likewise.
30453 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30454 alias.
30455 (ldexp): Define with declare_mgen_alias.
30456 (scalbn): Likewise.
30457
30458 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30459
30460 * grp/initgroups.c: Include config.h.
30461 (DEFAULT_CONFIG): New macro.
30462 (internal_getgrouplist): Use DEFAULT_CONFIG.
30463 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30464 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30465 (DEFAULT_DEFCONFIG): New macro.
30466 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30467 * nss/grp-lookup.c: Include config.h
30468 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30469 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30470 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30471 * manual/nss.texi: Update default values section.
30472
30473 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30474
30475 [BZ #21967]
30476 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30477 New.
30478 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30479 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30480 Handle MathVec_Prefer_No_AVX512.
30481 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30482 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30483 is set.
30484
30485 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30486
30487 * posix/sched_primax.c (__sched_get_priority_max): Add
30488 libc_hidden_def.
30489 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30490 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30491 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30492 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30493 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30494 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30495 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30496 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30497 Add aliases.
30498
30499 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30500
30501 * sysdeps/generic/libm-alias-float.h: New file.
30502 * sysdeps/generic/math-type-macros-float.h: Include
30503 <libm-alias-float.h>.
30504 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30505
30506 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30507
30508 [BZ #22093]
30509 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30510 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30511 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30512 (HWCAP_IMPORTANT): Likewise.
30513 (HWCAP_X86_64): New enum.
30514 (HWCAP_X86_AVX512_1): Updated.
30515 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30516 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30517 (modules-names): Add x86_64/tst-x86_64mod-1.
30518 (LDFLAGS-tst-x86_64mod-1.so): New.
30519 ($(objpfx)tst-x86_64-1): Likewise.
30520 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30521 (tst-x86_64-1-clean): Likewise.
30522 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30523 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30524
30525 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30526
30527 * po/sv.po: Update translations.
30528 * po/fr.po: Likewise.
30529
30530 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30531
30532 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30533 seconds.
30534 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30535 seconds.
30536 * elf/rtld-Rules: Fix $(error) use.
30537
30538 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30539
30540 [BZ #14925]
30541 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30542 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30543 * localedata/locales/bn_BD: “Bengali” was still used in some
30544 comments. Change it to “Bangla”.
30545
30546 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30547
30548 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30549
30550 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30551
30552 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30553 thunderx2t99p1 to list of cpu names.
30554 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30555 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30556
30557 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30558
30559 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30560 Use strcmp instead of tunable_is_name.
30561
30562 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30563
30564 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30565 (F_GET_RW_HINT): New macro.
30566 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30567 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30568 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30569 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30570 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30571 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30572 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30573 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30574 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30575
30576 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30577 (F_ADD_SEALS): New macro.
30578 [__USE_GNU] (F_GET_SEALS): Likewise.
30579 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30580 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30581 [__USE_GNU] (F_SEAL_GROW): Likewise.
30582 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30583
30584 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30585
30586 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30587 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30588 * posix/glob_internal.h (__glob_pattern_type):
30589 * posix/glob.c (glob):
30590 * posix/glob_pattern_p.c (__glob_pattern_p):
30591 Use them.
30592
30593 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30594 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30595 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30596 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30597 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30599 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30600 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30601 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30602 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30603 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30604 * sysdeps/wordsize-64/glob.c: Likewise.
30605 * sysdeps/wordsize-64/glob64.c: Likewise.
30606 * sysdeps/wordsize-64/globfree.c: Likewise.
30607 * sysdeps/wordsize-64/globfree64.c: Likewise.
30608 * sysdeps/unix/sysv/linux/glob.c: New file.
30609 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30610 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30611 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30612 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30613 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30614 adds !GLOB_NO_OLD_VERSION as an extra condition.
30615 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30616 using relative path instead of absolute one.
30617 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30618 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30619 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30620 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30621 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30622 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30623
30624 [BZ #1062]
30625 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30626 (glob): Use the same scratch buffer for both getlogin_r and
30627 getpwnam_r. Don’t require preallocation of the login name. This
30628 simplifies storage allocation, and corrects the handling of
30629 long login names.
30630
30631 [BZ #1062]
30632 * posix/glob.c (glob): Port recent patches to platforms
30633 lacking getpwnam_r.
30634 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30635 returns an error number rather than setting errno.
30636
30637 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30638 instead of GCC extension.
30639 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30640 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30641 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30642
30643 [BZ #866]
30644 [BZ #1062]
30645 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30646 * posix/bug-glob1.c: Remove file.
30647 * posix/tst-glob_symlinks.c: New file.
30648 * posix/glob.c (__lstat64): New macro.
30649 (is_dir): New function.
30650 (glob, glob_in_dir): Match symlinks even if they are dangling.
30651 (link_stat, link_exists_p): Remove. All uses removed.
30652
30653 [BZ #1062]
30654 [BZ #19971]
30655 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30656 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30657 All uses removed.
30658
30659 [BZ #1062]
30660 CVE-2017-15671
30661 * posix/Makefile (routines): Add globfree, globfree64, and
30662 glob_pattern_p.
30663 * posix/flexmember.h: New file.
30664 * posix/glob_internal.h: Likewise.
30665 * posix/glob_pattern_p.c: Likewise.
30666 * posix/globfree.c: Likewise.
30667 * posix/globfree64.c: Likewise.
30668 * sysdeps/gnu/globfree64.c: Likewise.
30669 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30670 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30671 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30672 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30673 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30674 * sysdeps/wordsize-64/globfree.c: Likewise.
30675 * sysdeps/wordsize-64/globfree64.c: Likewise.
30676 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30677 [NDEBUG): Remove comments.
30678 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30679 (dirent_type): New type. Use uint_fast8_t not
30680 uint8_t, as C99 does not require uint8_t.
30681 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30682 (struct readdir_result): Use dirent_type. Do not define skip_entry
30683 unless it is needed; this saves a byte on platforms lacking d_ino.
30684 (readdir_result_type, readdir_result_skip_entry):
30685 New functions, replacing ...
30686 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30687 these functions, which were removed. This makes the callers
30688 easier to read. All callers changed.
30689 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30690 (size_add_wrapv, glob_use_alloca): New static functions.
30691 (glob, glob_in_dir): Check for size_t overflow in several places,
30692 and fix some size_t checks that were not quite right.
30693 Remove old code using SHELL since Bash no longer
30694 uses this.
30695 (glob, prefix_array): Separate MS code better.
30696 (glob_in_dir): Remove old Amiga and VMS code.
30697 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30698 separate files.
30699 (glob_in_dir): Do not rely on undefined behavior in accessing
30700 struct members beyond their bounds. Use a flexible array member
30701 instead
30702 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30703 0/1. Caller changed.
30704 (glob): Fix memory leaks.
30705 * posix/glob64 (globfree64): Move to separate file.
30706 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30707 (globfree64): Remove hidden alias.
30708 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30709 oldglob.
30710 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30711 separate file.
30712 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30713 define.
30714 Move compat code to separate file.
30715 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30716 separate file.
30717
30718 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30719
30720 * resolv/tst-resolv-qtypes.c (domain): Changed to
30721 "const char domain[] =".
30722
30723 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30724
30725 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30726 version to 3.1.6.
30727
30728 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30729 (TCP_MD5SIG_EXT): Likewise.
30730 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30731 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30732 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30733
30734 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30735
30736 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30737
30738 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30739
30740 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30741
30742 [BZ #22100]
30743 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30744
30745 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30746
30747 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30748 before assuming that the file is empty. Avoid testing buffer content
30749 when nread == 0.
30750
30751 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30752
30753 [BZ #18858]
30754 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30755 Remove define.
30756 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30757 Likewise.
30758 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30759 Likewise.
30760 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30761 Likewise.
30762 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30763 Likewise.
30764 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30765 Likewise.
30766 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30767 Likewise.
30768
30769 2017-09-06 Florian Weimer <fweimer@redhat.com>
30770
30771 * malloc/dynarray_emplace_enlarge.c
30772 (__libc_dynarray_emplace_enlarge): Add missing else.
30773
30774 2017-09-06 Florian Weimer <fweimer@redhat.com>
30775
30776 [BZ #22096]
30777 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30778 case of failure to obtain the global conf object.
30779
30780 2017-09-06 Florian Weimer <fweimer@redhat.com>
30781
30782 [BZ #22095]
30783 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30784 dynarray allocation failure.
30785
30786 2017-09-06 Florian Weimer <fweimer@redhat.com>
30787
30788 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30789 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30790 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30791 New functions.
30792 (response): Call them. Add 'p', '6' flag processing.
30793 (test_reverse): New function.
30794 (test_get2_any): Call it.
30795 (test_no_inet6): Add 'p' test.
30796 (test_inet6): Likewise.
30797
30798 2017-09-06 Florian Weimer <fweimer@redhat.com>
30799
30800 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30801 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30802 the QNAME.
30803 (test_gai): Adjust query names. Add additional tests.
30804 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30805 test_get2. Adjust query names. Add additional tests.
30806 (test_no_inet6): New function, extracted from threadfunc.
30807 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30808 Add additional tests.
30809
30810 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30811
30812 [BZ #22070]
30813 * localedata/unicode-gen/utf8_gen.py: Set the width for
30814 characters with Prepended_Concatenation_Mark property to 1
30815 * localedata/charmaps/UTF-8: Updated using the improved script.
30816
30817 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30818
30819 [BZ #21750]
30820 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30821 use the range notation for all ranges of neighbouring characters
30822 with the same width.
30823
30824 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30825
30826 * sysdeps/generic/math-type-macros-double.h: Include
30827 <math-svid-compat.h>.
30828 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30829 * sysdeps/generic/math-type-macros-float.h: Include
30830 <math-svid-compat.h>.
30831 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30832 * sysdeps/generic/math-type-macros-ldouble.h: Include
30833 <math-svid-compat.h>.
30834 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30835 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30836 condition.
30837 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30838 * math/w_acosf_compat.c: Likewise.
30839 * math/w_acosh_compat.c: Likewise.
30840 * math/w_acoshf_compat.c: Likewise.
30841 * math/w_acoshl_compat.c: Likewise.
30842 * math/w_acosl_compat.c: Likewise.
30843 * math/w_asin_compat.c: Likewise.
30844 * math/w_asinf_compat.c: Likewise.
30845 * math/w_asinl_compat.c: Likewise.
30846 * math/w_atan2_compat.c: Likewise.
30847 * math/w_atan2f_compat.c: Likewise.
30848 * math/w_atan2l_compat.c: Likewise.
30849 * math/w_atanh_compat.c: Likewise.
30850 * math/w_atanhf_compat.c: Likewise.
30851 * math/w_atanhl_compat.c: Likewise.
30852 * math/w_cosh_compat.c: Likewise.
30853 * math/w_coshf_compat.c: Likewise.
30854 * math/w_coshl_compat.c: Likewise.
30855 * math/w_exp10_compat.c: Likewise.
30856 * math/w_exp10f_compat.c: Likewise.
30857 * math/w_exp10l_compat.c: Likewise.
30858 * math/w_exp2_compat.c: Likewise.
30859 * math/w_exp2f_compat.c: Likewise.
30860 * math/w_exp2l_compat.c: Likewise.
30861 * math/w_fmod_compat.c: Likewise.
30862 * math/w_fmodf_compat.c: Likewise.
30863 * math/w_fmodl_compat.c: Likewise.
30864 * math/w_hypot_compat.c: Likewise.
30865 * math/w_hypotf_compat.c: Likewise.
30866 * math/w_hypotl_compat.c: Likewise.
30867 * math/w_j0_compat.c: Likewise.
30868 * math/w_j0f_compat.c: Likewise.
30869 * math/w_j0l_compat.c: Likewise.
30870 * math/w_j1_compat.c: Likewise.
30871 * math/w_j1f_compat.c: Likewise.
30872 * math/w_j1l_compat.c: Likewise.
30873 * math/w_jn_compat.c: Likewise.
30874 * math/w_jnf_compat.c: Likewise.
30875 * math/w_jnl_compat.c: Likewise.
30876 * math/w_lgamma_r_compat.c: Likewise.
30877 * math/w_lgammaf_r_compat.c: Likewise.
30878 * math/w_lgammal_r_compat.c: Likewise.
30879 * math/w_log10_compat.c: Likewise.
30880 * math/w_log10f_compat.c: Likewise.
30881 * math/w_log10l_compat.c: Likewise.
30882 * math/w_log2_compat.c: Likewise.
30883 * math/w_log2f_compat.c: Likewise.
30884 * math/w_log2l_compat.c: Likewise.
30885 * math/w_log_compat.c: Likewise.
30886 * math/w_logf_compat.c: Likewise.
30887 * math/w_logl_compat.c: Likewise.
30888 * math/w_pow_compat.c: Likewise.
30889 * math/w_powf_compat.c: Likewise.
30890 * math/w_powl_compat.c: Likewise.
30891 * math/w_remainder_compat.c: Likewise.
30892 * math/w_remainderf_compat.c: Likewise.
30893 * math/w_remainderl_compat.c: Likewise.
30894 * math/w_sinh_compat.c: Likewise.
30895 * math/w_sinhf_compat.c: Likewise.
30896 * math/w_sinhl_compat.c: Likewise.
30897 * math/w_sqrt_compat.c: Likewise.
30898 * math/w_sqrtf_compat.c: Likewise.
30899 * math/w_sqrtl_compat.c: Likewise.
30900 * math/w_tgamma_compat.c: Likewise.
30901 * math/w_tgammaf_compat.c: Likewise.
30902 * math/w_tgammal_compat.c: Likewise.
30903 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30904 [LIBM_SVID_COMPAT].
30905 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30906 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30907 [LIBM_SVID_COMPAT].
30908 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30909 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30910 [LIBM_SVID_COMPAT].
30911 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30912 * sysdeps/i386/fpu/w_sqrt.c: New file.
30913 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30914 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30915 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30916 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30917 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30918 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30919 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30920 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30921 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30922 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30923 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30924 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30925 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30926 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30927 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30928 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30929 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30930 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30931 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30932 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30933 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30934 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30935 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30936 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30937 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30938 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30939 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30940 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30941 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30942 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30943 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30944 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30945 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30946 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30947 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30948 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30949 * sysdeps/ia64/fpu/w_log.c: Likewise.
30950 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30951 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30952 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30953 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30954 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30955 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30956 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30957 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30958 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30959 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30960 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30961 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30962 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30963 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30964 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30965 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30966 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30967 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30968 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30969 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30970 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30971 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30972 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30973 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30974 [LIBM_SVID_COMPAT].
30975 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30976 * sysdeps/ieee754/k_standard.c: Likewise.
30977 * sysdeps/ieee754/k_standardf.c: Likewise.
30978 * sysdeps/ieee754/k_standardl.c: Likewise.
30979 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30980 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30981 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30982 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30983 long_double_symbol call on [LIBM_SVID_COMPAT].
30984 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30985 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30986 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30987 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30988 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30989 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30990 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30991 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30992 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30993 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30994 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30995 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30996 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30997 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30998 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30999 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31000 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31001 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31002 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31003 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31004 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31005 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31006
31007 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31008
31009 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31010 * malloc/tst-mallocstate.c: Convert from test-skeleton
31011 to test-driver. Ifdef code using TEST_COMPAT macro.
31012 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31013 * math/test-matherr.c: Likewise.
31014
31015 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31016
31017 [BZ #22086]
31018 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31019 comparing word with byte-swapped constant.
31020
31021 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31022
31023 [BZ #20498]
31024 * locale/iso-639.def: add Miskito.
31025 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31026 * localedata/locales/miq_NI: New file.
31027
31028 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31029
31030 [BZ #18822]
31031 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31032 (__mkdir): Likewise.
31033 * io/chmod.c (__chmod): Add libc_hidden_def.
31034 * io/mkdir.c (__mkdir): Likewise.
31035 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31036 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31037 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31038 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31039
31040 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31041
31042 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31043 version to 4.13.
31044
31045 [BZ #22082]
31046 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31047 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31048
31049 2017-09-04 Florian Weimer <fweimer@redhat.com>
31050
31051 * math/math.h: Issue warning if log is defined.
31052
31053 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31054
31055 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31056 kernel version to 4.13.
31057
31058 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31059
31060 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31061 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31062 parameter.
31063 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31064 just <bits/types.h>.
31065 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31066 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31067 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31068 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31069 * misc/preadv2.c: Include <errno.h>.
31070 * misc/preadv64v2.c: Include <errno.h>.
31071 * misc/pwritev2.c: Include <errno.h>.
31072 * misc/pwritev64v2.c: Include <errno.h>.
31073 * sysdeps/posix/preadv2.c: Include <errno.h>.
31074 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31075 Fix <unistd.h> inclusion.
31076 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31077 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31078 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31079 __strtoul_internal): New functions.
31080 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31081 * sysdeps/posix/system.c: Include <sigsetops.h>.
31082 * sysdeps/mach/hurd/i386/Makefile
31083 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31084 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31085 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31086 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31087 __feraiseexcept_renamed to feraiseexcept instead of
31088 __GI_feraiseexcept.
31089 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31090 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31091 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31092 RWF_NOWAIT): Define to 0 if undefined already.
31093 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31094 boils down to 0.
31095 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31096 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31097
31098 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31099
31100 * manual/math.texi (pow10): Do not document.
31101 (pow10f): Likewise.
31102 (pow10l): Likewise.
31103 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31104 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31105 * math/libm-test-exp10.inc (pow10_test): Remove.
31106 (do_test): Do not call pow10.
31107 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31108 [NO_LONG_DOUBLE] (pow10l): Likewise.
31109 * math/w_exp10f_compat.c (pow10f): Likewise.
31110 * math/w_exp10l_compat.c (pow10l): Likewise.
31111 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31112 (pow10): Make into compat symbol.
31113 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31114 (pow10f): Make into compat symbol.
31115 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31116 (pow10l): Make into compat symbol.
31117 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31118 pow10.
31119 (CFLAGS-nldbl-pow10.c): Remove variable..
31120 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31121 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31122 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31123 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31124 Undefine and redefine.
31125 (pow10l): Make into compat symbol.
31126 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31127 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31128 * sysdeps/arm/libm-test-ulps: Likewise.
31129 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31130 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31131 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31132 * sysdeps/microblaze/libm-test-ulps: Likewise.
31133 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31134 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31135 * sysdeps/nios2/libm-test-ulps: Likewise.
31136 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31137 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31138 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31139 * sysdeps/sh/libm-test-ulps: Likewise.
31140 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31141 * sysdeps/tile/libm-test-ulps: Likewise.
31142 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31143
31144 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31145
31146 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31147
31148 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31149
31150 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31151 "../ChangeLog.old/ChangeLog.8".
31152 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31153 "../ChangeLog.old/ChangeLog.14".
31154
31155 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31156
31157 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31158 Threads Library.
31159
31160 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31161
31162 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31163
31164 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31165
31166 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31167 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31168
31169 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31170
31171 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31172 32 atexit handlers.
31173
31174 2017-09-01 Zack Weinberg <zackw@panix.com>
31175
31176 * math/math.h (HUGE_VAL): Improve commentary.
31177
31178 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31179 Andreas Schwab <schwab@suse.de>
31180
31181 [BZ #21530]
31182 * include/stdio.h (__gen_tempfd): New function.
31183 * stdio-common/Makefile (routines): Add gentempfd.
31184 * stdio-common/gentempfd.c: New file.
31185 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31186 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31187 unnamed file first.
31188
31189 2017-09-01 Florian Weimer <fweimer@redhat.com>
31190
31191 [BZ #21915]
31192 [BZ #21922]
31193 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31194 result to determine success or failure, not the errno value.
31195 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31196 (tst-nss-files-hosts-erange): Link with -ldl.
31197 * nss/tst-nss-files-hosts-erange.c: New file.
31198 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31199 (do_test): Add NO_DATA tests.
31200 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31201 (do_test): Call it.
31202
31203 2017-09-01 Florian Weimer <fweimer@redhat.com>
31204
31205 [BZ #21922]
31206 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31207 coming from gethostbyname2_r.
31208
31209 2017-09-01 Florian Weimer <fweimer@redhat.com>
31210
31211 * support/namespace.h (struct support_chroot_configuration): Add
31212 hosts, host_conf.
31213 (struct support_chroot): Add path_hosts, path_host_conf.
31214 * support/support_chroot.c (write_file): New function.
31215 (support_chroot_create): Call it to process /etc/resolv.conf,
31216 /etc/hosts, /etc/host.conf.
31217 (support_chroot_free): Update.
31218
31219 2017-09-01 Florian Weimer <fweimer@redhat.com>
31220
31221 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31222 status indicates it is set.
31223
31224 2017-09-01 Florian Weimer <fweimer@redhat.com>
31225
31226 [BZ #20532]
31227 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31228 function lookup failures more reliable.
31229
31230 2017-09-01 Florian Weimer <fweimer@redhat.com>
31231
31232 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31233 (getcanonname): Likewise.
31234 (gaih_inet): Likewise.
31235
31236 2017-09-01 Florian Weimer <fweimer@redhat.com>
31237
31238 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31239 (getcanonname): Likewise.
31240 (gaih_inet): Likewise.
31241
31242 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31243 Richard Henderson <rth@twiddle.net>
31244
31245 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31246 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31247 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31248 (IREG_SIZE, OREG_SIZE): New macros.
31249 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31250 (IREG_SIZE, OREG_SIZE): New macros.
31251 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31252 (IREG_SIZE): New macro.
31253 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31254 (IREG_SIZE): New macro.
31255 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31256 New includes.
31257 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31258 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31259 (__CONCATX): Handle exceptions correctly on large values that may
31260 set FE_INVALID.
31261 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31262 Initialize if not already set.
31263 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31264
31265 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31266
31267 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31268 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31269 Likewise.
31270 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31271 Likewise.
31272 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31273 Likewise.
31274 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31275 Likewise.
31276 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31277 Likewise.
31278 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31279 Likewise.
31280 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31281 Likewise.
31282 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31283 (NO_CANCELLATION): Likewise.
31284 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31285 Likewise.
31286 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31287 Likewise.
31288 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31289 Likewise.
31290 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31291 (NO_CANCELLATION): Likewise.
31292 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31293 (NO_CANCELLATION): Likewise.
31294 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31295 Likewise
31296 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31297 Likewise.
31298 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31299 Likewise.
31300 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31301 Likewise.
31302 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31303 hidden prototype.
31304 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31305 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31306
31307 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31308
31309 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31310 in resolver call.
31311
31312 2017-08-31 Florian Weimer <fweimer@redhat.com>
31313
31314 * include/libc-symbols.h (internal_function): Remove.
31315
31316 2017-08-31 Florian Weimer <fweimer@redhat.com>
31317
31318 * stdlib/fmtmsg.c (internal_addseverity): Remove
31319 internal_function.
31320
31321 2017-08-31 Florian Weimer <fweimer@redhat.com>
31322
31323 * stdio-common/printf_fp.c (group_number): Remove
31324 internal_function.
31325 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31326
31327 2017-08-31 Florian Weimer <fweimer@redhat.com>
31328
31329 * posix/fnmatch.c (internal_function): Remove definition.
31330 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31331 * posix/regcomp.c (peek_token, init_word_char)
31332 (duplicate_node_closure, fetch_token, peek_token)
31333 (peek_token_bracket, build_range_exp, build_collating_symbol):
31334 Likewise.
31335 * posix/regex_internal.c (re_string_construct_common)
31336 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31337 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31338 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31339 (re_string_translate_buffer, re_string_reconstruct)
31340 (re_string_peek_byte_case, re_string_fetch_byte_case)
31341 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31342 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31343 (re_node_set_add_intersect, re_node_set_init_union)
31344 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31345 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31346 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31347 (re_acquire_state_context): Likewise.
31348 * posix/regex_internal.h (internal_function): Remove definition.
31349 (re_string_realloc_buffers, build_wcs_buffer)
31350 (build_wcs_upper_buffer, build_upper_buffer)
31351 (re_string_translate_buffer, re_string_context_at)
31352 (re_string_char_size_at, re_string_wchar_at)
31353 (re_string_elem_size_at): Likewise.
31354 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31355 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31356 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31357 (re_search_internal, re_search_2_stub, re_search_stub)
31358 (re_copy_regs, prune_impossible_nodes, check_matching)
31359 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31360 (free_fail_stack_return, sift_states_iter_mb)
31361 (sift_states_backward, build_sifted_states)
31362 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31363 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31364 (check_subexp_limits, sift_states_bkref, merge_state_array)
31365 (find_recover_state, transit_state, merge_state_with_log)
31366 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31367 (transit_state_mb, transit_state_bkref, get_subexp)
31368 (get_subexp_sub, find_subexp_node, check_arrival)
31369 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31370 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31371 (check_node_accept_bytes, find_collation_sequence_value)
31372 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31373 (acquire_init_state_context, check_halt_node_context)
31374 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31375 (sub_epsilon_src_nodes): Likewise.
31376 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31377 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31378 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31379 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31380 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31381 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31382 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31383 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31384 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31385 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31386 (PREADV): Likewise.
31387 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31388 (PREADV): Likewise.
31389 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31390 (PWRITEV): Likewise.
31391 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31392 (PWRITEV): Likewise.
31393 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31394 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31395
31396 2017-08-31 Florian Weimer <fweimer@redhat.com>
31397
31398 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31399 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31400 Remove internal_function.
31401 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31402 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31403 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31404 (__deallocate_stack, __libc_pthread_init)
31405 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31406 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31407 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31408 Likewise.
31409 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31410 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31411 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31412 Likewise.
31413 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31414 (__pthread_mutex_unlock_usercnt): Likewise.
31415
31416 2017-08-31 Florian Weimer <fweimer@redhat.com>
31417
31418 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31419 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31420 (fts_safe_changedir): Remove internal_function.
31421 * io/ftw.c (internal_function): Remove definition.
31422 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31423
31424 2017-08-31 Florian Weimer <fweimer@redhat.com>
31425
31426 * inet/deadline.c (__deadline_current_time)
31427 (__deadline_from_timeval, __deadline_to_ms): Remove
31428 internal_function.
31429 * inet/getnameinfo.c (nrl_domainname): Likewise.
31430 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31431 * inet/inet6_option.c (add_pad): Likewise.
31432 * inet/net-internal.h (__deadline_current_time)
31433 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31434 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31435 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31436 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31437
31438 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31439
31440 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31441 include <bits/nan.h>.
31442 * math/Makefile (headers): Remove bits/nan.h.
31443 * bits/nan.h: Remove.
31444 * sysdeps/ieee754/bits/nan.h: Likewise.
31445 * sysdeps/mips/bits/nan.h: Likewise.
31446
31447 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31448 not include <bits/inf.h>.
31449 * math/Makefile (headers): Remove bits/inf.h.
31450 * bits/inf.h: Remove.
31451 * sysdeps/ieee754/bits/inf.h: Likewise.
31452
31453 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31454 bits/huge_vall.h or bits/huge_val_flt128.h.
31455 (HUGE_VAL): Define directly here.
31456 [__USE_ISOC99] (HUGE_VALF): Likewise.
31457 [__USE_ISOC99] (HUGE_VALL): Likewise.
31458 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31459 (HUGE_VAL_F128): Likewise.
31460 * math/Makefile (headers): Remove bits/huge_val.h,
31461 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31462 * bits/huge_val.h: Remove.
31463 * bits/huge_val_flt128.h: Likewise.
31464 * bits/huge_valf.h: Likewise.
31465 * bits/huge_vall.h: Likewise.
31466 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31467 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31468 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31469 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31470 * sysdeps/sh/bits/huge_val.h: Likewise.
31471 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31472 * sysdeps/x86/bits/huge_vall.h: Likewise.
31473
31474 2017-08-31 Florian Weimer <fweimer@redhat.com>
31475
31476 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31477 internal_function.
31478 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31479 Likewise.
31480 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31481 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31482 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31483 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31484 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31485 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31486 * elf/dl-libc.c (dlerror_run): Likewise.
31487 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31488 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31489 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31490 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31491 Likewise.
31492 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31493 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31494 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31495 * elf/dl-profile.c (_dl_start_profile): Likewise.
31496 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31497 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31498 Likewise.
31499 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31500 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31501 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31502 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31503 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31504 (_dl_allocate_tls_storage): Likewise.
31505 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31506 (_dl_check_all_versions): Likewise.
31507 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31508 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31509 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31510 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31511 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31512 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31513 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31514 internal_function from __dl_start.
31515 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31516 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31517 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31518 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31519 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31520 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31521 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31522 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31523 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31524 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31525 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31526 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31527 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31528 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31529 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31530 Likewise.
31531 (struct rtld_global_ro): Remove internal_function from the
31532 _dl_lookup_symbol_x member.
31533 (_dl_symbol_value): Remove. No longer defined anywhere.
31534 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31535 internal_function.
31536 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31537 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31538 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31539 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31540 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31541 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31542 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31543 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31544 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31545 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31546 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31547 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31548
31549 2017-08-31 Florian Weimer <fweimer@redhat.com>
31550
31551 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31552 Remove internal_function.
31553 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31554 Likewise.
31555 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31556 Likewise.
31557
31558 2017-08-31 Florian Weimer <fweimer@redhat.com>
31559
31560 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31561 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31562 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31563
31564 2017-08-31 Florian Weimer <fweimer@redhat.com>
31565
31566 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31567 (__gai_enqueue_request): Remove internal_function.
31568 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31569 (__gai_remove_request, __gai_notify, __gai_notify_only)
31570 (__gai_sigqueue): Likewise.
31571 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31572 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31573 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31574 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31575 Likewise.
31576
31577 2017-08-31 Florian Weimer <fweimer@redhat.com>
31578
31579 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31580 * include/dirent.h (__opendirat, __getdents, __getdents64)
31581 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31582 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31583 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31584 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31585 Likewise.
31586 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31587
31588 2017-08-31 Florian Weimer <fweimer@redhat.com>
31589
31590 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31591 internal_function.
31592 (GETCWD_RETURN_TYPE): Likewise.
31593
31594 2017-08-31 Florian Weimer <fweimer@redhat.com>
31595
31596 * include/time.h (__tz_compute, __strptime_internal): Remove
31597 internal_function.
31598 * time/strptime_l.c (__strptime_internal): Likewise.
31599 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31600
31601 2017-08-31 Florian Weimer <fweimer@redhat.com>
31602
31603 * iconv/gconv.c (__gconv): Remove internal_function.
31604 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31605 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31606 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31607 (__gconv_release_cache): Likewise.
31608 * iconv/gconv_close.c (__gconv_close): Likewise.
31609 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31610 (read_conf_file, __gconv_get_path): Likewise.
31611 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31612 (__gconv_release_step, gen_steps, increment_counter)
31613 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31614 (__gconv_close_transform, free_modules_db): Likewise.
31615 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31616 Likewise.
31617 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31618 (__gconv_find_transform, __gconv_lookup_cache)
31619 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31620 (__gconv_close_transform, __gconv_release_cache)
31621 (__gconv_loaded_object, __gconv_release_shlib)
31622 (__gconv_compare_alias): Likewise.
31623 * iconv/gconv_open.c (__gconv_open): Likewise.
31624 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31625 * iconv/iconvconfig.c (add_module): Likewise.
31626 * intl/dcigettext.c (plural_lookup, guess_category_value)
31627 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31628 * intl/eval-plural.h (plural_eval): Likewise.
31629 * intl/finddomain.c (_nl_find_domain): Likewise.
31630 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31631 (_nl_load_domain, _nl_find_msg): Likewise.
31632 (internal_function): Remove definition.
31633 * intl/loadinfo.h (internal_function): Likewise.
31634 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31635 internal_function.
31636 * intl/localealias.c (internal_function): Remove definition.
31637 (read_alias_file): Remove internal_function.
31638 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31639 * intl/plural-exp.h (internal_function): Remove definition.
31640 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31641 internal_function.
31642 * intl/plural.c: Regenerate.
31643 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31644 * locale/coll-lookup.c (__collidx_table_lookup)
31645 (__collseq_table_lookup): Likewise.
31646 * locale/coll-lookup.h (__collidx_table_lookup)
31647 (__collseq_table_lookup): Likewise.
31648 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31649 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31650 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31651 (_nl_unload_locale): Likewise.
31652 * locale/localeinfo.h (struct __locale_data): Remove
31653 internal_function from cleanup member.
31654 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31655 (_nl_remove_locale, _nl_load_locale_from_archive)
31656 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31657 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31658 (_nl_cleanup_time): Remove internal_function.
31659 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31660 (_nl_parse_alt_digit): Likewise.
31661 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31662 (_nl_select_era_entry): Likewise.
31663 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31664 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31665 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31666 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31667 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31668
31669 2017-08-31 Florian Weimer <fweimer@redhat.com>
31670
31671 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31672 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31673 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31674 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31675 Likewise.
31676 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31677 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31678 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31679 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31680 Likewise.
31681 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31682
31683 2017-08-31 Florian Weimer <fweimer@redhat.com>
31684
31685 * misc/getttyent.c (skip, value): Remove internal_function.
31686 * misc/syslog.c (openlog_internal): Likewise.
31687 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31688
31689 2017-08-31 Florian Weimer <fweimer@redhat.com>
31690
31691 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31692 (__nss_rewrite_field): Remove internal_function.
31693 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31694 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31695 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31696 * nss/nsswitch.c (nss_parse_file, nss_getline)
31697 (nss_parse_service_list, nss_new_service): Likewise.
31698 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31699 * nss/valid_field.c (__nss_valid_field): Likewise.
31700 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31701
31702 2017-08-31 Florian Weimer <fweimer@redhat.com>
31703
31704 * malloc/arena.c (__malloc_fork_lock_parent)
31705 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31706 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31707 internal_function from defintions.
31708 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31709 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31710 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31711 internal_function from declarations.
31712 * malloc/malloc.c (internal_function): Do not define.
31713 (mem2mem_check): Remove internal_function from declaration.
31714 (munmap_chunk, mremap_chunk): Remove internal_function.
31715 * malloc/mtrace.c (tr_where): Likewise.
31716
31717 2017-08-31 Florian Weimer <fweimer@redhat.com>
31718
31719 * include/rpc/pmap_clnt.h (__get_socket): Remove
31720 internal_function.
31721 * sunrpc/auth_des.c (synchronize): Likewise.
31722 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31723 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31724 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31725 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31726 (key_call): Likewise.
31727 * sunrpc/pm_getport.c (__get_socket): Likewise.
31728 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31729 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31730 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31731 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31732 (invalidate): Likewise.
31733 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31734 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31735 (set_input_fragment, get_input_bytes): Likewise.
31736
31737 2017-08-31 Florian Weimer <fweimer@redhat.com>
31738
31739 * malloc/malloc.c (_int_free): Remove locked variable and related
31740 asserts.
31741
31742 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31743
31744 [BZ #22051]
31745 * Makerules (build-module-helper-objlist): Filter out
31746 $(elf-objpfx)sofini.os.
31747 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31748 needed.
31749
31750 2017-08-31 Florian Weimer <fweimer@redhat.com>
31751
31752 * libio/fcloseall.c: Assume weak_alias is defined.
31753 * libio/feof.c: Likewise.
31754 * libio/fileno.c: Likewise.
31755 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31756 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31757 definitions.
31758 (_IO_file_open): Call __open directly.
31759 (_IO_new_file_sync): Assume ESPIPE is defined.
31760 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31761 (_IO_new_file_write): Call __write directly.
31762 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31763 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31764 * libio/genops.c: Assume _LIBC is defined.
31765 (save_for_backup): Remove internal_function.
31766 * libio/getc.c: Assume weak_alias is defined.
31767 * libio/getwc.c: Likewise.
31768 * libio/iofclose.c: Assume _LIBC is defined.
31769 * libio/iofdopen.c: Likewise.
31770 (_IO_fcntl): Remove macro definition.
31771 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31772 Call __fcntl directly.
31773 * libio/iofflush.c: Assume weak_alias is defined.
31774 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31775 defined.
31776 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31777 * libio/iofgets.c: Likewise.
31778 * libio/iofopen.c: Assume _LIBC is defined.
31779 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31780 * libio/iofputs.c: Assume weak_alias is defined.
31781 * libio/iofread.c: Likewise.
31782 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31783 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31784 * libio/ioftell.c: Assume weak_alias is defined.
31785 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31786 * libio/iofwide.c: Assume _LIBC is defined.
31787 (_IO_fwide): Drop SHARED conditional because it is implied by
31788 SHLIB_COMPAT.
31789 * libio/iofwrite.c: Assume weak_alias is defined.
31790 * libio/iogetdelim.c: Likewise.
31791 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31792 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31793 (_IO_getwline): Call __wmemcpy directly.
31794 * libio/iopopen.c: Assume _LIBC is defined.
31795 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31796 (_IO_close): Remove macro definitions.
31797 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31798 _exit directly.
31799 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31800 directly.
31801 * libio/ioputs.c: Assume weak_alias is defined.
31802 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31803 * libio/iosetbuffer.c: Assume weak_alias is defined.
31804 * libio/iosetvbuf.c: Likewise.
31805 * libio/ioungetc.c: Likewise.
31806 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31807 libc_hidden_def, libc_hidden_weak, NULL are defined.
31808 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31809 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31810 defined.
31811 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31812 definitions.
31813 (_IO_old_file_init_internal): Drop SHARED conditional because it
31814 is implied by SHLIB_COMPAT.
31815 (_IO_old_file_fopen): Call __open directly.
31816 (_IO_old_file_sync): Assume ESPIPE is defined.
31817 (_IO_old_file_write): Call __write directly.
31818 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31819 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31820 Call __fcntl directly.
31821 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31822 (_IO_old_fgetpos): Assume EIO is defined.
31823 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31824 (_IO_old_fgetpos64): Assume EIO is defined.
31825 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31826 (_IO_old_fsetpos): Assume EIO is defined.
31827 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31828 (_IO_old_fsetpos64): Assume EIO is defined.
31829 * libio/oldiopopen.c: Assume _LIBC is defined.
31830 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31831 (_IO_close): Remove macro definitions.
31832 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31833 directly.
31834 (_IO_old_proc_close): Call __close, __waitpid directly.
31835 * libio/put.c: Assume weak_alias is defined.
31836 * libio/stdfiles.c: Assume _LIBC is defined.
31837 * libio/stdio.c: Likewise.
31838 * libio/wfileops.c: Likewise.
31839 (_IO_wfile_sync): Assume ESPIPE is defined.
31840 * libio/wgenops.c: Assume _LIBC is defined.
31841 (save_for_wbackup): Remove internal_function.
31842
31843 2017-08-31 Florian Weimer <fweimer@redhat.com>
31844
31845 * malloc/malloc.c (top_check): Change return type to void. Remove
31846 internal_function.
31847 * malloc/hooks.c (top_check): Likewise.
31848 (malloc_check, realloc_check, memalign_check): Adjust.
31849
31850 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31851
31852 [BZ #21457]
31853 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31854 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31855 sigcontext and namespace requirements.
31856 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31857 * sysdeps/m68k/sys/ucontext.h: Likewise.
31858 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31859 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31860 <bits/sigcontext.h>.
31861 (__ctx): Define earlier.
31862 (mcontext_t): Define structure contents rather than using struct
31863 sigcontext.
31864 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31865 __glibc_reserved1 instead of __reserved.
31866 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31867 <bits/sigcontext.h>.
31868 (__ctx): Define earlier.
31869 (mcontext_t): Define structure contents rather than using struct
31870 sigcontext.
31871 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31872 mcontext_t instead of struct sigcontext.
31873 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31874 <bits/sigcontext.h>.
31875 (__ctx): Define earlier.
31876 (mcontext_t): Define structure contents rather than using struct
31877 sigcontext.
31878 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31879 <bits/sigcontext.h>.
31880 (__ctx): Define earlier.
31881 (mcontext_t): Define structure contents rather than using struct
31882 sigcontext.
31883 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31884 mcontext_t instead of struct sigcontext.
31885 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31886 mcontext_t instead of struct sigcontext.
31887 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31888 <bits/sigcontext.h>.
31889 (__ctx): New macro.
31890 (struct __ia64_fpreg_mcontext): New type.
31891 (mcontext_t): Define structure contents rather than using struct
31892 sigcontext.
31893 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31894 (uc_sigmask): Define using __ctx.
31895 (uc_stack): Likewise.
31896 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31897 <bits/sigcontext.h>.
31898 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31899 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31900 <bits/sigcontext.h>.
31901 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31902 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31903 <bits/sigcontext.h>.
31904 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31905 <bits/sigcontext.h>.
31906 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31907 <bits/sigcontext.h>.
31908 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31909 <bits/sigcontext.h>.
31910 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31911 <bits/sigcontext.h>.
31912 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31913 <bits/sigcontext.h>.
31914 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31915 <bits/sigcontext.h>.
31916 (__ctx): Define earlier.
31917 (mcontext_t): Define structure contents rather than using struct
31918 sigcontext.
31919 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31920 <bits/sigcontext.h>. Include <bits/types.h>.
31921 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31922 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31923 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31924 (test-xfail-UNIX98/signal.h/conform): Likewise.
31925 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31926 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31927 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31928 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31929 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31930 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31931 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31932 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31933 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31934
31935 2017-08-30 Florian Weimer <fweimer@redhat.com>
31936
31937 * malloc/dynarray_emplace_enlarge.c
31938 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31939 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31940 * malloc/tst-dynarray.c (test_long_overflow): New function.
31941 (do_test): Call it.
31942
31943 2017-08-30 Florian Weimer <fweimer@redhat.com>
31944
31945 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31946 (set_arena_corrupt): Remove definitions.
31947 (mtrim): Do not check for corrupt arena.
31948 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31949 Likewise.
31950
31951 2017-08-30 Florian Weimer <fweimer@redhat.com>
31952
31953 [BZ #21754]
31954 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31955 check_action.
31956 (ptmalloc_init): Do not set or use check_action.
31957 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31958 call to malloc_printerr. Remove return statement.
31959 (free_check): Likewise. Remove arena unlock.
31960 (top_check): Update comment. Adjust call to malloc_printerr.
31961 Remove heap repair code.
31962 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31963 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31964 (sysmalloc): Adjust call to malloc_printerr.
31965 (munmap_chunk, __libc_realloc): Likewise. Remove return
31966 statement.
31967 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31968 Remove errout label and corresponding gotos.
31969 (_int_free): Likewise. Remove arena unlock.
31970 (do_set_mallopt_check): Do not set check_action.
31971 (malloc_printerr): Adjust parameter list. Do not mark arena as
31972 corrupt.
31973 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31974 comment.
31975 * manual/probes.texi (Memory Allocation Probes): Remove
31976 memory_mallopt_check_action.
31977
31978 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31979
31980 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31981 Use pointer to uint64_t instead of long int for sp.
31982
31983 2017-08-30 Florian Weimer <fweimer@redhat.com>
31984
31985 [BZ #21754]
31986 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31987 without printing a backtrace. Do not leak any information in the
31988 error message.
31989 * manual/memory.texi (Heap Consistency Checking): Update.
31990 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31991
31992 2017-08-30 Florian Weimer <fweimer@redhat.com>
31993
31994 Do not scale NPTL tests with available number of CPUs.
31995 * nptl/tst-cond16.c (count): Set to constant value of 8.
31996 * nptl/tst-cond18.c (count): Likewise.
31997
31998 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31999
32000 [BZ #22035]
32001 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32002 Define to take a second argument that is a macro that
32003 concatentates a suffix, not the suffix itself.
32004 (__CONCAT_d): New macro.
32005 (__CONCAT_f): Likewise.
32006 (__CONCAT_l): Likewise.
32007
32008 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32009
32010 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32011 by child.
32012
32013 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32014 Aurelien Jarno <aurelien@aurel32.net>
32015 Maciej W. Rozycki <macro@imgtec.com>
32016
32017 [BZ #21956]
32018 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32019 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32020 `mips16-syscall6' and `mips16-syscall7'.
32021 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32022 (CFLAGS-mips16-syscall7.c): Remove.
32023 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32024 Remove `__mips16_syscall5', `__mips16_syscall6' and
32025 `__mips16_syscall7'.
32026 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32027 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32028 `__mips_syscall_return'.
32029 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32030 (__mips16_syscall1): Likewise.
32031 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32032 (__mips16_syscall2): Likewise.
32033 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32034 (__mips16_syscall3): Likewise.
32035 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32036 (__mips16_syscall4): Likewise.
32037 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32038 Remove.
32039 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32040 Remove.
32041 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32042 Remove.
32043 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32044 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32045 `__mips16_syscall5'. Remove prototype.
32046 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32047 `__mips16_syscall6'. Remove prototype.
32048 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32049 `__mips16_syscall7'. Remove prototype.
32050 (__nomips16, __mips16_syscall_return): Move to...
32051 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32052 (__nomips16, __mips_syscall_return): ... here.
32053 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32054 `__mips16_syscall_return' to `__mips_syscall_return'.
32055 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32056 `internal_syscall##nr'.
32057 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32058 `internal_syscall##nr'.
32059 (FORCE_FRAME_POINTER): Remove.
32060 (__mips_syscall5): New prototype.
32061 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32062 (__mips_syscall6): New prototype.
32063 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32064 (__mips_syscall7): New prototype.
32065 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32066 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32067 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32068 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32069 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32070 (sysdep_routines): Add libc-do-syscall.
32071 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32072 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32073
32074 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32075
32076 [BZ #21672]
32077 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32078 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32079 (advise_stack_range): New function.
32080 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32081 stack non required to advise_stack_range at allocatestack.c
32082
32083 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32084
32085 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32086
32087 2017-08-29 Florian Weimer <fweimer@redhat.com>
32088
32089 [BZ #22026]
32090 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32091 __end_fct. Mangle __end_fct after setting it to NULL.
32092 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32093 (modules-names, modules-names-tests): Add
32094 tst-gconv-init-failure-mod.
32095 (gconv-modules): New target.
32096 (tst-gconv-init-failure-mod.so): Link against libsupport.
32097 (tst-gconv-init-failure): Depend on gconv-modules,
32098 tst-gconv-init-failure-mod.so.
32099 * iconv/tst-gconv-init-failure-mod.c: New file.
32100 * iconv/tst-gconv-init-failure.c: Likewise.
32101 * iconv/test-gconv-modules: Likewise.
32102
32103 2017-08-29 Florian Weimer <fweimer@redhat.com>
32104
32105 [BZ #22025]
32106 * iconv/gconv_db.c (free_derivation): Remove redundant
32107 parentheses.
32108 (gen_steps): Unconditionally mangle __btowc_fct after
32109 initialization.
32110 (increment_counter): Likewise. Do not call init_fct for internal
32111 modules.
32112
32113 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32114
32115 [BZ #22028]
32116 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32117 (_MSUF_): Remove macro.
32118 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32119 Likewise.
32120 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32121 (__REDIRFROM_X): New macro.
32122 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32123 Likewise.
32124 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32125 (__REDIRTO_X): Likewise.
32126 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32127 arguments.
32128 (__MATH_REDIRCALL_2): Likewise.
32129 (__MATH_REDIRCALL_INTERNAL): Likewise.
32130 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32131 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32132 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32133 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32134 * math/test-finite-macros.c: New file.
32135 * math/Makefile (tests): Add test-finite-macros.
32136 (CFLAGS-test-finite-macros.c): New variable.
32137
32138 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32139 Jeff Law <law@redhat.com>
32140
32141 [BZ #22025]
32142 Mangle NULL pointers in iconv/gconv.
32143 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32144 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32145 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32146 is non-NULL before demangling the end_fct. Check for NULL
32147 end_fct after demangling.
32148 (__gconv_release_step): Demangle the end_fct before checking
32149 it for NULL. Remove assert on __shlibc_handle != NULL.
32150 (gen_steps): Don't check btowc_fct for NULL before mangling.
32151 Demangle init_fct before checking for NULL.
32152 (increment_counter): Likewise.
32153 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32154 end_fct for NULL before mangling.
32155 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32156 for NULL.
32157
32158 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32159
32160 [BZ #21971]
32161 * locale/iso-639.def: add Morisyen.
32162
32163 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32164
32165 [BZ #21930]
32166 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32167 (iszero): New C++ implementation that does not use
32168 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32169 signaling nans are enabled, since __builtin_types_compatible_p
32170 is a C-only feature.
32171 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32172 defined, include ieee754_float128.h for access to the union and
32173 member ieee854_float128.ieee.
32174 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32175 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32176 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32177 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32178 options of test-math-zero on powerpc64le.
32179
32180 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32181
32182 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32183 Change double to float.
32184
32185 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32186
32187 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32188 unconditional.
32189 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32190 conditional code; define contents only for [LIBM_SVID_COMPAT].
32191
32192 2017-08-28 Florian Weimer <fweimer@redhat.com>
32193
32194 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32195 (abi-lp64_be-options): Remove.
32196 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32197 (abi-hard-options): Likewise.
32198 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32199 (abi-o32_hard-options, abi-o32_soft_2008-options)
32200 (abi-o32_hard_2008-options, abi-n32_soft-options)
32201 (abi-n32_hard-options, abi-n32_soft_2008-options)
32202 (abi-n32_hard_2008-options, abi-n64_soft-options)
32203 (abi-n64_hard-options, abi-n64_soft_2008-options)
32204 (abi-n64_hard_2008-options): Likewise.
32205 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32206 (abi-64-v1-options, abi-64-v2-options): Likewise.
32207 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32208 (abi-64-options): Likewise.
32209 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32210 (abi-64-options): Likewise.
32211 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32212 (abi-64-options): Likewise.
32213 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32214 (abi-64-options, abi-x32-options): Likewise.
32215
32216 2017-08-28 Florian Weimer <fweimer@redhat.com>
32217
32218 Store supported list of SYS_* system calls in the source tree.
32219 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32220 (bits/syscall.h): Generate from list file.
32221 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32222 [$(subdir) = misc] (tests): Add tst-syscall-list.
32223 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32224 [$(subdir) = misc] (tst-syscall-list-macros.list)
32225 [$(subdir) = misc] (tst-syscall-list-nr.list)
32226 (tst-syscall-list-sys.list): Helper targets for new
32227 tst-syscall-list test.
32228 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32229 tst-syscall-list.sh.
32230 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32231 target. Do not include bits/syscall.d.
32232 [$(subdir) = misc] (generated): Do not update.
32233 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32234 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32235 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32236 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32237
32238 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32239
32240 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32241 (tst-cxa_atexit, tst-on_exit): Likewise.
32242 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32243 tst-cxa_atexit, and tst-on_exit.
32244 * stdlib/tst-atexit-common.c: New file.
32245 * stdlib/tst-atexit.c: New file.
32246 * stdlib/tst-at_quick_exit.c: New file.
32247 * stdlib/tst-cxa_atexit.c: New file.
32248 * stdlib/tst-on_exit.c: New file.
32249
32250 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32251
32252 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32253 * mach/stack_chk_fail_local.c: New file.
32254 * hurd/stack_chk_fail_local.c: New file.
32255 * mach/Machrules ($(interface-library)-routines): Add
32256 stack_chk_fail_local.
32257 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32258 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32259 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32260 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32261 * hurd/Makefile (CFLAGS-hurdstartup.o,
32262 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32263
32264 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32265
32266 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32267 (index_cpu_*, index_arch_*): Removed.
32268
32269 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32270
32271 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32272 Use uint64_t instead of unsigned long.
32273
32274 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32275
32276 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32277 [__HAVE_DISTINCT_FLOAT128].
32278
32279 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32280 of <bits/math-finite.h>.
32281 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32282 inclusion of <bits/math-finite.h>.
32283 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32284 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32285 __NO_LONG_DOUBLE_MATH].
32286 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32287 (__MATH_REDIRCALL_2): Likewise.
32288 (__MATH_REDIRCALL_INTERNAL): Likewise.
32289 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32290 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32291 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32292
32293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32294 Remove file.
32295 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32296 Likewise.
32297 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32298 Likewise.
32299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32300 Likewise.
32301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32302 Likewise.
32303 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32304 Likewise.
32305 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32306 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32307 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32308 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32310 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32311 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32312 w_sqrtf_compat-ppc32.
32313
32314 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32315
32316 * math/math.h [defined __cplusplus] (issignaling): In the long
32317 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32318 is not defined. Call __issignaling, otherwise.
32319
32320 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32321
32322 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32323 syscall definitions and replace __builtin_expect with __glibc_likely.
32324 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32325 syscall.
32326 (SYSCALL_CANCELLABLE): Removedefinition
32327 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32328 definition.
32329 (PSEUDO_END): Likewise.
32330 [IS_IN (libpthread)] (CENABLE): Likewise.
32331 [IS_IN (libpthread)] (CDISABLE): Likewise.
32332 [IS_IN (libc)] (CENABLE): Likewise.
32333 [IS_IN (libc)] (CENABLE): Likewise.
32334 [IS_IN (librt)] (CDISABLE): Likewise.
32335 [IS_IN (librt)] (CDISABLE): Likewise.
32336 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32337 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32338 definition.
32339 (PSEUDO_END): Likewise.
32340 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32341 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32342 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32343 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32344 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32345 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32346 (CENABLE): Likewise.
32347 (CDISABLE): Likewise.
32348 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32349 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32350 defintion.
32351 (PSEUDO_END): Likewise.
32352 [IS_IN (libpthread)] (CENABLE): Likewise.
32353 [IS_IN (libpthread)] (CDISABLE): Likewise.
32354 [IS_IN (libc)] (CENABLE): Likewise.
32355 [IS_IN (libc)] (CENABLE): Likewise.
32356 [IS_IN (librt)] (CDISABLE): Likewise.
32357 [IS_IN (librt)] (CDISABLE): Likewise.
32358 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32359 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32360 definition.
32361 (PSEUDO_END): Likewise.
32362 [IS_IN (libpthread)] (CENABLE): Likewise.
32363 [IS_IN (libpthread)] (CDISABLE): Likewise.
32364 [IS_IN (libc)] (CENABLE): Likewise.
32365 [IS_IN (libc)] (CENABLE): Likewise.
32366 [IS_IN (librt)] (CDISABLE): Likewise.
32367 [IS_IN (librt)] (CDISABLE): Likewise.
32368 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32369 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32370 definition.
32371 (PSEUDO_END): Likewise.
32372 [IS_IN (libpthread)] (CENABLE): Likewise.
32373 [IS_IN (libpthread)] (CDISABLE): Likewise.
32374 [IS_IN (libc)] (CENABLE): Likewise.
32375 [IS_IN (libc)] (CENABLE): Likewise.
32376 [IS_IN (librt)] (CDISABLE): Likewise.
32377 [IS_IN (librt)] (CDISABLE): Likewise.
32378 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32379 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32380 definition.
32381 (PSEUDO_END): Likewise.
32382 [IS_IN (libpthread)] (CENABLE): Likewise.
32383 [IS_IN (libpthread)] (CDISABLE): Likewise.
32384 [IS_IN (libc)] (CENABLE): Likewise.
32385 [IS_IN (libc)] (CENABLE): Likewise.
32386 [IS_IN (librt)] (CDISABLE): Likewise.
32387 [IS_IN (librt)] (CDISABLE): Likewise.
32388 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32389 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32390 definition.
32391 (PSEUDO_END): Likewise.
32392 [IS_IN (libpthread)] (CENABLE): Likewise.
32393 [IS_IN (libpthread)] (CDISABLE): Likewise.
32394 [IS_IN (libc)] (CENABLE): Likewise.
32395 [IS_IN (libc)] (CENABLE): Likewise.
32396 [IS_IN (librt)] (CDISABLE): Likewise.
32397 [IS_IN (librt)] (CDISABLE): Likewise.
32398 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32399 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32400 definition.
32401 (PSEUDO_END): Likewise.
32402 [IS_IN (libpthread)] (CENABLE): Likewise.
32403 [IS_IN (libpthread)] (CDISABLE): Likewise.
32404 [IS_IN (libc)] (CENABLE): Likewise.
32405 [IS_IN (libc)] (CENABLE): Likewise.
32406 [IS_IN (librt)] (CDISABLE): Likewise.
32407 [IS_IN (librt)] (CDISABLE): Likewise.
32408 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32409 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32410 Remove definition.
32411 (PSEUDO_END): Likewise.
32412 [IS_IN (libpthread)] (CENABLE): Likewise.
32413 [IS_IN (libpthread)] (CDISABLE): Likewise.
32414 [IS_IN (libc)] (CENABLE): Likewise.
32415 [IS_IN (libc)] (CENABLE): Likewise.
32416 [IS_IN (librt)] (CDISABLE): Likewise.
32417 [IS_IN (librt)] (CDISABLE): Likewise.
32418 (SINGLE_THREAD_P): Likewise.
32419 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32420 definition.
32421 (PSEUDO_END): Likewise.
32422 [IS_IN (libpthread)] (CENABLE): Likewise.
32423 [IS_IN (libpthread)] (CDISABLE): Likewise.
32424 [IS_IN (libc)] (CENABLE): Likewise.
32425 [IS_IN (libc)] (CENABLE): Likewise.
32426 [IS_IN (librt)] (CDISABLE): Likewise.
32427 [IS_IN (librt)] (CDISABLE): Likewise.
32428 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32429 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32430 definition.
32431 (PSEUDO_END): Likewise.
32432 [IS_IN (libpthread)] (CENABLE): Likewise.
32433 [IS_IN (libpthread)] (CDISABLE): Likewise.
32434 [IS_IN (libc)] (CENABLE): Likewise.
32435 [IS_IN (libc)] (CENABLE): Likewise.
32436 [IS_IN (librt)] (CDISABLE): Likewise.
32437 [IS_IN (librt)] (CDISABLE): Likewise.
32438 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32439 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32440 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32441 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32442 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32443 definition.
32444 (PSEUDO_END): Likewise.
32445 [IS_IN (libpthread)] (CENABLE): Likewise.
32446 [IS_IN (libpthread)] (CDISABLE): Likewise.
32447 [IS_IN (libc)] (CENABLE): Likewise.
32448 [IS_IN (libc)] (CENABLE): Likewise.
32449 [IS_IN (librt)] (CDISABLE): Likewise.
32450 [IS_IN (librt)] (CDISABLE): Likewise.
32451 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32452 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32453 definition.
32454 (PSEUDO_END): Likewise.
32455 [IS_IN (libpthread)] (CENABLE): Likewise.
32456 [IS_IN (libpthread)] (CDISABLE): Likewise.
32457 [IS_IN (libc)] (CENABLE): Likewise.
32458 [IS_IN (libc)] (CENABLE): Likewise.
32459 [IS_IN (librt)] (CDISABLE): Likewise.
32460 [IS_IN (librt)] (CDISABLE): Likewise.
32461 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32462 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32463 definition.
32464 (PSEUDO_END): Likewise.
32465 [IS_IN (libpthread)] (CENABLE): Likewise.
32466 [IS_IN (libpthread)] (CDISABLE): Likewise.
32467 [IS_IN (libc)] (CENABLE): Likewise.
32468 [IS_IN (libc)] (CENABLE): Likewise.
32469 [IS_IN (librt)] (CDISABLE): Likewise.
32470 [IS_IN (librt)] (CDISABLE): Likewise.
32471 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32472 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32473 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32474 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32475 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32476 definition.
32477 (PSEUDO_END): Likewise.
32478 [IS_IN (libpthread)] (CENABLE): Likewise.
32479 [IS_IN (libpthread)] (CDISABLE): Likewise.
32480 [IS_IN (libc)] (CENABLE): Likewise.
32481 [IS_IN (libc)] (CENABLE): Likewise.
32482 [IS_IN (librt)] (CDISABLE): Likewise.
32483 [IS_IN (librt)] (CDISABLE): Likewise.
32484 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32485 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32486 definition.
32487 (PSEUDO_END): Likewise.
32488 [IS_IN (libpthread)] (CENABLE): Likewise.
32489 [IS_IN (libpthread)] (CDISABLE): Likewise.
32490 [IS_IN (libc)] (CENABLE): Likewise.
32491 [IS_IN (libc)] (CENABLE): Likewise.
32492 [IS_IN (librt)] (CDISABLE): Likewise.
32493 [IS_IN (librt)] (CDISABLE): Likewise.
32494 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32495
32496 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32497
32498 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32499
32500 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32501
32502 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32503
32504 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32505
32506 [BZ #21982]
32507 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32508 middle and outer with size_t instead of int. Repleace %d and
32509 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32510 "MAX (outer, nchars - 64)" to support unsigned outer and
32511 nchars. Also exit loop when outer == 0.
32512
32513 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32514
32515 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32516 * include/signal.h (__sigsuspend_nocancel): Likewise.
32517 * include/time.h (__nanosleep_nocancel): Likewise.
32518 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32519 * login/utmp_file.c: Include non cancellable syscall header.
32520 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32521 prototype.
32522
32523 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32524
32525 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32526 .byte sequences with AVX512F instructions.
32527 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32528 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32529 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32530 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32531 Likewise.
32532 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32533 Likewise.
32534
32535 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32536 Steve Ellcey <sellcey@cavium.com>
32537
32538 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32539 Use PTR_REG macro in cmp instruction.
32540
32541 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32542
32543 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32544 Change the return type of the ifunc resolver to match the return
32545 type of the target function.
32546
32547 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32548
32549 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32550 (preadv64): Likewise.
32551 (pwrite64(: Likewise.
32552 (pwritev64): Likewise.
32553
32554 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32555 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32556 (LOAD_ARGS_0): Likewise.
32557 (LOAD_ARGS_1): Likewise.
32558 (LOAD_ARGS_2): Likewise.
32559 (LOAD_ARGS_3): Likewise.
32560 (LOAD_ARGS_4): Likewise.
32561 (LOAD_ARGS_5): Likewise.
32562 (LOAD_ARGS_6): Likewise.
32563 (LOAD_REGS_0): Likewise.
32564 (LOAD_REGS_1): Likewise.
32565 (LOAD_REGS_2): Likewise.
32566 (LOAD_REGS_3): Likewise.
32567 (LOAD_REGS_4): Likewise.
32568 (LOAD_REGS_5): Likewise.
32569 (LOAD_REGS_6): Likewise.
32570 (ASM_ARGS_0): Likewise.
32571 (ASM_ARGS_1): Likewise.
32572 (ASM_ARGS_2): Likewise.
32573 (ASM_ARGS_3): Likewise.
32574 (ASM_ARGS_4): Likewise.
32575 (ASM_ARGS_5): Likewise.
32576 (ASM_ARGS_6): Likewise.
32577 (LOAD_ARGS_TYPES_1): Likewise.
32578 (LOAD_ARGS_TYPES_2): Likewise.
32579 (LOAD_ARGS_TYPES_3): Likewise.
32580 (LOAD_ARGS_TYPES_4): Likewise.
32581 (LOAD_ARGS_TYPES_5): Likewise.
32582 (LOAD_ARGS_TYPES_6): Likewise.
32583 (LOAD_REGS_TYPES_1): Likewise.
32584 (LOAD_REGS_TYPES_2): Likewise.
32585 (LOAD_REGS_TYPES_3): Likewise.
32586 (LOAD_REGS_TYPES_4): Likewise.
32587 (LOAD_REGS_TYPES_5): Likewise.
32588 (LOAD_REGS_TYPES_6): Likewise.
32589 (TYPEFY): New define.
32590 (ARGIFY): Likewise.
32591 (internal_syscall0): Likewise.
32592 (internal_syscall1): Likewise.
32593 (internal_syscall2): Likewise.
32594 (internal_syscall3): Likewise.
32595 (internal_syscall4): Likewise.
32596 (internal_syscall5): Likewise.
32597 (internal_syscall6): Likewise.
32598 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32599 (INTERNAL_SYSCALL_NCS): Remove define.
32600 (internal_syscall1): Add define.
32601
32602 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32603
32604 * math/w_remainder_compat.c: Remove duplicate inclusion of
32605 math-svid-compat.h.
32606 * math/w_remainderf_compat.c: Likewise.
32607 * math/w_remainderl_compat.c: Likewise.
32608
32609 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32610
32611 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32612
32613 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32614
32615 [BZ #21684]
32616 * math/tgmath.h (__floating_type): Simplify definitions.
32617 (__real_integer_type): New macro.
32618 (__complex_integer_type): Likewise.
32619 (__expr_is_real): Likewise.
32620 (__tgmath_real_type_sub): Update comment to describe handling of
32621 complex types.
32622 (__tgmath_complex_type_sub): New macro.
32623 (__tgmath_complex_type): Likewise.
32624 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32625 (__TGMATH_CF128): Use __expr_is_real.
32626 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32627 __expr_is_real.
32628 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32629 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32630 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32631 integer types.
32632
32633 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32634
32635 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32636 macro.
32637 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32638 alias.
32639 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32640 Likewise.
32641
32642 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32643 nanosleep_not_cancel with __nanosleep_nocancel.
32644 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32645 (__nanosleep_nocancel): New macro.
32646 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32647 function.
32648 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32649 macro.
32650 (__nanosleep_nocancel): New prototype.
32651
32652 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32653 pause_not_cancel with __pause_nocancel.
32654 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32655 (__pause_nocancel): New macro.
32656 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32657 macro.
32658 (__pause_nocancel): New prototype.
32659 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32660
32661 2017-08-22 Martin Sebor <msebor@redhat.com>
32662
32663 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32664 to return a pointer to the same type as the target function.
32665
32666 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32667
32668 [BZ #18822]
32669 [BZ #21986]
32670 * include/printf.h (__printf_fphex): Add attribute_hidden.
32671 (__guess_grouping): New prototype.
32672 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32673 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32674 libc_hidden_proto and libc_hidden_def.
32675 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32676 (__vstrfmon_l): Remove the third argument passed to
32677 __guess_grouping.
32678
32679 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32680
32681 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32682 definition for issignaling that does not rely on __MATH_TG,
32683 since __MATH_TG uses __builtin_types_compatible_p, which is only
32684 available in C mode.
32685 (CFLAGS-test-math-issignaling.cc): New variable.
32686 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32687 * math/test-math-issignaling.cc: New test for C++ implementation
32688 of type-generic issignaling.
32689 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32690 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32691 options of test-math-issignaling on powerpc64le.
32692
32693 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32694
32695 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32696 building libc.a.
32697 (hidden_proto): Likewise.
32698 (hidden_tls_proto): Likewise.
32699 (__hidden_proto): Likewise.
32700
32701 2017-08-22 Florian Weimer <fweimer@redhat.com>
32702
32703 math: Statically link tests of internal functionality.
32704 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32705 atest-exp2.
32706 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32707 (gmp-objs): Remove assignment.
32708 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32709
32710 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32711
32712 [BZ #21987]
32713 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32714 and copy to ...
32715 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32716 ... here.
32717 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32718 ... and here.
32719
32720 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32721 variable definitions above inclusion of ../Rules.
32722
32723 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32724
32725 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32726 case calling __builtin_unreachable.
32727
32728 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32729
32730 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32731 __waitpid_nocancel.
32732 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32733 (__waitpid_nocancel): New macro.
32734 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32735 macro.
32736 (__waitpid_nocancel): Replace macro with a function.
32737 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32738 function.
32739
32740 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32741 __fcntl_nocancel.
32742 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32743 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32744
32745 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32746 __writev_nocancel_nostatus.
32747 (write_call_graph): Likewise.
32748 (write_bb_counts): Likewise.
32749 * resolv/herror.c (herror): Likewise.
32750 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32751 macro.
32752 (__writev_nocancel_nostatus): New macro.
32753 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32754 Remove macro.
32755 (__writev_nocancel_nostatus): New function.
32756
32757 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32758
32759 Revert:
32760 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32761
32762 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32763 building libc.a.
32764 (hidden_proto): Likewise.
32765 (hidden_tls_proto): Likewise.
32766 (__hidden_proto): Likewise.
32767
32768 [BZ #21973]
32769 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32770 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32772 Likewise.
32773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32774 Likewise.
32775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32776 Likewise.
32777 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32778 Likewise.
32779 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32780 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32781 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32782 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32783 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32784 GLIBC_2.0 sqrtl symbol.
32785
32786 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32787 [__USE_MISC] (_LIB_VERSION): Likewise.
32788 [__USE_MISC] (struct exception): Likewise.
32789 [__USE_MISC] (matherr): Likewise.
32790 [__USE_MISC] (DOMAIN): Likewise.
32791 [__USE_MISC] (SING): Likewise.
32792 [__USE_MISC] (OVERFLOW): Likewise.
32793 [__USE_MISC] (UNDERFLOW): Likewise.
32794 [__USE_MISC] (TLOSS): Likewise.
32795 [__USE_MISC] (PLOSS): Likewise.
32796 [__USE_MISC] (HUGE): Likewise.
32797 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32798 * math/math-svid-compat.h: New file.
32799 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32800 and matherrl.
32801 * include/math.h [!_ISOMAC] (__matherr): Remove.
32802 * manual/arith.texi (FP Exceptions): Do not document matherr.
32803 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32804 (tests-internal): New variable.
32805 (install-lib): Do not add libieee.a.
32806 (non-lib.a): Likewise.
32807 (extra-objs): Do not add libieee.a and ieee-math.o.
32808 (CPPFLAGS-s_lib_version.c): Remove variable.
32809 ($(objpfx)libieee.a): Remove rule.
32810 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32811 * math/ieee-math.c: Remove.
32812 * math/libm-test-support.c (matherr): Remove.
32813 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32814 and license notices. Include <math-svid-compat.h> and
32815 <shlib-compat.h>.
32816 (matherr): Undefine as macro. Use compat_symbol_reference.
32817 (_LIB_VERSION): Likewise.
32818 * math/test-matherr-2.c: New file.
32819 * math/test-matherr-3.c: Likewise.
32820 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32821 declaration.
32822 (__kernel_standard_f): Likewise.
32823 (__kernel_standard_l): Likewise.
32824 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32825 <math_private.h>. Include <math-svid-compat.h>.
32826 (_LIB_VERSION): Undefine as macro.
32827 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32828 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32829 [LIBM_SVID_COMPAT], use compat_symbol.
32830 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32831 <math_private.h>. Include <math-svid-compat.h>.
32832 (matherr): Undefine as macro.
32833 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32834 compat_symbol.
32835 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32836 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32837 compat_symbol_reference.
32838 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32839 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32840 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32841 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32842 (MATHERR_D): Remove declaration.
32843 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32844 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32845 [LIBM_BUILD] (pmatherrf): Likewise.
32846 [LIBM_BUILD] (pmatherr): Likewise.
32847 [LIBM_BUILD] (pmatherrl): Likewise.
32848 (DOMAIN): Likewise.
32849 (SING): Likewise.
32850 (OVERFLOW): Likewise.
32851 (UNDERFLOW): Likewise.
32852 (TLOSS): Likewise.
32853 (PLOSS): Likewise.
32854 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32855 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32856 compat_symbol.
32857 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32858 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32859 compat_symbol.
32860 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32861 * math/w_acos_compat.c: Likewise.
32862 * math/w_acosf_compat.c: Likewise.
32863 * math/w_acosh_compat.c: Likewise.
32864 * math/w_acoshf_compat.c: Likewise.
32865 * math/w_acoshl_compat.c: Likewise.
32866 * math/w_acosl_compat.c: Likewise.
32867 * math/w_asin_compat.c: Likewise.
32868 * math/w_asinf_compat.c: Likewise.
32869 * math/w_asinl_compat.c: Likewise.
32870 * math/w_atan2_compat.c: Likewise.
32871 * math/w_atan2f_compat.c: Likewise.
32872 * math/w_atan2l_compat.c: Likewise.
32873 * math/w_atanh_compat.c: Likewise.
32874 * math/w_atanhf_compat.c: Likewise.
32875 * math/w_atanhl_compat.c: Likewise.
32876 * math/w_cosh_compat.c: Likewise.
32877 * math/w_coshf_compat.c: Likewise.
32878 * math/w_coshl_compat.c: Likewise.
32879 * math/w_exp10_compat.c: Likewise.
32880 * math/w_exp10f_compat.c: Likewise.
32881 * math/w_exp10l_compat.c: Likewise.
32882 * math/w_exp2_compat.c: Likewise.
32883 * math/w_exp2f_compat.c: Likewise.
32884 * math/w_exp2l_compat.c: Likewise.
32885 * math/w_fmod_compat.c: Likewise.
32886 * math/w_fmodf_compat.c: Likewise.
32887 * math/w_fmodl_compat.c: Likewise.
32888 * math/w_hypot_compat.c: Likewise.
32889 * math/w_hypotf_compat.c: Likewise.
32890 * math/w_hypotl_compat.c: Likewise.
32891 * math/w_j0_compat.c: Likewise.
32892 * math/w_j0f_compat.c: Likewise.
32893 * math/w_j0l_compat.c: Likewise.
32894 * math/w_j1_compat.c: Likewise.
32895 * math/w_j1f_compat.c: Likewise.
32896 * math/w_j1l_compat.c: Likewise.
32897 * math/w_jn_compat.c: Likewise.
32898 * math/w_jnf_compat.c: Likewise.
32899 * math/w_jnl_compat.c: Likewise.
32900 * math/w_lgamma_main.c: Likewise.
32901 * math/w_lgamma_r_compat.c: Likewise.
32902 * math/w_lgammaf_main.c: Likewise.
32903 * math/w_lgammaf_r_compat.c: Likewise.
32904 * math/w_lgammal_main.c: Likewise.
32905 * math/w_lgammal_r_compat.c: Likewise.
32906 * math/w_log10_compat.c: Likewise.
32907 * math/w_log10f_compat.c: Likewise.
32908 * math/w_log10l_compat.c: Likewise.
32909 * math/w_log2_compat.c: Likewise.
32910 * math/w_log2f_compat.c: Likewise.
32911 * math/w_log2l_compat.c: Likewise.
32912 * math/w_log_compat.c: Likewise.
32913 * math/w_logf_compat.c: Likewise.
32914 * math/w_logl_compat.c: Likewise.
32915 * math/w_pow_compat.c: Likewise.
32916 * math/w_powf_compat.c: Likewise.
32917 * math/w_powl_compat.c: Likewise.
32918 * math/w_remainder_compat.c: Likewise.
32919 * math/w_remainderf_compat.c: Likewise.
32920 * math/w_remainderl_compat.c: Likewise.
32921 * math/w_scalb_compat.c: Likewise.
32922 * math/w_scalbf_compat.c: Likewise.
32923 * math/w_scalbl_compat.c: Likewise.
32924 * math/w_sinh_compat.c: Likewise.
32925 * math/w_sinhf_compat.c: Likewise.
32926 * math/w_sinhl_compat.c: Likewise.
32927 * math/w_sqrt_compat.c: Likewise.
32928 * math/w_sqrtf_compat.c: Likewise.
32929 * math/w_sqrtl_compat.c: Likewise.
32930 * math/w_tgamma_compat.c: Likewise.
32931 * math/w_tgammaf_compat.c: Likewise.
32932 * math/w_tgammal_compat.c: Likewise.
32933 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32934 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32935 * sysdeps/ieee754/k_standard.c: Likewise.
32936 * sysdeps/ieee754/k_standardf.c: Likewise.
32937 * sysdeps/ieee754/k_standardl.c: Likewise.
32938 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32939 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32940 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32941 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32942 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32943 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32944 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32945 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32946 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32948 Likewise.
32949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32950 Likewise.
32951 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32952 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32953 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32954 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32955
32956 2017-08-21 Florian Weimer <fweimer@redhat.com>
32957
32958 [BZ #21864]
32959 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32960 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32961 Move before inclusion of ../Rules.
32962
32963 2017-08-21 Florian Weimer <fweimer@redhat.com>
32964
32965 [BZ #21972]
32966 * assert/assert.h (assert): Use static_cast (bool) for C++.
32967 Use the ternary operator in the warning branch for GNU C.
32968 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32969 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32970 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32971 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32972 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32973
32974 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32975
32976 [BZ #18822]
32977 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32978 (__syscall_clock_gettime): Add attribute_hidden.
32979 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32980 (__start_context): Likewise.
32981
32982 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32983
32984 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32985 building libc.a.
32986 (hidden_proto): Likewise.
32987 (hidden_tls_proto): Likewise.
32988 (__hidden_proto): Likewise.
32989
32990 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32991
32992 * include/libc-symbols.h (attribute_hidden): Enable hidden
32993 visibility in libc.a compiled with PIE.
32994
32995 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32996
32997 [BZ #18822]
32998 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32999 Add attribute_hidden.
33000
33001 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33002
33003 [BZ #21864]
33004 * Makerules (all-nonlib): Add $(others-extras).
33005 * catgets/Makefile (others-extras): New.
33006 * elf/Makefile (others-extras): Likewise.
33007 * nss/Makefile (others-extras): Likewise.
33008
33009 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33010
33011 [BZ #18822]
33012 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33013 * elf/dl-open.c: Include <libc-internal.h>.
33014 (__libc_multiple_libcs): Removed.
33015 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33016 <hp-timing.h>.
33017 * include/libc-internal.h (__libc_multiple_libcs): New.
33018 * misc/sbrk.c: Include <libc-internal.h>.
33019 (__libc_multiple_libcs): Removed.
33020
33021 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33022
33023 [BZ #18822]
33024 * grp/initgroups.c (__nss_group_database): Removed.
33025 (__nss_initgroups_database): Likewise.
33026 * nscd/gai.c (__nss_hosts_database): Likewise.
33027 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33028 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33029 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33030 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33031 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33032 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33033 attribute_hidden.
33034 * nss/nsswitch.c (__nss_database_custom): Define only if
33035 USE_NSCD is defined.
33036 (__nss_configure_lookup): Use __nss_database_custom only if
33037 USE_NSCD is defined.
33038 * nss/nsswitch.h (__nss_database_custom): Declare only if
33039 USE_NSCD is defined. Add attribute_hidden.
33040 (__nss_setent): Add attribute_hidden.
33041 (__nss_endent): Likewise.
33042 (__nss_getent_r): Likewise.
33043 (__nss_getent): Likewise.
33044 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33045
33046 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33047
33048 [BZ #18822]
33049 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33050 libc_hidden_proto and libc_hidden_def.
33051
33052 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33053
33054 [BZ #18822]
33055 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33056 Add libc_hidden_proto.
33057 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33058 Add libc_hidden_def.
33059
33060 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33061
33062 [BZ #21974]
33063 * gmon/Makefile (routines): Remove bb_init_func and
33064 bb_exit_func.
33065 (elide-routines.os): Removed.
33066 * gmon/bb_exit_func.c: Likewise.
33067 * gmon/bb_init_func.c: Likewise.
33068 * include/sys/gmon.h (__bb): Likewise.
33069 (__bb_init_func): Likewise.
33070 (__bb_exit_func): Likewise.
33071 * sysdeps/alpha/bb_init_func.S: Likewise.
33072
33073 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33074
33075 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33076 * include/setjmp.h (____longjmp_chk): Here. Add
33077 attribute_hidden.
33078
33079 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33080
33081 [BZ #18822]
33082 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33083 attribute_hidden.
33084 (__strspn_sse2): Likewise.
33085
33086 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33087
33088 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33089 (close_not_cancel_no_status): Likewise.
33090 (__close_nocancel): New macro.
33091 (__close_nocancel_nostatus): Likewise.
33092 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33093 macro.
33094 (close_not_cancel): Likewise.
33095 (close_not_cancel_no_status): Likewise.
33096 (__close_nocancel): New prototype.
33097 (__close_nocancel_nostatus): New function.
33098 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33099 * catgets/open_catalog.c (__open_catalog): Replace
33100 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33101 * gmon/gmon.c (write_gmon): Likewise.
33102 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33103 * intl/loadmsgcat.c (close): Likewise.
33104 * io/ftw.c (open_dir_stream): Likewise.
33105 (ftw_startup): Likewise.
33106 * libio/fileops.c (_IO_file_open): Likewise.
33107 (_IO_file_close_mmap): Likewise.
33108 (_IO_file_close): Likewise.
33109 * libio/iopopen.c (_IO_dup2): Likewise.
33110 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33111 * locale/loadlocale.c (_nl_load_locale): Likewise.
33112 * login/utmp_file.c (pututline_file): Likewise.
33113 (endutent_file): Likewise.
33114 * misc/daemon.c (daemon): Likewise.
33115 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33116 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33117 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33118 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33119 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33120 * nscd/nscd_helper.c (open_socket): Likewise.
33121 (__nscd_open_socket): Likewise.
33122 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33123 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33124 (__nscd_innetgr): Likewise.
33125 * nss/nss_db/db-open.c (internal_setent): Likewise.
33126 * resolv/res-close.c (__res_iclose): Likewise.
33127 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33128 * sysdeps/posix/closedir.c (__closedir): Likewise.
33129 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33130 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33131 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33132 (opendir_tail): Likewise.
33133 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33134 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33135 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33136 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33137 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33138 (gethostid): Likewise.
33139 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33140 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33141 Likewise.
33142 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33143 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33144 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33145 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33146 Likewise.
33147 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33148 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33149 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33150 Likewise.
33151 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33152 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33153 Likewise.
33154 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33155 Likewise.
33156 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33157 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33158 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33159 __close_nocancel.
33160
33161 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33162 (openat_not_cancel_3): Likewise.
33163 (openat64_not_cancel_3): Likewise).
33164 (openat_not_cancel_3): Likewise).
33165 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33166 macro.
33167 (openat_not_cancel_3): Likewise.
33168 (openat64_not_cancel): Likewise.
33169 (openat64_not_cancel_3): Likewise.
33170 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33171 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33172 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33173 __open{64}_nocancel.
33174 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33175 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33176 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33177
33178 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33179
33180 [BZ #18822]
33181 * include/argz.h (__argz_create_sep): New function prototype.
33182 (__argz_append): Likewise.
33183 (__argz_add): Likewise.
33184 (__argz_add_sep): Likewise.
33185 (__argz_delete): Likewise.
33186 (__argz_insert): Likewise.
33187 (__argz_replace): Likewise.
33188 * string/argz.h (__argz_create_sep): Removed.
33189 (__argz_append): Likewise.
33190 (__argz_add): Likewise.
33191 (__argz_add_sep): Likewise.
33192 (__argz_delete): Likewise.
33193 (__argz_insert): Likewise.
33194 (__argz_replace): Likewise.
33195
33196 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33197
33198 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33199 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33200 (GNU_PROPERTY_STACK_SIZE): Likewie.
33201 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33202 (GNU_PROPERTY_LOPROC): Likewise.
33203 (GNU_PROPERTY_HIPROC): Likewise.
33204 (GNU_PROPERTY_LOUSER): Likewise.
33205 (GNU_PROPERTY_HIUSER): Likewise.
33206 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33207 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33208 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33209 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33210 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33211 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33212 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33213 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33214 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33215 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33216 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33217 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33218 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33219 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33220 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33221 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33222 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33223 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33224 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33225 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33226 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33227 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33228 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33229
33230 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33231
33232 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33233 in C++ mode.
33234
33235 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33236
33237 [BZ #21930]
33238 * math/math.h (isinf): Check if in C or C++ mode before using
33239 __builtin_types_compatible_p, since this is a C mode feature.
33240
33241 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33242
33243 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33244 (__write_nocancel): New macro.
33245 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33246 Rewrite as a function prototype.
33247 (write_not_cancel): Remove macro.
33248 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33249 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33250 (write_gmon): Likewise.
33251 * libio/fileops.c (_IO_new_file_write): Likewise.
33252 * login/utmp_file.c (pututline_file): Likewise.
33253 (updwtmp_file): Likewise.
33254 * stdio-common/psiginfo.c (psiginfo): Likewise.
33255 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33256 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33257 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33258 Likewise.
33259 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33260 Likewise.
33261
33262 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33263 (__read_nocancel): New macro.
33264 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33265 __read_nocancel.
33266 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33267 macro.
33268 (__read_nocancel): New prototype.
33269 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33270 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33271 with __read_nocancel.
33272 * intl/loadmsgcat.c (read): Likewise.
33273 * libio/fileops.c (_IO_file_read): Likewise.
33274 * locale/loadlocale.c (_nl_load_locale): Likewise.
33275 * login/utmp_file.c (getutent_r_file): Likewise.
33276 (internal_getut_r): Likewise.
33277 (getutline_r_file): Likewise.
33278 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33279 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33280 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33281 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33282 Likewise.
33283 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33284 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33285 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33286 Likewise.
33287 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33288 Likewise.
33289 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33290 Likewise.
33291 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33292 Likewise.
33293 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33294
33295 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33296
33297 [BZ #21966]
33298 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33299 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33300 usable.
33301
33302 2017-08-17 DJ Delorie <dj@redhat.com>
33303
33304 * bug17079.c: Update to new test harness.
33305 * test-digits-dots.c: Likewise.
33306 * test-netdb.c: Likewise.
33307 * tst-field.c: Likewise.
33308 * tst-nss-getpwent.c: Likewise.
33309 * tst-nss-static.c: Likewise.
33310 * tst-nss-test1.c: Likewise.
33311 * tst-nss-test2.c: Likewise.
33312 * tst-nss-test3.c: Likewise.
33313 * tst-nss-test4.c: Likewise.
33314 * tst-nss-test5.c: Likewise.
33315
33316 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33317
33318 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33319 (open_not_cancel_2): Likewise.
33320 (open_nocancel): New macro.
33321 (open64_nocancel): Likewise.
33322 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33323 (open_not_cancel_2): Likewise.
33324 (__open_nocancel): New prototype.
33325 (__open64_nocancel): Likewise.
33326 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33327 __open_nocancel.
33328 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33329 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33330 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33331 with __open_nocancel.
33332 * csu/check_fds.c (check_one_fd): Likewise.
33333 * gmon/gmon.c (write_gmon): Likewise.
33334 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33335 * intl/loadmsgcat.c (open): Likewise.
33336 * libio/fileops.c (_IO_file_open): Likewise.
33337 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33338 * locale/loadlocale.c (_nl_load_locale): Likewise.
33339 * login/utmp_file.c (setutent_file): Likewise.
33340 * misc/daemon.c (daemon): Likewise.
33341 * nss/nss_db/db-open.c (internal_setent): Likewise.
33342 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33343 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33344 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33345 (__opendir): Likewise.
33346 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33347 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33348 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33349 (gethostid): Likewise.
33350 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33351 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33352 Likewise.
33353 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33354 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33355 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33356 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33357 Likewise.
33358 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33359 Likewise.
33360 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33361 Likewise.
33362 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33363 Likewise.
33364 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33365 Likewise.
33366 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33367 Likewise.
33368 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33369 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33370
33371 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33372
33373 * benchtests/bench-skeleton.c (main): Add support for
33374 latency benchmarking.
33375 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33376
33377 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33378
33379 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33380 the startup object.
33381
33382 2017-08-17 Florian Weimer <fweimer@redhat.com>
33383
33384 * include/sys/socket.h (__opensock): Remove internal_function.
33385 * socket/opensock.c (__opensock): Likewise.
33386 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33387
33388 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33389
33390 [BZ #21944]
33391 * signal/bits/types/__sigval_t.h: New file.
33392 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33393 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33394 and define sigval_t using __sigval_t.
33395 * include/bits/types/__sigval_t.h: New file.
33396 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33397 instead of <bits/types/__sigval_t.h>.
33398 (struct sigevent): Use __sigval_t instead of sigval_t.
33399 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33400 instead of <bits/types/__sigval_t.h>.
33401 (siginfo_t): Use __sigval_t instead of sigval_t.
33402 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33403 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33404 (struct sigevent): Use __sigval_t instead of sigval_t.
33405 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33406 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33407 (siginfo_t): Use __sigval_t instead of sigval_t.
33408 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33409
33410 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33411
33412 * NEWS: Remove "[Add new features here]" for 2.27.
33413
33414 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33415
33416 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33417 libc.so.
33418
33419 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33420
33421 * NEWS: Mention x86-64 FMA optimization.
33422
33423 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33424
33425 [BZ #21912]
33426 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33427 Add e_expf-fma.
33428 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33429 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33430 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33431
33432 2017-08-16 Andreas Schwab <schwab@suse.de>
33433
33434 [BZ #16750]
33435 CVE-2009-5064
33436 * elf/ldd.bash.in: Never run file directly.
33437
33438 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33439
33440 [BZ #21955]
33441 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33442 (L(SP_INF_0)): Likewise.
33443
33444 2017-08-15 Florian Weimer <fweimer@redhat.com>
33445
33446 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33447 run-built-tests.
33448
33449 2017-08-15 Florian Weimer <fweimer@redhat.com>
33450
33451 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33452 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33453 BROKEN_THREAD_SIGNALS code.
33454 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33455 request_list): Remove caller_pid member used for
33456 BROKEN_THREAD_SIGNALS.
33457 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33458 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33459 Remove BROKEN_THREAD_SIGNALS support.
33460 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33461 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33462
33463 2017-08-15 Florian Weimer <fweimer@redhat.com>
33464
33465 * gmon/Makefile (tests): Add tst-gmon.
33466 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33467 Set.
33468 (tests-special): Add tst-gmon-prof.out.
33469 (tst-gmon.out): Depend on clean-tst-gmon-data.
33470 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33471 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33472 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33473 startup object.
33474 * aclocal.m4 (GPROF): Set and substitute.
33475 * config.amke.in (GPROF): Set.
33476 * configure: Regenerate.
33477
33478 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33479
33480 * elf/elf.h A (NT_PPC_TAR): New macro.
33481 (NT_PPC_PPR): Likewise.
33482 (NT_PPC_DSCR): Likewise.
33483 (NT_PPC_EBB): Likewise.
33484 (NT_PPC_PMU): Likewise.
33485 (NT_PPC_TM_CGPR): Likewise.
33486 (NT_PPC_TM_CFPR): Likewise.
33487 (NT_PPC_TM_CVMX): Likewise.
33488 (NT_PPC_TM_CVSX): Likewise.
33489 (NT_PPC_TM_SPR): Likewise.
33490 (NT_PPC_TM_CTAR): Likewise.
33491 (NT_PPC_TM_CPPR): Likewise.
33492 (NT_PPC_TM_CDSCR): Likewise.
33493
33494 2017-08-15 Florian Weimer <fweimer@redhat.com>
33495
33496 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33497 regparm (2) instead of internal_function.
33498 (_MCOUNT_DECL): Adjust.
33499
33500 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33501
33502 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33503 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33504
33505 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33506
33507 * conform/data/sys/wait.h-data (si_value): Do not expect for
33508 XPG42.
33509
33510 2017-08-14 Florian Weimer <fweimer@redhat.com>
33511
33512 [BZ #21962]
33513 NSS: Create stubs for accidentally exported lookup functions.
33514 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33515 Remove declaration.
33516 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33517 (ether_hostton): Call __nss_ethers_lookup2 instead.
33518 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33519 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33520 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33521 (setup): Call __nss_netgroup_lookup2 instead.
33522 * nss/Makefile (routines): Add compat-lookup.
33523 * nss/Versions (GLIBC_2.27): Add symbol version.
33524 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33525 (DB_COMPAT_FCT): Remove.
33526 * nss/compat-lookup.c: New file.
33527 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33528 from databases.def.
33529 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33530 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33531 (netname2user): Call __nss_publickey_lookup2 instead.
33532 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33533 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33534 instead.
33535
33536 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33537 Sergei Trofimovich <slyfox@inbox.ru>
33538
33539 [BZ #21908]
33540 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33541 Rename to MMAP2_PAGE_UNIT.
33542 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33543 __OFF_T_MATCHES_OFF64_T is not defined.
33544 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33545 uint64_t.
33546 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33547 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33548
33549 2017-08-14 Florian Weimer <fweimer@redhat.com>
33550
33551 i386: Do not set internal_function.
33552 * config.h.in (USE_REGPARMS, internal_function): Remove.
33553 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33554 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33555
33556 2017-08-14 Florian Weimer <fweimer@redhat.com>
33557
33558 * elf/dl-init.c (_dl_init): Remove internal_function.
33559 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33560 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33561
33562 2017-08-14 Florian Weimer <fweimer@redhat.com>
33563
33564 * elf/rtld.c (_dl_start): Remove internal_function.
33565 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33566 _dl_start.
33567
33568 2017-08-14 Florian Weimer <fweimer@redhat.com>
33569
33570 * elf/dl-fini.c (_dl_fini): Remove internal_function
33571 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33572
33573 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33574
33575 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33576 (bit_cpu_SHSTK): Likewise.
33577 (index_cpu_IBT): Likewise.
33578 (index_cpu_SHSTK): Likewise.
33579 (reg_IBT): Likewise.
33580 (reg_SHSTK): Likewise.
33581 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33582 Handle index_cpu_IBT and index_cpu_SHSTK.
33583
33584 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33585
33586 [BZ #19982]
33587 * po/fr.po: Fix spelling mistake.
33588
33589 2017-08-13 Florian Weimer <fweimer@redhat.com>
33590
33591 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33592 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33593 (_dl_catch_error, _dl_receive_error): Likewise.
33594 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33595 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33596 (_dl_deallocate_tls): Likewise.
33597 * include/dlfcn.h (_dl_addr): Likewise.
33598 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33599 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33600 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33601 Likewise.
33602
33603 2017-08-13 Florian Weimer <fweimer@redhat.com>
33604
33605 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33606 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33607 internal_function.
33608 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33609
33610 2017-08-13 Florian Weimer <fweimer@redhat.com>
33611
33612 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33613 internal_function.
33614 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33615 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33616 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33617 internal_function from _dl_make_stack_executable_hook member.
33618 (_dl_make_stack_executable): Remove internal_function.
33619 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33620 Likewise.
33621 * sysdeps/unix/sysv/linux/dl-execstack.c
33622 (_dl_make_stack_executable): Likewise.
33623
33624 2017-08-13 Florian Weimer <fweimer@redhat.com>
33625
33626 * sysdeps/unix/sysv/linux/netlinkaccess.h
33627 (__netlink_assert_response): Remove internal_function.
33628 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33629 (__netlink_assert_response): Likewise.
33630
33631 2017-08-13 Florian Weimer <fweimer@redhat.com>
33632
33633 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33634 internal_function.
33635 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33636
33637 2017-08-13 Florian Weimer <fweimer@redhat.com>
33638
33639 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33640 internal_function.
33641 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33642 * inet/netgroup.h (__internal_setnetgrent)
33643 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33644 * inet/getnetgrent_r.c (__internal_setnetgrent)
33645 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33646 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33647 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33648 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33649 * nss/nsswitch.h (db_lookup_function): Likewise.
33650
33651 2017-08-13 Florian Weimer <fweimer@redhat.com>
33652
33653 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33654 Remove internal_function.
33655 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33656 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33657 message argument on the stack.
33658 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33659 Likeweise.
33660
33661 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33662
33663 Adapt test case data to the changes in the thousands
33664 separators.
33665
33666 [BZ #20756]
33667 * localedata/tst-langinfo.sh: Adapt test case data.
33668 * stdlib/tst-strfmon_l.c: Likewise.
33669 * stdlib/tst-strtod4.c: Likewise.
33670 * stdlib/tst-strtod5i.c: Likewise.
33671
33672 2017-08-11 Florian Weimer <fweimer@redhat.com>
33673
33674 [BZ #21242]
33675 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33676 Suppress pedantic warning resulting from statement expression.
33677 (__ASSERT_FUNCTION): Add missing __extension__.
33678
33679 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33680
33681 * benchtests/bench-memmove-large.c: Print output in JSON
33682 format.
33683 * benchtests/bench-memmove.c: Likewise.
33684
33685 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33686 * benchtests/bench-memchr.c (do_one_test): Likewise.
33687 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33688 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33689 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33690 * benchtests/bench-memmove.c (do_one_test): Likewise.
33691 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33692 * benchtests/bench-memset.c (do_one_test): Likewise.
33693 * benchtests/bench-string.h (test_init): Remove memsets.
33694
33695 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33696
33697 * manual/lang.texi
33698 (Computing the Width of an Integer Data Type): Rename section to
33699 "Width of an Integer Type". Remove inaccurate statement regarding
33700 lack of C language facilities for determining width of integer
33701 types, and reorder content to improve flow and context of
33702 discussion.
33703
33704 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33705
33706 * lang.texi (va_copy): Change standard from ISO to C99.
33707 (__va_copy): Add standard and header annotation.
33708 Update description for clarity of origins and current use.
33709
33710 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33711
33712 [BZ #21941]
33713 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33714 xssqrtqp requires operands to be in Vector Registers
33715 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33716 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33717 (__ieee754_sqrtf128): Likewise.
33718
33719 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33720
33721 * sysdeps/aarch64/memcmp.S (memcmp):
33722 Rewrite of optimized memcmp.
33723
33724 2017-08-10 Florian Weimer <fweimer@redhat.com>
33725
33726 Introduce ld.so exceptions.
33727 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33728 (_dl_exception_create, _dl_exception_create_format)
33729 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33730 (_dl_catch_exception): Declare.
33731 (_dl_catch_error): Update comment.
33732 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33733 errstring, malloced members with exception member.
33734 (_dl_out_of_memory): Remove.
33735 (fatal_error): New function, extracted from _dl_signal_error.
33736 (_dl_signal_exception, _dl_signal_cexception): New functions.
33737 (_dl_signal_error): Call _dl_exception_create to allocate an
33738 exception object.
33739 (_dl_catch_exception): New function, based on _dl_catch_error.
33740 (_dl_catch_error): Implement using _dl_catch_exception.
33741 * elf/dl-exception.c: New file.
33742 * elf/Makefile (dl-routines): Add dl-exception.
33743 (elide-routines.os): Likewise.
33744 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33745 _dl_exception_create_format, _dl_exception_free.
33746 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33747 _dl_signal_exception.
33748 * elf/dl-lookup.c (make_string): Remove.
33749 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33750 _dl_signal_cexception, _dl_exception_free.
33751 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33752 _dl_signal_exception.
33753 * elf/dl-sym.c (do_sym): Likewise.
33754 * elf/dl-version.c (make_string): Remove.
33755 (match_symbol): Use _dl_exception_create_format,
33756 _dl_signal_cexception, _dl_exception_free.
33757 (_dl_check_map_versions): Likewise.
33758 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33759 _dl_catch_exception.
33760 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33761 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33762 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33763 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33764 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33765 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33766 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33767 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33768 Likewise.
33769 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33771 (ld.so): Likewise.
33772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33773 (ld.so): Likewise.
33774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33775 Likewise.
33776 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33777 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33778 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33779 Likewise.
33780 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33781 Likewise.
33782 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33783
33784 2017-08-10 Florian Weimer <fweimer@redhat.com>
33785
33786 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33787 attribute_hidden, internal_function.
33788 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33789 internal_function.
33790
33791 2017-08-10 Florian Weimer <fweimer@redhat.com>
33792
33793 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33794 function which calls __builtin_unreachable.
33795
33796 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33797
33798 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33799 Indian monetary formatting
33800 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33801 test cases.
33802
33803 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33804
33805 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33806 Fix typo in comment.
33807
33808 [BZ #21928]
33809 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33810 PTRACE_SEIZE_DEVEL): Remove.
33811 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33812 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33813 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33814 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33815 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33816
33817 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33818
33819 * posix/bits/types.h (__qaddr_t): Remove.
33820
33821 [BZ #21457]
33822 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33823 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33824 __glibc_reserved1.
33825 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33826 (ucontext_t): Use __ctx with uc_flags.
33827 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33828 (__ctxt): Likewise.
33829 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33830 __glibc_reserved1.
33831 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33832 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33833 __glibc_reserved1.
33834 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33835 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33836 __glibc_reserved1.
33837 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33838 macro.
33839 (ucontext_t): Use __ctx with uc_flags.
33840 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33841 (ucontext_t): Use __ctx with uc_flags.
33842 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33843 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33844 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33845 (ucontext_t): Use __ctx with uc_flags.
33846 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33847 undefine further down.
33848 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33849 __glibc_reserved1.
33850 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33851 undefine further down.
33852 (ucontext_t): Use __ctx with uc_flags.
33853 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33854 undefine further down.
33855 (ucontext_t): Use __ctx with uc_flags.
33856 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33857 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33858 Rename uc_pad to __glibc_reserved1.
33859 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33860 undefine further down.
33861 (ucontext_t): Use __ctx with uc_flags.
33862 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33863 further down.
33864 (ucontext_t): Use __ctx with uc_flags.
33865 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33866 __ctx with uc_flags.
33867 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33868 (ucontext_t): Use __ctx with uc_flags.
33869 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33870 __ctx with uc_flags.
33871
33872 2017-08-09 Florian Weimer <fweimer@redhat.com>
33873
33874 [BZ #21932]
33875 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33876 before early return.
33877
33878 2017-08-09 Andreas Schwab <schwab@suse.de>
33879
33880 [BZ #21041]
33881 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33882 renamed alias.
33883
33884 [BZ #21041]
33885 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33886 tst-compat-forwarder.
33887 (modules-names): Add tst-compat-forwarder-mod.
33888 ($(objpfx)tst-compat-forwarder): Depend on
33889 $(objpfx)tst-compat-forwarder-mod.so.
33890 * nptl/tst-compat-forwarder.c: New file.
33891 * nptl/tst-compat-forwarder-mod.c: New file.
33892
33893 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33894
33895 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33896 comments.
33897
33898 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33899 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33900 memcpy_falkor.
33901 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33902 Bump.
33903 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33904 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33905 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33906 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33907 Add falkor.
33908 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33909 New macro.
33910
33911 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33912
33913 [BZ #759]
33914 * manual/setjmp.texi (getcontex): Document uc_stack value
33915 compatibility differences.
33916
33917 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33918
33919 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33920 (old_malloc_hook): Likewise.
33921 (old_memalign_hook): Likewise.
33922 (old_realloc_hook): Likewise.
33923 (struct hdr): Likewise.
33924 (flood): Likewise.
33925 (freehook): Likewise.
33926 (mallochook): Likewise.
33927 (memalignhook): Likewise.
33928 (reallochook): Likewise.
33929 (mprobe): Likewise.
33930 * malloc/mtrace.c (mallwatch): Likewise.
33931 (tr_old_free_hook): Likewise.
33932 (tr_old_malloc_hook): Likewise.
33933 (tr_old_realloc_hook): Likewise.
33934 (tr_old_memalign_hook): Likewise.
33935 (tr_where): Likewise.
33936 (lock_and_info): Likewise.
33937 (tr_freehook): Likewise.
33938 (tr_mallochook): Likewise.
33939 (tr_reallochook): Likewise.
33940 (tr_memalignhook): Likewise.
33941 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33942 * misc/mmap.c (__mmap): Likewise.
33943 * misc/mmap64.c (__mmap64): Likewise.
33944 * misc/mprotect.c (__mprotect): Likewise.
33945 * misc/msync.c (msync): Likewise.
33946 * misc/munmap.c (__munmap): Likewise.
33947 * posix/posix_madvise.c (posix_madvise): Likewise.
33948 * socket/send.c (__send): Likewise.
33949 * socket/sendto.c (__sendto): Likewise.
33950 * socket/setsockopt.c (__setsockopt): Likewise.
33951 * string/memcmp.c (__ptr_t): Remove macro.
33952 (MEMCMP): Use void * instead of ptr_t.
33953 * string/memrchr.c (__ptr_t): Remove macro.
33954 (__memrchr): Use void * instead of ptr_t.
33955 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33956 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33957 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33958 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33959 * sysdeps/mach/msync.c (msync): Likewise.
33960 * sysdeps/mach/munmap.c (__munmap): Likewise.
33961 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33962 Likewise.
33963 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33964 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33965 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33966 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33967 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33968 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33969 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33970 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33971 Likewise.
33972 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33973 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33974 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33975 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33976 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33977 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33978 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33979 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33980 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33981 Likewise.
33982 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33983 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33984 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33985 (MEMCMP): Use void * instead of ptr_t.
33986 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33987 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33988
33989 2017-08-08 Florian Weimer <fweimer@redhat.com>
33990
33991 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33992 return statement.
33993
33994 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33995
33996 [BZ #21913]
33997 * csu/libc-tls.c: Include <startup.h> first.
33998 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33999 * elf/dl-tunables.c: Include <startup.h> first.
34000 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34001 * sysdeps/generic/startup.h: New file.
34002 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34003 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34004 (I386_USE_SYSENTER): New. Defined to 0.
34005
34006 2017-08-08 Andreas Schwab <schwab@suse.de>
34007
34008 [BZ #21041]
34009 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34010 * nptl/pt-system.c (system): Likewise.
34011
34012 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34013
34014 [BZ #21780]
34015 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34016 EOPNOTSUPP.
34017 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34018 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34019 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34020 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34021 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34022 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34023 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34024
34025 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34026
34027 [BZ #21899]
34028 * bits/sigaction.h (struct sigaction): Define sa_handler and
34029 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34030 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34031 [__USE_XOPEN_EXTENDED].
34032 (SA_RESTART): Likewise.
34033 (SA_NODEFER): Likewise.
34034 (SA_RESETHAND): Likewise.
34035 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34036 (struct sigaction): Define sa_handler and sa_sigaction using union
34037 also for [__USE_XOPEN_EXTENDED].
34038 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34039 [__USE_XOPEN_EXTENDED].
34040 (SA_RESTART): Likewise.
34041 (SA_NODEFER): Likewise.
34042 (SA_RESETHAND): Likewise.
34043 * sysdeps/unix/sysv/linux/bits/sigaction.h
34044 (struct sigaction): Define sa_handler and sa_sigaction using union
34045 also for [__USE_XOPEN_EXTENDED].
34046 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34047 [__USE_XOPEN_EXTENDED].
34048 (SA_RESTART): Likewise.
34049 (SA_NODEFER): Likewise.
34050 (SA_RESETHAND): Likewise.
34051 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34052 (struct sigaction): Define sa_handler and sa_sigaction using union
34053 also for [__USE_XOPEN_EXTENDED].
34054 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34055 [__USE_XOPEN_EXTENDED].
34056 (SA_RESTART): Likewise.
34057 (SA_NODEFER): Likewise.
34058 (SA_RESETHAND): Likewise.
34059 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34060 (struct sigaction): Define sa_handler and sa_sigaction using union
34061 also for [__USE_XOPEN_EXTENDED].
34062 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34063 [__USE_XOPEN_EXTENDED].
34064 (SA_RESTART): Likewise.
34065 (SA_NODEFER): Likewise.
34066 (SA_RESETHAND): Likewise.
34067 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34068 (struct sigaction): Define sa_handler and sa_sigaction using union
34069 also for [__USE_XOPEN_EXTENDED].
34070 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34071 [__USE_XOPEN_EXTENDED].
34072 (SA_RESTART): Likewise.
34073 (SA_NODEFER): Likewise.
34074 (SA_RESETHAND): Likewise.
34075 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34076 (struct sigaction): Define sa_handler and sa_sigaction using union
34077 also for [__USE_XOPEN_EXTENDED].
34078 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34079 [__USE_XOPEN_EXTENDED].
34080 (SA_RESTART): Likewise.
34081 (SA_NODEFER): Likewise.
34082 (SA_RESETHAND): Likewise.
34083 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34084 (struct sigaction): Define sa_handler and sa_sigaction using union
34085 also for [__USE_XOPEN_EXTENDED].
34086 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34087 [__USE_XOPEN_EXTENDED].
34088 (SA_RESTART): Likewise.
34089 (SA_NODEFER): Likewise. Define directly rather than as alias.
34090 (SA_RESETHAND): Likewise.
34091 (SA_INTERRUPT): Define only for [__USE_MISC].
34092 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34093 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34094 [__USE_MISC].
34095 (SA_STACK): Define only for [__USE_MISC].
34096 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34097 (struct sigaction): Define sa_handler and sa_sigaction using union
34098 also for [__USE_XOPEN_EXTENDED].
34099 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34100 [__USE_XOPEN_EXTENDED].
34101 (SA_RESTART): Likewise.
34102 (SA_NODEFER): Likewise.
34103 (SA_RESETHAND): Likewise.
34104 (SA_NOPTRACE): Define only for [__USE_MISC].
34105
34106 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34107 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34108 (struct catalog_info): Likewise.
34109 * inet/htontest.c (lo): Likewise.
34110 (foo): Likewise.
34111 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34112 * inet/inet_net.c (inet_network): Likewise.
34113 * inet/inet_netof.c (inet_netof): Likewise.
34114 * inet/rcmd.c (__ivaliduser): Likewise.
34115 (iruserok): Likewise.
34116 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34117 * locale/programs/locale-spec.c (locale_special): Likewise.
34118 * nis/nis_findserv.c (struct findserv_req): Likewise.
34119 (__nis_findfastest_with_timeout): Likewise.
34120 * nss/test-netdb.c (test_network): Likewise.
34121 * resolv/inet_neta.c (inet_neta): Likewise.
34122 * resolv/ns_date.c (ns_datetosecs): Likewise.
34123 (SECS_PER_DAY): Likewise.
34124 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34125 Likewise.
34126 * resolv/res_comp.c (__putlong): Likewise.
34127 (__putshort): Likewise.
34128 (_getlong): Likewise.
34129 (_getshort): Likewise.
34130 * resolv/res_debug.c (p_time): Likewise.
34131 (precsize_ntoa): Likewise.
34132 (precsize_aton): Likewise.
34133 (latlon2ul): Likewise.
34134 (loc_aton): Likewise.
34135 (loc_ntoa): Likewise.
34136 * resolv/res_hconf.c (struct netaddr): Likewise.
34137 (_res_hconf_reorder_addrs): Likewise.
34138 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34139 (clnttcp_control): Likewise.
34140 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34141 (clntudp_control): Likewise.
34142 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34143 (clntunix_control): Likewise.
34144 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34145 * sunrpc/rpc/auth.h (union des_block): Likewise.
34146 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34147 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34148 (xdrrec_create): Likewise.
34149 (xdrrec_endofrecord): Likewise.
34150 (flush_out): Likewise.
34151 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34152 (xdrstdio_putlong): Likewise.
34153 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34154 Likewise.
34155
34156 * misc/sys/cdefs.h (__long_double_t): Remove.
34157 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34158 instead of __long_double_t,
34159 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34160
34161 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34162
34163 * benchtests/scripts/compare_strings.py: Avoid display error when
34164 running on a text terminal.
34165
34166 * benchtests/scripts/compare_strings.py (main): Add an
34167 optional -base option.
34168 (process_results): New argument base_func.
34169
34170 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34171 hardcoding memcpy.
34172 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34173 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34174
34175 2017-08-07 Andreas Schwab <schwab@suse.de>
34176
34177 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34178 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34179 * intl/Makefile ($(objpfx)tst-gettext.out)
34180 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34181 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34182 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34183 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34184 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34185 * posix/Makefile ($(objpfx)globtest.out)
34186 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34187 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34188 ($(objpfx)tst-printf.out): Likewise.
34189 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34190 ($(objpfx)tst-setcontext3.out): Likewise.
34191
34192 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34193
34194 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34195 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34196 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34197 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34198 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34199 and mptan-fma.
34200 (CFLAGS-doasin-fma.c): New.
34201 (CFLAGS-dosincos-fma.c): Likewise.
34202 (CFLAGS-e_asin-fma.c): Likewise.
34203 (CFLAGS-e_atan2-fma.c): Likewise.
34204 (CFLAGS-e_exp-fma.c): Likewise.
34205 (CFLAGS-e_log-fma.c): Likewise.
34206 (CFLAGS-e_pow-fma.c): Likewise.
34207 (CFLAGS-halfulp-fma.c): Likewise.
34208 (CFLAGS-mpa-fma.c): Likewise.
34209 (CFLAGS-mpatan-fma.c): Likewise.
34210 (CFLAGS-mpatan2-fma.c): Likewise.
34211 (CFLAGS-mpexp-fma.c): Likewise.
34212 (CFLAGS-mplog-fma.c): Likewise.
34213 (CFLAGS-mpsqrt-fma.c): Likewise.
34214 (CFLAGS-mptan-fma.c): Likewise.
34215 (CFLAGS-s_atan-fma.c): Likewise.
34216 (CFLAGS-sincos32-fma.c): Likewise.
34217 (CFLAGS-slowexp-fma.c): Likewise.
34218 (CFLAGS-slowpow-fma.c): Likewise.
34219 (CFLAGS-s_sin-fma.c): Likewise.
34220 (CFLAGS-s_tan-fma.c): Likewise.
34221 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34222 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34223 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34224 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34225 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34226 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34227 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34228 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34229 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34230 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34231 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34232 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34233 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34234 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34235 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34236 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34237 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34238 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34239 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34240 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34241 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34242 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34243 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34244 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34245 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34246 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34247 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34248 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34249 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34250 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34251 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34252
34253 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34254
34255 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34256 (min_of_type_f): New macro.
34257 (min_of_type_): Likewise.
34258 (min_of_type_l): Likewise.
34259 (min_of_type_f128): Likewise.
34260 (min_of_type): Define using __MATH_TG and taking an expression
34261 argument.
34262 (math_check_force_underflow): Pass expression instead of type to
34263 min_of_type.
34264 (math_check_force_underflow_nonneg): Likewise.
34265
34266 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34267
34268 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34269 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34270 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34271
34272 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34273
34274 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34275 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34276 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34277 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34278 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34279 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34280 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34281 memmove_chk-nonshared and memset_chk-nonshared
34282 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34283 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34284 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34285 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34286 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34287 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34288 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34289 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34290 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34291 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34292 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34293 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34294 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34295 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34296 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34297 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34298 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34299 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34300 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34301 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34302 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34303 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34304 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34305 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34306 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34307 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34308 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34309 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34310 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34311 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34312 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34313 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34314 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34315 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34316 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34317 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34318 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34319 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34320 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34321 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34322 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34323 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34324 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34325 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34326 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34327 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34328 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34329 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34330 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34331 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34332 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34333 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34334 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34335 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34336 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34337 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34338 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34339 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34340 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34341 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34342 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34343 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34344 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34345 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34346 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34347 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34348 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34349 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34350 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34351 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34352 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34353 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34354 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34355 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34356 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34357 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34358 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34359 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34360 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34361 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34362 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34363 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34364 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34365 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34366 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34367 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34368 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34369 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34370 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34371 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34372 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34373 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34374 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34375 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34376 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34377 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34378 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34379 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34380 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34381 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34382 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34383 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34384 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34385 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34386 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34387 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34388 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34389 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34390
34391 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34392
34393 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34394 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34395 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34396 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34397 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34398 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34399 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34400 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34401 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34402 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34403 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34404 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34405 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34406 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34407 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34408 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34409 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34410 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34411 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34412 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34413 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34414 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34415 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34416 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34417 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34418 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34419 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34420 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34421 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34422 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34423 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34424 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34425 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34426 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34427 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34428 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34429 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34430 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34431 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34432 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34433 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34434 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34435 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34436 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34437 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34438 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34439 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34440 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34441 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34442 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34443 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34444 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34445 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34446 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34447 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34448 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34449 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34450 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34451 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34452 ...
34453 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34454 Don't include <sysdep.h> nor <init-arch.h>.
34455 (_ZGVbN2v_cos): Removed.
34456 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34457 ...
34458 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34459 Don't include <sysdep.h> nor <init-arch.h>.
34460 (_ZGVdN4v_cos): Removed.
34461 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34462 ...
34463 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34464 Don't include <sysdep.h> nor <init-arch.h>.
34465 (_ZGVeN8v_cos): Removed.
34466 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34467 ...
34468 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34469 Don't include <sysdep.h> nor <init-arch.h>.
34470 (_ZGVbN2v_exp): Removed.
34471 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34472 ...
34473 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34474 Don't include <sysdep.h> nor <init-arch.h>.
34475 (_ZGVdN4v_exp): Removed.
34476 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34477 ...
34478 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34479 Don't include <sysdep.h> nor <init-arch.h>.
34480 (_ZGVeN8v_exp): Removed.
34481 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34482 ...
34483 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34484 Don't include <sysdep.h> nor <init-arch.h>.
34485 (_ZGVbN2v_log): Removed.
34486 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34487 ...
34488 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34489 Don't include <sysdep.h> nor <init-arch.h>.
34490 (_ZGVdN4v_log): Removed.
34491 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34492 ...
34493 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34494 Don't include <sysdep.h> nor <init-arch.h>.
34495 (_ZGVeN8v_log): Removed.
34496 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34497 ...
34498 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34499 Don't include <sysdep.h> nor <init-arch.h>.
34500 (_ZGVbN2vv_pow): Removed.
34501 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34502 ...
34503 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34504 Don't include <sysdep.h> nor <init-arch.h>.
34505 (_ZGVdN4vv_pow): Removed.
34506 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34507 ...
34508 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34509 Don't include <sysdep.h> nor <init-arch.h>.
34510 (_ZGVeN8vv_pow): Removed.
34511 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34512 ...
34513 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34514 Don't include <sysdep.h> nor <init-arch.h>.
34515 (_ZGVbN2v_sin): Removed.
34516 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34517 ...
34518 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34519 Don't include <sysdep.h> nor <init-arch.h>.
34520 (_ZGVbN4v_sin): Removed.
34521 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34522 ...
34523 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34524 Don't include <sysdep.h> nor <init-arch.h>.
34525 (_ZGVbN8v_sin): Removed.
34526 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34527 ...
34528 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34529 Don't include <sysdep.h> nor <init-arch.h>.
34530 (_ZGVbN2vvv_sincos): Removed.
34531 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34532 ...
34533 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34534 Don't include <sysdep.h> nor <init-arch.h>.
34535 (_ZGVdN4vvv_sincos): Removed.
34536 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34537 ...
34538 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34539 Don't include <sysdep.h> nor <init-arch.h>.
34540 (_ZGVeN8vvv_sincos): Removed.
34541 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34542 ...
34543 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34544 Don't include <sysdep.h> nor <init-arch.h>.
34545 (_ZGVeN16v_cosf): Removed.
34546 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34547 ...
34548 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34549 Don't include <sysdep.h> nor <init-arch.h>.
34550 (_ZGVbN4v_cosf): Removed.
34551 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34552 ...
34553 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34554 Don't include <sysdep.h> nor <init-arch.h>.
34555 (_ZGVdN8v_cosf): Removed.
34556 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34557 ...
34558 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34559 Don't include <sysdep.h> nor <init-arch.h>.
34560 (_ZGVeN16v_expf): Removed.
34561 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34562 ...
34563 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34564 Don't include <sysdep.h> nor <init-arch.h>.
34565 (_ZGVbN4v_expf): Removed.
34566 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34567 ...
34568 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34569 Don't include <sysdep.h> nor <init-arch.h>.
34570 (_ZGVdN8v_expf): Removed.
34571 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34572 ...
34573 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34574 Don't include <sysdep.h> nor <init-arch.h>.
34575 (_ZGVeN16v_logf): Removed.
34576 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34577 ...
34578 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34579 Don't include <sysdep.h> nor <init-arch.h>.
34580 (_ZGVbN4v_logf): Removed.
34581 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34582 ...
34583 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34584 Don't include <sysdep.h> nor <init-arch.h>.
34585 (_ZGVdN8v_logf): Removed.
34586 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34587 ...
34588 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34589 Don't include <sysdep.h> nor <init-arch.h>.
34590 (_ZGVeN16vv_powf): Removed.
34591 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34592 ...
34593 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34594 Don't include <sysdep.h> nor <init-arch.h>.
34595 (_ZGVbN4vv_powf): Removed.
34596 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34597 ...
34598 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34599 Don't include <sysdep.h> nor <init-arch.h>.
34600 (_ZGVdN8vv_powf): Removed.
34601 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34602 ...
34603 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34604 Don't include <sysdep.h> nor <init-arch.h>.
34605 (_ZGVeN16vvv_sincosf): Removed.
34606 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34607 ...
34608 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34609 Don't include <sysdep.h> nor <init-arch.h>.
34610 (_ZGVbN4vvv_sincosf): Removed.
34611 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34612 ...
34613 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34614 Don't include <sysdep.h> nor <init-arch.h>.
34615 (_ZGVdN8vvv_sincosf): Removed.
34616 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34617 ...
34618 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34619 Don't include <sysdep.h> nor <init-arch.h>.
34620 (_ZGVeN16v_sinf): Removed.
34621 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34622 ...
34623 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34624 Don't include <sysdep.h> nor <init-arch.h>.
34625 (_ZGVbN4v_sinf): Removed.
34626 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34627 ...
34628 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34629 Don't include <sysdep.h> nor <init-arch.h>.
34630 (_ZGVdN8v_sinf): Removed.
34631
34632 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34633
34634 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34635 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34636 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34637 s_rint-sse4_1 and s_rintf-sse4_1.
34638 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34639 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34640 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34641 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34642 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34643 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34644 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34645 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34646 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34647 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34648 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34649 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34650 (__ceil): Removed.
34651 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34652 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34653 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34654 (__ceilf): Removed.
34655 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34656 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34657 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34658 (__floor): Removed.
34659 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34660 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34661 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34662 (__floorf): Removed.
34663 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34664 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34665 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34666 (__nearbyint): Removed.
34667 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34668 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34669 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34670 (__nearbyintf): Removed.
34671 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34672 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34673 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34674 (__rint): Removed.
34675 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34676 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34677 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34678 (__rintf): Removed.
34679
34680 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34681
34682 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34683 SHARED. Avoid dynamic relocation against main in static PIE.
34684
34685 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34686
34687 [BZ #21815]
34688 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34689 (LDFLAGS-tst-prelink): Likewise.
34690
34691 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34692
34693 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34694 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34695 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34696 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34697 (INTERNAL_SYSCALL_NCS): Likewise.
34698 (LOADARGS_1): Likewise.
34699 (LOADARGS_5): Likewise.
34700 (RESTOREARGS_1): Likewise.
34701 (RESTOREARGS_5): Likewise.
34702
34703 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34704
34705 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34706 (MEMPCPY_SYMBOL): Likewise.
34707 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34708 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34709 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34710 in libc.a.
34711 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34712 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34713 Likewise.
34714 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34715 (__hidden_ver1): Don't use in libc.a.
34716 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34717 (__mempcpy): Don't create a weak alias in libc.a.
34718 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34719 libc.a.
34720 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34721 (__hidden_ver1): Don't use in libc.a.
34722
34723 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34724
34725 * config.make.in (have-insert): New.
34726 * configure.ac (libc_cv_insert): New. Set to yes if linker
34727 supports INSERT in linker script.
34728 (AC_SUBST(libc_cv_insert): New.
34729 * configure: Regenerated.
34730 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34731 if $(have-insert) == yes.
34732
34733 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34734
34735 * elf/Makefile (tests): Add vismain only if
34736 $(have-protected-data) == yes.
34737 (tests-pie): Likewise.
34738
34739 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34740
34741 [BZ #21871]
34742 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34743 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34744
34745 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34746
34747 [BZ #21790]
34748 * sysdeps/i386/i586/memset.S
34749 (__memset_zero_constant_len_parameter): Removed.
34750 * sysdeps/i386/i686/memset.S
34751 (__memset_zero_constant_len_parameter): Likewise.
34752 * sysdeps/i386/i686/multiarch/memset_chk.S
34753 (__memset_zero_constant_len_parameter): Likewise.
34754 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34755 Likewise.
34756
34757 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34758
34759 * stdlib/getentropy.c (getentropy): Change return type to int.
34760
34761 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34762
34763 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34764
34765 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34766
34767 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34768 u_intN_t.
34769 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34770 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34771 Likewise.
34772 (ieee_float_shape_type): Likewise.
34773 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34774 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34775 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34776 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34777 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34778 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34779 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34780 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34781 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34782 Likewise.
34783 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34784 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34785 (__ieee754_yn): Likewise.
34786 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34787 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34788 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34789 Likewise.
34790 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34791 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34792 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34793 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34794 (__erfc): Likewise.
34795 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34796 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34797 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34798 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34799 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34800 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34801 Likewise.
34802 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34803 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34804 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34805 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34806 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34807 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34808 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34809 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34810 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34811 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34812 (__issignaling): Likewise.
34813 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34814 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34815 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34816 Likewise.
34817 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34818 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34819 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34820 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34821 Likewise.
34822 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34823 Likewise.
34824 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34825 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34826 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34827 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34828 (__erfcf): Likewise.
34829 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34830 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34831 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34832 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34833 Likewise.
34834 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34835 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34836 Likewise.
34837 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34838 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34839 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34840 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34841 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34842 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34843 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34844 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34845 Likewise.
34846 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34847 Likewise.
34848 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34849 Likewise.
34850 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34851 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34852 Likewise.
34853 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34854 Likewise.
34855 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34856 (__ieee754_ynl): Likewise.
34857 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34858 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34859 Likewise.
34860 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34861 Likewise.
34862 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34863 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34864 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34865 Likewise.
34866 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34867 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34868 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34869 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34870 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34871 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34872 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34873 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34874 Likewise.
34875 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34876 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34877 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34878 Likewise.
34879 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34880 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34881 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34882 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34883 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34884 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34885 Likewise.
34886 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34887 Likewise.
34888 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34889 Likewise.
34890 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34891 Likewise.
34892 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34893 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34894 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34895 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34896 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34897 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34898 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34899 Likewise.
34900 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34901 Likewise.
34902 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34903 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34904 Likewise.
34905 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34906 (__ieee754_remainderl): Likewise.
34907 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34908 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34909 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34910 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34911 Likewise.
34912 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34913 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34914 Likewise.
34915 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34916 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34917 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34918 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34919 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34920 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34921 Likewise.
34922 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34923 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34924 (__ieee754_y0l): Likewise.
34925 (pzero): Likewise.
34926 (qzero): Likewise.
34927 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34928 (__ieee754_y1l): Likewise.
34929 (pone): Likewise.
34930 (qone): Likewise.
34931 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34932 (__ieee754_ynl): Likewise.
34933 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34934 (__ieee754_lgammal_r): Likewise.
34935 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34936 Likewise.
34937 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34938 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34939 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34940 (__erfcl): Likewise.
34941 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34942 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34943 Likewise.
34944 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34945 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34946 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34947 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34948 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34949 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34950 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34951 Likewise.
34952 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34953 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34954 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34955 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34956 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34957 Likewise.
34958 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34959 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34960 Likewise.
34961 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34962 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34963 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34964 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34965 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34966
34967 2017-08-03 Florian Weimer <fweimer@redhat.com>
34968
34969 [BZ #21885]
34970 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34971 on memory allocation failure.
34972
34973 2017-08-03 Alan Modra <amodra@gmail.com>
34974
34975 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34976 tst-tlsopt-powerpc.c with function name change and no test harness.
34977 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34978 Call tls_get_addr_opt_test.
34979 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34980 (modules-names): Add mod-tlsopt-powerpc.
34981 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34982 (tst-tlsopt-powerpc): Depend on .so.
34983 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34984 define. Expand use in TLS_GD and TLS_LD.
34985
34986 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34987
34988 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34989 function.
34990 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34991
34992 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34993
34994 [BZ #21686]
34995 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34996 comparing size with that of double.
34997 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34998 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34999 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35000 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35001 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35002 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35003 unsigned __int128 types.
35004
35005 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35006
35007 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35008 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35009 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35010 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35011 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35012
35013 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35014
35015 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35016
35017 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35018
35019 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35020 of SHARED.
35021 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35022 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35023 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35024 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35025 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35026 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35027 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35028
35029 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35030
35031 [BZ #21685]
35032 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35033 bit-field expressions passed to sizeof or typeof.
35034 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35035 (__TGMATH_F128): Likewise.
35036 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35037 (__TGMATH_CF128): Likewise.
35038 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35039 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35040 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35041 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35042 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35043 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35044 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35045 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35046 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35047 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35048 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35049 (__TGMATH_UNARY_IMAG): Likewise.
35050 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35051 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35052 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35053 type.
35054 (define_vars_for_type): Handle bit_field type specially.
35055 (Tests.__init__): Declare structure with bit-field element.
35056
35057 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35058
35059 [BZ #21791]
35060 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35061 (MEMCPY_CHK): Define only if SHARED is defined.
35062 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35063 Likewise.
35064 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35065 Likewise.
35066
35067 See ChangeLog.18 for earlier changes.