]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
libio: freopen of default streams crashes in old programs [BZ #24632]
[thirdparty/glibc.git] / ChangeLog
CommitLineData
cfa61144
FW
12019-06-12 Florian Weimer <fweimer@redhat.com>
2
3 [BZ #24632]
4 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
5 * libio/freopen.c (freopen): Use it.
6
744e8296
FW
72019-06-12 Florian Weimer <fweimer@redhat.com>
8
9 Linux: Deprecate sysctl.
10 * include/sysctl.h (__sysctl): Remove declaration.
11 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
12 check.
13 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
14 (sysctl): Add deprecation attribute.
15 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
16 directly, to avoid the deprecation warning. Do not include
17 <string.h>.
18 (__sysctl): Remove hidden alias.
19
5dad6ffb
FW
202019-06-12 Florian Weimer <fweimer@redhat.com>
21
22 Linux: Use kernel headers for statx definitions if available.
23 * include/bits/statx-generic.h: New file.
24 * include/bits/types/struct_statx.h: Likewise.
25 * include/bits/types/struct_statx_timestamp.h: Likewise.
26 * io/Makefile (headers): Add bits/statx-generic.h.
27 * io/bits/statx-generic.h: New file. Partly copied from
28 io/bits/statx.h.
29 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
30 define original_statx.
31 * io/bits/types/struct_statx.h: Likewise.
32 * io/bits/types/struct_statx_timestamp.h: Likewise.
33 (statx_generic): Use original_statx.
34 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
35 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
36
4e75c2a4
FW
372019-06-12 Florian Weimer <fweimer@redhat.com>
38
39 * misc/sys/cdefs.h (__glibc_has_include): Define.
40
680942b0
WD
412019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
42
43 * string/memmem.c (__memmem): Rewrite to improve performance.
44
5e0a7ecb
WD
452019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
46
47 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
48 warning.
49 (two_way_long_needle): Block inlining.
50 * string/strstr.c (strstr2): Add new function.
51 (strstr3): Likewise.
52 (STRSTR): Completely rewrite strstr to improve performance.
53
80b2bfb5
WD
542019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
55
56 * benchtests/bench-strstr.c (test_hard_needle): New function.
57
e6e24243
JM
582019-06-10 Joseph Myers <joseph@codesourcery.com>
59
60 * malloc/tst-calloc.c: Include <libc-diag.h>.
61 (null_test): Ignore -Wunused-result around calls to calloc.
62 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
63 (do_test): Ignore -Wunused-result around call to malloc.
64
51ea67d5
FW
652019-06-07 Florian Weimer <fweimer@redhat.com>
66
67 Linux: Add getdents64 system call.
68 * include/dirnent.h (getdents): Add comment and change buffer
69 argument type to void *.
70 (getdents64): Likewise. Add hidden prototype.
71 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
72 getdents64.
73 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
74 Add tst-getdents64.
75 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
76 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
77 argument type to void *.
78 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
79 Add hidden definition and getdents64 alias.
80 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
81 Likewise.
82 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
83 * manual/filesys.texi (Accessing Directories): Add Low-level
84 Directory Access node reference.
85 (Opening a Directory): Cross-reference it.
86 (Low-level Directory Access): New node.
87 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
88 getdents64.
89 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
90 Likewise.
91 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
92 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
93 Likewise.
94 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
95 Likewise.
96 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
97 Likewise.
98 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
99 Likewise.
100 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
101 Likewise.
102 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
103 Likewise.
104 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
105 Likewise.
106 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
107 (GLIBC_2.30): Likewise.
108 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
109 (GLIBC_2.30): Likewise.
110 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
111 (GLIBC_2.30): Likewise.
112 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
113 (GLIBC_2.30): Likewise.
114 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
115 Likewise.
116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
117 (GLIBC_2.30): Likewise.
118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
119 (GLIBC_2.30): Likewise.
120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
121 (GLIBC_2.30): Likewise.
122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
123 (GLIBC_2.30): Likewise.
124 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
125 Likewise.
126 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
127 Likewise.
128 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
129 Likewise.
130 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
131 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
132 Likewise.
133 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
134 Likewise.
135 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
136 Likewise.
137 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
138 Likewise.
139
de751ebc
PC
1402019-06-06 Paul A. Clarke <pc@us.ibm.com>
141
142 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
143 (__FPU_MFFS): New.
144 (__FPU_MFFSL): New.
145 (_FPU_GET_RC): New.
146 (_FPU_GETCW): Use __FPU_MFFS().
147 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
148
28dd3939
FW
1492019-06-06 Florian Weimer <fweimer@redhat.com>
150
151 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
152 internal GCC preprocessor identifier __has_include__.
153
0158473d
PC
1542019-06-05 Paul A. Clarke <pc@us.ibm.com>
155
156 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
157 with call to equivalent function.
158
e863dbf6
FW
1592019-06-04 Florian Weimer <fweimer@redhat.com>
160
161 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
162 (do_release_shlib): Adjust for __twalk_r.
163 (__gconv_release_shlib): Call __twalk_r.
164
4802be92
AS
1652019-06-04 Andreas Schwab <schwab@suse.de>
166
167 [BZ #18830]
168 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
169 no irreversible characters occurred.
170 * iconv/gconv_simple.c (internal_ucs4_loop)
171 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
172 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
173 (ucs4_internal_loop_single, internal_ucs4le_loop)
174 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
175 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
176 (ucs4le_internal_loop_single): Add const to outend.
177 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
178 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
179 * iconv/Makefile (tests): Add tst-iconv7.
180 * iconv/tst-iconv7.c: New file.
181
dc91a19e
JM
1822019-06-03 Joseph Myers <joseph@codesourcery.com>
183
184 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
185
6a1a9a49 1862019-06-01 Florian Weimer <fweimer@redhat.com>
6b33f373
FW
187
188 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
189 * sysdeps/unix/sysv/linux/arm/Makefile
190 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
191 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
192 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
193 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
194 compatibility symbols.
195
0bb8f8c7
FW
1962019-05-31 Florian Weimer <fweimer@redhat.com>
197
198 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
199 system calls for the arm architecture: breakpoint, get_tls,
200 set_tls, usr26, usr32.
201
9250e661
GG
2022019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
203
204 * sysdeps/powerpc/Makefile
205 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
206 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
207 Declare '.machine power7' to get support for ldbrx.
208 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
209 directive based on the directory of the file.
210 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
211 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
212 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
213 '.machine' directive.
214 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
215 (VADDUQM_V7_V8): Remove.
216 (__STRCASECMP): Replace macros with actual instructions.
217 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
218 '.machine' directive.
219 (VCLZD_V8_v7): Remove.
220 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
221
fbd6c928
AZ
2222019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
223
224 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
225 Remove file.
226 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
227
e47308c9
AZ
2282019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
229
230 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
231 NEARBYINT handling.
232 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
233 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
234 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
235 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
236 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
237 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
238
157cda1f 2392019-05-28 mansayk <6688000@gmail.com>
240
241 [BZ #24370]
242 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
243
182a3746 2442019-05-28 mansayk <6688000@gmail.com>
245
246 [BZ #24369]
247 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
248 (abmon): Likewise, but remove the trailing dots.
249
c6df1ce3
JM
2502019-05-28 Joseph Myers <joseph@codesourcery.com>
251
252 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
253
85188d82
FW
2542019-05-27 Florian Weimer <fweimer@redhat.com>
255
256 * nptl/nptl-init.c: Add comment.
257
5c23c821
FW
2582019-05-24 Florian Weimer <fweimer@redhat.com>
259
260 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
261 struct in_addr/struct in6_addr alignment.
262
bee1f2c4
JM
2632019-05-23 Joseph Myers <joseph@codesourcery.com>
264
265 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
266 (F_SEAL_FUTURE_WRITE): New macro.
267
481c30cb
AH
2682019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
269
270 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
271 * elf/tst-ldconfig-bad-aux-cache.c: New file.
272 * elf/tst-ldconfig_aux-cache.root: New directory.
273 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
274 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
275 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
276
cb755eed
ZW
2772019-05-22 Zack Weinberg <zackw@panix.com>
278
279 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
280 host type.
281 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
282 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
283
284 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
287 Delete.
288
289 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
290 Issue an #error if used with a compiler in SPE-float mode.
291 * sysdeps/powerpc/powerpc32/__longjmp_common.S
292 * sysdeps/powerpc/powerpc32/setjmp_common.S
293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
299 Remove code to preserve SPE register state.
300
301 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
302 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
303 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
304 Remove __SPE__ ifndefs.
305
46ae0732
WD
3062019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
307
308 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
309 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
310 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
311 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
312 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
313 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
314 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
315 (INNER_LOOP_ITERS_MEDIUM): New define.
316 (INNER_LOOP_ITERS_SMALL): New define.
317 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
318 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
319 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
320 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
321 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
322
004e52fe
AZ
3232019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
324
325 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
326 New define.
327 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
328 (SEMTIMEDOP_IPC_ARGS): Likewise.
329
c9c15ac3
FW
3302019-05-21 Florian Weimer <fweimer@redhat.com>
331
332 [BZ #24584]
333 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
334 before updating __counter field and release it afterwards. Add
335 overflow check.
336 * iconv/gconv.h (struct __gconv_step): Mention synchronization
337 requirement for __counter member.
338
7e740ab2
FW
3392019-05-21 Florian Weimer <fweimer@redhat.com>
340
341 [BZ #24583]
342 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
343 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
344 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
345 instead of __gconv_release_step.
346 * libio/Makefile (tests): Add tst-wfile-gconv.
347 (tests-container): Add tst-wfile-ascii.
348 (tst-wfile-gconv-ENV): Enable mtrace.
349 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
350 (tests-special): Add tst-wfile-gconv-mem.out.
351 (tst-wfile-gconv.out): Depend on locales.
352 (tst-wfile-gconv-mem.out): Add mtrace rule.
353 * libio/tst-wfile-ascii.c: New file.
354 * libio/tst-wfile-gconv.c: Likewise.
355
09e1b0e3
FW
3562019-05-20 Florian Weimer <fweimer@redhat.com>
357
358 [BZ #24588]
359 libio: Remove codecvt vtable.
360 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
361 __libio_codecvt.
362 * libio/iofgetpos.c (_IO_new_fgetpos): Call
363 __libio_codecvt_encoding.
364 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
365 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
366 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
367 * libio/iofwide.c (__libio_codecvt): Remove variable.
368 (_IO_fwide): Do not copy __libio_codecvt.
369 (__libio_codecvt_out): Rename from do_out and export.
370 (do_unshift): Remove function.
371 (__libio_codecvt_in): Rename from do_in and export.
372 (__libio_codecvt_encoding): Rename from do_encoding and export.
373 (do_always_noconv): Remove function.
374 (__libio_codecvt_length): Rename from do_length and export.
375 (do_max_length): Remove function.
376 * libio/libio.h (enum __codecvt_result): Remove definition; moved
377 to libioP.h.
378 (struct _IO_codecvt): Remove fields __codecvt_destr,
379 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
380 __codecvt_do_encoding, __codecvt_do_always_noconv,
381 __codecvt_do_length, __codecvt_do_max_length.
382 * libio/libioP.h (enum __codecvt_result): Define; moved from
383 libio.h.
384 (__libio_codecvt_out, __libio_codecvt_in)
385 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
386 functions.
387 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
388 (_IO_wfile_underflow): Call __libio_codecvt_in.
389 (_IO_wfile_underflow): Likewise.
390 (_IO_wfile_underflow_mmap): Likewise.
391 (_IO_wfile_sync): Call __libio_codecvt_encoding,
392 __libio_codecvt_length.
393 (adjust_wide_data): Call __libio_codecvt_encoding,
394 __libio_codecvt_in.
395 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
396 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
397 __libio_codecvt_length.
398
75c51570
FW
3992019-05-20 Florian Weimer <fweimer@redhat.com>
400
401 * support/support.h (support_sbindir_prefix): Declare.
402 (support_install_rootsbindir): Update comment.
403 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
404 * support/support_paths.c (support_sbindir_prefix): Define.
405
ff6bec7d
MC
4062019-05-20 Mike Crowe <mac@mcrowe.com>
407
b62bb3bc
MC
408 * support/timespec.c: Add backslash to correct newline in failure
409 message.
410
ff6bec7d
MC
411 * support/timespec.h: Correct confusing comment.
412
dfba907f
AZ
4132019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
414
236c18e5
AZ
415 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
416 define.
417 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
418 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
419 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
420 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
421
dfba907f
AZ
422 [BZ #24570]
423 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
424 usage.
425
13886008
JM
4262019-05-20 Joseph Myers <joseph@codesourcery.com>
427
428 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
429 (NT_ARM_PACG_KEYS): Likewise.
430
1f50f2ad
WD
4312019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
432
433 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
434 (tcache_put): Remove redundant assert.
435 (tcache_get): Remove redundant asserts.
436 (__libc_malloc): Check tcache count is not zero.
437 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
438
fef7c63c
FW
4392019-05-17 Florian Weimer <fweimer@redhat.com>
440
441 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
442
5f161b23
JM
4432019-05-16 Joseph Myers <joseph@codesourcery.com>
444
445 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
446 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
447 0x050100].
448 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
449 Likewise.
450 * sysdeps/unix/sysv/linux/sh/kernel-features.h
451 (__ASSUME_STATX): Likewise.
452
ec255a97
FW
4532019-05-16 Florian Weimer <fweimer@redhat.com>
454
455 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
456 flags argument.
457 (LINE_PARSER): Do not map IPv4 addresses.
458 (internal_nis_gethostent_r): Remove flags argument. Adjust call
459 to parse_line.
460 (_nss_nis_gethostent_r): Always pass AF_INET to
461 internal_nis_gethostent_r.
462 (internal_gethostbyname2_r): Remove flags argument. Adjust call
463 to parse_line.
464 (_nss_nis_gethostbyname2_r): Adjust call to
465 internal_nis_gethostent_r.
466 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
467 call to internal_nis_gethostent_r.
468 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
469 from parse_line.
470 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
471 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
472 Remove flags argument. Do not map IPv4 addresses.
473 (internal_nisplus_gethostent_r): Adjust call to
474 _nss_nisplus_parse_hostent.
475 (internal_gethostbyname2_r): Remove flags argument. Adjust call
476 to _nss_nisplus_parse_hostent.
477 (_nss_nisplus_gethostbyname2_r): Adjust call to
478 internal_gethostbyname2_r.
479 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
480 Adjust call to internal_gethostbyname2_r.
481 (_nss_nisplus_gethostbyaddr_r): Adjust call to
482 _nss_nisplus_parse_hostent.
483 (_nss_nisplus_gethostbyname4_r): Adjust call to
484 internal_gethostbyname2_r.
485
9c02d078
FW
4862019-05-16 Florian Weimer <fweimer@redhat.com>
487
488 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
489 Remove flags.
490 (LINE_PARSER): Remove address mapping.
491 (EXTRA_ARGS_VALUE): Remove flags argument.
492 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
493 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
494 gethostbyname3_multi.
495 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
496 _nss_files_gethostbyname3_r.
497 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
498
85b0e1e8
FW
4992019-05-16 Florian Weimer <fweimer@redhat.com>
500
501 * support/support_test_compare_blob.c (report_blob): Report
502 incorrect NULL blobs.
503
11b451c8
MW
5042019-05-15 Mark Wielaard <mark@klomp.org>
505
506 [BZ# 24476]
507 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
508 __libc_once_get (once) and static_buf == NULL.
509 (__dlerror): Check we have a valid key, set result to static_buf
510 otherwise.
511
32ff3975
AS
5122019-05-15 Andreas Schwab <schwab@suse.de>
513
514 [BZ #20568]
515 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
516 __codecvt_do_length.
517 * libio/Makefile (tests): Add tst-wfile-sync.
518 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
519 * libio/tst-wfile-sync.c: New file.
520 * libio/tst-wfile-sync.input: New file.
521
a9368c34
FW
5222019-05-15 Florian Weimer <fweimer@redhat.com>
523
524 nss: Turn __nss_database_lookup into a compatibility symbol.
525 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
526 __nss_database_lookup.
527 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
528 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
529 __nss_database_lookup.
530 (__nss_next): Move to …
531 * nss/compat-lookup.c (nss_next): … here. Change it to fail
532 unconditionally.
533 (__nss_database_lookup): New function.
534 * nss/Versions (GLIBC_2.0): Update comment.
535 (GLIBC_PRIVATE): Export __nss_database_lookup2.
536 * grp/initgroups.c (internal_getgrouplist): Call
537 __nss_database_lookup2 instead of __nss_database_lookup.
538 * nscd/aicache.c (addhstaiX): Likewise.
539 * nscd/initgrcache.c (addinitgroupsX): Likewise.
540 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
541 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
542 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
543 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
544 Likewise.
545 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
546 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
547 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
548
d50f0918 5492019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
32ff3975 550
d50f0918
AH
551 * support/support.h (support_install_rootsbindir): New variable.
552 * support/support_paths.c: Likewise.
553 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
554
7ac6fad9
FW
5552019-05-15 Florian Weimer <fweimer@redhat.com>
556
557 * iconv/gconv.h (__gconv_transliterate): Move declaration …
558 * iconv/gconv_int.h (__gconv_transliterate): … here.
559 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
560 * iconv/skeleton.c: Likewise.
561
04b261bd
FW
5622019-05-14 Florian Weimer <fweimer@redhat.com>
563
564 Linux: Add the tgkill function.
565 * bits/signal_ext.h: New file.
566 * manual/signal.texi (Signaling Another Process): Document tgkill.
567 * signal/Makefile (headers): Add bits/signal_ext.h.
568 * signal/signal.h: Include <bits/signal_ext.h>.
569 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
570 (tst-tgkill): Link with libpthread.
571 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
572 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
573 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
574 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
575 tgkill.
576 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
577 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
578 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
579 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
580 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
581 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
582 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
583 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
584 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
585 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
586 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
587 Likewise.
588 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
589 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
590 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
592 Likewise.
593 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
594 Likewise.
595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
596 Likewise.
597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
598 Likewise.
599 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
600 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
601 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
602 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
603 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
604 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
605 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
606 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
607
6807f47b
CD
6082019-05-14 Carlos O'Donell <carlos@redhat.com>
609
610 * manual/search.texi (Tree Search Function): Adjust twalk_r
611 documentation.
612
fdb8a0be
AZ
6132019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
614
da2b83ef
AZ
615 [BZ #24544]
616 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
617 pre-defined value.
618
c7ac9caa
AZ
619 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
620 * support/support.h (support_bindir_prefix): New variable.
621 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
622
91f043ae
AZ
623 * config.make.in (bindir): New variable.
624
c50e1c26
AZ
625 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
626 (lll_trylock): Call __lll_trylock.
627 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
628 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
629 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
630 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
631 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
632 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
633 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
634 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
635 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
636 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
637 lowlevellock-futex.h.
638
959aff9f
AZ
639 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
640 initialization for LLL_LOCK_INITIALIZER different than 0.
641 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
642 Assume LLL_LOCK_INITIALIZER being 0.
643 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
644 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
645 Likewise.
646 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
647 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
648
d7e4c642
AZ
649 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
650 Optimize futex call and add systemtap probe.
651
fdb8a0be
AZ
652 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
653 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
654 __libc_disable_asynccancel, __librt_enable_asynccancel,
655 __libc_disable_asynccancel, __librt_enable_asynccancel,
656 __librt_disable_asynccancel): Move to ...
657 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
658 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
659 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
660 * sysdeps/generic/single-thread.h: New file.
661 * sysdeps/unix/sysdep.h: Include single-thread.h.
662 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
663 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
664
f6efec90
MF
6652019-05-08 Mike FABIAN <mfabian@redhat.com>
666
667 [BZ #24535]
668 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
669 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
670 Unicode 12.1.0.
671 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
672 * localedata/unicode-gen/PropList.txt: Likewise.
673 * localedata/unicode-gen/UnicodeData.txt: Likewise.
674 * localedata/charmaps/UTF-8: Regenerate.
675 * localedata/locales/i18n_ctype: Likewise.
676 * localedata/locales/tr_TR: Likewise.
677 * localedata/locales/translit_circle: Likewise.
678 * localedata/locales/translit_cjk_compat: Likewise.
679 * localedata/locales/translit_combining: Likewise.
680 * localedata/locales/translit_compat: Likewise.
681 * localedata/locales/translit_font: Likewise.
682 * localedata/locales/translit_fraction: Likewise.
683
5ad533e8
WD
6842019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
685
686 [BZ #24531]
687 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
688 (do_set_tcache_count): Only update if count is small enough.
689 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
690
4aee85f9
FW
6912019-05-10 Florian Weimer <fweimer@redhat.com>
692
693 * nptl/sem_close.c (struct walk_closure): Define.
694 (walker): Adjust for __twalk_r.
695 (sem_close): Call __twalk_r.
696
eb669ff5
AZ
6972019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
698
699 * support/timespec.c (test_timespec_before_impl,
700 test_timespec_equal_or_after_impl): print timespec member as intmax_t
701 insted of long int.
702
51983996
MC
7032019-05-09 Mike Crowe <mac@mcrowe.com>
704
44ac6ee9
MC
705 * nptl/tst-abstime.c: Use libsupport.
706
495514ee
MC
707 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
708 small bug where only tv.tv_usec was checked which could cause an
709 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
710 than a second.
711
712 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
713 libsupport.
714
40d0816f
MC
715 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
716 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
717
d8e0b901
MC
718 * nptl/tst-cond11.c: Use libsupport.
719
51983996
MC
720 * support/timespec.h: New file. Provide timespec helper functions
721 along with macros in the style of those in check.h.
722 * support/timespec.c: New file. Implement check functions declared
723 in support/timespec.h.
724 * support/timespec-add.c: New file from gnulib containing
725 timespec_add implementation that handles overflow.
726 * support/timespec-sub.c: New file from gnulib containing
727 timespec_sub implementation that handles overflow.
728 * support/README: Mention timespec.h.
729
18aa51ee
SN
7302019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
731
732 [BZ #24537]
733 * nptl/Makefile: Move tst-eintr1 to xtests.
734
252296c6
AZ
7352019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
736
ae45cf84
AZ
737 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
738 TRUNC handling.
739 (round_mode): Add definition for TRUNC.
740 * sysdeps/powerpc/fpu/s_trunc.c: New file.
741 * sysdeps/powerpc/fpu/s_truncf.c: New file.
742 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
743 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
744 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
745 Likewise.
746 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
747 Likewise.
748 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
749 Likewise.
750 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
751 Likewise.
752 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
753 file.
754 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
755 Likewise.
756 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
757 Likewise.
758 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
759 Likewise.
760 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
761 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
762 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
763 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
764 s_truncf-power5+, and s_truncf-ppc64.
765 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
766 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
767 file.
768 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
769 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
770 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
771 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
772 file.
773 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
774 Likewise.
775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
776 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
777 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
778 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
779 s_truncf-power5+, and s_truncf-ppc64.
780 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
781 file.
782 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
783 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
784 Likewise.
785 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
786 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
787 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
788 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
789 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
790
a1cb1888
AZ
791 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
792 ROUND handling.
793 (round_mode): Add definition for ROUND.
794 (round_to_integer_float): Likewise.
795 * sysdeps/powerpc/fpu/s_round.c: New file.
796 * sysdeps/powerpc/fpu/s_roundf.c: New file.
797 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
798 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
799 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
800 Likewise.
801 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
802 Likewise.
803 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
804 Likewise.
805 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
806 Likewise.
807 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
808 file.
809 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
810 Likewise.
811 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
812 Likewise.
813 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
814 Likewise.
815 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
816 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
817 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
818 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
819 s_roundf-power5+, and s_roundf-ppc64.
820 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
821 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
822 file.
823 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
825 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
826 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
827 file.
828 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
829 Likewise.
830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
831 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
832 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
833 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
834 s_roundf-power5+, and s_roundf-ppc64.
835 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
836 file.
837 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
838 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
839 Likewise.
840 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
841 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
842 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
843 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
844 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
845
252296c6
AZ
846 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
847 Add FLOOR option.
848 (round_mode): Add definition for FLOOR.
849 * sysdeps/powerpc/fpu/s_floor.c: New file.
850 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
851 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
852 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
853 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
854 Remove file.
855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
856 Likewise
857 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
858 Likewise.
859 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
860 Likewise.
861 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
862 New file.
863 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
864 Likewise.
865 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
866 Likewise.
867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
868 Likewise.
869 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
870 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
871 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
872 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
873 s_floorf-power5+, and s_floorf-ppc64.
874 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
875 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
876 file.
877 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
879 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
880 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
881 file.
882 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
883 Likewise.
884 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
885 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
886 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
887 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
888 s_floorf-power5+, and s_floorf-ppc64.
889 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
890 file.
891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
892 file.
893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
894 Likewise.
895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
896 Likewise.
897 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
898 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
899 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
900 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
901
33647a72
MC
9022019-05-08 Mike Crowe <mac@mcrowe.com>
903
904 * support/xclock_gettime.c (xclock_gettime): New file. Provide
905 clock_gettime wrapper for use in tests that fails the test rather
906 than returning failure.
907
908 * support/xtime.h: New file to declare xclock_gettime.
909
910 * support/Makefile: Add xclock_gettime.c.
911
912 * support/README: Mention xtime.h.
913
b2f601ba
FW
9142019-05-08 Florian Weimer <fweimer@redhat.com>
915
916 malloc/tst-mallocfork2: Use process-shared barriers.
917 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
918 (signal_count, sigusr1_sender_pid): Remove.
919 (iterations): Define constant.
920 (shared): New variable.
921 (sigusr1_received): Update comment.
922 (sigusr1_handler): Do not send SIGSTOP to the sender process.
923 (signal_sender): Optional use barriers to avoid sending signals
924 during irrelevant times.
925 (do_it): Initialize variable shared. Use xfork for error
926 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
927 the iteration count, independent of signal delivery. Check for
928 deadlocks in fork. Introduce barriers for reducing signal
929 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
930 replaced by the barriers. Count signals during fork/free/malloc
931 and report them.
932 * malloc/Makefile (tst-mallocfork): Link with libpthread.
933
c4a392cf
JM
9342019-05-07 Joseph Myers <joseph@codesourcery.com>
935
7621676f
JM
936 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
937 version to 5.1.
938 (clock_adjtime64) New syscall.
939 (clock_getres_time64) Likewise.
940 (clock_gettime64) Likewise.
941 (clock_nanosleep_time64) Likewise.
942 (clock_settime64) Likewise.
943 (futex_time64) Likewise.
944 (io_pgetevents_time64) Likewise.
945 (io_uring_enter) Likewise.
946 (io_uring_register) Likewise.
947 (io_uring_setup) Likewise.
948 (mq_timedreceive_time64) Likewise.
949 (mq_timedsend_time64) Likewise.
950 (pidfd_send_signal) Likewise.
951 (ppoll_time64) Likewise.
952 (pselect6_time64) Likewise.
953 (recvmmsg_time64) Likewise.
954 (rt_sigtimedwait_time64) Likewise.
955 (sched_rr_get_interval_time64) Likewise.
956 (semtimedop_time64) Likewise.
957 (timer_gettime64) Likewise.
958 (timer_settime64) Likewise.
959 (timerfd_gettime64) Likewise.
960 (timerfd_settime64) Likewise.
961 (utimensat_time64) Likewise.
962
c4a392cf
JM
963 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
964 version to 9 branch.
965
32e902a9
AY
9662019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
967
968 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
969 __memmove_thunderx2 to the list of implementations
970 * sysdeps/aarch64/multiarch/memmove.c: Likewise
971 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
972 (__memmove_thunderx2): Rewritten using SIMD ld/st
973 (__memcpy_thunderx2): Fixed handling overlapping cases.
974 Used ldp/stp instead of ldr/str if possible. Made loops
975 tails branchless.
976
ac3da35d
FW
9772019-05-03 Florian Weimer <fweimer@redhat.com>
978
979 * misc/tst-tsearch.c (walk_tree): Add more error checking.
980
b2af6fb2
AZ
9812019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
982
7dfde28a 983 [BZ #24506]
b2af6fb2
AZ
984 * elf/tst-pldd.c (in_str_list): New function.
985 (do_test): Add default names for ld and libc as one option.
986
7b807a35
FW
9872019-05-02 Florian Weimer <fweimer@redhat.com>
988
989 misc: Add twalk_r function.
990 * include/search.h (__twalk_r): Declare.
991 * manual/examples/twalk.c: New file.
992 * manual/search.texi (Tree Search Function): Document twalk_r.
993 * misc/Versions (2.30): Export twalk_r.
994 (GLIBC_PRIVATE): Export __twalk_r.
995 * misc/search.h [__USE_GNU] (twalk_r): Declare.
996 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
997 (twalk_r): Add weak alias.
998 * misc/tst-tsearch.c (struct walk_trace_element): Define.
999 (walk_trace): New variable.
1000 (struct twalk_with_twalk_r_closure): Define.
1001 (twalk_with_twalk_r_action): New function.
1002 (twalk_with_twalk_r): Likewise.
1003 (walk_action): Call walk_trace_add.
1004 (walk_tree_with): Rename from walk_tree. Add walk argument.
1005 (walk_tree): New function.
1006 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1007 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1008 Likewise.
1009 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1010 Likewise.
1011 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1012 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1013 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1014 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1015 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1016 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1017 Likewise.
1018 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1019 Likewise.
1020 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1021 Likewise.
1022 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1023 (GLIBC_2.30): Likewise.
1024 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1025 (GLIBC_2.30): Likewise.
1026 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1027 (GLIBC_2.30): Likewise.
1028 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1029 (GLIBC_2.30): Likewise.
1030 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1031 Likewise.
1032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1033 (GLIBC_2.30): Likewise.
1034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1035 (GLIBC_2.30): Likewise.
1036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1037 (GLIBC_2.30): Likewise.
1038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1039 (GLIBC_2.30): Likewise.
1040 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1041 Likewise.
1042 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1043 Likewise.
1044 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1045 Likewise.
1046 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1047 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1048 Likewise.
1049 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1050 Likewise.
1051 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1052 Likewise.
1053 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1054 Likewise.
1055
20aa5819
PE
10562019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1057
1058 Make mktime etc. compatible with __time64_t
1059 Keep these functions compatible with Gnulib while adding
1060 __time64_t support. The basic idea is to move private API
1061 declarations from include/time.h to time/mktime-internal.h, since
1062 the former file cannot easily be shared with Gnulib whereas the
1063 latter can.
1064 Also, do some other minor cleanup while in the neighborhood.
1065 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1066 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1067 since Gnulib needs it.
1068 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1069 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1070 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1071 (in_time_t_range): New static function.
1072 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1073 so that glibc users are not tempted to use __time64_t.
1074 * time/mktime-internal.h: Rewrite so that it does both glibc
1075 and Gnulib work. Include time.h if not _LIBC.
1076 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1077 (__time64_t): New type or macro, moved here from
1078 posix/bits/types.h.
1079 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1080 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1081 from include/time.h.
1082 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1083 New macros, taken from GNulib.
1084 (__mktime_internal): New prototype, moved here from include/time.h.
1085 * time/mktime.c (mktime_min, mktime_max, convert_time)
1086 (ranged_convert, __mktime_internal, __mktime64):
1087 * time/timegm.c (__timegm64):
1088 Use __time64_t, not time_t.
1089 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1090 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1091 Rename from mktime.
1092 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1093 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1094 for libc_hidden_def.
1095 Include errno.h.
1096 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1097 Rename from timegm.
1098 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1099
87c266d7
MR
11002019-04-30 Maciej W. Rozycki <macro@wdc.com>
1101
1102 [BZ #19444]
1103 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1104 from `-Wmaybe-uninitialized'.
1105 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1106
c4c0848b
AZ
11072019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1108
6cac323c
AZ
1109 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1110 function.
1111 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1112 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1113 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1114 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1115 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1116 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1117 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1119 Remove file.
1120 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1121 Likewise.
1122 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1123 Likewise.
1124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1125 Likewise.
1126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1127 New file.
1128 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1129 Likewise.
1130 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1131 Likewise.
1132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1133 Likewise.
1134 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1135 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1136 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1137 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1138 Likewise.
1139 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1140 Likewise.
1141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1142 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1143 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1144 file.
1145 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1146 Likewise.
1147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1148 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1149 * here.
1150 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1151 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1152 s_ceilf-power5+, and s_ceilf-ppc64.
1153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1154 file.
1155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1158 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1159 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1160 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1161 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1162
c4c0848b
AZ
1163 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1164 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1165 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1166
f492fc99
YD
11672019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1168
1169 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1170 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1171 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1172 (sem_getvalue): Likewise.
1173
c57afec0
FW
11742019-04-26 Florian Weimer <fweimer@redhat.com>
1175
1176 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1177 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1178
a8ff215e
FW
11792019-04-26 Florian Weimer <fweimer@redhat.com>
1180
1181 Makeconfig: Move -Wl,-rpath-link options before library references.
1182 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1183 (link-libc): Remove $(link-libc-rpath-link).
1184
11852019-04-25 Florian Weimer <fweimer@redhat.com>
1186
1187 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1188 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1189 (+link-static-before-libc): Remove $(CC).
1190 (+link-static, +link-static-tests): Add $(CC).
1191 (+link-before-libc): Remove $(CC).
1192 (+link, +link-pie, +link-pie-printers): Add $(CC).
1193
e30fb31c
FW
11942019-04-26 Florian Weimer <fweimer@redhat.com>
1195
1196 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1197 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1198 (+link-static-before-libc): Remove $(CC).
1199 (+link-static, +link-static-tests): Add $(CC).
1200 (+link-before-libc): Remove $(CC).
1201 (+link, +link-pie, +link-pie-printers): Add $(CC).
1202
deacca00
DA
12032019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1204
1205 [BZ#24484]
1206 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1207
b5ffdc48
FW
12082019-04-25 Florian Weimer <fweimer@redhat.com>
1209
1210 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1211 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1212 (bench-link-targets): New variable.
1213 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1214
94a4e9e4
FW
12152019-04-25 Florian Weimer <fweimer@redhat.com>
1216
1217 Also enable BIND_NOW for programs if --enable-bind-now.
1218 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1219 (+link-pie): Use $(link-extra-flags).
1220 (+link-static): Likewise.
1221 [! $(build-pie-default)] (+link): Likewise.
1222 * manual/install.texi (Configuring and compiling): Update
1223 --enable-bind-now description.
1224 * INSTALL: Regenerated.
1225
fe92a91f
WD
12262019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1227
1228 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1229 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1230
f9b645b4
MF
12312019-04-24 Mike Frysinger <vapier@gentoo.org>
1232
1233 [BZ #18465]
1234 * malloc/Makefile (others): Add memusagestat.
1235 ($(objpfx)memusagestat): Delete rule.
1236 (LDLIBS-memusagestat): New variable.
1237
439bf534
FW
12382019-04-24 Florian Weimer <fweimer@redhat.com>
1239
1240 * locale/Makefile (tests-special): Guard setting by
1241 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1242 to run while cross-compiling.
1243
1a4c2735
AZ
12442019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1245
1246 [BZ #18035]
1247 * elf/Makefile (tests-container): Add tst-pldd.
1248 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1249 (E(find_maps)): Avoid use alloca, use default read file operations
1250 instead of explicit LFS names, and fix infinite loop.
1251 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1252 (get_process_info): Use _Static_assert instead of assert, use default
1253 directory operations instead of explicit LFS names, and free some
1254 leadek pointers.
1255 * elf/tst-pldd.c: New file.
1256
2d398aa2
L
12572019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1258
1259 * malloc/arena.c (do_set_mallopt_check): Removed.
1260
e485b2b6
FW
12612019-04-23 Florian Weimer <fweimer@redhat.com>
1262
1263 locale: Add LOCPATH diagnostics to the locale program.
1264 * locale/programs/locale.c (setlocale_failed): New variable.
1265 (try_setlocale): New function.
1266 (quote_string): Likewise.
1267 (setlocale_diagnostics): Likewise.
1268 (main): Call try_setlocale instead of setlocale. Call
1269 setlocale_diagnostics.
1270 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1271 (tst-locale-locpath.out): New target.
1272 * locale/tst-locale-locpath.sh: New file.
1273
25f7a3c9
AZ
12742019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1275
1276 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1277 to 2.30 notes.
1278
9bf8e29c
AZ
12792019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1280
1281 [BZ #23741]
1282 * malloc/hooks.c (malloc_check, realloc_check): Use
1283 __builtin_add_overflow on overflow check and adapt to
1284 checked_request2size change.
1285 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1286 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1287 allocation size to PTRDIFF_MAX.
1288 (REQUEST_OUT_OF_RANGE): Remove macro.
1289 (checked_request2size): Change to inline function and limit maximum
1290 requested size to PTRDIFF_MAX.
1291 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1292 maximum allocation size to PTRDIFF_MAX.
1293 (_mid_memalign): Use _int_memalign call for overflow check.
1294 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1295 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1296 limit maximum requested size to PTRDIFF_MAX.
1297 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1298 valloc, pvalloc): Add __attribute_alloc_size__.
1299 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1300 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1301 larger than PTRDIFF_MAX.
1302 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1303 around tests of malloc with negative sizes.
1304 * malloc/tst-posix_memalign.c (do_test): Likewise.
1305 * malloc/tst-pvalloc.c (do_test): Likewise.
1306 * malloc/tst-valloc.c (do_test): Likewise.
1307 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1308 with resulting size allocation larger than PTRDIFF_MAX with
1309 reallocarray_nowarn.
1310 (reallocarray_nowarn): New function.
1311 * NEWS: Mention the malloc function semantic change.
1312
0e169691
AZ
13132019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1314
52faba65
AZ
1315 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1316 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1317
3a16dd78
AZ
1318 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1319 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1320 * sysdeps/powerpc/fpu/s_fma.c: New file.
1321 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1322
1dac8bd6
AZ
1323 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1324 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1325
a3ae315a
AZ
1326 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1327 the magic flag store.
1328 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1329 Likewise.
1330 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1331 Likewise.
1332 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1333 Remove rt_sigreturn call.
1334
ffe8a9a8
AZ
1335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1336 Remove rt_sigreturn call.
1337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1338 Likewise.
1339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1341
0e169691
AZ
1342 * support/Makefile (libsupport-routines): Add support_subprocess,
1343 xposix_spawn, xposix_spawn_file_actions_addclose, and
1344 xposix_spawn_file_actions_adddup2.
1345 (tst-support_capture_subprocess-ARGS): New rule.
1346 * support/capture_subprocess.h (support_capture_subprogram): New
1347 prototype.
1348 * support/support_capture_subprocess.c (support_capture_subprocess):
1349 Refactor to use support_subprocess and support_capture_poll.
1350 (support_capture_subprogram): New function.
1351 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1352 str_to_write_mode, test_common, parse_int, handle_restart,
1353 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1354 (do_test): Add support_capture_subprogram tests.
1355 * support/subprocess.h: New file.
1356 * support/support_subprocess.c: Likewise.
1357 * support/xposix_spawn.c: Likewise.
1358 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1359 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1360 * support/xspawn.h: Likewise.
1361
bae8cf0e
MG
13622019-04-17 Mike Gerow <gerow@google.com>
1363
1364 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1365 groups limit.
1366
e3f454ba
FW
13672019-04-11 Florian Weimer <fweimer@redhat.com>
1368
1369 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1370 domain with empty string.
1371 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1372
32d85c11
FW
13732019-04-11 Florian Weimer <fweimer@redhat.com>
1374
1375 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1376 comment.
1377 (alloc_buffer_next): Change return type to non-const. Update
1378 comment.
1379
221710af
FW
13802019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1381
1382 * manual/time.texi (Formatting Calendar Time): Add missing percent
1383 sign to conversion specifier.
1384
e621246e
CD
13852019-04-09 Carlos O'Donell <carlos@redhat.com>
1386 Kwok Cheung Yeung <kcy@codesourcery.com>
1387
1388 [BZ #16573]
1389 * malloc/mtrace.c: Define prototypes for all hooks.
1390 (set_default_hooks): New function.
1391 (set_trace_hooks): Likewise.
1392 (save_default_hooks): Likewise.
1393 (tr_freehook): Use new s*_hooks functions.
1394 (tr_mallochook): Likewise.
1395 (tr_reallochook): Likewise.
1396 (tr_memalignhook): Likewise.
1397 (mtrace): Likewise.
1398 (muntrace): Likewise.
1399
648279f4
WD
14002019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1401
1402 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1403 (generic_stpcpy): New function.
1404 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1405 (generic_stpncpy): New function.
1406 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1407 (generic_strcat): New function.
1408 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1409 (generic_strcpy): New function.
1410 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1411 (STUPID_STRNCAT): Remove function.
1412 (generic_strncat): New function.
1413 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1414 (STUPID_STRNCPY): Remove function.
1415 (generic_strncpy): New function.
1416 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1417 (generic_strnlen): New function.
1418 (memchr_strnlen): New function.
1419 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1420 (memchr_strlen): Likewise.
1421
93eebae5
WD
14222019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1423
1424 * benchtests/bench-strstr.c (input): Add realistic input text.
1425 (stupid_strstr): Remove function.
1426 (basic_strstr): Add function.
1427 (twoway_strstr): Add function.
1428 (do_one_test): Add result checking.
1429 (do_test): Use new input text. Remove accidental early matches.
1430 (test_main): Improve range of tests, reduce unaligned cases.
1431
a173d09f
WD
14322019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1433
1434 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1435 (basic_memmem): Add function.
1436 (twoway_memmem): Add function.
1437
6103c0a8
WD
14382019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1439
1440 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1441 * benchtests/bench-malloc-thread.c: Likewise.
1442 * benchtests/bench-skeleton.c: Likewise.
1443 * benchtests/bench-strtod.c: Likewise.
1444 * benchtests/bench-timing.h: Likewise.
1445
33322186
FW
14462019-04-08 Florian Weimer <fweimer@redhat.com>
1447
1448 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1449 definitions.
1450 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1451 RES_INSECURE2 security checks.
1452 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1453 RES_INSECURE2 handling.
1454
3f8b44be
FW
14552019-04-08 Florian Weimer <fweimer@redhat.com>
1456
1457 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1458 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1459 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1460 GETHOSTBYNAME.
1461 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1462 (tests-internal): Update justification for tst-resolv-res_init,
1463 tst-resolv-res_init-thread.
1464 (tst-res_use_inet6): Remove target.
1465 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1466 * resolv/res_debug.c (p_option): Remove "inet6" support.
1467 * resolv/res_init.c (res_setoptions): Likewise.
1468 * resolv/res_use_inet6.h: Remove file.
1469 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1470 definition.
1471 (res_use_inet6): Always return false.
1472 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1473 * resolv/resolv_context.h: Adjust file comment.
1474 (struct resolv_context): Update comment on __next field.
1475 (__resolv_context_put): Update comment.
1476 * resolv/tst-res_use_inet6.c: Remove file.
1477 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1478 "inet6" support.
1479 (test_cases): Adjust test case.
1480 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1481 (thread_byname2_af_inet6): Use old byname_inet6 code.
1482 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1483 (gai): Remove do_inet6 argument.
1484 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1485 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1486 (thread_gai_unspec_inet6): Remove functions.
1487 (do_test): Adjust thread_funcs.
1488 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1489 RES_USE_INET6 flag.
1490 (gaih_inet): Do not disable RES_USE_INET6 flag.
1491
6b5c8607 14922019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
94e358f6
AY
1493
1494 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1495 and remove redundant code.
1496
e3fd0b0e
AZ
14972019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1498
f82ed45d
AZ
1499 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1500 New rule.
1501 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1502 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1503 Likewise.
1504 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1505 Likewise.
1506 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1507 Likewise.
1508 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1509 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1510 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1511 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1512 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1513 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1514 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1515 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1516 wcsrchr-power7.
1517 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1518 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1519 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1520 Remove wcsrchr optimizations.
1521 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1522
662c2cc4
AZ
1523 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1524 the loop unroll.
1525
421e3005
AZ
1526 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1527 New rule.
1528 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1529 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1530 Likewise.
1531 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1532 Likewise.
1533 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1534 Likewise.
1535 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1536 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1537 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1538 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1539 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1540 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1541 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1542 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1543 wcschr-power7.
1544 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1545 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1546 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1547 Remove wcschr optimizations.
1548 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1549
7ba0100c
AZ
1550 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1551 the loop unroll.
1552
447a1306
AZ
1553 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1554 New rule.
1555 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1556 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1557 Likewise.
1558 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1559 Likewise.
1560 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1561 Likewise.
1562 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1563 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1564 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1565 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1566 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1567 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1568 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1569 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1570 wcscpy-power7.
1571 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1572 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1573 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1574 Remove wcscpy optimizations.
1575 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1576
e3fd0b0e
AZ
1577 * include/loop_unroll.h: New file.
1578 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1579 besides generic implementation.
1580
8260f236
DD
15812019-04-03 DJ Delorie <dj@redhat.com>
1582
1583 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1584 snprintf truncating output.
1585
0bd545ee
DD
15862019-04-02 DJ Delorie <dj@redhat.com>
1587
1588 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1589 warning.
1590
466afec3
TS
15912019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1592
1593 [BZ #22964]
1594 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1595 era.
1596 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1597 (mkreftable): Add rules for the new Japanese era and the new dates.
1598
2f1d6155
TS
15992019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1600 Rafal Luzynski <digitalfreak@lingonborough.com>
1601
1602 * time/tst-strftime2.c (date_t): Explicitly define the type.
1603 (dates): Use natural month and year numbers to express a date.
1604 (is_before): New function to compare dates.
1605 (mkreftable): Minor improvements to simplify maintenance.
1606 (do_test): Reflect the changes in dates array.
1607
84aea169
TS
1608 [BZ #24293]
1609 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1610 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1611 * time/tst-strftime2.c (locales): Likewise.
1612 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1613 2010-04-01, and 2011-04-01.
1614 (mkreftable): Add rules for the new locales and the new dates.
1615
62449176
CD
16162019-04-01 Carlos O'Donell <carlos@redhat.com>
1617
1618 * localedata/locales/ja_JP: Add comments to era entries.
1619
e0e4c321
DD
16202019-04-01 DJ Delorie <dj@redhat.com>
1621
1622 [BZ #24394]
1623 * time/strptime_l.c (%Ey): Fix fencepost error.
1624 * time/tst-strftime3.c: New.
1625 * time/Makefile (tests): Add tst-strftime3.
1626
6b5c8607 16272019-04-01 Uros Bizjak <ubizjak@gmail.com>
993e3107
UB
1628
1629 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1630 conditional branch to DIVBYZERO. Fix unwind info.
1631 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1632 excb after conditional branch to $powerof2. Add missing unop
1633 instructions and .align directives and reorder instructions to
1634 match __divqu.
1635
d5ecee82
RH
16362019-04-01 Richard Henderson <rth@twiddle.net>
1637
1638 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1639 Do not redefine.
1640 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1641 Do not redefine.
1642
656dd306
MR
16432019-03-30 Maciej W. Rozycki <macro@wdc.com>
1644
1645 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1646 $libc_cv_riscv_float_abi in `test' invocation.
1647 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1648
10cce669
PC
16492019-03-29 Paul A. Clarke <pc@us.ibm.com>
1650
1651 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1652 asm with builtin.
1653 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1654 Likewise.
1655 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1656 (_GET_SI_FPSCR): Likewise.
1657 (_SET_SI_FPSCR): Likewise.
1658
5e67e4bf 16592019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4997e8f3
AZ
1660
1661 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1662 clang 2.8.
1663 (signbit): Use builtin for clang 3.3.
1664 (isinf): Use builtin for clang 3.7.
1665
01963891
AZ
16662019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1667
1668 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1669
67112f7a
AH
16702019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1671
1672 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1673 quote in printf.
1674
7a773abf
MC
16752019-03-25 Mike Crowe <mac@mcrowe.com>
1676
82849fde
MC
1677 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1678 pthread_rwlock_timedrdlock with calls to
1679 pthread_rwlock_timedwrlock to ensure that the latter is tested
1680 too. Use new function name in diagnostic messages too.
1681
7a773abf
MC
1682 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1683 (do_test) Use libsupport test macros rather than hand-coded
1684 conditionals and error messages. Ensure that sem_init returns zero
1685 rather than not -1. Use <support/test-driver.c> rather than
1686 test-skeleton.c.
1687
1688 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1689 test macros rather than hand-coded conditionals and error messages.
1690 Use <support/test-driver.c> rather than test-skeleton.c.
1691
9ac2de69
JM
16922019-03-25 Joseph Myers <joseph@codesourcery.com>
1693
d7563e62
JM
1694 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1695
9ac2de69
JM
1696 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1697 (NT_MIPS_MSA): Likewise.
1698
38cc11da
AZ
16992019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1700
7621e38b
WD
1701 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1702 * benchtests/README: Update description.
1703 * benchtests/bench-timing.h: Default to hp-timing.
1704 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1705 HP_TIMING_PRINT): Remove.
1706 (HP_TIMING_NOW): Add generic implementation.
1707 (hp_timing_t): Change to uint64_t.
1708
1e372ded
AZ
1709 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1710 HP_TIMING_INLINE.
1711 * nptl/descr.h: Likewise.
1712 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1713 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1714 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1715 Abstract hp-timing usage with RTLD_* macros.
1716 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1717 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1718 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1719 HP_TIMING_NONAVAIL): Likewise.
1720 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1721 Likewise.
1722 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1723 HP_SMALL_TIMING_AVAIL): Likewise.
1724 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1725 HP_SMALL_TIMING_AVAIL): Likewise.
1726 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1727 HP_SMALL_TIMING_AVAIL): Likewise.
1728 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1729 HP_SMALL_TIMING_AVAIL): Likewise.
1730 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1731 Likewise.
1732 * sysdeps/generic/hp-timing-common.h: Update comment with
1733 HP_TIMING_AVAIL removal.
1734
359653aa
AZ
1735 * include/random-bits.h: New file.
1736 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1737 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1738 random_bits.
1739 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1740 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1741 Likewise.
1742
6e8ba7fd
AZ
1743 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1744 * rt/Makefile (clock-routines): Remove get_clockfreq.
1745 * rt/get_clockfreq.c: Remove file.
1746 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1747 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1748 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1749 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1750 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1751
77b6f553
AZ
1752 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1753 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1754 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1755 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1756 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1757
38cc11da
AZ
1758 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1759 pthread_clock_settime.
1760 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1761 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1762 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1763 * elf/rtld.c (_dl_start_final): Likewise.
1764 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1765 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1766 Remove.
1767 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1768 (_dl_cpuclock_offset): Remove.
1769 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1770 cpuclock_offset_ununsed.
1771 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1772 cpuclock_offset set.
1773 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1774 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1775 * nptl/pthread_clock_gettime.c: Remove file.
1776 * nptl/pthread_clock_settime.c: Likewise.
1777 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1778 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1779 and CLOCK_PROCESS_CPUTIME_ID support.
1780 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1781 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1782 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1783 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1784 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1785 Likewise.
1786 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1787
421749d6
SL
17882019-03-22 Stefan Liebler <stli@linux.ibm.com>
1789
1790 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1791 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1792 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1793 New defines.
1794 * sysdeps/s390/memmem-arch13.S: New file.
1795 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1796 if it is only used as fallback.
1797 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1798 * sysdeps/s390/multiarch/ifunc-impl-list.c
1799 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1800
6f47401b
SL
18012019-03-22 Stefan Liebler <stli@linux.ibm.com>
1802
1803 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1804 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1805 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1806 New defines.
1807 * sysdeps/s390/multiarch/ifunc-impl-list.c
1808 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1809 * sysdeps/s390/strstr-arch13.S: New file.
1810 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1811 if it is only used as fallback.
1812 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1813
96fbb9a3
SL
18142019-03-22 Stefan Liebler <stli@linux.ibm.com>
1815
1816 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1817 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1818 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1819 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1820 ifunc selector.
1821 * sysdeps/s390/multiarch/ifunc-impl-list.c
1822 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1823 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1824 S390_IS_ARCH13_MIE3): New defines.
1825
a899a551
SL
18262019-03-22 Stefan Liebler <stli@linux.ibm.com>
1827
1828 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1829 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1830 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1831 * sysdeps/s390/configure: Regenerated.
1832
1a7df49c
SL
18332019-03-22 Stefan Liebler <stli@linux.ibm.com>
1834
1835 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1836 Add vxe2, vxp, dflt, sort flags.
1837 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1838 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1839 capabilities.
1840 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1841 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1842 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1843 HWCAP_S390_DFLT): Define.
1844
5e67e4bf 18452019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5abcddd7
GG
1846
1847 [BZ #24372]
1848 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1849 of compiler warning.
1850 * locale/programs/ld-collate.c (collate_output): Likewise.
1851
ac64195c
DD
18522019-03-21 DJ Delorie <dj@redhat.com>
1853
1854 [BZ #24372]
1855 * iconv/iconvconfig.c (write_output): Replace floating point math
1856 with integer math to avoid imprecise results.
1857 * locale/programs/ld-collate.c (collate_output): Likewise.
1858
61f5e947
SL
18592019-03-21 Stefan Liebler <stli@linux.ibm.com>
1860
1861 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1862 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1863
57ada43c 18642019-03-20 mansayk <6688000@gmail.com>
1865
1866 [BZ #24296]
1867 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1868 (abday): Likewise, but remove the trailing dots.
1869
a2e57f89
JM
18702019-03-19 Joseph Myers <joseph@codesourcery.com>
1871
1872 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1873 macro.
1874 (HWCAP_PACA): Likewise.
1875 (HWCAP_PACG): Likewise.
1876 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1877 Increase to 32.
1878 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1879
e87d8ada
ST
18802019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1881
1882 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1883 should be handled.
1884
477e739b
JM
18852019-03-15 Joseph Myers <joseph@codesourcery.com>
1886
1887 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1888 version to 5.0.
1889 (old_getpagesize): New syscall.
1890
238d60a1
FY
18912019-03-15 Felix Yan <felixonmars@archlinux.org>
1892
1893 [BZ #24293]
1894 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1895 * localedata/locales/cmn_TW (era): Likewise.
1896 * localedata/locales/hak_TW (era): Likewise.
1897 * localedata/locales/lzh_TW (era): Likewise.
1898 * localedata/locales/nan_TW (era): Likewise.
1899
5dde9ef7
DD
19002019-03-14 Adam Maris <amaris@redhat.com>
1901
1902 * malloc/malloc.c (_int_malloc): Check for large bin list
1903 corruption when inserting unsorted chunk.
1904
a0a0dc83
FW
19052019-03-14 Florian Weimer <fweimer@redhat.com>
1906
1907 Remove obsolete, never-implemented XSI STREAMS declarations.
1908 * manual/terminal.texi (Allocation): Remove portability note and
1909 adjust example.
1910 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1911 _SC_STREAMS.
1912 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1913 * sysdeps/unix/inet/Subdirs (streams): Remove.
1914 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1915 (conformtest-headers-UNIX98): Likewise.
1916 (conformtest-headers-XOPEN2K): Likewise.
1917 (conformtest-headers-POSIX2008): Likewise.
1918 * posix/compat-streams.c: New file.
1919 * posix/Makefile (routines): Add it.
1920 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1921 getpmsg, isastream, putmsg, putpmsg.
1922 (GLIBC_2.30): New section.
1923 * bits/stropts.h: Remove file.
1924 * bits/xtitypes.h: Likewise.
1925 * conform/data/stropts.h-data: Likewise.
1926 * include/stropts.h: Likewise.
1927 * include/sys/stropts.h: Likewise.
1928 * include/xtitypes.h: Likewise.
1929 * streams/Makefile: Likewise.
1930 * streams/fattach.c: Likewise.
1931 * streams/fdetach.c: Likewise.
1932 * streams/getmsg.c: Likewise.
1933 * streams/getpmsg.c: Likewise.
1934 * streams/isastream.c: Likewise.
1935 * streams/putmsg.c: Likewise.
1936 * streams/putpmsg.c: Likewise.
1937 * streams/stropts.h: Likewise.
1938 * streams/sys/stropts.h: Likewise.
1939 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1940 * sysdeps/s390/bits/xtitypes.h: Likewise.
1941 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1942 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1943 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1944 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1945 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1946 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1947 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1948 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1949 * sysdeps/x86/bits/xtitypes.h: Likewise.
1950
081bdf94
FW
19512019-03-14 Florian Weimer <fweimer@redhat.com>
1952
1953 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1954 libnss_files.
1955 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1956 but not with libnss_files.
1957 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1958
97f8225d
ZW
19592019-03-14 Zack Weinberg <zackw@panix.com>
1960
1961 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1962 Specify encoding="utf-8" when opening headers to check.
1963
0c1041ee
JM
19642019-03-13 Joseph Myers <joseph@codesourcery.com>
1965
1966 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1967 version to 5.0.
1968 (Context.checkout_tar): Handle variable major version for Linux
1969 kernel.
1970
043440e7
FW
19712019-03-13 Florian Weimer <fweimer@redhat.com>
1972
1973 [BZ #24047]
1974 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1975
29218b26
ZW
19762019-03-13 Zack Weinberg <zackw@panix.com>
1977
1978 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1979 Move to stdlib.
1980 * include/inttypes.h: Adjust to match.
1981 * include/stdint.h: New wrapper.
1982
711a322a
ZW
19832019-03-13 Zack Weinberg <zackw@panix.com>
1984
1985 * scripts/check-obsolete-constructs.py: New test script.
1986 * scripts/check-installed-headers.sh: Remove tests for
1987 obsolete typedefs, superseded by check-obsolete-constructs.py.
1988 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1989 as a special test. Update commentary.
1990 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1991 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1992 Update commentary.
1993 * posix/sys/types.h (__u_intN_t): Remove.
1994 (u_int8_t): Typedef using __uint8_t.
1995 (u_int16_t): Typedef using __uint16_t.
1996 (u_int32_t): Typedef using __uint32_t.
1997 (u_int64_t): Typedef using __uint64_t.
1998
7c651308
SL
19992019-03-13 Stefan Liebler <stli@linux.ibm.com>
2000
2001 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2002 call _dl_procinfo.
2003 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2004 Ignore types other than AT_HWCAP.
2005 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2006 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2007 Likewise.
2008 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2009 in the case of falling back to generic output mechanism.
2010 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2011 Likewise.
2012
38b52865
FW
20132019-03-12 Florian Weimer <fweimer@redhat.com>
2014
2015 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2016
08504de7
FW
20172019-03-12 Florian Weimer <fweimer@redhat.com>
2018
2019 [BZ #24047]
2020 resolv: Enable full ICMP errors for UDP DNS sockets
2021 * resolv/res_enable_icmp.c: New file.
2022 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2023 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2024 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2025 socket.
2026
5fbcd763
MH
20272019-03-11 Mao Han <han_mao@c-sky.com>
2028
2029 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2030 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2031
c4e5f34b
MH
20322019-03-11 Mao Han <han_mao@c-sky.com>
2033
2034 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2035 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2036 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2037
827e30f3
MH
20382019-03-11 Mao Han <han_mao@c-sky.com>
2039
2040 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2041 directly.
2042 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2043 definition.
2044
6229c9bf
MH
20452019-03-11 Mao Han <han_mao@c-sky.com>
2046
2047 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2048 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2049 in mcontext_t
2050
86bdd49d
MF
20512019-03-08 Mike FABIAN <mfabian@redhat.com>
2052
2053 [BZ #24307]
2054 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2055 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2056 Unicode 12.0.0.
2057 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2058 * localedata/unicode-gen/PropList.txt: Likewise.
2059 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2060 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2061 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2062 * localedata/charmaps/UTF-8: Regenerate.
2063 * localedata/locales/i18n_ctype: Likewise.
2064 * localedata/locales/tr_TR: Likewise.
2065 * localedata/locales/translit_circle: Likewise.
2066 * localedata/locales/translit_cjk_compat: Likewise.
2067 * localedata/locales/translit_combining: Likewise.
2068 * localedata/locales/translit_compat: Likewise.
2069 * localedata/locales/translit_font: Likewise.
2070 * localedata/locales/translit_fraction: Likewise.
2071
c5f65462
JM
20722019-03-07 Joseph Myers <joseph@codesourcery.com>
2073
2074 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2075 than after operators.
2076 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2077 (setitimer_locked): Likewise.
2078 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2079 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2080 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2081 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2082 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2083 (PPC_CPU_SUPPORTED): Likewise.
2084 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2085 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2086 (stat_overflow): Likewise.
2087 (statfs_overflow): Likewise.
2088 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2089 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2090 (eq_ttyname_r): Likewise.
2091 (run_chroot_tests): Likewise.
2092
27a2f2f3
FW
20932019-03-07 Florian Weimer <fweimer@redhat.com>
2094
2095 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2096 header check.
2097
ae514971 20982019-03-07 Martin Liska <mliska@suse.cz>
2099
2100 * math/Makefile: Change location where math-vector-fortran.h is
2101 installed.
2102 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2103 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2104 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2105 * scripts/check-installed-headers.sh: Skip Fortran header files.
2106 * scripts/check-wrapper-headers.py: Likewise.
2107
0ddb7ea8
AZ
21082019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2109
2110 * nptl/nptl-init.c (__have_futex_clock_realtime,
2111 __have_futex_clock_realtime): Remove definition.
2112 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2113 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2114 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2115 __ASSUME_FUTEX_CLOCK_REALTIME support.
2116 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2117 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2118 * sysdeps/unix/sysv/linux/kernel-features.h
2119 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2120 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2121 Adjust comment.
2122
590675c0
GG
21232019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2124
2125 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2126 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2127 __GI___wcscpy and wcscpy.
2128
de71ee7b
FW
21292019-03-04 Florian Weimer <fweimer@redhat.com>
2130
2131 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2132 declaration.
2133 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2134 defined.
2135
ce6ddae0
SL
21362019-03-04 Stefan Liebler <stli@linux.ibm.com>
2137
2138 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2139 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2140
31efface
TS
21412019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2142
2143 [BZ #24162]
2144 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2145 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2146
f0eaf862
GG
21472019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2148
2149 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2150 tests.
2151 (do_test): Likewise.
2152 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2153 (do_test_call_varg): Likewise.
2154 (do_test_call_rarg): Likewise.
2155 * sysdeps/ieee754/ldbl-opt/Makefile
2156 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2157 tst-nldbl-error.
2158 ($(objpfx)tst-nldbl-warn.c): New rule.
2159 ($(objpfx)tst-nldbl-error.c): Likewise.
2160 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2161 New variables.
2162
d11086a9
GG
21632019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2164
2165 [BZ #23984]
2166 * include/bits/error-ldbl.h: New file.
2167 * include/error.h: Include stdarg.h. Declare internal functions
2168 __error_internal and __error_at_line_internal.
2169 * misc/Makefile (headers): Add bits/error-ldbl.h.
2170 * misc/bits/error-ldbl.h: New file.
2171 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2172 avoid the inclusion of bits/error.h.
2173 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2174 and __nldbl_error_at_line.
2175 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2176 (__nldbl_error, __ndlbl_error_at_line): New functions.
2177 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2178 Redirect error and error_at_line.
2179 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2181 Likewise.
2182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2183 Likewise.
2184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2185 Likewise.
2186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2187 Likewise.
2188 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2189 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2190 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2191
90188e7d
GG
21922019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2193
2194 [BZ #23984]
2195 * include/bits/err-ldbl.h: New file.
2196 * include/err.h: Add prototypes for the internal functions:
2197 __vwarnx_internal and __vwarn_internal.
2198 * misc/Makefile (headers): Add bits/err-ldbl.h.
2199 * misc/bits/err-ldbl.h: New file.
2200 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2201 defined, i.e.: when -mlong-double-64 is in use.
2202 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2203 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2204 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2205 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2206 (VA_CALL): New macro.
2207 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2208 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2209 functions.
2210 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2211 declare prototypes for the new functions.
2212 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2214 Likewise.
2215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2216 Likewise.
2217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2218 Likewise.
2219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2220 Likewise.
2221 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2222 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2223 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2224
ea2d89d0
GG
22252019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2226
2227 * sysdeps/ieee754/ldbl-opt/Makefile
2228 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2229 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2230 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2231
6e1f6440
GG
22322019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2233
2234 [BZ #23983]
2235 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2236 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2237 * argp/bits/argp-ldbl.h: New file.
2238 * include/argp.h: Include stdarg.h. Add prototypes for internal
2239 functions: __argp_error_internal and __argp_failure_internal.
2240 * include/bits/argp-ldbl.h: New file.
2241 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2242 __nldbl_argp_error and __nldbl_argp_failure.
2243 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2244 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2245 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2246 Redirect argp_error and argp_failure calls.
2247 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2249 Likewise.
2250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2251 Likewise.
2252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2253 Likewise.
2254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2255 Likewise.
2256 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2257 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2258 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2259
c259196b
FW
22602019-03-01 Florian Weimer <fweimer@redhat.com>
2261
2262 [BZ #20419]
2263 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2264 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2265 code, to avoid creating an ABI tag note.
2266 (modules-names-nobuild): Add tst-big-note-lib.
2267
928b305d
SL
22682019-03-01 Stefan Liebler <stli@linux.ibm.com>
2269
2270 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2271 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2272
36f30c10
FW
22732019-03-01 Florian Weimer <fweimer@redhat.com>
2274
2275 [BZ #20271]
2276 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2277 (__netlink_assert_response): Add additional missing newlines.
2278
462e83a4
JM
22792019-02-28 Joseph Myers <joseph@codesourcery.com>
2280
2281 * sysdeps/powerpc/powerpc32/dl-machine.c
2282 (__elf_machine_fixup_plt): Use space before '('.
2283 (__process_machine_rela): Likewise.
2284 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2285 Likewise.
2286 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2287 Likewise.
2288 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2289 Likewise.
2290 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2291 (pattern): Likewise.
2292 (delta): Likewise.
2293 (check_result): Likewise.
2294 (check_excepts): Likewise.
2295 (check_op): Likewise.
2296 (fail_xr): Likewise.
2297 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2298 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2299 (SCNHSZ): Likewise.
2300 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2301 Likewise.
2302 (ARGS): Likewise.
2303 (__makecontext): Likewise.
2304 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2305 Likewise.
2306
cc3e573c
FW
23072019-02-28 Florian Weimer <fweimer@redhat.com>
2308
2309 [BZ #23937]
2310 elf: Add test with a local IFUNC resolver.
2311 * elf/ifuncmain9.c: New file.
2312 * elf/ifuncmain9pic.c: Likewise.
2313 * elf/ifuncmain9picstatic.c: Likewise.
2314 * elf/ifuncmain9pie.c: Likewise.
2315 * elf/ifuncmain9static.c: Likewise.
2316 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2317 ifuncmain9static, ifuncmain9picstatic.
2318 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2319 Add ifuncmain9, ifuncmain9pic.
2320 * elf/Makefile [multi-arch && build-shared && have-fpie]
2321 (ifunc-pie-tests): Add ifuncmain9pie.
2322 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2323 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2324 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2325
92ad88fe
L
23262019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2327
2328 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2329 * configure: Regenerated.
2330 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2331
6bd4d02e
AZ
23322019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2333
2334 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2335 symbol as __wcspcy instead of wcscpy.
2336
1b218417
ST
23372019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2338
2339 * include/stdio.h (__renameat2): New hidden prototype.
2340 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2341 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2342 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2343 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2344
c4f50205
JM
23452019-02-27 Joseph Myers <joseph@codesourcery.com>
2346
f627dd4d
JM
2347 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2348 if statement.
2349
c4f50205
JM
2350 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2351 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2352 * benchtests/bench-strlen.c (do_test): Likewise.
2353 (test_main): Likewise.
2354 * catgets/gencat.c (read_old): Likewise.
2355 * elf/cache.c (load_aux_cache): Likewise.
2356 * iconvdata/bug-iconv8.c (do_test): Likewise.
2357 * math/test-tgmath-ret.c (do_test): Likewise.
2358 * nis/nis_call.c (rec_dirsearch): Likewise.
2359 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2360 * nptl/tst-audit-threads.c (do_test): Likewise.
2361 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2362 * nss/nss_test1.c (init): Likewise.
2363 * nss/test-netdb.c (test_hosts): Likewise.
2364 * posix/execvpe.c (maybe_script_execute): Likewise.
2365 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2366 * stdio-common/tst-printf.c (do_test): Likewise.
2367 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2368 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2369 * stdlib/qsort.c (STACK_SIZE): Likewise.
2370 * stdlib/test-canon.c (do_test): Likewise.
2371 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2372 * string/memcmp.c (OPSIZ): Likewise.
2373 * string/test-strcpy.c (do_test): Likewise.
2374 (do_random_tests): Likewise.
2375 * string/test-strlen.c (do_test): Likewise.
2376 (test_main): Likewise.
2377 * string/test-strrchr.c (do_test): Likewise.
2378 (do_random_tests): Likewise.
2379 * string/tester.c (test_memrchr): Likewise.
2380 (test_memchr): Likewise.
2381 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2382 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2383 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2384 (read_encoded_value_with_base): Likewise.
2385 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2386 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2387 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2388 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2389 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2390 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2391 Likewise.
2392 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2393 Likewise.
2394 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2395 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2396 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2397 Likewise.
2398 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2399 Likewise.
2400 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2401 Likewise.
2402 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2403 Likewise.
2404 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2405 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2406 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2407 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2408 * time/test_time.c (main): Likewise.
2409
7b3fb620
AZ
24102019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2411
457208b1
AZ
2412 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2413
30a7e208
AZ
2414 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2415 wmemcpy.
2416
ddf21ec7
AZ
2417 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2418 wmemcpy.
2419
4d801563
AZ
2420 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2421
81a14439
AZ
2422 * include/wchar.h (__wcscpy): New prototype.
2423 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2424 (__wcscpy): Route internal symbol to generic implementation.
2425 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2426 Add internal __wcscpy alias.
2427 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2428 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2429 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2430 * wcsmbs/wcscpy.c (wcscpy): Add
2431 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2432 use generic implementation.
2433 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2434
39ef0744
AZ
2435 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2436 wmemset.
2437
7b3fb620
AZ
2438 * sysdeps/m68k/wcpcpy.c: Remove file.
2439 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2440
e0cb7b61
JM
24412019-02-26 Joseph Myers <joseph@codesourcery.com>
2442
aa0e4663
JM
2443 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2444 than after operators.
2445 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2446 * sysdeps/mach/hurd/getcwd.c
2447 (__hurd_canonicalize_directory_name_internal): Likewise.
2448 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2449 (pthread_mutex_consistent): Likewise.
2450 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2451 Likewise.
2452 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2453 (__pthread_mutex_transfer_np): Likewise.
2454 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2455 (__pthread_mutex_unlock): Likewise.
2456 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2457 (mtx_owned_p): Likewise.
2458 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2459 (pthread_mutexattr_getrobust): Likewise.
2460 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2461 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2462 Likewise.
2463 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2464 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2465 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2466 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2467 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2468 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2469 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2470 Likewise.
2471 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2472 Likewise.
2473 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2474 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2475 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2476 (____longjmp_chk): Likewise.
2477 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2478 Likewise.
2479 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2480 (INTERNAL_SYSCALL): Likewise.
2481 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2482 (INTERNAL_SYSCALL): Likewise.
2483 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2484 (__get_clockfreq_via_cpuinfo): Likewise.
2485
e0cb7b61
JM
2486 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2487 comments.
2488 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2489 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2490 (WORD_COPY_BWD): Likewise.
2491 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2492 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2493 Likewise.
2494 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2495 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2496 comment.
2497 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2498
a04549c1
JM
24992019-02-25 Joseph Myers <joseph@codesourcery.com>
2500
2501 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2502 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2503 rather than after operators.
2504 * elf/cache.c (print_cache): Likewise.
2505 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2506 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2507 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2508 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2509 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2510 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2511 (reauth_proc): Likewise.
2512 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2513 (__file_name_split_at): Likewise.
2514 (__directory_name_split_at): Likewise.
2515 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2516 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2517 * iconv/gconv_dl.c (do_print): Likewise.
2518 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2519 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2520 * locale/setlocale.c (new_composite_name): Likewise.
2521 * malloc/memusagestat.c (main): Likewise.
2522 * misc/fstab.c (fstab_convert): Likewise.
2523 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2524 Likewise.
2525 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2526 (getgrent_next_file): Likewise.
2527 (internal_getgrnam_r): Likewise.
2528 (internal_getgrgid_r): Likewise.
2529 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2530 Likewise.
2531 (internal_getgrent_r): Likewise.
2532 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2533 (getpwent_next_nss): Likewise.
2534 (getpwent_next_file): Likewise.
2535 (internal_getpwnam_r): Likewise.
2536 (internal_getpwuid_r): Likewise.
2537 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2538 Likewise.
2539 (getspent_next_nss): Likewise.
2540 (internal_getspnam_r): Likewise.
2541 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2542 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2543 * string/strchr.c (STRCHR): Likewise.
2544 * string/strchrnul.c (STRCHRNUL): Likewise.
2545 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2546 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2547 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2548 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2549 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2550 Likewise.
2551 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2552 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2553 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2554 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2555 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2556 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2557 (open_file): Likewise.
2558 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2559 (pthread_mutexattr_setprotocol): Likewise.
2560 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2561 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2562 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2563 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2564 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2565 Likewise.
2566 (elf_machine_rela): Likewise.
2567 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2568 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2569 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2570 * sysdeps/posix/rename.c (rename): Likewise.
2571 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2572 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2573 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2574 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2575 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2576 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2577 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2578 Likewise.
2579 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2580 Likewise.
2581 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2582 * time/tzfile.c (__tzfile_compute): Likewise.
2583
34a5a146
JM
25842019-02-22 Joseph Myers <joseph@codesourcery.com>
2585
2586 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2587 rather than after operators.
2588 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2589 * crypt/md5.c (md5_finish_ctx): Likewise.
2590 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2591 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2592 * elf/cache.c (load_aux_cache): Likewise.
2593 * elf/dl-load.c (open_verify): Likewise.
2594 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2595 * elf/readelflib.c (process_elf_file): Likewise.
2596 * elf/rtld.c (dl_main): Likewise.
2597 * elf/sprof.c (generate_call_graph): Likewise.
2598 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2599 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2600 * hurd/dtable.c (reauth_dtable): Likewise.
2601 * hurd/getdport.c (__getdport): Likewise.
2602 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2603 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2604 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2605 Likewise.
2606 * hurd/hurdioctl.c (fioctl): Likewise.
2607 * hurd/hurdselect.c (_hurd_select): Likewise.
2608 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2609 (STOPSIGS): Likewise.
2610 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2611 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2612 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2613 * hurd/msgportdemux.c (msgport_server): Likewise.
2614 * hurd/setauth.c (_hurd_setauth): Likewise.
2615 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2616 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2617 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2618 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2619 * login/tst-utmp.c (do_check): Likewise.
2620 (simulate_login): Likewise.
2621 * mach/lowlevellock.h (lll_lock): Likewise.
2622 (lll_trylock): Likewise.
2623 * math/test-fenv.c (ALL_EXC): Likewise.
2624 * math/test-fenvinline.c (ALL_EXC): Likewise.
2625 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2626 * nis/nis_call.c (__do_niscall3): Likewise.
2627 * nis/nis_callback.c (cb_prog_1): Likewise.
2628 * nis/nis_defaults.c (searchaccess): Likewise.
2629 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2630 * nis/nis_ismember.c (internal_ismember): Likewise.
2631 * nis/nis_local_names.c (nis_local_principal): Likewise.
2632 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2633 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2634 Likewise.
2635 * nis/ypclnt.c (yp_match): Likewise.
2636 (yp_first): Likewise.
2637 (yp_next): Likewise.
2638 (yp_master): Likewise.
2639 (yp_order): Likewise.
2640 * nscd/hstcache.c (cache_addhst): Likewise.
2641 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2642 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2643 (internal_getpwuid_r): Likewise.
2644 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2645 * posix/glob.h (__GLOB_FLAGS): Likewise.
2646 * posix/regcomp.c (peek_token): Likewise.
2647 (peek_token_bracket): Likewise.
2648 (parse_expression): Likewise.
2649 * posix/regexec.c (sift_states_iter_mb): Likewise.
2650 (check_node_accept_bytes): Likewise.
2651 * posix/tst-spawn3.c (do_test): Likewise.
2652 * posix/wordexp-test.c (testit): Likewise.
2653 * posix/wordexp.c (parse_tilde): Likewise.
2654 (exec_comm): Likewise.
2655 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2656 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2657 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2658 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2659 * stdio-common/tst-fileno.c (do_test): Likewise.
2660 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2661 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2662 * stdlib/strtod_l.c (round_and_return): Likewise.
2663 (____STRTOF_INTERNAL): Likewise.
2664 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2665 * string/strcspn.c (STRCSPN): Likewise.
2666 * string/test-memmem.c (simple_memmem): Likewise.
2667 * termios/tcsetattr.c (tcsetattr): Likewise.
2668 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2669 * time/asctime.c (asctime_internal): Likewise.
2670 * time/strptime_l.c (__strptime_internal): Likewise.
2671 * time/sys/time.h (timercmp): Likewise.
2672 * time/tzfile.c (__tzfile_compute): Likewise.
2673
b0b50fe0
PF
26742019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2675
b39d961c
TS
2676 [BZ #21915]
2677 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
b0b50fe0 2678
f43b8dd5
GG
26792019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2680
2681 * argp/argp-help.c (__argp_error_internal): New function,
2682 renamed from __argp_error, but that takes a 'mode_flags'
2683 parameter to control the format of long double parameters.
2684 (__argp_error): Converted into a call __argp_error_internal.
2685 (__argp_failure_internal): New function, renamed from
2686 __argp_failure, but that takes a 'mode_flags' parameter.
2687 (__argp_failure): Converted into a call __argp_failure_internal.
2688 * misc/err.c (__vwarnx_internal): New function, renamed from
2689 vwarnx, but that takes a 'mode_flags' parameter.
2690 (vwarnx): Converted into a call to __vwarnx_internal.
2691 (__vwarn_internal): New function, renamed from vwarn, but that
2692 takes a 'mode_flags' parameter.
2693 (vwarn): Converted into a call to __vwarn_internal.
2694 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2695 call to __vfxprintf with 'mode_flags'.
2696 (__error_internal): New function, renamed from error, but that
2697 takes a 'mode_flags' parameter.
2698 (error): Converted into a call to __error_internal.
2699 (__error_at_line_internal): New function, renamed from
2700 error_at_line, but that takes a 'mode_flags' parameter.
2701 (error_at_line): Converted into a call to
2702 __error_at_line_internal.
2703 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2704 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2705 Likewise.
2706
dc0afac3 27072019-02-20 Martin Liska <mliska@suse.cz>
2708
2709 * math/Makefile: Install math-vector-fortran.h.
2710 * bits/math-vector-fortran.h: New file.
2711 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2712
4a2dd41c
GG
27132019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2714
2715 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2716 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2717
04de9302
WS
27182019-02-19 Wolfram Sang <wsa@the-dreams.de>
2719
2720 * nptl/pthread_mutex_trylock.c: Fix comment.
2721
b026ce1e
CD
27222019-02-19 Carlos O'Donell <carlos@redhat.com>
2723
2724 * nptl/pthread_tryjoin.c: Fix comment.
2725
8c9289b6
JM
27262019-02-18 Joseph Myers <joseph@codesourcery.com>
2727
2728 [BZ #24231]
2729 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2730 after R_SPARC_H34 case.
2731
308e022f
FW
27322019-02-18 Florian Weimer <fweimer@redhat.com>
2733
2734 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2735 (getanswer): Do not call Dprintf.
2736 (res_gethostbyname2_context): Likewise.
2737 (res_gethostbyaddr_context): Likewise.
2738
a5406364
FW
27392019-02-18 Florian Weimer <fweimer@redhat.com>
2740
2741 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2742 declaration.
2743 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2744 Remove definitions.
2745 * libio/stdfiles.c: Update comment.
2746 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2747 set _IO_stdin, _IO_stdout, _IO_stderr.
2748 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2749 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2750 inline function.
2751 (_IO_deallocate_file): New inline function.
2752 * libio/iolibio.h (_IO_vprintf): Remove definition.
2753 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2754 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2755 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2756 _IO_legacy_file.
2757 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2758 __builtin_expect. Use _IO_legacy_file.
2759
6c29942c
SL
27602019-02-18 Stefan Liebler <stli@linux.ibm.com>
2761
2762 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2763 Initialize ctid with a known value and remove update of ctid
2764 after clone.
2765 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2766 as assumed current value of ctid_ptr.
2767
225d9445 27682019-02-16 Florian Weimer <fweimer@redhat.com>
ad18dade
FW
2769
2770 Check that non-sysdeps headers have wrapper headers.
2771 * scripts/check-wrapper-headers.py: New file.
2772 * Makefile (tests-special): Add check-wrapper-headers.out.
2773 (check-wrapper-headers.out): New target.
2774 * Rules (tests-special): Add check-wrapper-headers.out.
2775 (check-wrapper-headers.out): New target.
2776
225d9445 27772019-02-16 Florian Weimer <fweimer@redhat.com>
ebd32784
FW
2778
2779 Add missing header wrappers under include/.
2780 * include/ar.h: New file.
2781 * include/bits/mqueue2.h: Likewise.
2782 * include/bits/stdio.h: Likewise.
2783 * include/bits/stdio2.h: Likewise.
2784 * include/fstab.h: Likewise.
2785 * include/fts.h: Likewise.
2786 * include/lastlog.h: Likewise.
2787 * include/netinet/icmp6.h: Likewise.
2788 * include/netinet/igmp.h: Likewise.
2789 * include/netinet/ip6.h: Likewise.
2790 * include/re_comp.h: Likewise.
2791 * include/regexp.h: Likewise.
2792 * include/rpcsvc/bootparam.h: Likewise.
2793 * include/rpcsvc/yp_prot.h: Likewise.
2794 * include/sys/random.h: Likewise.
2795 * include/sys/stropts.h: Likewise.
2796 * include/sys/ttychars.h: Likewise.
2797 * include/sys/vfs.h: Likewise.
2798 * include/wait.h: Likewise.
2799
225d9445 28002019-02-16 Florian Weimer <fweimer@redhat.com>
a198d37a
FW
2801
2802 * nptl_db/proc_service.h: Move to ...
2803 * sysdeps/nptl/proc_service.h: ... here.
2804 * nptl_db/thread_db.h: Move to ...
2805 * sysdeps/nptl/thread_db.h: ... here.
2806 * nptl/descr.h: Include <thread_db.h>.
2807
e442e40d
AZ
28082019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2809
2810 * io/Makefile (tests): Add tst-lockf.
2811 * io/lockf.c (lockf): Use __fcntl and only define for
2812 !__OFF_T_MATCHES_OFF64_T.
2813 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2814 __OFF_T_MATCHES_OFF64_T case.
2815 * io/tst-lockf.c: New file.
2816 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2817 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2818 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2819 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2820 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2822 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2823 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2824 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2825
bc10e22c
FW
28262019-02-15 Florian Weimer <fweimer@redhat.com>
2827
2828 [BZ #24211]
2829 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2830 pd->result after the thread descriptor has been freed.
2831
365f05c7
JM
28322019-02-15 Joseph Myers <joseph@codesourcery.com>
2833
8a11f970
JM
2834 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2835 from function return type.
2836
365f05c7
JM
2837 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2838
6b5c8607 28392019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
56a731d4
JK
2840
2841 * scripts/test_printers_common.py: Set TERM to a known harmless
2842 value.
2843
712182c8
JM
28442019-02-14 Joseph Myers <joseph@codesourcery.com>
2845
2846 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2847 (xdr_u_int): Likewise.
2848 (xdr_enum): Likewise.
2849 (xdr_bytes): Reword fall-through comment.
2850 (xdr_string): Likewise.
2851
eb76e5b4
AZ
28522019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2853
2854 [BZ #2421]
2855 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2856 (tests): Add tst-join8 tst-join9.
2857 * nptl/lll_timedwait_tid.c: Remove file.
2858 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2859 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2860 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2861 * nptl/pthread_join_common.c (timedwait_tid): New function.
2862 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2863 is set.
2864 * nptl/tst-join5.c (thread_join): New function.
2865 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2866 check.
2867 * nptl/tst-join8.c: New file.
2868 * nptl/tst-join9.c: Likewise.
2869 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2870 lll_futex_timed_wait_cancel): Add generic macros.
2871 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2872 Remove definitions.
2873 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2874 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2875 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2876 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2877 Remove function.
2878 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2879 Likewise.
2880 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2881 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2882 (lll_futex_timed_wait_cancel): New macro.
2883
3904fd85
WD
28842019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2885
2886 * benchtests/Makefile: Add malloc-simple benchmark.
2887 * benchtests/bench-malloc-simple.c: New benchmark.
2888
24ca04fe
SP
28892019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2890
2891 * benchtests/bench-memmove.c (do_one_test): Remove unused
2892 ORIG_SRC.
2893 (do_test): Adjust.
2894 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2895 ORIG_SRC.
2896 (do_test): Adjust.
2897
85bd1ddb
JW
28982019-01-13 Jim Wilson <jimw@sifive.com>
2899
2900 [BZ #24040]
2901 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2902 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2903 (func): New.
2904 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2905 call func directly.
2906 * nptl/Makefile (tests): Add tst-unwind-thread.
2907 (CFLAGS-tst-unwind-thread.c): Define.
2908 * nptl/tst-unwind-thread.c: New file.
2909 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2910 as undefined.
2911
86140c62
JM
29122019-02-13 Joseph Myers <joseph@codesourcery.com>
2913
10756268
JM
2914 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2915 comment wording.
2916 * nis/nis_call.c (__do_niscall3): Likewise.
2917
05383720
JM
2918 * catgets/gencat.c (normalize_line): Use braces around empty
2919 'else' body.
2920 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2921 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2922 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2923 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2924 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2925 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2926 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2927 definition.
2928
86140c62
JM
2929 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2930 execlp returns.
2931
16f87cfd
WD
29322019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2933
2934 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2935 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2936 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2937 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2938 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2939 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2940 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2941 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2942 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2943 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2944 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2945 * benchtests/bench-bcopy.c: Delete file.
2946 * benchtests/bench-bzero.c: Likewise.
2947 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2948 (simple_memccpy): Remove.
2949 (generic_memccpy): Add function.
2950 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2951 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2952 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2953 (generic_mempcpy): Add new function.
2954 * benchtests/bench-memset.c (simple_bzero): Remove.
2955 (builtin_bzero): Remove.
2956 (builtin_memset): Remove.
2957 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2958 (generic_rawmemchr): Add new function.
2959
0c6d82e9
FW
29602019-02-12 Florian Weimer <fweimer@redhat.com>
2961
2962 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2963
b3fbfe81
AZ
29642019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2965
2966 [BZ #24122]
2967 * elf/Makefile (tests): Add tst-audit13.
2968 (modules-names): Add tst-audit13mod1.
2969 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2970 rule.
2971 * elf/tst-audit13.c: New file.
2972 * elf/tst-audit13mod1.c: Likewise.
2973
3b856d09
FW
29742019-02-12 Florian Weimer <fweimer@redhat.com>
2975
2976 [BZ #24122]
2977 * elf/rtld.c (unload_audit_module): New function.
2978 (report_audit_module_load_error): Likewise.
2979 (load_audit_module): Likewise. Extracted from dl_main. Call
2980 _dl_close if the laversion symbol cannot be found. Use early
2981 returns for error handling. Add malloc error check. Check for a
2982 zero return value from la_version. Remove spurious comment about
2983 static TLS initialization. Remove useless casts.
2984 (notify_audit_modules_of_loaded_object): New function. Extracted
2985 from dl_main.
2986 (load_audit_module): Likewise.
2987 (dl_main): Call load_audit_modules.
2988
32db86d5
JM
29892019-02-12 Joseph Myers <joseph@codesourcery.com>
2990
2991 * elf/dl-exception.c (_dl_exception_create_format): Add
2992 fall-through comments.
2993 * elf/ldconfig.c (parse_conf_include): Likewise.
2994 * elf/rtld.c (print_statistics): Likewise.
2995 * locale/programs/charmap.c (parse_charmap): Likewise.
2996 * misc/mntent_r.c (__getmntent_r): Likewise.
2997 * posix/wordexp.c (parse_arith): Likewise.
2998 (parse_backtick): Likewise.
2999 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3000 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3001 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3002
a51bc4fe
PC
30032019-02-11 Paul A. Clarke <pc@us.ibm.com>
3004
3005 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3006 Use float instead of double.
3007
fb25b135
TS
30082019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3009
3010 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3011
32ea7299
JM
30122019-02-08 Joseph Myers <joseph@codesourcery.com>
3013
3014 * sysdeps/powerpc/bits/mathinline.h: Remove.
3015
eef4d4f8
FW
30162019-02-08 Florian Weimer <fweimer@redhat.com>
3017
3018 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3019 * math/bits/math-finite.h: Move to ...
3020 * bits/math-finite.h: ... here.
3021
fdfbd47d
FW
30222019-02-08 Florian Weimer <fweimer@redhat.com>
3023
3024 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3025 * bits/unistd_ext.h: here.
3026
11eb21c4
PF
30272019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3028
3029 [BZ #21915]
3030 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3031 * nss/tst-nss-files-hosts-long.c: New file.
3032 * nss/tst-nss-files-hosts-long.root: New directory.
3033 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3034 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3035
e47d82c9
FW
30362019-02-08 Florian Weimer <fweimer@redhat.com>
3037
3038 * include/bits/unistd_ext.h: Remove file.
3039 * posix/bits/unistd_ext.h: Move to ...
3040 * sysdeps/generic/bits/unistd_ext.h: ... here.
3041
8f89ab21
FW
30422019-02-08 Florian Weimer <fweimer@redhat.com>
3043
3044 * include/bits/unistd_ext.h: New file.
3045
144a794e
TS
30462019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3047
3048 * time/tst-strftime2.c: Use array_length macros instead of magic
3049 numbers.
3050
669ff911
FW
30512019-02-08 Florian Weimer <fweimer@redhat.com>
3052
3053 [BZ #24161]
3054 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3055 argument.
3056 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3057 locking if the new do_locking argument is true.
3058 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3059 __run_fork_handlers.
3060
d0bd87d4 30612019-02-08 Florian Weimer <fweimer@redhat.com>
1d0fc213
FW
3062
3063 [BZ #6399]
3064 Linux: Add gettid system call wrapper.
3065 * posix/Makefile (headers): Add bits/unistd_ext.h.
3066 * posix/bits/unistd_ext.h: New file.
3067 * posix/unistd.h: Include it.
3068 * manual/process.texi (Process Identification): Document gettid.
3069 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3070 tst-gettid, tst-gettid-kill.
3071 (tst-gettid): Link with $(shared-thread-library).
3072 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3073 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3074 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3075 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3076 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3077 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3078 Add gettid.
3079 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3080 Likewise.
3081 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3082 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3083 Likewise.
3084 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3085 Likewise.
3086 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3087 Likewise.
3088 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3089 Likewise.
3090 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3091 Likewise.
3092 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3093 Likewise.
3094 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3095 Likewise.
3096 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3097 (GLIBC_2.30): Likewise.
3098 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3099 (GLIBC_2.30): Likewise.
3100 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3101 (GLIBC_2.30): Likewise.
3102 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3103 (GLIBC_2.30): Likewise.
3104 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3105 Likewise.
3106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3107 (GLIBC_2.30): Likewise.
3108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3109 (GLIBC_2.30): Likewise.
3110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3111 (GLIBC_2.30): Likewise.
3112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3113 (GLIBC_2.30): Likewise.
3114 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3115 Likewise.
3116 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3117 Likewise.
3118 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3119 Likewise.
3120 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3121 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3122 Likewise.
3123 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3124 Likewise.
3125 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3126 Likewise.
3127 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3128 Likewise.
3129 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3130
225d9445 31312019-02-08 Florian Weimer <fweimer@redhat.com>
f289e656
FW
3132
3133 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3134 compatibility symbols.
3135
823624bd
SL
31362019-02-07 Stefan Liebler <stli@linux.ibm.com>
3137
3138 [BZ #24180]
3139 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3140 Add compiler barriers and comments.
3141
8311c83f
FW
31422019-02-07 Florian Weimer <fweimer@redhat.com>
3143
3144 * include/array_length.h (array_length): Do not use a statement
3145 expression and _Static_assert, so that array_length can be used at
3146 file scope and as a constant expression.
3147
94b63e66
FW
31482019-02-07 Florian Weimer <fweimer@redhat.com>
3149
3150 * support/xdlfcn.h (xdlmopen): Declare.
3151 * support/xdlmopen.c: New file.
3152 * support/Makefile (libsupport-routines): Add xdlmopen.
3153
c2d8f0b7
JM
31542019-02-06 Joseph Myers <joseph@codesourcery.com>
3155
3156 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3157 before return type, without separate inline.
3158 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3159 * elf/dl-tunables.h (tunable_is_name): Likewise.
3160 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3161 (do_set_top_pad): Likewise.
3162 (do_set_mmap_threshold): Likewise.
3163 (do_set_mmaps_max): Likewise.
3164 (do_set_mallopt_check): Likewise.
3165 (do_set_perturb_byte): Likewise.
3166 (do_set_arena_test): Likewise.
3167 (do_set_arena_max): Likewise.
3168 (do_set_tcache_max): Likewise.
3169 (do_set_tcache_count): Likewise.
3170 (do_set_tcache_unsorted_limit): Likewise.
3171 * nis/nis_subr.c (count_dots): Likewise.
3172 * nptl/allocatestack.c (advise_stack_range): Likewise.
3173 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3174 (do_sin): Likewise.
3175 (reduce_sincos): Likewise.
3176 (do_sincos): Likewise.
3177 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3178 (do_set_elision_enable): Likewise.
3179 (TUNABLE_CALLBACK_FNDECL): Likewise.
3180
3b935595
FW
31812019-02-06 Florian Weimer <fweimer@redhat.com>
3182
3183 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3184 (xdlsym): Use dlerror to detect a NULL symbol.
3185
b4333340
FW
31862019-02-06 Florian Weimer <fweimer@redhat.com>
3187
3188 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3189 <stap-probe.h>.
3190 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3191
b6d8a999
SL
31922019-02-06 Stefan Liebler <stli@linux.ibm.com>
3193
3194 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3195
94eeeec0
SL
31962019-02-06 Stefan Liebler <stli@linux.ibm.com>
3197
3198 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3199 __wmemcmp and weak alias to wmemcmp.
3200
bc79db3f
SL
32012019-02-06 Stefan Liebler <stli@linux.ibm.com>
3202
3203 [BZ #23403]
3204 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3205 TLS_TCB_AT_TP tls variant.
3206 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3207 Add alignment checks.
3208 * support/Makefile (libsupport-routines): Add xposix_memalign and
3209 xpthread_setstack.
3210 * support/support.h: Add xposix_memalign.
3211 * support/xthread.h: Add xpthread_attr_setstack.
3212 * support/xposix_memalign.c: New File.
3213 * support/xpthread_attr_setstack.c: Likewise.
3214
f1ac7455
FW
32152019-02-05 Florian Weimer <fweimer@redhat.com>
3216
3217 [BZ #24164]
3218 arm: Use "nr" constraint for Systemtap probes, to avoid the
3219 compiler using memory operands for constants, due to the "o"
3220 alternative in the default "nor" constraint.
3221 * include/stap-probe.h [USE_STAP_PROBE]: Include
3222 <stap-probe-machine.h>
3223 * sysdeps/generic/stap-probe-machine.h: New file.
3224 * sysdeps/arm/stap-probe-machine.h: Likewise.
3225
7a0dcfc6
JM
32262019-02-04 Joseph Myers <joseph@codesourcery.com>
3227
77dc0d86
JM
3228 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3229 with 0, not tcache->entries[tc_idx].
3230
7a0dcfc6
JM
3231 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3232 once.
3233
65f7767a
AS
32342019-02-04 Andreas Schwab <schwab@suse.de>
3235
3236 [BZ #16976]
3237 [BZ #17396]
3238 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3239 looking up collating elements match against (wide) character
3240 sequence instead of name. Correct alignment adjustment.
3241 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3242 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3243 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3244 (LOCALES): Add cs_CZ.ISO-8859-2.
3245 * posix/tst-fnmatch4.c: New file.
3246 * posix/tst-fnmatch5.c: New file.
3247 * include/wchar.h (__wmemcmp): Declare.
3248 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3249 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3250 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3251 * sysdeps/s390/wmemcmp.c: Likewise.
3252
3f635fb4
L
32532019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3254
3255 [BZ #24155]
3256 CVE-2019-7309
3257 * NEWS: Updated for CVE-2019-7309.
3258 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3259 upper 32 bits of RDX register for x32. Use unsigned Jcc
3260 instructions, instead of signed.
3261 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3262 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3263
2ab5741b
FW
32642019-02-04 Florian Weimer <fweimer@redhat.com>
3265
3266 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3267 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3268 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3269 Likewise.
3270 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3271 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3272 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3273 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3274 Likewise.
3275 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3276 Likewise.
3277 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3278 Likewise.
3279 (posix_spawn_file_actions_addopen): Likewise.
3280 (posix_spawn_file_actions_addclose): Likewise.
3281 (posix_spawn_file_actions_adddup2): Likewise.
3282 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3283 qualifiers.
3284 (posix_spawn_file_actions_addfchdir_np): Likewise.
3285
8692ebdb
DN
32862019-02-04 David Newall <glibc@davidnewall.com>
3287
3288 elf: Implement --preload option for the dynamic linker.
3289 * elf/rtld.c (preloadarg): New variable.
3290 (handle_preload_list): Pass through “where” argument to
3291 do_preload.
3292 (dl_main): Handle "--preload" and add second call to
3293 handle_preload_list.
3294 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3295 (tst-rtld-preload-OBJS): Set variable.
3296 (tst-rtld-preload.out): New target.
3297 * elf/tst-rtld-preload.sh: New file.
3298
5e10136b
MM
32992019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3300
3301 * Makefile (testrun.sh): Exit in case of incorrect argument.
3302
221baae0
FW
33032019-02-04 Florian Weimer <fweimer@redhat.com>
3304
3305 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3306 alignment gaps.
3307
b8c72381
FW
33082019-02-03 Florian Weimer <fweimer@redhat.com>
3309
3310 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3311 implicit overflow checks.
3312
11f382ee
AJ
33132019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3314
3315 * stdlib/isomac.c: Include <unistd.h>.
3316
77c7d55e
FW
33172019-02-03 Florian Weimer <fweimer@redhat.com>
3318
3319 * include/time.h (__tzfile_default): Use int, not long int, for
3320 the GMT offsets.
3321 * time/tzfile.c (struct ttinfo): Change type of the offset member
3322 to int.
3323 (__tzfile_read): Remove useless cast.
3324 (__tzfile_default): Adjust prototype.
3325 * time/tzset.c (tz_rule): Change type of the offset member to int.
3326 (parse_offset): Change the type of the sign variable to int.
3327
ee9941f9
FW
33282019-02-03 Florian Weimer <fweimer@redhat.com>
3329
3330 [BZ #24153]
3331 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3332 * libio/getchar.c (getchar): Likewise.
3333 * libio/getchar_u.c (getchar_unlocked): Likewise.
3334 * libio/getwchar.c (getwchar): Likewise.
3335 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3336 * libio/iogets.c (_IO_gets): Likewise.
3337 * libio/vscanf.c (_IO_vscanf): Likewise.
3338 * libio/vwscanf.c (__vwscanf): Likewise.
3339 * libio/tst-bz24153.c: New file.
3340 * libio/Makefile (tests): Add it.
3341
c70824b9
FW
33422019-02-02 Florian Weimer <fweimer@redhat.com>
3343
3344 [BZ #14829]
3345 * manual/resource.texi (Basic Scheduling Functions): Add
3346 portability note. Change process to task throughout the section.
3347 Remove incorrect comment about sched_yield as it affects
3348 tasks/threads, not entire processes.
3349 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3350 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3351
4dcbbc3b
JM
33522019-02-01 Joseph Myers <joseph@codesourcery.com>
3353
3354 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3355 * configure: Regenerated.
3356 * manual/install.texi (Tools for Compilation): Update minimum GCC
3357 version.
3358 * INSTALL: Regenerated.
3359
6175507c
FW
33602019-02-01 Florian Weimer <fweimer@redhat.com>
3361
3362 * support/support_test_compare_string.c
3363 (support_test_compare_string): Use "string" in error message.
3364 * support/tst-test_compare_string.c (do_test): Adjust.
3365
baef1943
FW
33662019-02-01 Florian Weimer <fweimer@redhat.com>
3367
3368 * support/support_format_address_family.c
3369 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3370
395599f0
FW
33712019-02-01 Florian Weimer <fweimer@redhat.com>
3372
3373 * manual/socket.texi (Internet Address Formats): Clarify the byte
3374 order of struct sockaddr_in, struct sockaddr_in6. Document
3375 sin6_flowinfo and sin6_scope_id.
3376
b06f4c00
WD
33772019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3378
3379 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3380 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3381 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3382 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3383 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3384 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3385
83d1cc42
FX
33862019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3387
3388 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3389 [!MEMCHR](MEMCHR): Set to __memchr.
3390 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3391 Add memchr_generic and memchr_nosimd.
3392 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3393 (__libc_ifunc_impl_list): Add memchr ifuncs.
3394 * sysdeps/aarch64/multiarch/memchr.c: New file.
3395 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3396 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3397
c7d3890f
FX
33982019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3399
3400 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3401 Add memset_emag.
3402 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3403 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3404 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3405 Add IS_EMAG check for ifunc dispatch.
3406 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3407 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3408
07c3d1ec
FX
34092019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3410
3411 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3412 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3413 Add emag.
3414 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3415 New macro.
3416
114f792e
SL
34172019-02-01 Stefan Liebler <stli@linux.ibm.com>
3418
3419 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3420
d5627550
VG
34212019-01-31 Vineet Gupta <vgupta@synopsys.com>
3422
3423 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3424 syscall-template file.
3425
5fc9ed4c
CD
34262019-01-31 Carlos O'Donell <carlos@redhat.com>
3427 Torvald Riegel <triegel@redhat.com>
3428 Rik Prohaska <prohaska7@gmail.com>
3429
3430 [BZ# 23844]
3431 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3432 tst-rwlock-trywrlock-stall.
3433 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3434 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3435 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3436 Set __wrphase_fute to 1 only if we started the write phase.
3437 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3438 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3439 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3440 * support/xpthread_rwlock_destroy.c: New file.
3441 * support/xthread.h: Declare xpthread_rwlock_destroy.
3442
932329a5
JM
34432019-02-01 Joseph Myers <joseph@codesourcery.com>
3444
3445 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3446 version to 4.0.2.
3447
5f10701f
PP
34482019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3449
3450 [BZ #24051]
3451 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3452 * libio/fileops.c (_IO_new_file_underflow): Likewise
3453 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3454 * libio/putchar.c (putchar): Likewise.
3455 * libio/putchar_u.c (putchar_unlocked): Likewise.
3456 * libio/putwchar.c (putchar): Likewise.
3457 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3458 * libio/tst-bz24051.c: New test.
3459 * libio/Makefile (tests): Add tst-bz24051
3460
583dd860
PE
34612019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3462
b626c5aa 3463 CVE-2019-9169
583dd860
PE
3464 regex: fix read overrun [BZ #24114]
3465 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3466 https://debbugs.gnu.org/34140
3467 * posix/regexec.c (proceed_next_node):
3468 Do not read past end of input buffer.
3469
2bac7daa
FW
34702019-01-31 Florian Weimer <fweimer@redhat.com>
3471
3472 [BZ #24059]
3473 * nss/nss_files/files-alias.c (get_next_alias): Handle
3474 continuation line without newline at the end.
3475 * nss/tst-nss-files-alias-truncated.c: New file.
3476 * nss/Makefile [$(build-shared)] (tests): Add
3477 tst-nss-files-alias-truncated.
3478 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3479 * support/namespace.h (struct support_chroot_configuration): Add
3480 aliases member.
3481 (struct support_chroot): Add path_aliases member.
3482 * support/support_chroot.c (support_chroot_create): Handle
3483 aliases.
3484 (support_chroot_free): Free path_aliases.
3485
330c9d0d
SP
34862019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3487
de44ab67
SP
3488 * version.h (RELEASE): Set to "development".
3489 (VERSION): Set to "2.29.9000".
3490 * NEWS: Add section for 2.30.
3491
56c86f5d
SP
3492 * version.h (RELEASE): Set to "stable".
3493 (VERSION): Set to "2.29".
3494 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3495
330c9d0d
SP
3496 * NEWS: Add the list of bugs fixed in 2.29.
3497 * manual/contrib.texi: Update contributors list with some more
3498 names.
3499 * manual/install.texi: Update latest versions of packages
3500 tested.
3501 * INSTALL: Regenerated.
3502
e1e47c91
SP
35032019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3504
3505 * po/be.po: Update translations.
3506 * po/bg.po: Likewise.
3507 * po/ca.po: Likewise.
3508 * po/cs.po: Likewise.
3509 * po/da.po: Likewise.
3510 * po/de.po: Likewise.
3511 * po/el.po: Likewise.
3512 * po/eo.po: Likewise.
3513 * po/es.po: Likewise.
3514 * po/fi.po: Likewise.
3515 * po/fr.po: Likewise.
3516 * po/gl.po: Likewise.
3517 * po/hr.po: Likewise.
3518 * po/hu.po: Likewise.
3519 * po/ia.po: Likewise.
3520 * po/id.po: Likewise.
3521 * po/it.po: Likewise.
3522 * po/ja.po: Likewise.
3523 * po/ko.po: Likewise.
3524 * po/lt.po: Likewise.
3525 * po/nb.po: Likewise.
3526 * po/nl.po: Likewise.
3527 * po/pl.po: Likewise.
3528 * po/pt_BR.po: Likewise.
3529 * po/ru.po: Likewise.
3530 * po/rw.po: Likewise.
3531 * po/sk.po: Likewise.
3532 * po/sl.po: Likewise.
3533 * po/sv.po: Likewise.
3534 * po/tr.po: Likewise.
3535 * po/uk.po: Likewise.
3536 * po/vi.po: Likewise.
3537 * po/zh_CN.po: Likewise.
3538 * po/zh_TW.po: Likewise.
3539
8d016826
UB
35402019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3541
3542 [BZ #24130]
3543 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3544 of $f3 register on $y_is_neg path.
3545
a0bb5abd
ST
35462019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3547
b96e22d0 3548 [BZ #24110]
a0bb5abd
ST
3549 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3550 sigaltstack.ss_flags.
3551
b22eed37
TS
35522019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3553
3554 [BZ #23758]
3555 * manual/time.texi (strftime): Document "%Ey".
3556 * time/strftime_l.c (__strftime_internal): Set the default width
3557 padding with zero of "%Ey" to 2.
3558
32f600a2
TS
3559 [BZ #24096]
3560 * manual/time.texi (strftime): Document "%EC" and "%EY".
3561 * time/Makefile (tests): Add tst-strftime2.
3562 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3563 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3564 override padding for "%Ey".
3565 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3566 "%Ey" in the subformat as if decorated with that flag.
3567 * time/tst-strftime2.c: New file.
3568
8e889c5d
AZ
35692019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3570
3367acdb
AZ
3571 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3572 are not defined.
3573
8e889c5d
AZ
3574 [BZ #24122]
3575 * elf/Makefile (tests): Add tst-audit13.
3576 (modules-names): Add tst-audit13mod1.
3577 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3578 rule.
3579 * elf/rtld.c (dl_main): Handle invalid audit module version.
3580 * elf/tst-audit13.c: New file.
3581 * elf/tst-audit13mod1.c: Likewise.
3582
a95dc01c
ST
35832019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3584
3585 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3586 returned by __hurd_at_flags.
ee4d7902
ST
3587 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3588 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3589 directly instead of __hurd_file_name_lookup.
a95dc01c 3590
712f1167
JM
35912019-01-21 Joseph Myers <joseph@codesourcery.com>
3592
3593 * scripts/build-many-glibcs.py (Context.checkout): Default
3594 binutils version to 2.32 branch.
3595
108bc404
FW
35962019-01-21 Florian Weimer <fweimer@redhat.com>
3597
3598 [BZ #20018]
3599 CVE-2016-10739
3600 resolv: Reject trailing characters in host names
3601 * include/arpa/inet.h (__inet_aton_exact): Declare.
3602 (inet_aton): Remove hidden prototype. No longer used internally.
3603 * nscd/gai.c (__inet_aton): Do not define.
3604 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3605 * nss/digits_dots.c (__inet_aton): Likewise.
3606 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3607 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3608 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3609 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3610 (tst-resolv-trailing): Likewise.
3611 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3612 libc.
3613 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3614 Make static. Add endp parameter.
3615 (__inet_aton_exact): New function.
3616 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3617 (__inet_addr): Call inet_aton_end.
3618 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3619 not just IPv6. Call __inet_aton_exact.
3620 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3621 (tests): Make const. Add additional test cases with trailing
3622 characters.
3623 (do_test): Use array_length.
3624 * resolv/tst-inet_aton_exact.c: New file.
3625 * resolv/tst-resolv-trailing.c: Likewise.
3626 * resolv/tst-resolv-nondecimal.c: Likewise.
3627 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3628
5165de69
L
36292019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3630
3631 [BZ# 24097]
3632 CVE-2019-6488
3633 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3634 Clear the upper 32 bits of RSI register.
3635 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3636 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3637 and tst-size_t-wcsnlen.
3638 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3639 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3640
c7c54f65
L
36412019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3642
3643 [BZ# 24097]
3644 CVE-2019-6488
3645 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3646 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3647 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3648 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3649 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3650
ee915088
L
36512019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3652
3653 [BZ# 24097]
3654 CVE-2019-6488
3655 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3656 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3657 * sysdeps/x86_64/strcmp.S: Likewise.
3658 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3659 tst-size_t-strncmp and tst-size_t-wcsncmp.
3660 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3661 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3662 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3663
82d0b4a4
L
36642019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3665
3666 [BZ# 24097]
3667 CVE-2019-6488
3668 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3669 RDX_LP for length. Clear the upper 32 bits of RDX register.
3670 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3671 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3672 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3673 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3674
ecd8b842
L
36752019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3676
3677 [BZ# 24097]
3678 CVE-2019-6488
3679 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3680 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3681 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3682 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3683
231c5676
L
36842019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3685
3686 [BZ# 24097]
3687 CVE-2019-6488
3688 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3689 length. Clear the upper 32 bits of RDX register.
3690 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3691 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3692 Likewise.
3693 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3694 Likewise.
3695 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3696 tst-size_t-wmemchr.
3697 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3698
b304fc20
L
36992019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3700
3701 [BZ# 24097]
3702 CVE-2019-6488
3703 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3704 length. Clear the upper 32 bits of RDX register.
3705 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3706 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3707 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3708 tst-size_t-wmemcmp.
3709 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3710 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3711
97700a34
L
37122019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3713
3714 [BZ# 24097]
3715 CVE-2019-6488
3716 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3717 upper 32 bits of RDX register.
3718 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3719 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3720 tst-size_t-wmemchr.
3721 * sysdeps/x86_64/x32/test-size_t.h: New file.
3722 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3723 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3724
6ca53a24
FW
37252019-01-18 Florian Weimer <fweimer@redhat.com>
3726
3727 [BZ #24112]
3728 resolv: Do not send queries for non-host-names in nss_dns.
3729 * resolv/nss_dns/dns-host.c (check_name): New function.
3730 (_nss_dns_gethostbyname2_r): Use it.
3731 (_nss_dns_gethostbyname_r): Likewise.
3732 (_nss_dns_gethostbyname4_r): Likewise.
3733
5e30b8ef
FW
37342019-01-21 Florian Weimer <fweimer@redhat.com>
3735
3736 * resolv/inet_addr.c: Reformat to GNU style.
3737 (__inet_addr, __inet_aton): Update comment.
3738
71effcea
FW
37392019-01-18 Florian Weimer <fweimer@redhat.com>
3740
3741 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3742 ("malloc: Use current (C11-style) atomics for fastbin access").
3743 This commit introduces a substantial performance regression on
3744 POWER and Aarch64.
3745 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3746 (REMOVE_FB): Define.
3747 (_int_malloc): Use it and reindent.
3748 (_int_free): Use CAS loop with
3749 catomic_compare_and_exchange_val_rel.
3750 (malloc_consolidate): Use atomic_exchange_acq.
3751
3752
562f4362
L
37532019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3754
3755 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3756 -Wl,-z,now.
3757 (LDFLAGS-tst-minsigstksz-2): Likewise.
3758 (LDFLAGS-tst-minsigstksz-3): Likewise.
3759 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3760 (LDFLAGS-tst-minsigstksz-4): Likewise.
3761
80dfa298
TS
37622019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3763
3764 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3765 than "alternate".
3766
008b598e
PC
37672019-01-16 Paul A. Clarke <pc@us.ibm.com>
3768
3769 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3770
fbbc9a4e
ZW
37712019-01-16 Zack Weinberg <zackw@panix.com>
3772
6b5c8607
TS
3773 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3774 (xget_sigstack_location): New test support functions.
3775 * support/xsigstack.c: New file, implementing them.
3776 * support/tst-xsigstack.c: New test for them.
3777 * support/Makefile: Update.
fbbc9a4e 3778
6b5c8607
TS
3779 * signal/tst-minsigstksz-1.c
3780 * signal/tst-minsigstksz-2.c
3781 * signal/tst-minsigstksz-3.c
3782 * signal/tst-minsigstksz-3a.c
3783 * signal/tst-minsigstksz-4.c: New tests.
3784 * signal/Makefile: Run them.
fbbc9a4e 3785
5f1135e4
SP
37862019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3787
3788 * po/libc.pot: Regenerate.
3789
ecdacd34
TMQMF
37902019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3791
3792 * math/libm-test-fma.inc (fma_test_data): Set
3793 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3794
56054664
RA
37952019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3796
3797 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3798 (do_test): Changed __vector __int128_t to __vector unsigned int.
3799
1a153e47
LS
38002019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3801
3802 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3803 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3804 stpcpy-avx2 and stpncpy-avx2.
3805 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3806 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3807 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3808 and __stpncpy_avx2.
3809 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3810 ifunc-strcpy.h}: rename header for a more generic name.
3811 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3812 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3813 AVX unaligned load is fast and vzeroupper is preferred.
3814 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3815 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3816 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3817 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3818 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3819 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3820
a1b02ae7
DL
38212019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3822
3823 * argp/argp-help.c: Fix typo in comment.
3824 * misc/sys/cdefs.h: Likewise.
3825 * posix/regexec.c (sift_states_iter_mb): Likewise.
3826 * socket/sockatmark.c: Likewise.
3827 * socket/sys/socket.h: Likewise.
3828 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3829 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3830 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3831 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3832 * sysdeps/unix/sockatmark.c: Likewise.
3833 * time/strptime_l.c: Likewise.
3834
5cbbf01e
TS
38352019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3836
3837 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3838 missing space after the cast of "_NL_CURRENT".
3839
0bc9bdf1
RA
38402019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3841
3842 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3843 ifdef to fix read of VSCR.
3844 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3845 tst-ucontext-ppc64-vscr.c to test list.
3846 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3847
5494af04
AH
38482019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3849
3850 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3851 fall-through.
3852
e17f63ff
JW
38532019-01-09 Jim Wilson <jimw@sifive.com>
3854
3855 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3856
02f440c1
WD
38572019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3858
3859 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3860 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3861 __memcpy_falkor for ares.
3862 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3863 Add new define.
3864 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3865 Add ares cpu.
3866
69da3c9e
L
38672019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3868
3869 [BZ #24066]
3870 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3871 4_FP_W_TYPEs are used for IEEE quad precision.
3872 * soft-fp/extendhftf2.c: Likewise.
3873 * soft-fp/extendsftf2.c: Likewise.
3874 * soft-fp/extendxftf2.c: Likewise.
3875 * soft-fp/trunctfdf2.c: Likewise.
3876 * soft-fp/trunctfhf2.c: Likewise.
3877 * soft-fp/trunctfsf2.c: Likewise.
3878 * soft-fp/trunctfxf2.c: Likewise.
3879 * sysdeps/alpha/ots_cvttx.c: Likewise.
3880 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3881 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3882 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3883 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3884 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3885 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3886 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3887 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3888 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3889 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3890 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3891 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3892 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3893 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3894 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3895 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3896 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3897
2ef42716
AJ
38982019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3899
3900 [BZ #24024]
3901 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3902 code with -fmath-errno.
3903 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3904 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3905 * string/test-strerror-errno.c: New file.
3906
7395f3a0
AJ
39072019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3908
3909 [BZ #24046]
3910 * localedata/locales/en_US (date_fmt): Add, set to
3911 "%a %d %b %Y %r %Z".
3912
010fe231
FW
39132019-01-07 Florian Weimer <fweimer@redhat.com>
3914
3915 [BZ #24063]
3916 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3917 instead of @var{errno}.
3918 (Parsing of Integers): Likewise.
3919 (Parsing of Floats): Likewise.
3920 * manual/filesys.texi (Working with Directory Trees): Likewise.
3921 (Temporary Files): Likewise.
3922 * manual/job.texi (Terminal Access Functions): Likewise.
3923 * manual/llio.texi (Synchronizing I/O): Likewise.
3924 * manual/math.texi (SVID Random): Likewise.
3925 * manual/message.texi (The catgets Functions): Likewise.
3926 (Translation with gettext): Likewise.
3927 (Locating gettext catalog): Likewise.
3928 (Charset conversion in gettext): Likewise.
3929 * manual/nss.texi (NSS Module Function Internals): Likewise.
3930 * manual/search.texi (Hash Search Function): Likewise.
3931 * manual/setjmp.texi (System V contexts): Likewise.
3932 * manual/time.texi (Sleeping): Likewise.
3933 * manual/users.texi (Lookup User): Likewise.
3934 (Lookup Group): Likewise.
3935
b79dc8d0
AZ
39362019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3937
3938 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3939 fix typo.
3940
890461fe 39412019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
27c5e756
MJ
3942
3943 [BZ #19444]
3944 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3945 __builtin_unreachable for default case in switch.
3946 (__ieee754_yn): Likewise.
3947 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3948 (__ieee754_ynl): Likewise.
3949 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3950 (__ieee754_ynl): Likewise.
3951 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3952 (__ieee754_ynl): Likewise.
3953
8b18d418
SN
39542019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3955
3956 * manual/maint.texi: Use @{ and @}.
3957
4392898d
FW
39582019-01-04 Florian Weimer <fweimer@redhat.com>
3959
3960 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3961 function.
3962 (do_in_chroot_1): Call it.
3963 (run_chroot_tests):
3964 Improve error reporting in case it is not possible to create a
3965 collision for the PTY name required by the test.
3966
17cc27d5
AZ
39672019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3968
ce7eb0e9
AZ
3969 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3970 lll_wait_tid with timeout.
3971 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3972 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3973 futex_reltimed_wait_cancelable for cancelabla mode.
3974 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3975 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3976 macros.
3977 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3978 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3979 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3980 SYSCALL_CANCEL_NCS): New macro.
3981 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3982 (lll_timedwait_tid): Remove macro.
3983 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3984 Likewise.
3985 (lll_timedwait_tid): Likewise.
3986 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3987 Likewise.
3988 (lll_timedwait_tid): Likewise.
3989 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3990 Likewise.
3991 (lll_timedwait_tid): Likewise.
3992 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3993 Use INTERNAL_SYSCALL_CANCEL.
3994 * sysdeps/unix/sysv/linux/futex-internal.h
3995 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3996 instead of __pthread_{enable,disable}_asynccancel.
3997 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3998 (lll_futex_wait_cancel): New macro.
3999
0b13e255
AZ
4000 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4001 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4002
85c828a4
AZ
4003 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4004 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4005
d0d7f85f
AZ
4006 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4007 in backtrace analysis.
4008 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4009 side-effects.
4010 (tf_send): Likewise.
4011
17cc27d5
AZ
4012 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4013 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4014 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4015 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4016 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4017 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4018 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4019 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4020 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4021 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4022 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4023 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4024 Likewise.
4025 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4026 tst-cancel-wrappers.sh.
4027 (generated): Remove tst-cancel-wrappers.out.
4028 (tst-cancel-wrappers.out): Remove rule.
4029 * nptl/tst-cancel-wrappers.sh: Remove file.
4030
7d7af8f1
SN
40312019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4032
4033 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4034 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4035 Update.
4036
805334b2
AZ
40372019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4038
4039 [BZ #23640]
4040 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4041 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4042 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4043 close-on-exec reset for adddup2 file action.
4044 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4045
03992356
ZW
40462019-01-03 Zack Weinberg <zackw@panix.com>
4047
4048 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4049 parameter. Only use deprecated scanf when __USE_GNU is defined
4050 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4051 than 201103L, whichever is relevant for the language being compiled.
4052
4053 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4054 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4055 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4056 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4057 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4058
4059 * libio/iovsscanf.c
4060 * libio/fwscanf.c
4061 * libio/iovswscanf.c
4062 * libio/swscanf.c
4063 * libio/vscanf.c
4064 * libio/vwscanf.c
4065 * libio/wscanf.c
4066 * stdio-common/fscanf.c
4067 * stdio-common/scanf.c
4068 * stdio-common/vfscanf.c
4069 * stdio-common/vfwscanf.c
4070 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4071 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4072 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4073 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4074 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4075 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4076 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4077 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4078 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4079 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4080 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4081 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4082 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4083 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4084 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4085
4086 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4087 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4088 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4089 not sscanf.
4090 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4091 with a preprocessor macro.
4092
4093 * stdio-common/bug21.c, stdio-common/scanf14.c:
4094 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4095 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4096 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4097 to xscanf, xfscanf, xsscanf.
4098
4099 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4100 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4101 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4102 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4103 xfscanf, xsscanf.
4104 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4105 override feature selection macros or provide definitions of u_char etc.
4106 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4107 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4108 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4109 with -std=gnu89.
4110
8083afa5
AZ
41112019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4112
6f343c1f
AZ
4113 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4114 bits/termios-misc.h.
4115 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4116 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4117 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4118 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4119 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4120 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4121
51f4beb0
AZ
4122 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4123 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4124 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4125 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4126 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4127 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4128 termios-misc.h.
4129 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4130 (sysdep_headers): Add termios-misc.h.
4131
f69c5cb2
AZ
4132 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4133 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4134 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4135
3aa4a07e
AZ
4136 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4137 termios-tcflow.h.
4138 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4139 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4140 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4141 TCSAFLUSH): Move to termios-tcflow.h.
4142 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4143 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4144 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4145 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4146
22679ddf
AZ
4147 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4148 termios-c_lflag.h.
4149 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4150 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4151 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4152 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4153 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4154 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4155 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4156 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4157 Likewise.
4158 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4159 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4160 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4161 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4162
72eb6ecc
AZ
4163 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4164 termios-c_cflag.h.
4165 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4166 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4167 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4168 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4169 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4170 termios-c_cflag.h.
4171 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4172 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4173 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4174 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4175
9c5d0d02
AZ
4176 [BZ #23783]
4177 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4178 termios-baud.h.
4179 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4180 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4181 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4182 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4183 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4184 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4185 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4186 __MAX_BAUD): Move to termios-baud.h.
4187 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4188 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4189 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4190 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4191 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4192
7b832018
AZ
4193 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4194 termios-c_oflag.h.
4195 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4196 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4197 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4198 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4199 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4200 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4201 termios-c_oflag.h.
4202 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4203 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4204 FFR1): Likewise.
4205 [USE_MISC] (XTABS): Likewise.
4206 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4207 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4208 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4209 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4210
3127003e
AZ
4211 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4212 termios-c_iflag.h.
4213 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4214 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4215 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4216 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4217 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4218 IUTF8): Move to termios-c_iflag.h.
4219 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4220 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4221 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4222 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4223
48c1dd96
AZ
4224 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4225 termios-cc.h.
4226 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4227 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4228 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4229 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4230 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4231 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4232 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4233 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4234 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4235 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4236 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4237 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4238
e5a50db3
AZ
4239 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4240 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4241 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4242 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4243 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4244 termios-struct.h.
4245 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4246 termios-struct.h.
4247 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4248 Likewise.
4249 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4250 Likewise.
4251 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4252 Likewise.
4253 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4254 Likewise.
4255 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4256 _HAVE_C_OSPEED): Define.
4257 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4258 _HAVE_C_OSPEED): Likewise.
4259 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4260 _HAVE_C_OSPEED): Likewise.
4261 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4262 (cfsetospeed): Check for define value instead of existence.
4263 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4264 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4265 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4266 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4267 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4268
8083afa5
AZ
4269 [BZ #17783]
4270 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4271 Define.
4272 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4273 (TIOCSER_TEMT): Likewise.
4274 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4275 (TEOCSER_TEMT): Likewise.
4276
4d7d7dc6
P
42772019-01-02 PanderMusubi <pander@users.sourceforge.net>
4278
4279 [BZ #24011]
4280 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4281
8e291a29
JM
42822019-01-02 Joseph Myers <joseph@codesourcery.com>
4283
4284 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4285
55137f7d
ST
42862019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4287
4288 * sysdeps/htl/pt-barrierattr-setpshared.c
4289 (pthread_barrierattr_setpshared): Add stub warning.
4290 * sysdeps/htl/pt-condattr-setpshared.c
4291 (pthread_condattr_setpshared): Likewise.
4292 * sysdeps/htl/pt-mutexattr-setpshared.c
4293 (pthread_mutexattr_setpshared): Likewise.
4294 * sysdeps/htl/pt-rwlockattr-setpshared.c
4295 (pthread_rwlockattr_setpshared): Likewise.
4296 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4297 (pthread_mutexattr_setpshared): Likewise.
4298
2ce09e01
JM
42992019-01-02 Joseph Myers <joseph@codesourcery.com>
4300
acb55dcb
JM
4301 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4302 constants to match with Linux 4.20.
4303
2ce09e01
JM
4304 * sysdeps/mips/mips32/libm-test-ulps: Update.
4305 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4306
fe20bb1d
AJ
43072019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4308
4309 [BZ #24034]
4310 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4311 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4312 than __typeof (...) for the a_ptr variable.
4313
2d9837c1
GG
43142019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4315
4316 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4317 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4318 * libio/Makefile (tests): Add tst-sprintf-ub and
4319 tst-sprintf-chk-ub.
4320 (CFLAGS-tst-sprintf-ub.c): New variable.
4321 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4322 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4323 destination buffer and check for overflows in fortified mode.
4324 * libio/libioP.h (PRINTF_CHK): New macro.
4325 * libio/tst-sprintf-chk-ub.c: New file.
4326 * libio/tst-sprintf-ub.c: Likewise.
4327
d5c6df0b 43282019-01-02 Florian Weimer <fweimer@redhat.com>
8c1aafc1
FW
4329
4330 [BZ #24018]
4331 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4332 failure.
4333
66081e38
FW
43342019-01-02 Florian Weimer <fweimer@redhat.com>
4335
4336 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4337
04277e02
JM
43382019-01-01 Joseph Myers <joseph@codesourcery.com>
4339
6ef3d225
JM
4340 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4341 macro.
4342
e3d4e292
JM
4343 * sysdeps/unix/sysv/linux/netpacket/packet.h
4344 (PACKET_IGNORE_OUTGOING): New macro.
4345
f4507797
JM
4346 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4347 macro.
4348
47ad5e1a
JM
4349 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4350 version to 4.20.
4351 (riscv_flush_icache): New syscall.
4352
7628a1b0
JM
4353 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4354 trailing whitespace removed.
4355 * scripts/config.guess: Update to version 2019-01-01.
4356 * scripts/config.sub: Update to version 2019-01-01.
4357 * scripts/move-if-change: Update from gnulib.
4358
c9123888
JM
4359 * NEWS: Update copyright dates.
4360 * catgets/gencat.c (print_version): Likewise.
4361 * csu/version.c (banner): Likewise.
4362 * debug/catchsegv.sh: Likewise.
4363 * debug/pcprofiledump.c (print_version): Likewise.
4364 * debug/xtrace.sh (do_version): Likewise.
4365 * elf/ldconfig.c (print_version): Likewise.
4366 * elf/ldd.bash.in: Likewise.
4367 * elf/pldd.c (print_version): Likewise.
4368 * elf/sotruss.sh: Likewise.
4369 * elf/sprof.c (print_version): Likewise.
4370 * iconv/iconv_prog.c (print_version): Likewise.
4371 * iconv/iconvconfig.c (print_version): Likewise.
4372 * locale/programs/locale.c (print_version): Likewise.
4373 * locale/programs/localedef.c (print_version): Likewise.
4374 * login/programs/pt_chown.c (print_version): Likewise.
4375 * malloc/memusage.sh (do_version): Likewise.
4376 * malloc/memusagestat.c (print_version): Likewise.
4377 * malloc/mtrace.pl: Likewise.
4378 * manual/libc.texinfo: Likewise.
4379 * nptl/version.c (banner): Likewise.
4380 * nscd/nscd.c (print_version): Likewise.
4381 * nss/getent.c (print_version): Likewise.
4382 * nss/makedb.c (print_version): Likewise.
4383 * posix/getconf.c (main): Likewise.
4384 * scripts/test-installation.pl: Likewise.
4385 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4386
04277e02
JM
4387 * All files with FSF copyright notices: Update copyright dates
4388 using scripts/update-copyrights.
4389 * locale/programs/charmap-kw.h: Regenerated.
4390 * locale/programs/locfile-kw.h: Likewise.
4391
e740e5b1
JM
43922018-12-31 Joseph Myers <joseph@codesourcery.com>
4393
4394 * timezone/zdump.c: Update from tzcode 2018i.
4395 * timezone/zic.c: Likewise.
4396
9b7f98b3
PE
43972018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4398
4399 regex: improve Gnulib port to AIX
4400 From the glibc point of view, this removes duplicate macro
4401 definitions and is obviously safe.
4402 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4403 * posix/regex_internal.h:
4404 (__attribute__, __attribute_warn_unused_result__):
4405 Remove; already defined elsewhere.
4406
b50dd3bc
FW
44072018-12-31 Florian Weimer <fw@deneb.enyo.de>
4408
4409 [BZ #24027]
4410 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4411 copying operation. (ncopies had the wrong type, resulting in an
4412 integer wraparound and too few elements being copied.)
4413
0b9c8490
L
44142018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4415
4416 [BZ #24022]
4417 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4418 <asm/syscalls.h> exists with __has_include__ before including it.
4419
01047fa6
JM
44202018-12-31 Joseph Myers <joseph@codesourcery.com>
4421
4422 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4423 version to 4.20.
4424
6b5c8607 44252018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
065957a3
JW
4426
4427 * hurd/lookup-retry: Include <unistd.h>.
4428 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4429 Release it on return. Handle "pid" magical lookup retry.
4430
989182c4
RL
44312018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4432
4433 [BZ #10496]
4434 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4435 (t_fmt_ampm): Likewise.
4436 * localedata/locales/aa_ER (t_fmt): Likewise.
4437 (t_fmt_ampm): Likewise.
4438 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4439 (t_fmt_ampm): Likewise.
4440 * localedata/locales/aa_ET (t_fmt): Likewise.
4441 (t_fmt_ampm): Likewise.
4442 * localedata/locales/am_ET (t_fmt): Likewise.
4443 (t_fmt_ampm): Likewise.
4444 * localedata/locales/byn_ER (t_fmt): Likewise.
4445 (t_fmt_ampm): Likewise.
4446 * localedata/locales/om_ET (t_fmt): Likewise.
4447 (t_fmt_ampm): Likewise.
4448 * localedata/locales/sid_ET (t_fmt): Likewise.
4449 (t_fmt_ampm): Likewise.
4450 * localedata/locales/so_DJ (t_fmt): Likewise.
4451 (t_fmt_ampm): Likewise.
4452 * localedata/locales/so_ET (t_fmt): Likewise.
4453 (t_fmt_ampm): Likewise.
4454 * localedata/locales/so_SO (t_fmt): Likewise.
4455 (t_fmt_ampm): Likewise.
4456 * localedata/locales/ti_ER (t_fmt): Likewise.
4457 (t_fmt_ampm): Likewise.
4458 * localedata/locales/ti_ET (t_fmt): Likewise.
4459 (t_fmt_ampm): Likewise.
4460 * localedata/locales/tig_ER (t_fmt): Likewise.
4461 (t_fmt_ampm): Likewise.
4462 * localedata/locales/wal_ET (t_fmt): Likewise.
4463 (t_fmt_ampm): Likewise.
4464
4465 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4466 * localedata/locales/ar_IN (t_fmt): Likewise.
4467 * localedata/locales/bhb_IN (t_fmt): Likewise.
4468 * localedata/locales/bho_IN (t_fmt): Likewise.
4469 * localedata/locales/bi_VU (t_fmt): Likewise.
4470 * localedata/locales/bn_BD (t_fmt): Likewise.
4471 * localedata/locales/bn_IN (t_fmt): Likewise.
4472 * localedata/locales/brx_IN (t_fmt): Likewise.
4473 * localedata/locales/doi_IN (t_fmt): Likewise.
4474 * localedata/locales/en_HK (t_fmt): Likewise.
4475 (t_fmt_ampm): Likewise.
4476 * localedata/locales/en_IN (t_fmt): Likewise.
4477 * localedata/locales/en_PH (t_fmt): Likewise.
4478 * localedata/locales/gu_IN (t_fmt): Likewise.
4479 * localedata/locales/hi_IN (t_fmt): Likewise.
4480 * localedata/locales/hif_FJ (t_fmt): Likewise.
4481 * localedata/locales/hne_IN (t_fmt): Likewise.
4482 * localedata/locales/kn_IN (t_fmt): Likewise.
4483 * localedata/locales/kok_IN (t_fmt): Likewise.
4484 * localedata/locales/ks_IN (t_fmt): Likewise.
4485 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4486 * localedata/locales/mag_IN (t_fmt): Likewise.
4487 * localedata/locales/mai_IN (t_fmt): Likewise.
4488 * localedata/locales/mjw_IN (t_fmt): Likewise.
4489 * localedata/locales/ml_IN (t_fmt): Likewise.
4490 * localedata/locales/mni_IN (t_fmt): Likewise.
4491 * localedata/locales/mr_IN (t_fmt): Likewise.
4492 * localedata/locales/ms_MY (t_fmt): Likewise.
4493 * localedata/locales/pa_IN (t_fmt): Likewise.
4494 * localedata/locales/raj_IN (t_fmt): Likewise.
4495 * localedata/locales/sa_IN (t_fmt): Likewise.
4496 * localedata/locales/sat_IN (t_fmt): Likewise.
4497 * localedata/locales/sd_IN (t_fmt): Likewise.
4498 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4499 * localedata/locales/tcy_IN (t_fmt): Likewise.
4500 * localedata/locales/the_NP (t_fmt): Likewise.
4501 * localedata/locales/to_TO (t_fmt): Likewise.
4502 * localedata/locales/ur_IN (t_fmt): Likewise.
4503
4504 * localedata/locales/hif_FJ (d_t_fmt): Set to
4505 "%A %d %b %Y %I:%M:%S %p".
4506 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4507
4508 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4509 * localedata/locales/ar_BH (t_fmt): Likewise.
4510 * localedata/locales/ar_DZ (t_fmt): Likewise.
4511 * localedata/locales/ar_EG (t_fmt): Likewise.
4512 * localedata/locales/ar_IQ (t_fmt): Likewise.
4513 * localedata/locales/ar_JO (t_fmt): Likewise.
4514 * localedata/locales/ar_KW (t_fmt): Likewise.
4515 * localedata/locales/ar_LB (t_fmt): Likewise.
4516 * localedata/locales/ar_LY (t_fmt): Likewise.
4517 * localedata/locales/ar_OM (t_fmt): Likewise.
4518 * localedata/locales/ar_QA (t_fmt): Likewise.
4519 * localedata/locales/ar_SD (t_fmt): Likewise.
4520 * localedata/locales/ar_SS (t_fmt): Likewise.
4521 * localedata/locales/ar_SY (t_fmt): Likewise.
4522 * localedata/locales/ar_TN (t_fmt): Likewise.
4523 * localedata/locales/ar_YE (t_fmt): Likewise.
4524
4525 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4526 (t_fmt_ampm): Likewise.
4527 * localedata/locales/gez_ET (t_fmt): Likewise.
4528 (t_fmt_ampm): Likewise.
4529
4530 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4531 (t_fmt_ampm): Likewise.
4532 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4533
4534 * localedata/locales/zh_HK (t_fmt):
4535 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4536
4537 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4538 because this locale does not use the 12-hour clock.
4539 (t_fmt): Set to "%Z %H:%M:%S".
4540 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4541
4542 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4543 because this locale does not use the 12-hour clock.
4544 (t_fmt): Set to "%H:%M:%S %Z".
4545 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4546
4547 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4548 because this locale does not use the 12-hour clock.
4549 (t_fmt): Set to "%T".
4550 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4551 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4552
4553 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4554 because this locale does not use the 12-hour clock.
4555 (t_fmt): Set to "%H:%M:%S %Z".
4556 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4557
4558 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4559 because this locale does not use the 12-hour clock.
4560 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4561 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4562
27841a7d
RL
45632018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4564
4565 [BZ #10496]
4566 [BZ #23724]
4567 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4568 (t_fmt_ampm): Likewise.
4569 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4570 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4571 (d_fmt): Set to "%-d.%-m.%y".
4572
0253580a
AZ
45732018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4574
4575 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4576 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4577 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4578 Likewise.
4579 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4580 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4581 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4582 function.
4583 * support/blob_repeat.c (check_mul_overflow_size_t,
4584 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4585
09104e5b
AJ
45862018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4587
4588 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4589
c0feb731
PE
45902018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4591
4592 regex: simplify Gnulib port
4593 This simplifies the code, by removing stuff intended for porting
4594 to Gnulib but no longer needed there.
4595 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4596 uses of libc_hidden_def, weak_alias.
4597 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4598 _Restrict_ except for public-facing headers.
4599 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4600 Remove; already defined elsewhere.
4601 * posix/regex.c, posix/regex_internal.h:
4602 Use __GNUC_PREREQ instead of rolling our own.
4603 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4604
5289f1f5
WD
46052018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4606
4607 * benchtests/bench-strlen.c (generic_strlen): New function.
6b5c8607 4608 (memchr_strlen): New function.
5289f1f5 4609
ba4b8fab
L
46102018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4611
4612 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4613 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4614 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4615
9412979a
L
46162018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4617
4618 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4619
8700a785
L
46202018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4621
4622 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4623 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4624 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4625 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4626 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4627 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4628 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4629
57b3ff8e
JM
46302018-12-21 Joseph Myers <joseph@codesourcery.com>
4631
4632 [BZ #24023]
4633 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4634 PLT reference in libc.so.
4635 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4636 _Q_lltoq and _Q_qtod PLT references in libc.so.
4637
90d3320d
WD
46382018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4639
4640 * benchtests/bench-memchr.c: Cleanup defines.
4641 * benchtests/bench-memcmp.c: Likewise.
4642 * benchtests/bench-memset.c: Likewise.
4643 * benchtests/bench-memset-large.c: Likewise.
4644 * benchtests/bench-memset-walk.c: Likewise.
4645 * benchtests/bench-stpcpy.c: Likewise.
4646 * benchtests/bench-stpncpy.c: Likewise.
4647 * benchtests/bench-strcat.c: Likewise.
4648 * benchtests/bench-strchr.c: Likewise.
4649 * benchtests/bench-strcmp.c: Likewise.
4650 * benchtests/bench-strcpy.c: Likewise.
4651 * benchtests/bench-strcspn.c: Likewise.
4652 * benchtests/bench-string.h: Likewise.
4653 * benchtests/bench-strlen.c: Likewise.
4654 * benchtests/bench-strncat.c: Likewise.
4655 * benchtests/bench-strncmp.c: Likewise.
4656 * benchtests/bench-strncpy.c: Likewise.
4657 * benchtests/bench-strnlen.c: Likewise.
4658 * benchtests/bench-strpbrk.c: Likewise.
4659 * benchtests/bench-strrchr.c: Likewise.
4660 * benchtests/bench-strspn.c: Likewise.
4661
192963be
JM
46622018-12-21 Joseph Myers <joseph@codesourcery.com>
4663
5d025ea6
JM
4664 * stdlib/longlong.h: Update from GCC.
4665
192963be
JM
4666 [BZ #23993]
4667 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4668 * configure: Regenerated.
4669 * manual/install.texi (Tools for Compilation): Update minimum GCC
4670 version.
4671 * INSTALL: Regenerated.
4672
6b5c8607 46732018-12-21 Istvan Kurucsai <pistukem@gmail.com>
c0e82f11
IK
4674
4675 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4676
6b5c8607 46772018-12-20 Istvan Kurucsai <pistukem@gmail.com>
ebe544bf
IK
4678
4679 * malloc/malloc.c (mremap_chunk): Additional checks.
4680
5f72b005
MH
46812018-12-21 Mao Han <han_mao@c-sky.com>
4682
4683 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4684 * scripts/build-many-glibcs.py: Add C-SKY targets.
4685 * sysdeps/csky/Implies: New file.
4686 * sysdeps/csky/Makefile: Likewise.
4687 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4688 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4689 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4690 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4691 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4692 * sysdeps/csky/abiv2/memmove.S: Likewise.
4693 * sysdeps/csky/abiv2/memset.S: Likewise.
4694 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4695 * sysdeps/csky/abiv2/start.S: Likewise.
4696 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4697 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4698 * sysdeps/csky/abiv2/strlen.S: Likewise.
4699 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4700 * sysdeps/csky/abort-instr.h: Likewise.
4701 * sysdeps/csky/atomic-machine.h: Likewise.
4702 * sysdeps/csky/bits/endian.h: Likewise.
4703 * sysdeps/csky/bits/fenv.h: Likewise.
4704 * sysdeps/csky/bits/link.h: Likewise.
4705 * sysdeps/csky/bits/setjmp.h: Likewise.
4706 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4707 * sysdeps/csky/bsd-setjmp.S: Likewise.
4708 * sysdeps/csky/configure: Likewise.
4709 * sysdeps/csky/configure.ac: Likewise.
4710 * sysdeps/csky/dl-machine.h: Likewise.
4711 * sysdeps/csky/dl-procinfo.c: Likewise.
4712 * sysdeps/csky/dl-procinfo.h: Likewise.
4713 * sysdeps/csky/dl-sysdep.h: Likewise.
4714 * sysdeps/csky/dl-tls.h: Likewise.
4715 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4716 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4717 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4718 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4719 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4720 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4721 * sysdeps/csky/fpu/fegetround.c: Likewise.
4722 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4723 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4724 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4725 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4726 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4727 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4728 * sysdeps/csky/fpu/fesetround.c: Likewise.
4729 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4730 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4731 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4732 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4733 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4734 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4735 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4736 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4737 * sysdeps/csky/fpu_control.h: Likewise.
4738 * sysdeps/csky/gccframe.h: Likewise.
4739 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4740 * sysdeps/csky/ldsodefs.h: Likewise.
4741 * sysdeps/csky/libc-tls.c: Likewise.
4742 * sysdeps/csky/linkmap.h: Likewise.
4743 * sysdeps/csky/machine-gmon.h: Likewise.
4744 * sysdeps/csky/memusage.h: Likewise.
4745 * sysdeps/csky/nofpu/Implies: Likewise.
4746 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4747 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4748 * sysdeps/csky/nptl/Makefile: Likewise.
4749 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4750 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4751 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4752 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4753 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4754 * sysdeps/csky/nptl/tls.h: Likewise.
4755 * sysdeps/csky/preconfigure: Likewise.
4756 * sysdeps/csky/sfp-machine.h: Likewise.
4757 * sysdeps/csky/sotruss-lib.c: Likewise.
4758 * sysdeps/csky/stackinfo.h: Likewise.
4759 * sysdeps/csky/sysdep.h: Likewise.
4760 * sysdeps/csky/tininess.h: Likewise.
4761 * sysdeps/csky/tst-audit.h: Likewise.
4762 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4763 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4764 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4765 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4766 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4767 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4768 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4769 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4770 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4771 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4772 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4773 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4774 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4775 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4776 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4777 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4778 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4779 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4780 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4781 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4782 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4783 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4784 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4785 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4786 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4787 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4788 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4789 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4790 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4791 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4792 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4793 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4794 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4795 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4796 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4797 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4798 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4799 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4800 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4801 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4802 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4803 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4804 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4805 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4806
6b5c8607 48072018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
ac253355
AA
4808
4809 * include/time.h (__difftime64): Add.
4810 * time/difftime.c (subtract): convert to 64-bit time.
4811 * time/difftime.c (__difftime64): Add.
4812 * time/difftime.c (__difftime): Wrap around __difftime64.
4813
ab416931
L
48142018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4815
4816 * manual/examples/add.c: Remove redundant "if not".
4817 * manual/examples/argp-ex1.c: Likewise.
4818 * manual/examples/argp-ex2.c: Likewise.
4819 * manual/examples/argp-ex3.c: Likewise.
4820 * manual/examples/argp-ex4.c: Likewise.
4821 * manual/examples/atexit.c: Likewise.
4822 * manual/examples/db.c: Likewise.
4823 * manual/examples/dir.c: Likewise.
4824 * manual/examples/dir2.c: Likewise.
4825 * manual/examples/execinfo.c: Likewise.
4826 * manual/examples/filecli.c: Likewise.
4827 * manual/examples/filesrv.c: Likewise.
4828 * manual/examples/fmtmsgexpl.c: Likewise.
4829 * manual/examples/genpass.c: Likewise.
4830 * manual/examples/inetcli.c: Likewise.
4831 * manual/examples/inetsrv.c: Likewise.
4832 * manual/examples/isockad.c: Likewise.
4833 * manual/examples/longopt.c: Likewise.
4834 * manual/examples/memopen.c: Likewise.
4835 * manual/examples/memstrm.c: Likewise.
4836 * manual/examples/mkdirent.c: Likewise.
4837 * manual/examples/mkfsock.c: Likewise.
4838 * manual/examples/mkisock.c: Likewise.
4839 * manual/examples/mygetpass.c: Likewise.
4840 * manual/examples/pipe.c: Likewise.
4841 * manual/examples/popen.c: Likewise.
4842 * manual/examples/rprintf.c: Likewise.
4843 * manual/examples/search.c: Likewise.
4844 * manual/examples/select.c: Likewise.
4845 * manual/examples/setjmp.c: Likewise.
4846 * manual/examples/sigh1.c: Likewise.
4847 * manual/examples/sigusr.c: Likewise.
4848 * manual/examples/stpcpy.c: Likewise.
4849 * manual/examples/strdupa.c: Likewise.
4850 * manual/examples/strftim.c: Likewise.
4851 * manual/examples/subopt.c: Likewise.
4852 * manual/examples/swapcontext.c: Likewise.
4853 * manual/examples/termios.c: Likewise.
4854 * manual/examples/testopt.c: Likewise.
4855 * manual/examples/testpass.c: Likewise.
4856 * manual/examples/timeval_subtract.c: Likewise.
4857
515f463f
JM
48582018-12-19 Joseph Myers <joseph@codesourcery.com>
4859
da75c1b1
JM
4860 * sysdeps/x86/fpu/math_private.h: New file.
4861 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4862
515f463f
JM
4863 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4864 definition.
4865 (cosh): Likewise.
4866 (tanh): Likewise.
4867
1616d034
TMQMF
48682018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4869
4870 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4871 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4872 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4873 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4874 fields.
4875 (_dl_show_auxv): Give a special treatment to
4876 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4877 and AT_L3_CACHEGEOMETRY.
4878 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4879 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4880 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4881 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4882
61595e3d
AS
48832018-12-19 Andreas Schwab <schwab@suse.de>
4884
4885 * nscd/connections.c (check_use): Don't abort on invalid len.
4886
bbb7dc84
ST
48872018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4888
4889 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4890 values in the 64bit value cases.
4891
6b5c8607 48922018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
64c2277d 4893
c4c2836a
AA
4894 * include/time.h
4895 (__ctime64_r): Add.
4896 * time/ctime_r.c
4897 (__ctime64_r): Add.
4898 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4899
7755e504
AA
4900 * include/time.h
4901 (__ctime64): Add.
4902 * time/gmtime.c
4903 (__ctime64): Add.
4904 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4905
a1d346ce
AA
4906 * include/time.h
4907 (__gmtime64_r): Add.
4908 * time/gmtime.c
4909 (__gmtime64_r): Add.
4910 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4911
131db8b0
AA
4912 * include/time.h
4913 (__gmtime64): Add.
4914 * time/gmtime.c
4915 (__gmtime64): Add.
4916 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4917
64c2277d
AA
4918 * include/time.h
4919 (__localtime64_r): Add.
4920 * time/localtime.c
4921 (__localtime64_r): Add.
4922 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4923
56b98bf1
AZ
49242018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4925
64dd7a16
AZ
4926 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4927 kernel_sigction definition.
4928
8b1d5da5
AZ
4929 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4930
f9eabb19
AZ
4931 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4932
56b98bf1
AZ
4933 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4934 __syscall_rt_sigaction.
4935 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4936 (kernel_sigaction): Use Linux generic defintion.
4937 (STUB): Define.
4938 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4939 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4940 (__syscall_rt_sigaction): Remove implementation.
4941 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4942 hidden.
4943 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4944 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4945 INTERNAL_SYSCALL): Remove definitions.
4946 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4947 action and signal set size.
4948 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4949 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4950
43a45c2d
AZ
49512018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4952 James Clarke <jrtc27@jrtc27.com>
4953
dfa6216f 4954 [BZ #23967]
43a45c2d
AZ
4955 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4956 Define if SA_RESTORER is defined.
4957 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4958 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4959 already defined.
4960 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4961 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4962 definitions.
4963 (HAS_SA_RESTORER): Define.
4964 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4965 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4966 (HAS_SA_RESTORER): Define.
4967 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4968 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4969 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4970 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4971 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4972
646ce7e0
JM
49732018-12-18 Joseph Myers <joseph@codesourcery.com>
4974
4975 * sysdeps/unix/sysv/linux/kernel-features.h
4976 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4977 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4978 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4979 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4980 (__ASSUME_ST_INO_64_BIT): Likewise.
4981 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4982 <kernel-features.h>.
4983 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4984 Remove conditional code.
4985 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4986 <kernel-features.h>.
4987 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4988 Remove conditional code.
4989 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4990 <kernel-features.h>.
4991 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4992 Remove conditional code.
4993 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4994 <kernel-features.h>.
4995 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4996 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4997
80190d2b
SL
49982018-12-18 Stefan Liebler <stli@linux.ibm.com>
4999
5000 * sysdeps/s390/multiarch/ifunc-resolve.h
5001 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5002 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5003 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5004 Delete macro definition.
5005 (s390_libc_ifunc_init): Rename to
5006 s390_libc_ifunc_expr_stfle_init.
5007 * sysdeps/s390/bzero: Use
5008 s390_libc_ifunc_expr_stfle_init instead of
5009 s390_libc_ifunc_init.
5010 * sysdeps/s390/memcmp.c: Likewise.
5011 * sysdeps/s390/memcpy.c: Likewise.
5012 * sysdeps/s390/mempcpy.c: Likewise.
5013 * sysdeps/s390/memset.c: Likewise.
5014
12f0dcb8
SL
50152018-12-18 Stefan Liebler <stli@linux.ibm.com>
5016
5017 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5018 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5019
25654a8c
SL
50202018-12-18 Stefan Liebler <stli@linux.ibm.com>
5021
5022 * sysdeps/s390/multiarch/Makefile
5023 (sysdep_routines): Remove wmemcmp variants.
5024 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5025 * sysdeps/s390/multiarch/ifunc-impl-list.c
5026 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5027 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5028 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5029 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5030 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5031 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5032 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5033 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5034
d2a7436c
SL
50352018-12-18 Stefan Liebler <stli@linux.ibm.com>
5036
5037 * sysdeps/s390/multiarch/Makefile
5038 (sysdep_routines): Remove wmemset variants.
5039 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5040 * sysdeps/s390/multiarch/ifunc-impl-list.c
5041 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5042 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5043 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5044 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5045 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5046 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5047 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5048 * sysdeps/s390/ifunc-wmemset.h: New file.
5049
c62534ae
SL
50502018-12-18 Stefan Liebler <stli@linux.ibm.com>
5051
5052 * sysdeps/s390/multiarch/Makefile
5053 (sysdep_routines): Remove wmemchr variants.
5054 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5055 * sysdeps/s390/multiarch/ifunc-impl-list.c
5056 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5057 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5058 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5059 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5060 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5061 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5062 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5063 * sysdeps/s390/ifunc-wmemchr.h: New file.
5064
79b44cf6
SL
50652018-12-18 Stefan Liebler <stli@linux.ibm.com>
5066
5067 * sysdeps/s390/multiarch/Makefile
5068 (sysdep_routines): Remove wcscspn variants.
5069 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5070 * sysdeps/s390/multiarch/ifunc-impl-list.c
5071 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5072 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5073 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5074 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5075 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5076 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5077 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5078 * sysdeps/s390/ifunc-wcscspn.h: New file.
5079
8e87c1f6
SL
50802018-12-18 Stefan Liebler <stli@linux.ibm.com>
5081
5082 * sysdeps/s390/multiarch/Makefile
5083 (sysdep_routines): Remove wcspbrk variants.
5084 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5085 * sysdeps/s390/multiarch/ifunc-impl-list.c
5086 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5087 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5088 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5089 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5090 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5091 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5092 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5093 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5094
8507e831
SL
50952018-12-18 Stefan Liebler <stli@linux.ibm.com>
5096
5097 * sysdeps/s390/multiarch/Makefile
5098 (sysdep_routines): Remove wcsspn variants.
5099 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5100 * sysdeps/s390/multiarch/ifunc-impl-list.c
5101 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5102 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5103 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5104 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5105 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5106 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5107 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5108 * sysdeps/s390/ifunc-wcsspn.h: New file.
5109
4753713a
SL
51102018-12-18 Stefan Liebler <stli@linux.ibm.com>
5111
5112 * sysdeps/s390/multiarch/Makefile
5113 (sysdep_routines): Remove wcsrchr variants.
5114 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5115 * sysdeps/s390/multiarch/ifunc-impl-list.c
5116 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5117 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5118 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5119 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5120 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5121 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5122 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5123 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5124
c09c1b6f
SL
51252018-12-18 Stefan Liebler <stli@linux.ibm.com>
5126
5127 * sysdeps/s390/multiarch/Makefile
5128 (sysdep_routines): Remove wcschrnul variants.
5129 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5130 * sysdeps/s390/multiarch/ifunc-impl-list.c
5131 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5132 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5133 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5134 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5135 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5136 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5137 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5138 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5139
cf3ccc31
SL
51402018-12-18 Stefan Liebler <stli@linux.ibm.com>
5141
5142 * sysdeps/s390/multiarch/Makefile
5143 (sysdep_routines): Remove wcschr variants.
5144 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5145 * sysdeps/s390/multiarch/ifunc-impl-list.c
5146 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5147 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5148 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5149 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5150 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5151 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5152 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5153 * sysdeps/s390/ifunc-wcschr.h: New file.
5154
e9873e1d
SL
51552018-12-18 Stefan Liebler <stli@linux.ibm.com>
5156
5157 * sysdeps/s390/multiarch/Makefile
5158 (sysdep_routines): Remove wcsncmp variants.
5159 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5160 * sysdeps/s390/multiarch/ifunc-impl-list.c
5161 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5162 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5163 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5164 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5165 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5166 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5167 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5168 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5169
3459e23d
SL
51702018-12-18 Stefan Liebler <stli@linux.ibm.com>
5171
5172 * sysdeps/s390/multiarch/Makefile
5173 (sysdep_routines): Remove wcscmp variants.
5174 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5175 * sysdeps/s390/multiarch/ifunc-impl-list.c
5176 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5177 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5178 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5179 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5180 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5181 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5182 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5183 * sysdeps/s390/ifunc-wcscmp.h: New file.
5184
814a76e1
SL
51852018-12-18 Stefan Liebler <stli@linux.ibm.com>
5186
5187 * sysdeps/s390/multiarch/Makefile
5188 (sysdep_routines): Remove wcsncat variants.
5189 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5190 * sysdeps/s390/multiarch/ifunc-impl-list.c
5191 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5192 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5193 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5194 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5195 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5196 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5197 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5198 * sysdeps/s390/ifunc-wcsncat.h: New file.
5199
3389cae4
SL
52002018-12-18 Stefan Liebler <stli@linux.ibm.com>
5201
5202 * sysdeps/s390/multiarch/Makefile
5203 (sysdep_routines): Remove wcscat variants.
5204 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5205 * sysdeps/s390/multiarch/ifunc-impl-list.c
5206 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5207 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5208 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5209 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5210 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5211 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5212 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5213 * sysdeps/s390/ifunc-wcscat.h: New file.
5214
c3081bcb
SL
52152018-12-18 Stefan Liebler <stli@linux.ibm.com>
5216
5217 * sysdeps/s390/multiarch/Makefile
5218 (sysdep_routines): Remove wcpncpy variants.
5219 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5220 * sysdeps/s390/multiarch/ifunc-impl-list.c
5221 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5222 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5223 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5224 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5225 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5226 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5227 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5228 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5229
0966dd86
SL
52302018-12-18 Stefan Liebler <stli@linux.ibm.com>
5231
5232 * sysdeps/s390/multiarch/Makefile
5233 (sysdep_routines): Remove wcsncpy variants.
5234 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5235 * sysdeps/s390/multiarch/ifunc-impl-list.c
5236 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5237 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5238 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5239 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5240 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5241 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5242 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5243 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5244
0582e428
SL
52452018-12-18 Stefan Liebler <stli@linux.ibm.com>
5246
5247 * sysdeps/s390/multiarch/Makefile
5248 (sysdep_routines): Remove wcpcpy variants.
5249 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5250 * sysdeps/s390/multiarch/ifunc-impl-list.c
5251 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5252 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5253 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5254 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5255 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5256 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5257 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5258 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5259
804f2e5c
SL
52602018-12-18 Stefan Liebler <stli@linux.ibm.com>
5261
5262 * sysdeps/s390/multiarch/Makefile
5263 (sysdep_routines): Remove wcscpy variants.
5264 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5265 * sysdeps/s390/multiarch/ifunc-impl-list.c
5266 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5267 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5268 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5269 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5270 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5271 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5272 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5273 * sysdeps/s390/ifunc-wcscpy.h: New file.
5274
c7e7cd26
SL
52752018-12-18 Stefan Liebler <stli@linux.ibm.com>
5276
5277 * sysdeps/s390/multiarch/Makefile
5278 (sysdep_routines): Remove wcsnlen variants.
5279 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5280 * sysdeps/s390/multiarch/ifunc-impl-list.c
5281 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5282 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5283 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5284 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5285 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5286 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5287 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5288 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5289
2e02d0b7
SL
52902018-12-18 Stefan Liebler <stli@linux.ibm.com>
5291
5292 * sysdeps/s390/multiarch/Makefile
5293 (sysdep_routines): Remove wcslen variants.
5294 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5295 * sysdeps/s390/multiarch/ifunc-impl-list.c
5296 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5297 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5298 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5299 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5300 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5301 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5302 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5303 * sysdeps/s390/ifunc-wcslen.h: New file.
5304
89bfcbdf
SL
53052018-12-18 Stefan Liebler <stli@linux.ibm.com>
5306
5307 * sysdeps/s390/multiarch/Makefile
5308 (sysdep_routines): Remove memrchr variants.
5309 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5310 * sysdeps/s390/multiarch/ifunc-impl-list.c
5311 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5312 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5313 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5314 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5315 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5316 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5317 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5318 * sysdeps/s390/ifunc-memrchr.h: New file.
5319
196655ba
SL
53202018-12-18 Stefan Liebler <stli@linux.ibm.com>
5321
5322 * sysdeps/s390/multiarch/Makefile
5323 (sysdep_routines): Remove memccpy variants.
5324 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5325 * sysdeps/s390/multiarch/ifunc-impl-list.c
5326 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5327 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5328 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5329 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5330 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5331 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5332 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5333 * sysdeps/s390/ifunc-memccpy.h: New file.
5334
4c7b3cec
SL
53352018-12-18 Stefan Liebler <stli@linux.ibm.com>
5336
5337 * sysdeps/s390/multiarch/Makefile
5338 (sysdep_routines): Remove rawmemchr variants.
5339 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5340 * sysdeps/s390/multiarch/ifunc-impl-list.c
5341 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5342 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5343 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5344 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5345 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5346 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5347 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5348 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5349
581a051c
SL
53502018-12-18 Stefan Liebler <stli@linux.ibm.com>
5351
5352 * sysdeps/s390/multiarch/Makefile
5353 (sysdep_routines): Remove memchr variants.
5354 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5355 * sysdeps/s390/multiarch/ifunc-impl-list.c
5356 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5357 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5358 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5359 * sysdeps/s390/multiarch/memchr.c: Move to ...
5360 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5361 * sysdeps/s390/ifunc-memchr.h: New file.
5362 * sysdeps/s390/s390-64/memchr.S: Move to ...
5363 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5364 for 31/64bit and ifunc handling.
5365 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5366 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5367 * sysdeps/s390/s390-32/memchr.S: Likewise.
5368
5d2ec20a
SL
53692018-12-18 Stefan Liebler <stli@linux.ibm.com>
5370
5371 * sysdeps/s390/multiarch/Makefile
5372 (sysdep_routines): Remove strcspn variants.
5373 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5374 * sysdeps/s390/multiarch/ifunc-impl-list.c
5375 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5376 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5377 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5378 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5379 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5380 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5381 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5382 * sysdeps/s390/ifunc-strcspn.h: New file.
5383
572cca93
SL
53842018-12-18 Stefan Liebler <stli@linux.ibm.com>
5385
5386 * sysdeps/s390/multiarch/Makefile
5387 (sysdep_routines): Remove strpbrk variants.
5388 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5389 * sysdeps/s390/multiarch/ifunc-impl-list.c
5390 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5391 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5392 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5393 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5394 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5395 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5396 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5397 * sysdeps/s390/ifunc-strpbrk.h: New file.
5398
483fc569
SL
53992018-12-18 Stefan Liebler <stli@linux.ibm.com>
5400
5401 * sysdeps/s390/multiarch/Makefile
5402 (sysdep_routines): Remove strspn variants.
5403 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5404 * sysdeps/s390/multiarch/ifunc-impl-list.c
5405 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5406 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5407 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5408 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5409 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5410 * sysdeps/s390/multiarch/strspn.c: Move to ...
5411 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5412 * sysdeps/s390/ifunc-strspn.h: New file.
5413
26ea8760
SL
54142018-12-18 Stefan Liebler <stli@linux.ibm.com>
5415
5416 * sysdeps/s390/multiarch/Makefile
5417 (sysdep_routines): Remove strrchr variants.
5418 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5419 * sysdeps/s390/multiarch/ifunc-impl-list.c
5420 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5421 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5422 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5423 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5424 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5425 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5426 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5427 * sysdeps/s390/ifunc-strrchr.h: New file.
5428
a1361e65
SL
54292018-12-18 Stefan Liebler <stli@linux.ibm.com>
5430
5431 * sysdeps/s390/multiarch/Makefile
5432 (sysdep_routines): Remove strchrnul variants.
5433 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5434 * sysdeps/s390/multiarch/ifunc-impl-list.c
5435 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5436 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5437 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5438 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5439 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5440 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5441 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5442 * sysdeps/s390/ifunc-strchrnul.h: New file.
5443
32f12653
SL
54442018-12-18 Stefan Liebler <stli@linux.ibm.com>
5445
5446 * sysdeps/s390/multiarch/Makefile
5447 (sysdep_routines): Remove strchr variants.
5448 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5449 * sysdeps/s390/multiarch/ifunc-impl-list.c
5450 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5451 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5452 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5453 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5454 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5455 * sysdeps/s390/multiarch/strchr.c: Move to ...
5456 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5457 * sysdeps/s390/ifunc-strchr.h: New file.
5458
316b8842
SL
54592018-12-18 Stefan Liebler <stli@linux.ibm.com>
5460
5461 * sysdeps/s390/multiarch/Makefile
5462 (sysdep_routines): Remove strncmp variants.
5463 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5464 * sysdeps/s390/multiarch/ifunc-impl-list.c
5465 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5466 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5467 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5468 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5469 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5470 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5471 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5472 * sysdeps/s390/ifunc-strncmp.h: New file.
5473
cdab85fe
SL
54742018-12-18 Stefan Liebler <stli@linux.ibm.com>
5475
5476 * sysdeps/s390/multiarch/Makefile
5477 (sysdep_routines): Remove strcmp variants.
5478 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5479 * sysdeps/s390/multiarch/ifunc-impl-list.c
5480 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5481 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5482 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5483 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5484 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5485 * sysdeps/s390/ifunc-strcmp.h: New file.
5486 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5487 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5488 for 31/64bit and ifunc handling.
5489 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5490 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5491 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5492
b9353351
SL
54932018-12-18 Stefan Liebler <stli@linux.ibm.com>
5494
5495 * sysdeps/s390/multiarch/Makefile
5496 (sysdep_routines): Remove strncat variants.
5497 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5498 * sysdeps/s390/multiarch/ifunc-impl-list.c
5499 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5500 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5501 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5502 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5503 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5504 * sysdeps/s390/multiarch/strncat.c: Move to ...
5505 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5506 * sysdeps/s390/ifunc-strncat.h: New file.
5507
8e5a0afb
SL
55082018-12-18 Stefan Liebler <stli@linux.ibm.com>
5509
5510 * sysdeps/s390/multiarch/Makefile
5511 (sysdep_routines): Remove strcat variants.
5512 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5513 * sysdeps/s390/multiarch/ifunc-impl-list.c
5514 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5515 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5516 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5517 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5518 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5519 * sysdeps/s390/multiarch/strcat.c: Move to ...
5520 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5521 * sysdeps/s390/ifunc-strcat.h: New file.
5522
25218822
SL
55232018-12-18 Stefan Liebler <stli@linux.ibm.com>
5524
5525 * sysdeps/s390/multiarch/Makefile
5526 (sysdep_routines): Remove stpncpy variants.
5527 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5528 * sysdeps/s390/multiarch/ifunc-impl-list.c
5529 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5530 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5531 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5532 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5533 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5534 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5535 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5536 * sysdeps/s390/ifunc-stpncpy.h: New file.
5537
d1bdbf38
SL
55382018-12-18 Stefan Liebler <stli@linux.ibm.com>
5539
5540 * sysdeps/s390/multiarch/Makefile
5541 (sysdep_routines): Remove strncpy variants.
5542 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5543 * sysdeps/s390/multiarch/ifunc-impl-list.c
5544 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5545 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5546 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5547 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5548 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5549 * sysdeps/s390/ifunc-strncpy.h: New file.
5550 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5551 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5552 and adjust ifunc handling.
5553 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5554 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5555 and adjust ifunc handling.
5556 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5557 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5558
97044931
SL
55592018-12-18 Stefan Liebler <stli@linux.ibm.com>
5560
5561 * sysdeps/s390/multiarch/Makefile
5562 (sysdep_routines): Remove stpcpy variants.
5563 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5564 * sysdeps/s390/multiarch/ifunc-impl-list.c
5565 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5566 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5567 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5568 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5569 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5570 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5571 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5572 * sysdeps/s390/ifunc-stpcpy.h: New file.
5573
914a4e05
SL
55742018-12-18 Stefan Liebler <stli@linux.ibm.com>
5575
5576 * sysdeps/s390/multiarch/Makefile
5577 (sysdep_routines): Remove strcpy variants.
5578 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5579 * sysdeps/s390/multiarch/ifunc-impl-list.c
5580 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5581 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5582 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5583 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5584 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5585 * sysdeps/s390/ifunc-strcpy.h: New file.
5586 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5587 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5588 for 31/64bit and ifunc handling.
5589 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5590 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5591 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5592
de10e44d
SL
55932018-12-18 Stefan Liebler <stli@linux.ibm.com>
5594
5595 * sysdeps/s390/multiarch/Makefile
5596 (sysdep_routines): Remove strnlen variants.
5597 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5598 * sysdeps/s390/multiarch/ifunc-impl-list.c
5599 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5600 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5601 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5602 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5603 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5604 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5605 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5606 * sysdeps/s390/ifunc-strnlen.h: New file.
5607
ff3ca374
SL
56082018-12-18 Stefan Liebler <stli@linux.ibm.com>
5609
5610 * sysdeps/s390/multiarch/Makefile
5611 (sysdep_routines): Remove strlen variants.
5612 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5613 * sysdeps/s390/multiarch/ifunc-impl-list.c
5614 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5615 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5616 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5617 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5618 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5619 * sysdeps/s390/multiarch/strlen.c: Move to ...
5620 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5621 * sysdeps/s390/ifunc-strlen.h: New file.
5622
d2c4c403
SL
56232018-12-18 Stefan Liebler <stli@linux.ibm.com>
5624
5625 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5626 * sysdeps/s390/multiarch/ifunc-impl-list.c
5627 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5628 * sysdeps/s390/ifunc-memmem.h: New file.
5629 * sysdeps/s390/memmem.c: Likewise.
5630 * sysdeps/s390/memmem-c.c: Likewise.
5631 * sysdeps/s390/memmem-vx.c: Likewise.
5632
8c25dddd
SL
56332018-12-18 Stefan Liebler <stli@linux.ibm.com>
5634
5635 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5636 * sysdeps/s390/multiarch/ifunc-impl-list.c
5637 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5638 * sysdeps/s390/ifunc-strstr.h: New file.
5639 * sysdeps/s390/strstr.c: Likewise.
5640 * sysdeps/s390/strstr-c.c: Likewise.
5641 * sysdeps/s390/strstr-vx.c: Likewise.
5642
cdd927d9
SL
56432018-12-18 Stefan Liebler <stli@linux.ibm.com>
5644
5645 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5646 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5647 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5648 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5649 New defines.
5650 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5651 * sysdeps/s390/memmove-c.c: New file.
5652 * sysdeps/s390/memmove.c: Likewise.
5653 * sysdeps/s390/multiarch/ifunc-impl-list.c
5654 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5655
2ee1bc57
SL
56562018-12-18 Stefan Liebler <stli@linux.ibm.com>
5657
5658 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5659 * sysdeps/s390/configure.ac: Add check for z13 support.
5660 * sysdeps/s390/configure: Regenerated.
5661
d097d976
SL
56622018-12-18 Stefan Liebler <stli@linux.ibm.com>
5663
5664 * sysdeps/s390/memcopy.h: New file.
5665
e099aab0
SL
56662018-12-18 Stefan Liebler <stli@linux.ibm.com>
5667
5668 * sysdeps/s390/s390-32/bcopy.S: Remove.
5669 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5670
18eb862d
SL
56712018-12-18 Stefan Liebler <stli@linux.ibm.com>
5672
5673 * sysdeps/s390/ifunc-memcpy.h: New File.
5674 * sysdeps/s390/memcpy.S: Move to ...
5675 * sysdeps/s390/memcpy-z900.S ... here.
5676 Move implementations from memcpy-s390x.s to here.
5677 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5678 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5679 Remove memcpy/mempcpy variants.
5680 * sysdeps/s390/Makefile (sysdep_routines):
5681 Add memcpy/mempcpy variants.
5682 * sysdeps/s390/multiarch/ifunc-impl-list.c
5683 (__libc_ifunc_impl_list): Adjust ifunc variants for
5684 memcpy and mempcpy.
5685 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5686 to ...
5687 * sysdeps/s390/memcpy.c: ... here.
5688 Adjust ifunc variants for memcpy.
5689 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5690 * sysdeps/s390/mempcpy.c: ... here.
5691 Adjust ifunc variants for mempcpy.
5692 * sysdeps/s390/mempcpy.S: Delete file.
5693
df3eb8de
SL
56942018-12-18 Stefan Liebler <stli@linux.ibm.com>
5695
5696 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5697 * sysdeps/s390/memcpy.S: ... here.
5698 Adjust to be usable for 31/64bit.
5699 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5700 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5701 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5702 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5703 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5704 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5705 Adjust to be usable for 31/64bit.
5706 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5707 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5708 * sysdeps/s390/multiarch/memcpy.c: ... here.
5709 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5710
b7e024a8
SL
57112018-12-18 Stefan Liebler <stli@linux.ibm.com>
5712
5713 * sysdeps/s390/ifunc-memcmp.h: New File.
5714 * sysdeps/s390/memcmp.S: Move to ...
5715 * sysdeps/s390/memcmp-z900.S ... here.
5716 Move implementations from memcmp-s390x.s to here.
5717 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5718 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5719 Remove memcmp variants.
5720 * sysdeps/s390/Makefile (sysdep_routines):
5721 Add memcmp variants.
5722 * sysdeps/s390/multiarch/ifunc-impl-list.c
5723 (__libc_ifunc_impl_list): Adjust ifunc variants for
5724 memcmp.
5725 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5726 to ...
5727 * sysdeps/s390/memcmp.c: ... here.
5728 Adjust ifunc variants for memcmp.
5729
6c6b8c74
SL
57302018-12-18 Stefan Liebler <stli@linux.ibm.com>
5731
5732 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5733 * sysdeps/s390/memcmp.S: ... here.
5734 Adjust to be usable for 31/64bit.
5735 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5736 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5737 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5738 Remove memcmp.
5739 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5740 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5741 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5742 Adjust to be usable for 31/64bit.
5743 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5744 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5745 * sysdeps/s390/multiarch/memcmp.c: ... here.
5746 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5747
07be3928
SL
57482018-12-18 Stefan Liebler <stli@linux.ibm.com>
5749
5750 * sysdeps/s390/s390-32/bzero.S: Delete file.
5751 * sysdeps/s390/s390-64/bzero.S: Likewise.
5752 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5753 * sysdeps/s390/bzero.c: New file.
5754 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5755 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5756 * sysdeps/s390/multiarch/ifunc-impl-list.c
5757 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5758
712a254a
SL
57592018-12-18 Stefan Liebler <stli@linux.ibm.com>
5760
5761 * sysdeps/s390/ifunc-memset.h: New File.
5762 * sysdeps/s390/memset.S: Move to ...
5763 * sysdeps/s390/memset-z900.S ... here.
5764 Move implementations from memset-s390x.s to here.
5765 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5766 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5767 Remove memset variants.
5768 * sysdeps/s390/Makefile (sysdep_routines):
5769 Add memset variants.
5770 * sysdeps/s390/multiarch/ifunc-impl-list.c
5771 (__libc_ifunc_impl_list): Adjust ifunc variants for
5772 memset.
5773 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5774 to ...
5775 * sysdeps/s390/memset.c: ... here.
5776 Adjust ifunc variants for memset.
5777
5f1743d1
SL
57782018-12-18 Stefan Liebler <stli@linux.ibm.com>
5779
5780 * sysdeps/s390/s390-64/memset.S: Move to ...
5781 * sysdeps/s390/memset.S: ... here.
5782 Adjust to be usable for 31/64bit.
5783 * sysdeps/s390/s390-32/memset.S: Delete File.
5784 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5785 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5786 Remove memset.
5787 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5788 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5789 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5790 Adjust to be usable for 31/64bit.
5791 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5792 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5793 * sysdeps/s390/multiarch/memset.c: ... here.
5794 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5795
e8023f26
SL
57962018-12-18 Stefan Liebler <stli@linux.ibm.com>
5797
5798 * sysdeps/s390/multiarch/ifunc-resolve.h
5799 (s390_libc_ifunc_init, s390_libc_ifunc,
5800 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5801
b8686c0d
SL
58022018-12-18 Stefan Liebler <stli@linux.ibm.com>
5803
5804 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5805 * sysdeps/s390/configure.ac: Add check for z10 support.
5806 * sysdeps/s390/configure: Regenerated.
5807
cd815050
L
58082018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5809
5810 * sysdeps/i386/atomic-machine.h: Merged with ...
5811 * sysdeps/x86_64/atomic-machine.h: To ...
5812 * sysdeps/x86/atomic-machine.h: This. New file.
5813
053c52b1
FW
58142018-12-18 Florian Weimer <fweimer@redhat.com>
5815
5816 Rewrite locale/gen-translit.pl in Python.
5817 * locale/Makefile (generated): Add C-translit.h.
5818 (before-compile): Add $(objpfx)C-translit.h.
5819 (C-translit.h): Move to $(objpfx). Create target directory.
5820 Build using Python script.
5821 * locale/gen-translit.py: New file.
5822 * locale/gen-translit.pl: Remove file.
5823 * locale/C-translit.h.in: Change comment character to '#' for
5824 easier parsing without a C preprocessor.
5825 * locale/C-translit.h: Remove generated file.
5826 * manual/install.texi (Tools for Compilation): Do not mention
5827 C-translit.h.
5828 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5829 Remove locale/C-translit.h.
5830 * scripts/update-copyrights: Likewise.
5831 * INSTALL: Regenerate.
5832
40e6c1ec
FW
58332018-12-18 Florian Weimer <fweimer@redhat.com>
5834
5835 [BZ #23995]
5836 * localedata/locales/bi_VU: Remove executable bit from file.
5837
6b5c8607 58382018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6e15f3e2
AA
5839
5840 * include/time.h
5841 (__localtime64): Add.
5842 * manual/maint.texi: Document Y2038 symbol handling.
5843 * time/localtime.c
5844 (__localtime64): Add.
bfb79db4 5845 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6e15f3e2 5846
df648905
JM
58472018-12-17 Joseph Myers <joseph@codesourcery.com>
5848
551e81d9
JM
5849 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5850 Do not clobber r12.
5851
df648905
JM
5852 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5853 to allow extra macros from first or second sources.
5854 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5855 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5856 (tests-special): Add $(objpfx)tst-mman-consts.out.
5857 ($(objpfx)tst-mman-consts.out): New makefile target.
5858
6bbfc5c0
MH
58592018-12-17 Mao Han <han_mao@c-sky.com>
5860
5861 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5862 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5863 without stat64 system call support.
5864 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5865 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5866 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5867 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5868 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5869 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5870 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5871 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5872 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5873 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5874 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5875
ef202e53
PE
58762018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5877
5878 regex: fix storage-exhaustion error
5879 [BZ #18040]
5880 * posix/regexec.c (get_subexp):
5881 Do not continue if storage is exhausted.
5882
077caf61
AG
58832018-12-15 Assaf Gordon <assafgordon@gmail.com>
5884
5885 regex: fix heap-use-after-free error
5886 [BZ #18040]
5887 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5888 https://debbugs.gnu.org/32592
5889 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5890 call extend_buffers which reallocates the re_string_t internal buffer.
5891 Local variable 'buf' was not updated in such case, resulting in
5892 use-after-free.
5893 * posix/regexec.c (get_subexp): Update 'buf' after call to
5894 get_subexp_sub.
5895
0c1719e6
FW
58962018-12-15 Florian Weimer <fweimer@redhat.com>
5897
5898 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5899 (minimum_stride_size): Use it.
5900 (support_blob_repeat_allocate): Likewise.
5901
033a2c0a
JM
59022018-12-14 Joseph Myers <joseph@codesourcery.com>
5903
5904 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5905 definition.
5906 (acosh): Likewise.
5907 (atanh): Likewise.
5908
e361dc04
FW
59092018-12-14 Florian Weimer <fweimer@redhat.com>
5910
5911 * manual/process.texi (Process Creation Concepts): Remove
5912 documentation of process (ID) lifetime. List more process
5913 creation functions. Reference Process Identification section.
5914 (Process Identification): Add information about process ID
5915 lifetime. Describe Linux thread/task IDs.
5916 * manual/signal.texi (Signaling Another Process): Mention that the
5917 signal is always sent to the process.
5918
bd51ff5e
GG
59192018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5920
5921 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5922 and tst-ldbl-efgcvt.
5923 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5924 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5925 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5926 (fcvt_tests, output_error, output_r_error, do_test): Use the
5927 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5928 select the type of floating-point variables and arguments; to
5929 produce extra tests for double and conversion specifiers for
5930 printf; and to set the names of called functions.
5931 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5932 in tst-efgcvt-template.c.
5933 * misc/tst-ldbl-efgcvt.c: Likewise.
5934
268bb71e
SL
59352018-12-14 Stefan Liebler <stli@linux.ibm.com>
5936
5937 * nss/Makefile (tst-nss-test3.out): New rule.
5938
db6df070
JM
59392018-12-13 Joseph Myers <joseph@codesourcery.com>
5940
5941 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5942 clobber sp.
5943
ade8b817
CD
59442018-12-13 fanjinke <fanjinke@hygon.cn>
5945
5946 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5947 "HygonGenuine".
5948
3d265911
AS
59492018-12-13 Andreas Schwab <schwab@suse.de>
5950
f21e8f8c 5951 [BZ #23861]
3d265911 5952 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
f21e8f8c
AS
5953 (__pthread_rwlock_rdlock_full): Update expected value for
5954 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5955 * nptl/tst-rwlock-pwn.c: New file.
5956 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3d265911 5957
bf8ae8c0
JM
59582018-12-12 Joseph Myers <joseph@codesourcery.com>
5959
5960 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5961 definition.
5962
de099757
LS
59632018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5964
5965 * benchtests/scripts/compare_bench.py (do_compare): write to
5966 stderr in casestat is not present.
5967 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5968 stderr in case timings field is not present. Also string showing
5969 the output filename goes into the stderr.
5970
1990185f
LS
59712018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5972
5973 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5974 and ZeroDivisorError exceptions.
5975 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5976 argument to loop through user provided statistics.
5977 * benchtests/scripts/compare_bench.py (main): Include the --stats
5978 argument.
5979
587426d4
LS
59802018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5981
5982 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5983 instead of return.
5984
46703efa
FW
59852018-12-12 Florian Weimer <fweimer@redhat.com>
5986
5987 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5988 clause to copyright header.
5989
1d880d4a
TMQMF
59902018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5991
5992 [BZ #23614]
5993 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5994 registers saved in the stack frame.
5995 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5996 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5997
1a502f52
GG
59982018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5999
6000 * include/bits/monetary-ldbl.h: New file.
6001 * include/bits/printf-ldbl.h: Likewise.
6002 * include/bits/stdio-ldbl.h: Likewise.
6003 * include/bits/stdlib-ldbl.h: Likewise.
6004 * include/bits/syslog-ldbl.h: Likewise.
6005 * include/bits/wchar-ldbl.h: Likewise.
6006
df682d1d
GG
60072018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6008
6009 * libio/libio.h: Remove redirection for _IO_vfprintf.
6010
c2c082c1
AS
60112018-12-11 Andreas Schwab <schwab@suse.de>
6012
6013 * Makerules: Remove all references to abilist-pattern.
6014 (update-all-abi): Simplify find expression.
6015
505b5b29
SN
60162018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6017
6018 [BZ #23961]
6019 * math/auto-libm-test-in: Add new test case.
6020 * math/auto-libm-test-out-pow: Regenerated.
6021 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6022
304c61a2
DD
60232018-12-10 DJ Delorie <dj@redhat.com>
6024
6025 [BZ #23948]
6026 * support/test-container.c: Move postclean step to before we
6027 change namespaces.
6028
a8110b72
JM
60292018-12-10 Joseph Myers <joseph@codesourcery.com>
6030
cb7be159
JM
6031 * scripts/gen-as-const.py (main): Handle --python option.
6032 * scripts/gen-py-const.awk: Remove.
6033 * Makerules (py-const-script): Use gen-as-const.py.
6034 ($(py-const)): Likewise.
6035 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6036 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6037 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6038 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6039 ~PTHREAD_MUTEX_NO_ELISION_NP.
6040 * manual/README.pretty-printers: Update reference to
6041 gen-py-const.awk.
6042
a8110b72
JM
6043 * scripts/glibcextract.py: New file.
6044 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6045 or tempfile. Import glibcexctract.
6046 (compute_c_consts): Remove. Moved to glibcextract.py.
6047 (gen_test): Update reference to compute_c_consts.
6048 (main): Likewise.
6049 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6050 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6051 * sysdeps/unix/sysv/linux/Makefile
6052 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6053 Redirect stderr as well as stdout.
6054
f9ba9eb8
RÁE
60552018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6056
6057 [BZ #19767]
6058 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
b39d961c
TS
6059 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6060 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
f9ba9eb8 6061 ALWAYS_USE_VSYSCALL.
b39d961c 6062 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
f9ba9eb8
RÁE
6063 ALWAYS_USE_VSYSCALL.
6064 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6065 ALWAYS_USE_VSYSCALL.
6066
8d20a2f4
FW
60672018-12-10 Florian Weimer <fweimer@redhat.com>
6068
6069 [BZ #23972]
6070 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6071 offset instead of count for clarity. Fix typo in comment.
6072 (__old_getdents64): Keep track of previous offset. Use it to call
6073 handle_overflow.
6074 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6075 that d_off is never zero.
6076
80472e2f
AS
60772018-12-10 Andreas Schwab <schwab@suse.de>
6078
6079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6080 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6082 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6083 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6084
0afcb29d
JM
60852018-12-10 Joseph Myers <joseph@codesourcery.com>
6086
6087 * timezone/private.h: Update from tzcode 2018g.
6088 * timezone/tzfile.h: Likewise.
6089 * timezone/tzselect.ksh: Likewise.
6090 * timezone/zdump.c: Likewise.
6091 * timezone/zic.c: Likewise.
6092
b93f4052
PP
60932018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6094
6095 [BZ #23490]
6096 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6097 (do_test): Adjust buffer size and fix format.
6098
7c9a7c68
DD
60992018-12-07 DJ Delorie <dj@redhat.com>
6100
6101 [BZ #23907]
6102 * malloc/tst-tcfree3.c: New.
6103 * malloc/Makefile: Add it.
6104
37caec3a
L
61052018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6106
6107 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6108
10446f5d
GG
61092018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6110
6111 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6112 used as a mask for the mode argument of __vfscanf_internal and
6113 __vfwscanf_internal.
6114 * stdio-common/vfscanf-internal.c
6115 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6116 (__strtof128_internal): Define to __wcstof128_internal.
6117 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6118 __strtof128_internal or __wcstof128_internal when the format of
6119 long double is the same as _Float128.
6120
45f33aac
ST
61212018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6122
6123 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6124 * posix/confstr.c (confstr): Rename to __confstr.
6125 (__confstr): Add hidden def.
6126 (confstr): Add weak alias for __confstr.
6127 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6128 confstr.
6129
a092ca94
L
61302018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6131
6132 * NEWS: Mention getcpu.
6133 * include/sched.h (__getcpu): New libc_hidden_proto.
6134 * manual/resource.texi: Document getcpu.
6135 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6136 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6137 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6138 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6139 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6140 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6141 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6142 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6143 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6144 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6145 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6146 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6147 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6148 Likewise.
6149 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6150 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6151 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6153 Likewise.
6154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6155 Likewise.
6156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6157 Likewise.
6158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6159 Likewise.
6160 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6161 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6162 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6163 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6164 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6165 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6166 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6167 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6168 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6169 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6170 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6171 Also check getcpu.
6172
7c857b6f
ST
61732018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6174
6175 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6176 functions.
6177 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6178
3a3fb755
FW
61792018-12-07 Florian Weimer <fweimer@redhat.com>
6180
6181 [BZ #17405]
6182 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6183 * posix/Versions (GLIBC_2.29): Export
6184 posix_spawn_file_actions_addfchdir_np.
6185 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6186 * posix/spawn_faction_destroy.c
6187 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6188 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6189 and the field action.fchdir_action.
6190 * posix/tst-spawn-chdir.c (add_chdir): New function.
6191 (do_test): Add do_fchdir loop. Call add_chdir.
6192 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6193 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6194 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6195 posix_spawn_file_actions_addfchdir_np.
6196 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6197 Likewise.
6198 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6199 Likewise.
6200 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6201 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6202 Likewise.
6203 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6204 Likewise.
6205 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6206 Likewise.
6207 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6208 Likewise.
6209 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6210 Likewise.
6211 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6212 Likewise.
6213 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6214 (GLIBC_2.29): Likewise.
6215 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6216 (GLIBC_2.29): Likewise.
6217 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6218 (GLIBC_2.29): Likewise.
6219 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6220 (GLIBC_2.29): Likewise.
6221 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6222 Likewise.
6223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6224 (GLIBC_2.29): Likewise.
6225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6226 (GLIBC_2.29): Likewise.
6227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6228 (GLIBC_2.29): Likewise.
6229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6230 (GLIBC_2.29): Likewise.
6231 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6232 Likewise.
6233 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6234 Likewise.
6235 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6236 Likewise.
6237 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6238 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6239 Likewise.
6240 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6241 Likewise.
6242 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6243 Likewise.
6244 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6245 Likewise.
6246
c37cd439
JM
62472018-12-06 Joseph Myers <joseph@codesourcery.com>
6248
6249 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6250 trailing whitespace removed.
6251 * scripts/config.guess: Update to version 2018-11-28.
6252 * scripts/config.sub: Update to version 2018-11-28.
6253 * scripts/install-sh: Update to version 2018-03-11.20.
6254 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6255 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6256
899478c2
FW
62572018-12-07 Florian Weimer <fweimer@redhat.com>
6258
6259 [BZ #23927]
6260 CVE-2018-19591
6261 * inet/tst-if_index-long.c: New file.
6262 * inet/Makefile (tests): Add tst-if_index-long.
6263
f255336a
FW
62642018-12-07 Florian Weimer <fweimer@redhat.com>
6265
6266 * support/check.h (support_record_failure_is_failed): Declare.
6267 * support/descriptors.h: New file.
6268 * support/support_descriptors.c: Likewise.
6269 * support/tst-support_descriptors.c: Likewise.
6270 * support/support_record_failure.c
6271 (support_record_failure_is_failed): New function.
6272 * support/Makefile (libsupport-routines): Add support_descriptors.
6273 (tests): Add tst-support_descriptors.
6274
35caceb1
ZW
62752018-12-05 Zack Weinberg <zackw@panix.com>
6276 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6277
6278 * stdio-common/vfprintf-internal.c
6279 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6280 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6281 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6282 and __no_long_double.
6283 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6284 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6285 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6286 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6287 and __nldbl_*syslog* functions.
6288 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6289 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6290 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6291 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6292 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6293 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6294 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6295 (__nldbl_vwprintf, __nldbl_wprintf):
6296 Directly call the appropriate __v*printf_internal routine, passing
6297 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6298 variable names.
6299 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6300 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6301 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6302 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6303 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6304 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6305 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6306 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6307 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6308 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6309 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6310 (__nldbl_syslog, __nldbl_vsyslog):
6311 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6312 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6313 appropriate.
6314 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6315 appropriate.
6316
4e2f43f8
ZW
63172018-12-05 Zack Weinberg <zackw@panix.com>
6318 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6319
6320 [BZ #11319]
6321 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6322 Moved here from debug/vsprintf_chk.c.
6323 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6324 and completion logic for the strfile to match exactly what
6325 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6326 _IO_str_init_static_internal instead of maxlen-1.
6327 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6328 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6329 __vsprintf_internal.
6330
6331 * debug/vsprintf_chk.c (__vsprintf_chk)
6332 * debug/sprintf_chk.c (__sprintf_chk):
6333 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6334 'flags' argument is positive, and slen as maxlen. No need to lock
6335 the FILE and/or construct a temporary FILE. Minimize and normalize
6336 header inclusions and variable names. Do not libc_hidden_def anything.
6337
6338 * debug/asprintf_chk.c (__asprintf_chk)
6339 * debug/dprintf_chk.c (__dprintf_chk)
6340 * debug/fprintf_chk.c (__fprintf_chk)
6341 * debug/fwprintf_chk.c (__fwprintf_chk)
6342 * debug/printf_chk.c (__printf_chk)
6343 * debug/snprintf_chk.c (__snprintf_chk)
6344 * debug/swprintf_chk.c (__swprintf_chk)
6345 * debug/vasprintf_chk.c (__vasprintf_chk)
6346 * debug/vdprintf_chk.c (__vdprintf_chk)
6347 * debug/vfprintf_chk.c (__vfprintf_chk)
6348 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6349 * debug/vprintf_chk.c (__vprintf_chk)
6350 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6351 * debug/vswprintf_chk.c (__vswprintf_chk)
6352 * debug/vwprintf_chk.c (__vwprintf_chk)
6353 * debug/wprintf_chk.c (__wprintf_chk):
6354 Directly call the corresponding vxxprintf_internal function, passing
6355 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6356 the FILE and/or construct a temporary FILE. Minimize and normalize
6357 header inclusions and variable names. Do not libc_hidden_def anything.
6358
6359 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6360 __obstack_vprintf_internal.
6361 (__obstack_vprintf_chk): Convert into a wrapper that calls
6362 __obstack_vprintf_internal (these two functions already had the
6363 same code) and move to new file...
6364 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6365 file.
6366 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6367 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6368 * debug/Makefile (routines): Add vobprintf_chk.
6369
6370 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6371 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6372 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6373 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6374 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6375 (__nldbl___obstack_vfprintf_chk):
6376 Directly call the corresponding vxxprintf_internal function,
6377 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6378 duplicate comparison of slen with 0 or maxlen from the corresponding
6379 non-__nldbl function.
6380
6381 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6382 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6383 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6384 Remove libc_hidden_proto.
6385
6386 * stdio-common/vfprintf-internal.c
6387 (__vfprintf_internal, __vfwprintf_internal):
6388 Do not check _IO_FLAGS2_FORTIFY.
6389 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6390 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6391 a comment explaining why it has the maxlen argument.
6392 (_IO_acquire_lock_clear_flags2_fct): Remove.
6393 (_IO_acquire_lock_clear_flags2): Remove.
6394 (_IO_release_lock): Remove conditional statement which will
6395 now never execute.
6396 (_IO_acquire_lock): Remove variable which is now unused.
6397 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6398 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6399
6400 * stdio-common/Makefile (tests): Add tst-bz11319 and
6401 tst-bz11319-fortify2.
6402 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6403 * stdio-common/tst-bz11319-fortify2.c: New file.
6404 * stdio-common/tst-bz11319.c: Likewise.
6405
124fc732
ZW
64062018-12-05 Zack Weinberg <zackw@panix.com>
6407 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6408
6409 * misc/syslog.c: Include libioP.h, not iolibio.h.
6410 (__vsyslog_internal): New function with the former body of
6411 __vsyslog_chk; takes mode_flags argument same as
6412 __v*printf_internal. Call __vfprintf_internal directly.
6413
6414 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6415 Remove libc_hidden_def.
6416 (__syslog, __syslog_chk): Use __vsyslog_internal.
6417 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6418
6419 * include/sys/syslog.h: Add multiple inclusion guard.
6420 Add prototype for __vsyslog_internal.
6421 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6422
6423 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6424 Use __vsyslog_internal.
6425
698fb75b
ZW
64262018-12-05 Zack Weinberg <zackw@panix.com>
6427 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6428
6429 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6430 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6431 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6432 New functions.
6433 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6434 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6435
6436 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6437 Include wctype.h here if COMPILE_WPRINTF is defined.
6438 Define __vfprintf_internal or __vfwprintf_internal, depending
6439 on COMPILE_WPRINTF.
6440 Temporarily, on entry to this function, update mode_flags
6441 according to the environmental settings corresponding to
6442 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6443 Throughout, check mode_flags instead of __ldbl_is_dbl and
6444 _IO_FLAGS2_FORTIFY on the destination FILE.
6445 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6446 Include vfprintf-internal.c. Don't include wctype.h.
6447 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6448 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6449 and vfprintf.
6450 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6451 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6452 and vfwprintf.
6453 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6454
6455 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6456 and add mode_flags argument; use __vfprintf_internal.
6457 (__vdprintf): New function. Alias vdprintf to this.
6458 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6459 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6460 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6461 (__obstack_printf): Use __obstack_printf_internal.
6462 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6463 public aliases __vsnprintf and vsnprintf.
6464 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6465 called internally.
6466 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6467 public aliases _IO_vsprintf and vsprintf.
6468 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6469 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6470 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6471 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6472 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6473
6474 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6475 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6476 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6477 * stdio-common/printf.c: Use __vfprintf_internal.
6478
6479 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6480 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6481 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6482
6483 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6484 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6485 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6486 __vfwprintf_internal.
6487
6488 * libio/libio.h: Remove libc_hidden_proto and declaration for
6489 _IO_vfprintf.
6490 Remove declaration of _IO_vfwprintf.
6491 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6492 _IO_vsprintf.
6493 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6494 _IO_obstack_printf.
6495 * include/stdio.h: Add prototype for __vasprintf.
6496 (__vsnprintf): Remove declaration, because there are no more
6497 internal calls.
6498 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6499 declaration, because there are no more internal calls.
6500
6501 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6502 __vsnprintf_internal, instead of _IO_vsnprintf.
6503 * argp/argp-help.c (__argp_error, __argp_failure): Use
6504 __vasprintf_internal, instead of _IO_vasprintf.
6505 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6506 redefine, because there are no more internal calls.
6507
d91798b3
ZW
65082018-12-05 Zack Weinberg <zackw@panix.com>
6509 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6510
6511 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6512 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6513 Include libio/strfile.h instead of libioP.h.
6514 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6515 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6516 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6517 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6518 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6519 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6520 necessary. Do not set __no_long_double. Normalize variable names.
6521 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6522 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6523 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6524 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6525 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6526 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6527 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6528 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6529 Do not set __no_long_double. Normalize variable names.
6530
b87eb3f8
ZW
65312018-12-05 Zack Weinberg <zackw@panix.com>
6532 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6533
6534 * stdio-common/isoc99_scanf.c
6535 * stdio-common/isoc99_fscanf.c
6536 * stdio-common/isoc99_sscanf.c
6537 * stdio-common/isoc99_vscanf.c
6538 * stdio-common/isoc99_vfscanf.c
6539 * stdio-common/isoc99_vsscanf.c
6540 * wcsmbs/isoc99_wscanf.c
6541 * wcsmbs/isoc99_fwscanf.c
6542 * wcsmbs/isoc99_swscanf.c
6543 * wcsmbs/isoc99_vwscanf.c
6544 * wcsmbs/isoc99_vfwscanf.c
6545 * wcsmbs/isoc99_vswscanf.c:
6546 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6547 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6548 No need to lock and unlock the FILE passed to that function.
6549
6550 * stdio-common/vfscanf-internal.c
6551 (__vfscanf_internal, __vfwscanf_internal):
6552 Don't look at _IO_FLAGS2_SCANF_STD.
6553 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6554 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6555 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6556
349718d4
ZW
65572018-12-05 Zack Weinberg <zackw@panix.com>
6558 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6559
6560 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6561 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6562 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6563 * libio/strfile.h: Add multiple inclusion guard.
6564 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6565
6566 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6567 consistency with the other version of this file.
6568 (ldbl_compat_symbol): New macro.
6569 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6570 New macro.
6571
6572 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6573 Define __vfscanf_internal or __vfwscanf_internal, depending on
6574 COMPILE_WSCANF; don't define any other public symbols.
6575 Remove errval and code to set errp.
6576 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6577 as the mode_flags argument.
6578 (encode_error, conv_error, input_error): Don't set errval.
6579 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6580 Include vfscanf-internal.c.
6581 * stdio-common/vfscanf.c: New file defining the public entry
6582 point vfscanf, which calls __vfscanf_internal.
6583 * stdio-common/vfwscanf.c: New file defining the public entry
6584 point vfwscanf, which calls __vfwscanf_internal.
6585
6586 * stdio-common/iovfscanf.c: New file.
6587 * stdio-common/iovfwscanf.c: Likewise.
6588
6589 * stdio-common/Makefile (routines): Add vfscanf-internal,
6590 vfwscanf-internal, iovfscanf, iovfwscanf.
6591 * stdio-common/Versions: Mention GLIBC_2.29, so that
6592 it can be used in SHLIB_COMPAT expressions.
6593 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6594 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6595 Call __vfscanf_internal, instead of _IO_vfscanf.
6596 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6597 _IO_vfscanf.
6598 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6599 _IO_vfwscanf.
6600
6601 * libio/iovsscanf.c: Clean up includes, when possible. Use
6602 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6603 __vfscanf_internal or __vfwscanf_internal directly.
6604 * libio/iovswscanf.c: Likewise.
6605 * libio/swscanf.c: Likewise.
6606 * libio/vscanf.c: Likewise.
6607 * libio/vwscanf.c: Likewise.
6608 * libio/wscanf.c: Likewise.
6609 * stdio-common/isoc99_fscanf.c: Likewise.
6610 * stdio-common/isoc99_scanf.c: Likewise.
6611 * stdio-common/isoc99_sscanf.c: Likewise.
6612 * stdio-common/isoc99_vfscanf.c: Likewise.
6613 * stdio-common/isoc99_vscanf.c: Likewise.
6614 * stdio-common/isoc99_vsscanf.c: Likewise.
6615 * stdio-common/scanf.c: Likewise.
6616 * stdio-common/sscanf.c: Likewise.
6617 * wcsmbs/isoc99_fwscanf.c: Likewise.
6618 * wcsmbs/isoc99_swscanf.c: Likewise.
6619 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6620 * wcsmbs/isoc99_vswscanf.c: Likewise.
6621 * wcsmbs/isoc99_vwscanf.c: Likewise.
6622 * wcsmbs/isoc99_wscanf.c: Likewise.
6623
6b5c8607 66242018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
72b8692d
AA
6625
6626 * include/time.h
6627 (__tz_compute): Replace time_t with __time64_t.
6628 (__tz_convert): Replace time_t* with __time64_t.
6629 (__offtime): Replace time_t* with __time64_t.
6630 * time/gmtime.c
6631 (__gmtime_r): Adjust call to __tz_convert.
6632 (gmtime): Likewise.
6633 * time/localtime.c
6634 (__localtime_r): Likewise.
6635 (localtime): Likewise.
6636 * time/offtime.c: Replace time_t with __time64_t.
6637 * time/tzset.c: Likewise.
6638
bd598da9
JM
66392018-12-04 Joseph Myers <joseph@codesourcery.com>
6640
6641 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6642 dynamic linker unless [$(run-built-tests) = yes].
6643
b2e93de0
DD
66442018-12-03 DJ Delorie <dj@delorie.com>
6645
6646 * support/test-container.c (check_for_unshare_hints): New.
6647 (main): Call it if unshare fails. Add support for "su" scriptlet
6648 command.
6649
477a02f6
JM
66502018-12-03 Joseph Myers <joseph@codesourcery.com>
6651
6652 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6653 'START' to indicate that start text should be output.
6654 (gen_test): Likewise.
6655 (main): Generate 'START' for first symbol or '--' line, or at end
6656 of input if not previously generated.
6657
6af956e5
RÁE
66582018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6659
6660 [BZ #19767]
6661 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6662 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6663 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6664 ALWAYS_USE_VSYSCALL.
6665
f5ec0ea9
AZ
66662018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6667
6668 [BZ #23913]
6669 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6670 new_argv by one.
6671
8cebd4ff
CD
66722018-12-03 Carlos O'Donell <carlos@redhat.com>
6673
6674 [BZ #23923]
6675 * locale/programs/localedef.c: Declare boolean hard_links default true.
6676 (options): Add --no-hard-links option.
6677 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6678 * locale/programs/localedef.h: Declare prototype for hard_links.
6679 * locale/programs/locfile.c (write_locale_data): Don't use hard
6680 links if hard_links is false.
6681
c22e4c2a
L
66822018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6685 cpu_features_basic.
6686 (__cache_sysconf): Likewise.
6687 (init_cacheinfo): Likewise.
6688 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6689 populate COMMON_CPUID_INDEX_80000007 and
6690 COMMON_CPUID_INDEX_80000008.
6691 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6692 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6693 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6694 (init_cpu_features): Use _Static_assert on
6695 index_arch_Fast_Unaligned_Load.
6696 __get_cpuid_registers and __get_arch_feature. Updated for
6697 cpu_features_basic. Set stepping in cpu_features.
6698 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6699 (FEATURE_INDEX_2): New.
6700 (FEATURE_INDEX_MAX): Changed to enum.
6701 (COMMON_CPUID_INDEX_D_ECX_1): New.
6702 (COMMON_CPUID_INDEX_80000007): Likewise.
6703 (COMMON_CPUID_INDEX_80000008): Likewise.
6704 (cpuid_registers): Likewise.
6705 (cpu_features_basic): Likewise.
6706 (CPU_FEATURE_USABLE): Likewise.
6707 (bit_arch_XXX_Usable): Likewise.
6708 (cpu_features): Use cpuid_registers and cpu_features_basic.
6709 (bit_arch_XXX): Reweritten.
6710 (bit_cpu_XXX): Likewise.
6711 (index_cpu_XXX): Likewise.
6712 (reg_XXX): Likewise.
6713 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6714 <support/check.h>.
6715 (CHECK_CPU_FEATURE): New.
6716 (CHECK_CPU_FEATURE_USABLE): Likewise.
6717 (cpu_kinds): Likewise.
6718 (do_test): Print vendor, family, model and stepping. Check
6719 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6720 (TEST_FUNCTION): Removed.
6721 Include <support/test-driver.c> instead of
6722 "../../test-skeleton.c".
6723 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6724 Check POPCNT instead of POPCOUNT.
6725 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6726
7b36d26b
ST
67272018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6728
6729 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6730 there is no element in `consts'.
6731
02cd5c1a
FW
67322018-12-01 Florian Weimer <fweimer@redhat.com>
6733
6734 * support/support_capture_subprocess.c
6735 (support_capture_subprocess): Check that pipe descriptors have
6736 expected values. Close original pipe descriptors in subprocess.
6737
fc493bc9
ST
67382018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6739
6740 [BZ #23032]
6741 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6742 attr with __pthread_default_barrierattr.
6743 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6744 attr with __pthread_default_condattr.
6745 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6746 attr with __pthread_default_mutexattr.
6747 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6748 attr with __pthread_default_rwlockattr.
6749
6310e6be
KW
67502018-12-01 Kemi Wang <kemi.wang@intel.com>
6751
6752 * manual/tunables.texi (POSIX Thread Tunables): New node.
6753 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6754 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6755 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6756 __pthread_tunables_init.
6757 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6758 (max_adaptive_count): Define.
6759 * nptl/pthread_mutex_conf.c: New file.
6760 * nptl/pthread_mutex_conf.h: New file.
6761 * sysdeps/generic/adaptive_spin_count.h: New file.
6762 * sysdeps/nptl/dl-tunables.list: New file.
6763 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6764 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6765 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6766 Likewise.
6767
8e67b39e
PP
67682018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6769
6770 [BZ #20544]
6771 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6772 * stdlib/on_exit.c (__on_exit): Likewise.
6773 * stdlib/Makefile (tests): Add tst-bz20544.
6774 * stdlib/tst-bz20544.c: New test.
6775
15b8d67e
RÁE
67762018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6777
6778 [BZ #19767]
6779 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6780 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6781 New.
6782
5e63c240
FW
67832018-11-30 Florian Weimer <fweimer@redhat.com>
6784
6785 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6786 Extend error logging.
6787 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6788 symbol.
6789
71058602 67902018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14d0e87d 6791
5fb7fc96
AZ
6792 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6793 __sigismember instead of sigismember.
6794 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6795 cancel_handler): New definitions.
6796 (do_system): Use posix_spawn instead of fork and execl and remove
6797 reentracy code.
6798 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6799 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6800 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6801 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6802 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6803 * sysdeps/unix/sysv/linux/system.c: Likewise.
6804
14d0e87d
AZ
6805 [BZ #22834]
6806 [BZ #17490]
6807 * NEWS: Add new semantic for atfork with popen and system.
6808 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6809 fork and execl.
6810
e5d262ef
TMQMF
68112018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6812
6813 [BZ #23690]
6814 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6815 modification order when accessing reloc_result->addr.
6816 * include/link.h (reloc_result): Add field init.
6817 * nptl/Makefile (tests): Add tst-audit-threads.
6818 (modules-names): Add tst-audit-threads-mod1 and
6819 tst-audit-threads-mod2.
6820 Add rules to build tst-audit-threads.
6821 * nptl/tst-audit-threads-mod1.c: New file.
6822 * nptl/tst-audit-threads-mod2.c: Likewise.
6823 * nptl/tst-audit-threads.c: Likewise.
6824 * nptl/tst-audit-threads.h: Likewise.
6825
7e1d4240
JM
68262018-11-30 Joseph Myers <joseph@codesourcery.com>
6827
6828 * scripts/gen-as-const.py: New file.
6829 * scripts/gen-as-const.awk: Remove.
6830 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6831 gen-as-const.py.
6832 ($(objpfx)test-as-const-%.c): Likewise.
6833
ce7387cc
L
68342018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6835
6836 * elf/dl-exception.c: Include <_itoa.h>.
6837
c6a5bdc1
ST
68382018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6839
6840 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6841 returned by __f_setlk.
6842
a5275ba5
L
68432018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6844 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6845
6846 * elf/Makefile (tests-internal): Add tst-create_format1.
6847 * elf/dl-exception.c (_dl_exception_create_format): Support
6848 %x, %lx and %zx.
6849 * elf/tst-create_format1.c: New file.
6850
3a67e81d
CAC
68512018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6852
6853 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6854 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6855 gnulib.)
6856 * argp/argp-help.c (__argp_failure): Likewise.
6857
4975f0c3
MH
68582018-11-29 Mao Han <han_mao@c-sky.com>
6859
6860 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6861 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6862 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6863 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6864 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6865 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6866 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6867 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6868 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6869 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6870 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6871 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6872 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6873 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6874 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6875 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6876 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6877 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6878 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6879 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6880 (R_CKCORE_TLS_TPOFF32): New defines.
6881
250102c8
FW
68822018-11-29 Florian Weimer <fweimer@redhat.com>
6883
6884 * posix/Makefile (before-compile): Remove testcases.h and
6885 ptestcases.h.
6886 (generated): Add testcases.h and ptestcases.h.
6887 (testcases.h, ptestcases.h): Move to $(objpfx).
6888 (runtests.o): Add dependency on testcases.h.
6889 (runptests.o): Add dependency on ptestcases.h.
6890 * posix/testcases.h, posix/ptestcases.h: Remove files.
6891 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6892 not touch posix/testcases.h and posix/ptestcases.h.
6893
96cd0558
FW
68942018-11-28 Florian Weimer <fweimer@redhat.com>
6895
6896 support: Add signal support to support_capture_subprocess_check.
6897 * support/capture_subprocess.h (support_capture_subprocess_check):
6898 Adjust comment and rename parameter.
6899 * support/support_capture_subprocess_check.c
6900 (print_actual_status): New function.
6901 (support_capture_subprocess_check): Support negative
6902 status_or_signal. Call print_actual_status.
6903 * support/tst-support_capture_subprocess.c (do_test): Call
6904 support_capture_subprocess_check.
6905 * libio/tst-vtables-common.c (termination_status)
6906 (init_termination_status): Remove.
6907 (check_for_termination): Adjust support_capture_subprocess_check
6908 call.
6909 (do_test): Remove call to init_termination_status.
6910
530504e3
JM
69112018-11-28 Joseph Myers <joseph@codesourcery.com>
6912
6913 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6914 source directory instead of a copy.
6915 (CommandList.create_copy_dir): Remove.
6916
9a0b6970
SL
69172018-11-28 Stefan Liebler <stli@linux.ibm.com>
6918
6919 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6920
47d8d9a2
FW
69212018-11-28 Florian Weimer <fweimer@redhat.com>
6922
6923 * support/support.h (support_quote_string): Do not use str
6924 parameter name.
6925
b473b7d8
JM
69262018-11-27 Joseph Myers <joseph@codesourcery.com>
6927
6928 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6929 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6930
c74a91de
FW
69312018-11-27 Florian Weimer <fweimer@redhat.com>
6932
6933 * support/support.h (support_quote_string): Declare.
6934 * support/support_quote_string.c: New file.
6935 * support/tst-support_quote_string.c: Likewise.
6936 * support/Makefile (libsupport-routines): Add
6937 support_quote_string.
6938 (tests): Add tst-support_quote_string.
6939
d527c860
FW
69402018-11-27 Florian Weimer <fweimer@redhat.com>
6941
6942 [BZ #23927]
6943 CVE-2018-19591
6944 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6945 descriptor leak in case of ENODEV error.
6946
979cfed0
RÁE
69472018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6948
6949 [BZ #19767]
6950 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6951 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6952 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6953
ce035c6e
CD
69542018-11-26 Carlos O'Donell <carlos@redhat.com>
6955
6956 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6957 Error for unknown lines.
6958
2bd0bfcc
JM
69592018-11-26 Joseph Myers <joseph@codesourcery.com>
6960
6961 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6962 Touch additional files.
6963
affec03b
FW
69642018-11-26 Florian Weimer <fweimer@redhat.com>
6965
6966 [BZ #23907]
6967 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6968 double-frees.
6969
8ae74ead
RÁE
69702018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6971
6972 [BZ #19767]
6973 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6974 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6975 SHARED. Include sysdep.h.
6976 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6977 ALWAYS_USE_VSYSCALL.
6978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6979 ALWAYS_USE_VSYSCALL.
6980
1e8bdc3a
RÁE
69812018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6982
6983 [BZ #19767]
6984 * nptl/Makefile (tests-static): Add tst-cond11-static.
6985 (tests): Likewise.
6986 * nptl/tst-cond11-static.c: New File.
6987 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6988 tst-affinity-static.
6989 (tests): Likewise.
6990 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6991 instead of SHARED.
6992 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6993 (USE_VSYSCALL): Likewise.
6994 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6995 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6996 instead of SHARED.
6997 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6998 SHARED.
6999 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7000 New.
7001
1283c478
JM
70022018-11-23 Joseph Myers <joseph@codesourcery.com>
7003
7004 [BZ #23915]
7005 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7006 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7007 Undefine.
7008
c089fd80
L
70092018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7010
7011 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7012 (tst-cet-legacy-1a-ARGS): New.
7013 ($(objpfx)tst-cet-legacy-1a): New target.
7014 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7015
cc6c89fa
JM
70162018-11-22 Joseph Myers <joseph@codesourcery.com>
7017
95edd05c
JM
7018 * conform/conformtest.py (CompileSubTest.__init__): Set
7019 self.run_early to False.
7020 (ExecuteSubTest.__init__): Likewise.
7021 (HeaderTests.run): Try running all non-optional, non-XFAILed
7022 compilation tests in a single execution of the compiler.
7023
cc6c89fa
JM
7024 * conform/conformtest.py (CompileSubTest): New class.
7025 (ExecuteSubTest): Likewise.
7026 (ElementTest.run): Rename to gen_subtests. Append tests to
7027 self.subtests instead of running them.
7028 (ConstantTest.run): Likewise.
7029 (SymbolTest.run): Likewise.
7030 (TypeTest.run): Likewise.
7031 (TagTest.run): Likewise.
7032 (FunctionTest.run): Likewise.
7033 (VariableTest.run): Likewise.
7034 (MacroFunctionTest.run): Likewise.
7035 (MacroStrTest.run): Likewise.
7036 (HeaderTests.handle_test_line): Generate subtests for tests.
7037 (HeaderTests.run): Run subtests for tests.
7038
a502c529
SN
70392018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7040
7041 * math/Versions (GLIBC_2.29): Add pow.
7042 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7043 symbol.
7044 * math/w_pow.c: New file.
7045 * sysdeps/i386/fpu/w_pow.c: New file.
7046 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7047 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7048 and add necessary aliases.
7049 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7050 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7051 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7052 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7053 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7054 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7055 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7056 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7057 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7058 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7059 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7060 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7061 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7062 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7063 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7068 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7069 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7070 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7071 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7072 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7073 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7074 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7075 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7076 __pow.
7077 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7078 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7079 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7080
718d6542
SN
70812018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7082
7083 * math/Versions (GLIBC_2.29): Add log2.
7084 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7085 symbol.
7086 * math/w_log2.c: New file.
7087 * sysdeps/i386/fpu/w_log2.c: New file.
7088 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7089 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7090 and add necessary aliases.
7091 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7092 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7093 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7094 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7095 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7096 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7097 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7098 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7099 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7100 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7101 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7102 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7103 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7104 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7105 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7110 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7111 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7112 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7113 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7114 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7115 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7116 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7117
f29b7c49
SN
71182018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7119
7120 * math/Versions (GLIBC_2.29): Add log.
7121 * math/w_log_compat.c (__log_compat): Change to versioned compat
7122 symbol.
7123 * math/w_log.c: New file.
7124 * sysdeps/i386/fpu/w_log.c: New file.
7125 * sysdeps/ia64/fpu/e_log.S: Update.
7126 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7127 and add necessary aliases.
7128 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7129 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7130 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7131 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7132 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7133 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7134 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7135 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7136 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7137 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7138 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7139 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7140 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7141 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7142 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7147 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7148 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7149 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7150 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7151 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7152 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7153 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7154 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7155 __log.
7156 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7157 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7158 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7159 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7160
c20a1056
SN
71612018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7162
7163 * math/Versions (GLIBC_2.29): Add exp and exp2.
7164 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7165 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7166 * math/w_exp_compat.c (__exp_compat): Likewise.
7167 * math/w_exp.c: New file.
7168 * math/w_exp2.c: New file.
7169 * sysdeps/i386/fpu/w_exp.c: New file.
7170 * sysdeps/i386/fpu/w_exp2.c: New file.
7171 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7172 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7173 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7174 and add necessary aliases.
7175 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7176 and add necessary aliases.
7177 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7178 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7179 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7180 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7181 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7182 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7183 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7184 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7185 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7186 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7187 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7188 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7189 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7190 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7191 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7192 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7193 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7198 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7199 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7200 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7201 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7202 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7203 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7204 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7205 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7206 (__ieee754_exp): Rename to __exp.
7207 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7208 (__ieee754_exp): Rename to __exp.
7209 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7210 (__ieee754_exp): Rename to __exp.
7211 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7212 __exp.
7213 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7214
bcdaad21
DD
72152018-11-20 DJ Delorie <dj@redhat.com>
7216
7217 * malloc/malloc.c (tcache_entry): Add key field.
7218 (tcache_put): Set it.
7219 (tcache_get): Likewise.
7220 (_int_free): Check for double free in tcache.
7221 * malloc/tst-tcfree1.c: New.
7222 * malloc/tst-tcfree2.c: New.
7223 * malloc/Makefile: Run the new tests.
7224 * manual/probes.texi: Document memory_tcache_double_free probe.
7225
7226 * dlfcn/dlerror.c (check_free): Prevent double frees.
7227
5770c0ad
WD
72282018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7229
7230 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7231
9a62a939
JM
72322018-11-20 Joseph Myers <joseph@codesourcery.com>
7233
7234 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7235 in tests. Use names for format arguments.
7236 (ConstantTest.run): Likewise.
7237 (SymbolTest.run): Likewise.
7238 (TypeTest.run): Likewise.
7239 (TagTest.run): Likewise.
7240 (FunctionTest.run): Likewise.
7241 (VariableTest.run): Likewise.
7242 (MacroFunctionTest.run): Likewise.
7243 (MacroStrTest.run): Likewise.
7244 (HeaderTests.__init__): Set self.num_tests.
7245 (HeaderTests.handle_test_line): Set test.num. Increment
7246 self.num_tests.
7247
b15b1a95
ST
72482018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7249
7250 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7251 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7252 SEEK_SET.
7253
0c7f97ae
MH
72542018-11-19 Mao Han <han_mao@c-sky.com>
7255
7256 * scripts/config.guess: Update to version 2018-08-29.
7257 * scripts/config.sub: Update to version 2018-08-29.
7258
35e3fbc4
FW
72592018-11-19 Florian Weimer <fweimer@redhat.com>
7260
7261 support: Print timestamps in timeout handler.
7262 * support/support_test_main.c (print_timestamp): New function.
7263 (signal_handler): Use it to print the termination time and the
7264 time of the last write to standard output.
7265
c75772e3
ZW
72662018-11-16 Zack Weinberg <zackw@panix.com>
7267 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7268
7269 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7270 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7271 argument.
7272 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7273 and add flags argument. Check flags instead of __ldbl_is_dbl when
7274 deciding whether to set is_long_double.
7275 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7276 passing zero for flags argument.
7277 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7278
7279 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7280 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7281 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7282 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7283 variable names. Remove libc_hidden_def/libc_hidden_proto from
7284 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7285 longer called from within the library.
7286 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7287 for __nldbl___vstrfmon_l, declare it explicitly.
7288
7289 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7290
346ef23f
ST
72912018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7292
7293 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7294 macros
7295 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7296 F_SETLK64, F_SETLKW64, respectively.
7297 * sysdeps/mach/hurd/f_setlk.c: New file.
7298 * sysdeps/mach/hurd/f_setlk.h: New file.
7299 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7300 f_setlk.
7301 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7302 (__libc_fcntl): Move non-flock operations to...
7303 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7304 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7305
de20b81a
PE
73062018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7307
5d8af156
PE
7308 mktime: DEBUG_MKTIME cleanup
7309 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7310 And it’s no longer needed now that glibc and Gnulib both have
7311 their own testing mechanisms for mktime.
7312 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7313
86aece3b
PE
7314 mktime: fix non-EOVERFLOW errno handling
7315 [BZ#23789]
7316 mktime was not properly reporting failures when the underlying
7317 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7318 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7319 The problem could happen on non-glibc platforms, with Gnulib.
7320 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7321 (tm_diff): ... this simpler function, which does not change errno.
7322 All callers changed to deal with errno themselves.
7323 (ranged_convert, __mktime_internal): Return failure immediately if
7324 the underlying function reports any failure other than EOVERFLOW.
7325 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7326 gap code fails.
7327
f6b3331b
PE
7328 mktime: fix bug with Y2038 DST transition
7329 [BZ#23789]
7330 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7331 mishandle a DST transition that jumps over the Y2038 boundary.
7332 No such DST transitions are known so this is only a theoretical
7333 bug, but we might as well do things right.
7334
efbdddc3
PE
7335 mktime: make more room for overflow
7336 [BZ#23789]
7337 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7338 This is so that we can add tm_diff results to a previous guess,
7339 which will be useful in a later patch.
7340
6c90d759
PE
7341 mktime: simplify offset guess
7342 [BZ#23789]
7343 * time/mktime.c (__mktime_internal): Omit excess precision.
7344
32c12f3f
PE
7345 mktime: new test for mktime failure
7346 [BZ#23789]
7347 Based on a test suggested by Albert Aribaud in:
7348 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7349 * time/Makefile (tests): Add bug-mktime4.
7350 * time/bug-mktime4.c: New file.
7351
de20b81a
PE
7352 mktime: fix EOVERFLOW bug
7353 [BZ#23789]
7354 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7355 Include libc-config.h, not config.h, for __set_errno.
7356 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7357
8c6c3fb0
ST
73582018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7359
7360 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7361 __attribute_copy__ to copy attributes from name. Drop static qualifier
7362 to avoid warnings about leaf attribute not having effect on static
7363 functions.
7364
6923f6db
FW
73652018-11-13 Florian Weimer <fweimer@redhat.com>
7366
7367 * malloc/malloc.c (fastbin_push_entry): New function.
7368 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7369 (REMOVE_FB): Remove macro.
7370 (_int_malloc): Use fastbin_pop_entry and reindent.
7371 (_int_free): Use fastbin_push_entry.
7372 (malloc_consolidate): Use atomic_exchange_acquire.
7373
53f5c659
JM
73742018-11-13 Joseph Myers <joseph@codesourcery.com>
7375
0c096dcf
JM
7376 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7377 alias attribute, not with strong_alias.
7378
9c4b457e
JM
7379 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7380 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7381 with additional parameter thread.
7382 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7383 in terms of __hidden_ver2.
7384 (hidden_tls_def): New macro.
7385 (libc_hidden_tls_def): Likewise.
7386 (rtld_hidden_tls_def): Likewise.
7387 (libm_hidden_tls_def): Likewise.
7388 (libmvec_hidden_tls_def): Likewise.
7389 (libresolv_hidden_tls_def): Likewise.
7390 (librt_hidden_tls_def): Likewise.
7391 (libdl_hidden_tls_def): Likewise.
7392 (libnss_files_hidden_tls_def): Likewise.
7393 (libnsl_hidden_tls_def): Likewise.
7394 (libnss_nisplus_hidden_tls_def): Likewise.
7395 (libutil_hidden_tls_def): Likewise.
7396 (libutil_hidden_tls_def): Likweise.
7397 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7398 libc_hidden_tls_def.
7399 (__sim_disabled_exceptions_thread): Likewise.
7400 (__sim_round_mode_thread): Likewise.
7401
53f5c659
JM
7402 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7403 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7404 copy attributes from name.
7405
092dfde6
JM
74062018-11-12 Joseph Myers <joseph@codesourcery.com>
7407
f578f97b
JM
7408 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7409 Use __attribute_copy__ to copy attributes from name.
7410
9a7c643a
JM
7411 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7412 with __hidden_ver1 call.
7413 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7414 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7415 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7416 (__cosf): Do not declare here.
7417 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7418 (__sincosf): Do not declare here.
7419 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7420 (__sinf): Do not declare here.
7421
092dfde6
JM
7422 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7423 (__BIG_ENDIAN): Likewise.
7424 (__BYTE_ORDER): Likewise.
7425 (strong_alias): Likewise.
7426 (_strong_alias): Likewise.
7427
1ecba1fa
FW
74282018-11-12 Florian Weimer <fweimer@redhat.com>
7429
7430 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7431 function. Move after the definition of in_smallbin_range. Do not
7432 use __builtin_expect for paths that lead to a noreturn function.
7433 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7434 because it is unclear whether this is in fact an unlikely
7435 condition.
7436 (_int_malloc, _int_free): Adjust.
7437 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7438 variables.
7439 * malloc/arena.c (heap_trim): Likewise.
7440
434c34bd
ST
74412018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7442
7443 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7444 it, free it if needed.
7445 (reauthenticate): Test and use ccwdir.
7446 (child_init_port): In non-resetids case, test and use ccwdir.
7447 (child_chdir): New nested function to set ccwdir.
7fa495cd
ST
7448 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7449 * hurd/hurd/port.h (_hurd_port_move): New function.
7450 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7451 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
88b26b7e
ST
7452 * hurd/Versions (_hurd_port_move): Export function.
7453 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7454 symbol.
58bb655a
ST
7455 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7456 of dtablesize for allocating dtable_cloexec.
434c34bd 7457
1626a1cf
MS
74582018-11-09 Martin Sebor <msebor@redhat.com>
7459
7460 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7461 it's already defined.
7462 (_strong_alias): Use __attribute_copy__.
7463 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7464 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7465 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7466 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7467 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7468 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7469 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7470 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7471 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7472 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7473 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7474 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7475 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7476 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7477 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7478 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7479 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7480 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7481 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7482
968ed530
GG
74832018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7484
7485 * misc/tst-efgcvt.c: Include support/check.h and
7486 support/test-driver.c. Do not include test-skeleton.c.
7487 (error_count): Remove.
7488 (output_error): Replace increments to error_count with calls to
7489 support_record_failure.
7490 (output_r_error): Likewise.
7491 (special): Likewise.
7492 (do_test): Unconditionally return zero.
7493 (TEST_FUNCTION): Remove.
7494
c3ec0972
JM
74952018-11-09 Joseph Myers <joseph@codesourcery.com>
7496
91faaa93
JM
7497 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7498 not $(@D)/scratch.
7499 ($(linknamespace-header-tests)): Likewise.
7500
c3ec0972
JM
7501 * conform/conformtest.py: New file.
7502 * conform/conformtest.pl: Remove.
7503 * conform/GlibcConform.pm: Likewise.
7504 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7505 (KEYWORDS_C99): Likewise.
7506 (KEYWORDS): Likewise.
7507 * conform/Makefile ($(conformtest-header-tests)): Use
7508 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7509 option. Use --header instead of --headers.
7510 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7511 function entries.
7512 * conform/data/spawn.h-data: Likewise.
7513 * conform/data/fcntl.h-data (openat): Add space after function
7514 name.
7515 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7516 (wcscasecmp_l): Likewise.
7517 * conform/data/termios.h-data (c_cc): Add space after element
7518 name.
7519
43257c33
GG
75202018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7521
7522 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7523 instead of manually comparing and reporting mismatching strings.
7524 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7525 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7526
e5de3b5b
JM
75272018-11-08 Joseph Myers <joseph@codesourcery.com>
7528
7529 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7530 __ASSUME_SOCKETCALL.
7531 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7532 (__ASSUME_SOCKETCALL): Remove.
7533 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7534 (__ASSUME_SOCKETCALL): Likewise.
7535 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7536 (__ASSUME_SOCKETCALL): Likewise.
7537 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7538 (__ASSUME_SOCKETCALL): Likewise.
7539 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7540 (__ASSUME_SOCKETCALL): Likewise.
7541 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7542 (__ASSUME_SOCKETCALL): Likewise.
7543 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7544 (__ASSUME_SOCKETCALL): Likewise.
7545
d524fa6c
L
75462018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7547
7548 [BZ #23509]
7549 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7550 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7551 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7552 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7553 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7554 lc_unknown.
7555
ac806026
AH
75562018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7557
7558 [BZ #17630]
7559 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7560
596cc360
JM
75612018-11-07 Joseph Myers <joseph@codesourcery.com>
7562
7563 [BZ #23867]
7564 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7565 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7566 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7567 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7568
00c86a37
AZ
75692018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7570
7571 * support/support_test_compare_string.c
7572 (support_test_compare_string): Fix printf format.
7573
1df872fd
FW
75742018-11-07 Florian Weimer <fweimer@redhat.com>
7575
7576 Implement TEST_COMPARE_STRING.
7577 * support/check.h (TEST_COMPARE_STRING): Define.
7578 (support_test_compare_string): Declare.
7579 * support/Makefile (libsupport-routines): Add
7580 support_test_compare_string.
7581 (tests): Add tst-test_compare_string.
7582 * support/support_test_compare_string.c: New file.
7583 * support/tst-test_compare_string.c: Likewise.
7584
295132ff
AS
75852018-11-07 Andreas Schwab <schwab@suse.de>
7586
7587 [BZ #23864]
7588 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7589 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7590 Undef.
7591
e143ceba
JM
75922018-11-06 Joseph Myers <joseph@codesourcery.com>
7593
7594 [BZ #23862]
7595 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7596 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7597 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7598 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7599 Likewise.
7600
4a938cb2
FW
76012018-11-06 Florian Weimer <fweimer@redhat.com>
7602
7603 [BZ #17405]
7604 * posix/Makefile (routines): Add spawn_faction_addchdir.
7605 (tests): Add tst-spawn-chdir.
7606 * posix/Versions (GLIBC_2.29): Add
7607 posix_spawn_file_actions_addchdir_np.
7608 * posix/spawn_faction_addchdir.c: New file.
7609 * posix/spawn_faction_destroy.c
7610 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7611 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7612 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7613 chdir_action.
7614 * posix/tst-spawn-chdir.c: New file.
7615 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7616 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7617 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7618 posix_spawn_file_actions_addchdir_np.
7619 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7620 Likewise.
7621 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7622 Likewise.
7623 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7624 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7625 Likewise.
7626 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7627 Likewise.
7628 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7629 Likewise.
7630 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7631 Likewise.
7632 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7633 Likewise.
7634 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7635 Likewise.
7636 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7637 (GLIBC_2.29): Likewise.
7638 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7639 (GLIBC_2.29): Likewise.
7640 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7641 (GLIBC_2.29): Likewise.
7642 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7643 (GLIBC_2.29): Likewise.
7644 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7645 Likewise.
7646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7647 (GLIBC_2.29): Likewise.
7648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7649 (GLIBC_2.29): Likewise.
7650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7651 (GLIBC_2.29): Likewise.
7652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7653 (GLIBC_2.29): Likewise.
7654 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7655 Likewise.
7656 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7657 Likewise.
7658 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7659 Likewise.
7660 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7661 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7662 Likewise.
7663 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7664 Likewise.
7665 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7666 Likewise.
7667 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7668 Likewise.
7669
7597b0c7
GG
76702018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7671
7672 * misc/Makefile (tests): Add tst-ldbl-error.
7673 * misc/tst-ldbl-error.c: New file.
7674
9771e6cb
GG
76752018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7676
7677 * misc/Makefile (tests): Add tst-ldbl-warn.
7678 * misc/tst-ldbl-warn.c: New file.
7679
2c03961f
GG
76802018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7681
7682 * argp/Makefile (tests): Add tst-ldbl-argp.
7683 * argp/tst-ldbl-argp.c: New file.
7684
6d6ee046
AS
76852018-11-05 Arjun Shankar <arjun@redhat.com>
7686
7687 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7688 __gconv_path_elem and call __gconv_get_path unconditionally.
7689
bd3b0fba
AS
76902018-11-05 Andreas Schwab <schwab@suse.de>
7691
7692 [BZ #22927]
7693 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7694 creating the first helper thread failed.
7695
2e96e980
ST
76962018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7697
7698 * sysdeps/mach/hurd/msync.c: New file.
7699
6e36266c
FW
77002018-11-02 Florian Weimer <fweimer@redhat.com>
7701
7702 * support/shell-container.c (copy_func): Call
7703 support_copy_file_range instead of copy_file_range to support
7704 cross-device copies.
7705
599f7bee
FW
77062018-11-02 Florian Weimer <fweimer@redhat.com>
7707
7708 * support/test-container.c: Include <libc-pointer-arith.h> for
7709 ALIGN_UP.
7710
ff48ea67
ZL
77112018-11-01 Zong Li <zong@andestech.com>
7712
af1d5782
ZL
7713 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7714 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7715 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7716 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7717
ff48ea67
ZL
7718 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7719 variable to avoid overlap arguments.
7720
daea71c2
JM
77212018-11-01 Joseph Myers <joseph@codesourcery.com>
7722
eac4405a
JM
7723 * posix/bug-regex22.c (main): Use puts with distinct error
7724 messages for unexpected success of re_compile_pattern, not printf
7725 with NULL argument to %s.
7726
6f30e59f
JM
7727 * stdio-common/bug22.c: Include <libc-diag.h>.
7728 (do_test): Disable -Wformat-overflow= warnings around fprintf
7729 calls outputting more than INT_MAX characters.
7730 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7731 around printf call with NULL %s argument.
7732
daea71c2
JM
7733 [BZ #23848]
7734 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7735 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7736 Undefine.
7737 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7738 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7739 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7740 (__ASSUME_SENDTO_SYSCALL): Likewise.
7741 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7742 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7743 [!__arch64__].
7744 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7745 (__ASSUME_CONNECT_SYSCALL): Likewise.
7746 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7747 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7748 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7749 Define.
7750 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7751 Likewise.
7752 [__LINUX_KERNEL_VERSION >= 0x040400]
7753 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7754 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7755 Remove.
7756 (listen): Likewise.
7757 (setsockopt): Likewise.
7758
8e3c00db
FN
77592018-11-01 Fredrik Noring <noring@nocrew.org>
7760
7761 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7762 with the ISA override.
7763
9c3dbdbe
RAE
77642018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7765
7766 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7767 #endif.
7768
e3a88b3e
ST
77692018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7770
a67377e7 7771 * manual/errno.texi (EIEIO): Document how translators should
e3a88b3e 7772 translate the error message.
a67377e7
ST
7773 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7774 printing trailing whitespaces refused by git.
7775 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7776 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fc783076 7777 * hurd/Makefile (user-interfaces): Add pci.
e3a88b3e 7778
3ca235ed
JM
77792018-10-30 Joseph Myers <joseph@codesourcery.com>
7780
7781 * conform/linknamespace.py: New file.
7782 * conform/linknamespace.pl: Remove file.
7783 * conform/Makefile ($(linknamespace-header-tests)): Use
7784 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7785 option.
7786
60708030
FW
77872018-10-30 Florian Weimer <fweimer@redhat.com>
7788
7789 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7790 memory leaks.
7791
a91e9301
FW
77922018-10-30 Florian Weimer <fweimer@redhat.com>
7793
7794 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7795
07da99aa
FW
77962018-10-30 Florian Weimer <fweimer@redhat.com>
7797
7798 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7799 support_blob_repeat.
7800
f5e7e959
FW
78012018-10-30 Florian Weimer <fweimer@redhat.com>
7802
7803 Avoid spurious test failures in stdlib/test-bz22786.
7804 * support/Makefile (libsupport-routines): Add blob_repeat.
7805 (tests): Add tst-support_blob_repeat.
7806 * support/blob_repeat.h: New file.
7807 * support/blob_repeat.c: Likewise.
7808 * support/tst-support_blob_repeat.c: Likewise.
7809 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7810 support_blob_repeat_allocate.
7811
2dd12baa
AS
78122018-10-30 Andreas Schwab <schwab@suse.de>
7813
7814 [BZ #23125]
7815 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7816 Don't use tail call.
7817 * elf/tst-unwind-main.c: New file.
7818 * elf/Makefile (tests): Add tst-unwind-main.
7819 (CFLAGS-tst-unwind-main.c): Define.
7820
6b5c8607 78212018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
fec8bb7c
SAA
7822
7823 [BZ #23791]
7824 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7825 n_cs_precedes to 0.
7826 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7827
c6982f7e
JM
78282018-10-29 Joseph Myers <joseph@codesourcery.com>
7829
954cf3c2
JM
7830 * conform/glibcconform.py: Do not import shutil.
7831 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7832 of mkdtemp.
7833
c6982f7e
JM
7834 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7835 critic_missing for versions before 3.4.
7836 * configure: Regenerated.
7837 * manual/install.texi (Tools for Compilation): Document
7838 requirement for Python to build glibc.
7839 * INSTALL: Regenerated.
7840 * Rules [PYTHON]: Make code unconditional.
7841 * benchtests/Makefile [PYTHON]: Likewise.
7842 * conform/Makefile [PYTHON]: Likewise.
7843 * manual/Makefile [PYTHON]: Likewise.
7844 * math/Makefile [PYTHON]: Likewise.
7845
46a7f24c
ST
78462018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7847
7848 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
2d0d1d38 7849 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
b6e7c449 7850 answer to interrupt_operation, return EIEIO instead of EINTR.
5c81be53
ST
7851 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7852 _hurd_intr_rpc_msg_about_to global point to start of controlled
7853 assembly snippet. Make it check canceled flag.
7854 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7855 the _hurd_intr_rpc_msg_about_to point.
7856 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7857 issue, remove cancel flag check.
46a7f24c 7858
e5b8756d
JM
78592018-10-26 Joseph Myers <joseph@codesourcery.com>
7860
7861 * scripts/build-many-glibcs.py: Remove compatibility for missing
7862 os.cpu_count and re.fullmatch.
7863
ba5b14c7
SN
78642018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7865
7866 [BZ #23822]
7867 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7868 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7869 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7870
fe61f17c
JM
78712018-10-25 Joseph Myers <joseph@codesourcery.com>
7872
7873 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7874 macro.
7875
7c5e34d7
FW
78762018-10-25 Florian Weimer <fweimer@redhat.com>
7877
7878 [BZ #23562]
7879 [BZ #23821]
7880 XFAIL siginfo_t si_band conform test on sparc64.
7881 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7882 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7883 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7884 (conformtest-xfail-conds): Add sparc64-linux.
7885 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7886 sparc64.
7887 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7888
5b784e88
JM
78892018-10-25 Joseph Myers <joseph@codesourcery.com>
7890
7891 * elf/elf.h (NT_MIPS_DSP): New macro.
7892 (NT_MIPS_FP_MODE): Likewise.
7893
41432ebe
ZL
78942018-10-25 Zong Li <zong@andestech.com>
7895
7896 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7897 name by adding the file extension (.so).
7898
d026efea
ST
78992018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7900
7901 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7902 (test-xfail-ISO11/threads.h/linknamespace,
7903 test-xfail-ISO11/threads.h/conform): Add.
7904
b71ac2b9
JM
79052018-10-24 Joseph Myers <joseph@codesourcery.com>
7906
7907 * math/gen-libm-test.py: Import os.
7908 (ALL_FLOATS_MANUAL): New constant.
7909 (ALL_FLOATS_SUFFIX): Likewise.
7910 (Ulps.all_functions): New function.
7911 (real_all_ulps): Likewise.
7912 (generate_err_table_sub): Likewise.
7913 (generate_err_table): Likewise.
7914 (main): Handle -s and -m options.
7915 * manual/libm-err-tab.pl: Remove.
7916 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7917 instead of libm-err-tab.pl.
7918 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7919 != no].
7920 * manual/install.texi (Tools for Compilation): Document
7921 requirement for Python to build manual.
7922 * INSTALL: Regenerated.
7923
6b5c8607 79242018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
d51f99ce
AA
7925
7926 * bits/time64.h: New file.
7927 * include/time.h: Replace internal_time_t with __time64_t.
7928 * posix/bits/types (__time64_t): Add.
7929 * stdlib/Makefile: Add bits/time64.h to includes.
7930 * time/tzfile.c: Replace internal_time_t with __time64_t.
7931
97d91fcc 79322018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2a973ab7
AZ
7933
7934 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7935 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7936 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7937 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7938 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7939 prototype.
7940 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7941 * posix/spawn_faction_addclose.c
7942 (__posix_spawn_file_actions_addclose): Add hidden definition.
7943 * posix/spawn_faction_adddup2.c
7944 (__posix_spawn_file_actions_adddup2): Likewise.
7945 * posix/spawn_faction_destroy.c
7946 (__posix_spawn_file_actions_destroy): Likewise.
7947 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7948 Likewise.
7949 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7950 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7951 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7952 Likewise.
7953 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7954 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7955 Likewise.
7956
2954daf0
AS
79572018-10-24 Andreas Schwab <schwab@suse.de>
7958
7959 [BZ #18093]
7960 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7961 format cache.
7962 * elf/cache.c (print_cache): Likewise.
7963
6b5c8607 79642018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
a27a4f47
AA
7965
7966 * bits/timesize.h: New file.
7967 * stdlib/Makefile (headers): Add bits/timesize.h.
7968 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7969 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7970 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7971 (__SEM_PAD_AFTER_TIME): Likewise.
7972 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7973 (__SHM_PAD_AFTER_TIME): Likewise.
7974 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7975 (__MSQ_PAD_BEFORE_TIME): Likewise.
7976 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7977 (__SEM_PAD_BEFORE_TIME): Likewise.
7978 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7979 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7980 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
b39d961c
TS
7981 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7982 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7983 (__MSQ_PAD_BEFORE_TIME): Likewise.
a27a4f47
AA
7984 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7985 (__SEM_PAD_BEFORE_TIME): Likewise.
7986 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7987 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7988 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7989 (__MSQ_PAD_BEFORE_TIME): Likewise.
7990 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7991 (__SEM_PAD_BEFORE_TIME): Likewise.
7992 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7993 (__SHM_PAD_BEFORE_TIME): Likewise.
7994 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7995 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7996 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7997
7cc65773
L
79982018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7999
8000 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8001 USE_RDTSCP is defined.
8002 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8003 USE_RDTSCP is defined.
8004
c3d8dc45
AZ
80052018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8006
18ad0de6
AZ
8007 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8008 defined.
8009
c3d8dc45
AZ
8010 [BZ #23709]
8011 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8012 independently of other flags.
8013
f1034472
FW
80142018-10-23 Florian Weimer <fweimer@redhat.com>
8015
8016 * time/tst-mktime2.c (N_STRINGS): Remove.
8017 (set_timezone): New function.
8018 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8019 (mktime_test1): Report localtime failure and check errno value.
8020 Use TEST_COMPARE.
8021 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8022 (do_test): Remove alarm call. Use set_timezone and array_length.
8023
367d7cc2
AS
80242018-10-23 Andreas Schwab <schwab@suse.de>
8025
8026 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8027 (__start_context): Use END instead of PSEUDO_END.
8028
be8ff03f
JM
80292018-10-22 Joseph Myers <joseph@codesourcery.com>
8030
029ad711
JM
8031 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8032 version to 4.19.
8033
8190520f
JM
8034 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8035 version to 4.19.
8036
be8ff03f
JM
8037 [BZ #23793]
8038 * wcsmbs/c32rtomb.c: New file.
8039 * wcsmbs/mbrtoc32.c: Likewise.
8040 * wcsmbs/tst-c32-state.c: Likewise.
8041 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8042 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8043 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8044 (tests): Add tst-c32-state.
8045 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8046 $(gen-locales).
8047
2dd8e58c
L
80482018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8049
8050 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8051 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8052
d0a74159
JM
80532018-10-19 Joseph Myers <joseph@codesourcery.com>
8054
8055 [BZ #23794]
8056 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8057 pair and return 0 in that case, and use saved character to
8058 interpret following character.
8059 * wcsmbs/tst-c16-surrogate.c: New file.
8060 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8061 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8062 Depend on $(gen-locales)
8063
f997b4be
IYM
80642018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8065
8066 [BZ #23562]
8067 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8068 (struct siginfo_t): Use correct type for si_band.
8069
53b2bb87
FW
80702018-10-19 Florian Weimer <fweimer@redhat.com>
8071
8072 [BZ #23689]
8073 * resource/bits/types/struct_rusage.h (struct rusage): Update
8074 comment on struct. Remove extraneous field comment.
8075
0a271c8f
DM
80762018-10-18 David S. Miller <davem@davemloft.net>
8077
94a3a27f
DM
8078 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8079 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8080 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8081 sysdep_routines in subdir elf.
8082 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8083 version for __vdso_clock_gettime.
8084 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8085 Define.
8086 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8087 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8088
0a271c8f
DM
8089 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8090
72771e53
L
80912018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8092
8093 * sysdeps/i386/init-arch.h: Removed.
8094 * sysdeps/i386/i586/init-arch.h: Likewise.
8095 * sysdeps/i386/i686/init-arch.h: Likewise.
8096 * sysdeps/i386/i686/hp-timing.h: Likewise.
8097 * sysdeps/x86_64/hp-timing.h: Likewise.
8098 * sysdeps/i386/isa.h: New file.
8099 * sysdeps/i386/i586/isa.h: Likewise.
8100 * sysdeps/i386/i686/isa.h: Likewise.
8101 * sysdeps/x86_64/isa.h: Likewise.
8102 * sysdeps/x86/hp-timing.h: New file.
8103 * sysdeps/x86/init-arch.h: Include <isa.h>.
8104
c2b7ccad
JM
81052018-10-17 Joseph Myers <joseph@codesourcery.com>
8106
8107 * math/libm-test-pow.inc (pow_test_data): Do not allow
8108 divide-by-zero exception for pow(+/- 0, -Inf).
8109
26756e57
ZW
81102018-10-17 Zack Weinberg <zackw@panix.com>
8111
8112 * manual/job.texi (Job Control is Optional): Remove node, as
8113 job control has not been optional in quite some time.
8114 (Job Control): Mention briefly that systems older than
8115 POSIX.1-2001 might not support job control.
8116 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8117 defined on systems conforming to POSIX.1-2001.
8118
c5288d37
AS
81192018-10-17 Arjun Shankar <arjun@redhat.com>
8120
8121 [BZ #22062]
8122 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8123 indentation.
8124 * (__gconv_read_conf): Mark function static.
8125 * (once): New static variable.
8126 * (__gconv_load_conf): New function.
8127 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8128 * iconv/gconv_db.c (once): Remove static variable.
8129 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8130 __gconv_read_conf.
8131 * (__gconv_find_transform): Likewise.
8132 * iconv/tst-iconv-mt.c: New test.
8133 * iconv/Makefile: Add tst-iconv_mt.
8134
8c8d2a8a
JM
81352018-10-17 Joseph Myers <joseph@codesourcery.com>
8136
8137 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
729f3402
JM
8138 bits/shm-pad.h.
8139 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8140 (shmatt_t): Define as __syscall_ulong_t.
8141 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8142 and [__SHM_PAD_AFTER_TIME].
8143 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8144 Define shm_segsz and associated padding based on
8145 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8146 Use __syscall_ulong_t instead of unsigned long int.
8147 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8148 unsigned long int.
8149 [__USE_MISC] (struct shm_info): Likewise.
8150 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8151 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8152 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8153 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8154 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8155 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8156 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8157 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8158 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8159 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8160 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8161
8162 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8c8d2a8a
JM
8163 bits/shmlba.h.
8164 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8165 (SHMLBA): Remove macro.
8166 (__getpagesize): Remove function declaration.
8167 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8168 <bits/shmlba.h>.
8169 (SHMLBA): Remove macro.
8170 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8171 <bits/shmlba.h>.
8172 (SHMLBA): Remove macro.
8173 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8174 <bits/shmlba.h>.
8175 (SHMLBA): Remove macro.
8176 (__getpagesize): Remove function declaration.
8177 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8178 <bits/shmlba.h>.
8179 (SHMLBA): Remove macro.
8180 (__getshmlba): Remove function declaration.
8181 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8182 (SHMLBA): Remove macro.
8183 (__getpagesize): Remove function declaration.
8184 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8185 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8186 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8187 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8188 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8189 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8190 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8191 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8192 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8193 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8194
403b4feb
SL
81952018-10-17 Stefan Liebler <stli@linux.ibm.com>
8196
8197 [BZ #23275]
8198 * nptl/tst-mutex10.c: New File.
8199 * nptl/Makefile (tests): Add tst-mutex10.
8200 (tst-mutex10-ENV): New variable.
8201 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8202 Ensure that elision path is used if elision is available.
8203 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8204 Likewise.
8205 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8206 Likewise.
8207 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8208 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8209 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8210 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8211 Likewise.
8212 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8213 (__pthread_mutex_cond_lock_adjust): Likewise.
8214 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8215 Likewise.
8216 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8217 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8218 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8219 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8220 Add comments.
8221 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8222 Use atomic_load_relaxed and atomic_store_relaxed.
8223 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8224 Use atomic_store_relaxed.
8225
ce5a7de6
AS
82262018-10-17 Andreas Schwab <schwab@suse.de>
8227
8228 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8229 * crypt/badsalttest.c (TIMEOUT): Likewise.
8230 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8231 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8232 * io/test-lfs.c (TIMEOUT): Likewise.
8233 * libio/tst-atime.c (TIMEOUT): Likewise.
8234 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8235 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8236 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8237 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8238 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8239 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8240 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8241 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8242 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8243 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8244 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8245 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8246 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8247 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8248 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8249 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8250 * nptl/tst-once2.c (TIMEOUT): Likewise.
8251 * nptl/tst-once3.c (TIMEOUT): Likewise.
8252 * nptl/tst-once4.c (TIMEOUT): Likewise.
8253 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8254 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8255 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8256 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8257 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8258 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8259 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8260 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8261 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8262 * posix/tst-chmod.c (TIMEOUT): Likewise.
8263 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8264 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8265 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8266 * posix/tst-regex2.c (TIMEOUT): Likewise.
8267 * posix/tst-waitid.c (TIMEOUT): Likewise.
8268 * rt/tst-aio.c (TIMEOUT): Likewise.
8269 * rt/tst-aio10.c (TIMEOUT): Likewise.
8270 * rt/tst-aio4.c (TIMEOUT): Likewise.
8271 * rt/tst-aio5.c (TIMEOUT): Likewise.
8272 * rt/tst-aio6.c (TIMEOUT): Likewise.
8273 * rt/tst-aio64.c (TIMEOUT): Likewise.
8274 * rt/tst-aio7.c (TIMEOUT): Likewise.
8275 * rt/tst-aio9.c (TIMEOUT): Likewise.
8276 * rt/tst-clock.c (TIMEOUT): Likewise.
8277 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8278 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8279 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8280 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8281 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8282 * rt/tst-timer4.c (TIMEOUT): Likewise.
8283 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8284 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8285 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8286 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8287 * time/tst-ftime.c (TIMEOUT): Likewise.
8288 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8289
6b5c8607 82902018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
75c1aee5
AY
8291
8292 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8293 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8294 for thunderX2.
8295
bcdb1bfa
JM
82962018-10-15 Joseph Myers <joseph@codesourcery.com>
8297
8298 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8299 bits/sem-pad.h.
8300 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8301 instead of <bits/wordsize.h>.
8302 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8303 and [__SEM_PAD_AFTER_TIME].
8304 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8305 __syscall_ulong_t instead of unsigned long int.
8306 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8307 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8308 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8309 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8310 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8311 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8312 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8313 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8314 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8315 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8316 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8317
f4efbdfb
PE
83182018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8319
620a5d4c
PE
8320 regex: simplify by using intprops.h
8321 [BZ#23744]
8322 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8323 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8324 intprops.h defines them.
8325
f4efbdfb
PE
8326 regex: __builtin_expect → __glibc_unlikely
8327 [BZ#23744]
8328 This refactoring was prompted by a problem when the regex code is
8329 used as part of Gnulib and when the builder’s compiler does not grok
8330 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8331 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8332 Although this refactoring does not fix the problem directly,
8333 we might as well have Gawk use the now-preferred glibc style for when
8334 __builtin_expect is unavailable.
8335 * posix/regex_internal.h (BE): Remove.
8336 All uses replaced by __glibc_unlikely or __glibc_likely.
8337
9f9feb6d
JM
83382018-10-11 Joseph Myers <joseph@codesourcery.com>
8339
8340 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8341 bits/msq-pad.h.
8342 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8343 instead of <bits/wordsize.h>.
8344 (msgqnum_t): Define as __syscall_ulong_t.
8345 (msglen_t): Likewise.
8346 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8347 and [__MSQ_PAD_AFTER_TIME].
8348 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8349 __syscall_ulong_t instead of unsigned long int.
8350 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8351 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8352 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8353 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8354 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8355 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8356 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8357 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8358 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8359 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8360 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8361
b9c0f6c1
JM
83622018-10-10 Joseph Myers <joseph@codesourcery.com>
8363
2a4b25fa
JM
8364 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8365 (struct shmid_ds): Condition padding after time fields on
8366 [__WORDSIZE == 32].
8367 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8368 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8369 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8370
19e62f26
JM
8371 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8372 (struct semid_ds): Condition padding after time fields on
8373 [__WORDSIZE == 32].
8374 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8375 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8376 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8377 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8378
b9c0f6c1
JM
8379 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8380 (struct msqid_ds): Condition padding after time fields on
8381 [__WORDSIZE == 32].
8382 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8383 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8384 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8385 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8386
97785a61
SN
83872018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8388
8389 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8390
ed643089
SN
83912018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8392
8393 * libio/tst-readline.c (TIMEOUT): Define.
8394
5a580643
PE
83952018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8396
8397 mktime fix for Gnulib + coreutils
8398 [BZ#23745]
8399 This fix affects only Gnulib. Problem discovered when
8400 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8401 * time/mktime.c:
8402 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8403 Do not define since it is not used. Defining an unused static
8404 function prompts a warning from GCC when Coreutils is configured
8405 with --enable-gcc-warnings.
8406
c892ae04
LS
84072018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8408
8409 * benchtests/scripts/compare_bench.py (main): set float type on
8410 threshold argument.
8411
a68ec8ea
RL
84122018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8413
8414 [BZ #23740]
8415 * localedata/locales/kl_GL (mon): Update, the relative case.
8416 (alt_mon): Add, fill with month names in the nominative case.
8417 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8418 (d_fmt): Set to "%b %d %Y".
8419
a1987621
JM
84202018-10-04 Joseph Myers <joseph@codesourcery.com>
8421
47c49251
JM
8422 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8423 <bits/mman-linux.h>.
8424 (PROT_READ): Don't define here.
8425 (PROT_WRITE): Likewise.
8426 (PROT_EXEC): Likewise.
8427 (PROT_NONE): Likewise.
8428 (PROT_GROWSDOWN): Likewise.
8429 (PROT_GROWSUP): Likewise.
8430 (MAP_SHARED): Likewise.
8431 (MAP_PRIVATE): Likewise.
8432 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8433 [__USE_MISC] (MAP_FILE): Likewise.
8434 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8435 [__USE_MISC] (MAP_ANON): Likewise.
8436 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8437 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8438 (MCL_CURRENT): Likewise.
8439 (MCL_FUTURE): Likewise.
8440 (MCL_ONFAULT): Likewise.
8441 [__USE_MISC] (MADV_NORMAL): Likewise.
8442 [__USE_MISC] (MADV_RANDOM): Likewise.
8443 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8444 [__USE_MISC] (MADV_WILLNEED): Likewise.
8445 [__USE_MISC] (MADV_DONTNEED): Likewise.
8446 [__USE_MISC] (MADV_FREE): Likewise.
8447 [__USE_MISC] (MADV_REMOVE): Likewise.
8448 [__USE_MISC] (MADV_DONTFORK): Likewise.
8449 [__USE_MISC] (MADV_DOFORK): Likewise.
8450 [__USE_MISC] (MADV_HWPOISON): Likewise.
8451 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8452 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8453 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8454 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8455 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8456 (__MAP_ANONYMOUS): New macro.
8457 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8458 <bits/mman-linux.h> inclusion.
8459 (MAP_FIXED): Likewise.
8460 (MS_SYNC): Likewise.
8461 (MS_ASYNC): Likewise.
8462 (MS_INVALIDATE): Likewise.
8463 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8464 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8465 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8466 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8467 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8468 [__USE_MISC] (MADV_DODUMP): Likewise.
8469 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8470 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8471
a1987621
JM
8472 [BZ #23735]
8473 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8474 Define.
8475 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8476 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8477 Add test-nldbl-redirect.
8478 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8479 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8480 $(objpfx)libnldbl_nonshared.a.
8481
e7624d70
SL
84822018-10-04 Stefan Liebler <stli@linux.ibm.com>
8483
8484 * support/support.h (support_objdir_elf_ldso): New variable.
8485 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8486 * support/Makefile (CFLAGS-support_paths.c): Add definition
8487 for OBJDIR_ELF_LDSO_PATH.
8488 * support/test-container.c (main): Search for the ld.so
8489 which is also used by the testsuite.
8490
dae3ed95
RL
84912018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8492
8493 [BZ #20209]
8494 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8495 should be "sap" rather than "sab".
8496 (day): Fix spelling of Sunday, should be "sapaat" rather than
8497 "sabaat".
8498
f346b5b3
JM
84992018-10-02 Joseph Myers <joseph@codesourcery.com>
8500
8501 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8502
4a06ceea
MJ
85032018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8504
8505 [BZ #19444]
8506 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8507 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8508 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8509
a06fc4a5
AZ
85102018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8511
8512 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8513
a1ccc065
L
85142018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8515
8516 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8517 Add -mrtm.
8518 (CFLAGS-elision-unlock.c): Likewise.
8519 (CFLAGS-elision-timed.c): Likewise.
8520 (CFLAGS-elision-trylock.c): Likewise.
8521 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8522
0b727ed4
AZ
85232018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8524
8525 [BZ #21037]
8526 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8527 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8528 new fd_to_filename interface.
8529 * libio/freopen64.c (freopen64): Likewise.
8530 * libio/tst-memstream.h: New file.
8531 * libio/tst-memstream4.c: Likewise.
8532 * libio/tst-wmemstream4.c: Likewise.
8533 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8534 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8535 and remove internal dynamic allocation.
8536
d0e91e8c
JM
85372018-10-01 Joseph Myers <joseph@codesourcery.com>
8538
8539 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8540 (MREMAP_MAYMOVE): Do not define here.
8541 [__USE_GNU] (MREMAP_FIXED): Likewise.
8542 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8543 (MREMAP_MAYMOVE): Define here instead.
8544 [__USE_GNU] (MREMAP_FIXED): Likewise.
8545 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8546 (MREMAP_MAYMOVE): Remove.
8547 [__USE_GNU] (MREMAP_FIXED): Likewise.
8548
c52944e8
JM
85492018-09-28 Joseph Myers <joseph@codesourcery.com>
8550
8551 * math/fromfp.h: Do not include <math_private.h>.
8552 * math/s_cacosh_template.c: Likewise.
8553 * math/s_casin_template.c: Likewise.
8554 * math/s_casinh_template.c: Likewise.
8555 * math/s_ccos_template.c: Likewise.
8556 * math/s_cproj_template.c: Likewise.
8557 * math/s_fdim_template.c: Likewise.
8558 * math/s_fmaxmag_template.c: Likewise.
8559 * math/s_fminmag_template.c: Likewise.
8560 * math/s_iseqsig_template.c: Likewise.
8561 * math/s_ldexp_template.c: Likewise.
8562 * math/s_nextdown_template.c: Likewise.
8563 * math/w_log1p_template.c: Likewise.
8564 * math/w_scalbln_template.c: Likewise.
8565 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8566 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8567 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8568 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8569 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8570 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8571 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8572 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8573 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8574 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8575 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8576 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8577 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8578 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8579 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8580 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8581 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8582 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8583 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8584 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8585 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8586 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8587 * sysdeps/ieee754/k_standardf.c: Likewise.
8588 * sysdeps/ieee754/k_standardl.c: Likewise.
8589 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8590 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8591 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8592 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8593 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8594 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8595 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8596 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8597 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8598 * sysdeps/ieee754/s_signgam.c: Likewise.
8599 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8600 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8601 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8602 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8603 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8604 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8605 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8606 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8607 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8608 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8609 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8610 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8611 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8612 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8613 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8614 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8615 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8616 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8617 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8618 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8619 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8620 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8621 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8622 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8623 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8624 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8625 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8626 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8627 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8628 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8629 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8630 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8631 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8632 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8633 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8634 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8635 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8636 <math_private.h>.
8637 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8638
7b1f9406
L
86392018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8640
8641 [BZ #23716]
8642 * sysdeps/i386/dl-cet.c: Removed.
8643 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8644 prototype.
8645 (_dl_runtime_profile_shstk): Likewise.
8646 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8647 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8648
7a16bdbb
AZ
86492018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8650
8651 [BZ #23579]
8652 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8653 do_test_with_invalid_iov): New tests.
8654 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8655 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8656 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8657 errno is ENOSYS.
8658 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8659 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8660 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8661
9755bc46
JM
86622018-09-27 Joseph Myers <joseph@codesourcery.com>
8663
81dca813
JM
8664 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8665 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8666 (MATH_REDIRECT_BINARY_ARGS): New macro.
8667 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8668 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8669 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8670 header inclusion.
8671 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8672 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8673 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8674 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8675 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8676 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8677 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8679 Likewise.
8680 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8681 Likewise.
8682 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8684 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8685 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8686 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8687 Likewise.
8688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8689 Likewise.
8690 * sysdeps/generic/math_private_calls.h
8691 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8692 Do not declare and define as an inline function.
8693 * math/divtc3.c (__divtc3): Use copysign functions instead of
8694 __copysign variants.
8695 * math/multc3.c (__multc3): Likewise.
8696 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8697 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8698 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8699 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8700 Likewise.
8701 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8702 (__ieee754_yn): Likewise.
8703 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8704 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8705 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8706 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8707 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8708 (__sin): Likewise.
8709 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8710 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8711 Likewise.
8712 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8713 Likewise.
8714 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8715 Likewise.
8716 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8717 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8718 Likewise.
8719 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8720 (__ieee754_ynf): Likewise.
8721 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8722 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8723 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8724 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8725 Likewise.
8726 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8727 (__ieee754_ynl): Likewise.
8728 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8729 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8730 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8731 Likewise.
8732 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8733 (__ieee754_ynl): Likewise.
8734 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8735 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8736 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8737 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8738 Likewise.
8739 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8740 (__ieee754_ynl)
8741 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8742 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8743 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8744 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8745 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8746
9755bc46
JM
8747 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8748 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8749 using MATH_REDIRECT.
8750 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8751 header inclusion.
8752 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8753 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8754 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8755 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8756 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8757 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8758 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8759 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8760 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8763 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8764 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8765 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8766 (round): Redirect to __round.
8767 (__roundl): Call round instead of __round.
8768 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8769 Remove macro.
8770 [_ARCH_PWR5X] (__roundf): Likewise.
8771 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8772 functions instead of __round variants.
8773 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8774 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8775 Likewise.
8776 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8777 Likewise.
8778 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8779 Likewise.
8780 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8781 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8782 __lroundl.
8783 (__ieee754_expl): Call roundl instead of __roundl.
8784
f841c97e
AS
87852018-09-27 Andreas Schwab <schwab@suse.de>
8786
8787 [BZ #23717]
8788 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8789 (do_test): Make st1 static.
8790
6ca8284e
AS
87912018-09-26 Andreas Schwab <schwab@suse.de>
8792
8793 [BZ #23707]
8794 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8795 * elf/Makefile (tests): Add tst-unwind-ctor.
8796 (modules-names): Add tst-unwind-ctor-lib.
8797 ($(objpfx)tst-unwind-ctor): Depend on
8798 $(objpfx)tst-unwind-ctor-lib.so.
8799
61d8b5fe
JM
88002018-09-26 Joseph Myers <joseph@codesourcery.com>
8801
8802 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8803 file. Most contents moved from ....
8804 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8805 and include <bits/mman-map-flags-generic.h>.
8806 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8807 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8808 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8809 <bits/mman-map-flags-generic.h>.
8810 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8811 macros defined in <bits/mman-map-flags-generic.h>.
8812 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8813 <bits/mman-map-flags-generic.h>.
8814 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8815 defined in <bits/mman-map-flags-generic.h>.
8816
46341286
AS
88172018-09-26 Andreas Schwab <schwab@suse.de>
8818
8819 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8820 output.
8821
b5c45e83
AZ
88222018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8823 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8824 Fangrui Song <maskray@google.com>
8825
8826 [BZ #20480]
8827 * config.make.in (have-textrel_ifunc): New define.
8828 * configure.ac: Add check if linker supports textrel relocation with
8829 ifunc.
8830 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8831 tst-ifunc-textrel.
8832 (CFLAGS-tst-ifunc-textrel.c): New rule.
8833 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8834 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8835 * elf/tst-ifunc-textrel.c: New file.
8836
8ea4d2b7
JM
88372018-09-25 Joseph Myers <joseph@codesourcery.com>
8838
d62f9ec0
JM
8839 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8840 <bits/procfs-prregset.h>.
8841 (prgregset_t): Define using __prgregset_t.
8842 (prfpregset_t): Define using __prfpregset_t.
8843 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8844 (sysdep_headers): Add bits/procfs-prregset.h.
8845 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8846 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8847 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8848 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8849
d0d8eb43
JM
8850 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8851 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8852 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8853 pr_uid and pr_gid.
8854 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8855 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8856 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8857 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8858 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8859 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8860 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8861 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8862 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8863 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8864 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8865 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8866 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8867 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8868 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8869 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8870 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8871 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8872 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8873 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8874 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8875 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8876 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8877 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8878
8ea4d2b7
JM
8879 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8880 AArch64 version. Include <bits/procfs.h>.
8881 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8882 (sysdep_headers): Add bits/procfs.h.
8883 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8884 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8885 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8886 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8887 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8888 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8889 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8890 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8891 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8892 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8893 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8894 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8895 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8896 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8897 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8898 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8899 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8900
c7027166
AZ
89012018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8902
8903 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8904 Use libsupport.
8905
335a3b0a
AS
89062018-09-25 Arjun Shankar <arjun@redhat.com>
8907
8908 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8909 (__gconv_max_path_elem_len): Likewise.
8910 (__gconv_nmodules): Likewise.
8911 (__gconv_get_path): Likewise.
8912 (path_elem): Move to ...
8913 * iconv/gconv_conf.c: ... here.
8914 (__gconv_get_path): Mark function static.
8915 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8916 * iconv/gconv_open.c: ... here.
8917
462d348c
AS
89182018-09-24 Andreas Schwab <schwab@suse.de>
8919
8920 * scripts/haveversions.awk: New file.
8921 * Makerules ($(common-objpfx)Versions.def)
8922 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8923 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8924 Move rules ...
8925 * Makeconfig ($(common-objpfx)Versions.def)
8926 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8927 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8928 ... here.
8929 ($(common-objpfx)Versions.mk): New rule. Include it.
8930 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8931 Emit error if build-obsolete-nsl = yes.
8932 * manual/install.texi (Configuring and compiling): Describe
8933 --enable-obsolete-nsl as unavaiable after version 2.28.
8934 * INSTALL: Regenerate.
8935
f0458cf4
AZ
89362018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8937
8938 * NEWS: Add note about new TLE support on powerpc64le.
8939 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8940 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8941 __ununsed1.
8942 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8943 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8944 * sysdeps/powerpc/powerpc32/sysdep.h,
8945 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8946 ABORT_TRANSACTION): Remove macros.
8947 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8948 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8949 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8951 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8952 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8953 usage.
8954 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8955
434d45fd
RL
89562018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8957
8958 [BZ #10425]
8959 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8960 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8961 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8962 which is the same as in it_IT.
8963 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8964 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8965
d90c9b1a
JM
89662018-09-20 Joseph Myers <joseph@codesourcery.com>
8967
7abf97be
JM
8968 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8969 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8970 using MATH_REDIRECT.
8971 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8972 header inclusion.
8973 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8974 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8975 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8976 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8977 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8978 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8979 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8983 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8984 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8985 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8986 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8987 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8988 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8989 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8990 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8991 (ceil): Redirect to __ceil.
8992 (floor): Redirect to __floor.
8993 (trunc): Redirect to __trunc.
8994 (__truncl): Call trunc instead of __trunc.
8995 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8996 Remove macro.
8997 [_ARCH_PWR5X] (__truncf): Likewise.
8998 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8999 trunc functions instead of __trunc variants.
9000 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9001 Likewise.
9002 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9003 Likewise.
9004 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9005 Likewise.
9006 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9007 Likewise.
9008
d90c9b1a
JM
9009 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9010 [__i586__ || __pentium__].
9011 [__i486__]: Handle explicitly.
9012 (HAS_CPUID): Define to 1 if above macros are undefined.
9013 (HAS_I586): Likewise.
9014 (HAS_I686): Likewise.
9015
db9a8ad4
FW
90162018-09-20 Florian Weimer <fweimer@redhat.com>
9017
9018 * misc/tst-gethostid.c: New file.
9019 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9020 (tst-gethostid): Link with -ldl.
9021
1214ba06
MY
90222018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9023
9024 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9025 value from gethostbyname_r.
9026
791b350d
CD
90272018-09-19 Carlos O'Donell <carlos@redhat.com>
9028
9029 * stdlib/tst-setcontext9.c (f1): Rename to...
9030 (f1a): ... this.
9031 (f1b): New function implementing lower half of f1 in alternate stack.
9032
8e6fd2bd
PE
90332018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9034
e1080e7e
PE
9035 Fix mktime localtime offset confusion
9036 [BZ #23603]
9037 * include/time.h (__mktime_internal): The localtime offset is now
9038 of type long int instead of time_t. This is the longstanding type
9039 in glibc, and it is more than enough to represent difference
9040 between localtime and gmtime even if it is 32 bits and time_t is
9041 64. Changing it now will let us avoid an unnecessary change when
9042 time_t is widened to 64 bits on 32-bit platforms.
9043 * time/mktime-internal.h (mktime_offset_t): Now long int.
9044
8e6fd2bd
PE
9045 Merge mktime, timegm from upstream Gnulib
9046 [BZ #23603][BZ #16346]
9047 This fixes some obscure problems with integer overflow.
9048 Although it looks scary, it is almost all a byte-for-byte copy
9049 from Gnulib, and the Gnulib code has been tested reasonably well.
9050 * include/intprops.h: New file, copied from Gnulib.
9051 * include/verify.h, time/mktime-internal.h:
9052 New tiny files, simplified from Gnulib.
9053 * time/mktime.c: Copy from Gnulib. This has the following changes:
9054 Do not include config.h if DEBUG_MKTIME is nonzero.
9055 Include stdbool.h, intprops.h, verify.h.
9056 Include string.h only if needed.
9057 Include stdlib.h on MS-Windows.
9058 Include mktime-internal.h.
9059 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9060 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9061 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9062 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9063 simplify later conditionals; default the others to zero. Use
9064 these conditionals to express only the code needed on the current
9065 platform. In uses of these conditionals, explicitly spell out how
9066 _LIBC affects things, so it’s easier to review from a glibc
9067 viewpoint.
9068 (WRAPV): Remove; no longer needed now that we have
9069 systematic overflow checking.
9070 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9071 compartmentalize tzset issues. Move system-dependent tzsettish
9072 code here from mktime.
9073 (verify): Remove; now done by verify.h. All uses changed.
9074 (long_int): Use a more-conservative definition, to avoid
9075 integer overflow.
9076 (SHR): Remove, replacing with ...
9077 (shr): New function, which means we needn’t worry about side
9078 effects in args, and conversion analysis is simpler.
9079 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9080 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9081 (time_t_avg, time_t_add_ok): Remove.
9082 (mktime_min, mktime_max): New constants.
9083 (leapyear, isdst_differ): Use bool for booleans.
9084 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9085 Use long_int, not time_t, for mktime differences.
9086 (long_int_avg): New function, replacing time_t_avg.
9087 INT_ADD_WRAPV replaces time_t_add_ok.
9088 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9089 All uses changed.
9090 (convert_time): New function.
9091 (ranged_convert): Use it.
9092 (__mktime_internal): Last arg now points to mktime_offset_t, not
9093 time_t. All uses changed. This is a no-op on glibc, where
9094 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9095 offset guess. Directly check for integer overflow instead of
9096 using a heuristic that works only 99.9...% of the time.
9097 Access *OFFSET only once, to avoid an unlikely race if the
9098 compiler delays a load and if this cascades into a signed integer
9099 overflow.
9100 (mktime): Move tzsettish code to my_tzset, and move
9101 localtime_offset to within mktime so that it doesn’t
9102 need a separate ifdef.
9103 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9104 instead of localtime.
9105 * time/timegm.c: Copy from Gnulib. This has the following changes:
9106 Include mktime-internal.h.
9107 [!_LIBC]: Include config.h and time.h. Do not include
9108 timegm.h or time_r.h. Make __mktime_internal a macro,
9109 and include mktime-internal.h to get its declaration.
9110 (timegm): Temporary is now mktime_offset_t, not time_t.
9111 This affects only Gnulib.
9112
83a552b0
WD
91132018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9114
9115 [BZ #23637]
9116 * string/test-strstr.c (pr23637): New function.
9117 (test_main): Add tests with longer needles.
9118 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9119 * string/strstr.c (AVAILABLE): Likewise.
9120
d7347278
SN
91212018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9122
9123 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9124
424c4f60
SN
91252018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9126
9127 * NEWS: Mention pow improvements.
9128 * math/Makefile (type-double-routines): Add e_pow_log_data.
9129 * sysdeps/generic/math_private.h (__exp1): Remove.
9130 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9131 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9132 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9133 contraction.
9134 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9135 (exp_inline): Remove.
9136 (__ieee754_exp): Only single double input is handled.
9137 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9138 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9139 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9140 (__pow_log_data): Define.
9141 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9142 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9143 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9144 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9145 contraction.
9146 (CFLAGS-e_pow-fma4.c): Likewise.
9147
e4e4fde5
PE
91482018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9149
dab9c348
PE
9150 Simplify tzfile fstat failure code
9151 [BZ #21716]
9152 * time/tzfile.c (__tzfile_read): Simplify slightly.
9153
e4e4fde5
PE
9154 Fix tzfile low-memory assertion failure
9155 [BZ #21716]
9156 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9157 when registering time zone abbreviations.
9158
50bc59ca
JM
91592018-09-18 Joseph Myers <joseph@codesourcery.com>
9160
d3a43e49
JM
9161 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9162 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9163 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9164 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9165 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9166 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9167 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9168 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9169 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9170
50bc59ca
JM
9171 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9172 __ceil.
9173 (__ceill): Call ceil instead of __ceil.
9174 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9175 __floor.
9176 (__floorl): Call floor instead of __floor.
9177
89983cb3
JM
91782018-09-17 Joseph Myers <joseph@codesourcery.com>
9179
71223ef9
JM
9180 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9181 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9182 using MATH_REDIRECT.
9183 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9184 header inclusion.
9185 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9186 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9187 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9188 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9189 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9190 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9191 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9192 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9194 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9197 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9198 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9199 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9200 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9201 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9202 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9203 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9204 Remove macro.
9205 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9206 functions instead of __ceil variants.
9207 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9208 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9209 Likewise.
9210 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9211 Likewise.
9212 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9213 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9214 Likewise.
9215 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9216 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9217
89983cb3
JM
9218 [BZ #21286]
9219 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9220 constant.
9221 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9222 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9223 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9224 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9225 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9226 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9227 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9228 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9229 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9230 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9231 (ILL_BADIADDR): Remove constant.
9232 (TRAP_BRANCH): Likewise.
9233 (TRAP_HWBKPT): Likewise.
9234
e44acb20
JM
92352018-09-14 Joseph Myers <joseph@codesourcery.com>
9236
3f7f1d18
JM
9237 [BZ #23656]
9238 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9239 Remove [_MIPS_SIM = _ABIN32] conditional case.
9240 (struct elf_prpsinfo): Likewise.
9241
d59f3e5e
JM
9242 [BZ #23649]
9243 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9244 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9245 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9246 Likewise.
9247 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9248 elf_prpsinfo): Likewise.
9249 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9250 elf_prpsinfo): Likewise.
9251 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9252 Likewise.
9253
f29b6f17
JM
9254 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9255 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9256 using MATH_REDIRECT.
9257 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9258 header inclusion.
9259 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9260 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9261 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9262 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9263 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9264 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9265 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9266 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9267 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9268 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9269 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9270 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9271 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9272 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9273 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9274 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9275 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9276 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9277 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9278 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9280 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9281 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9282 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9283 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9284 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9285 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9286 __rint variants.
9287 * math/e_scalbf.c (invalid_fn): Likewise.
9288 * math/e_scalbl.c (invalid_fn): Likewise.
9289 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9290 Likewise.
9291 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9292 Likewise.
9293 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9294 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9295 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9296 Likewise.
9297 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9298 Likewise.
9299 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9300 Likewise.
9301 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9302 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9303
e44acb20
JM
9304 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9305 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9306 New macro.
9307 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9308 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9309 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9310 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9311 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9312 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9313 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9314 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9315 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9316 && !NO_MATH_REDIRECT] (floor): Likewise.
9317 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9318 header inclusion.
9319 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9320 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9321 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9322 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9323 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9324 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9325 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9326 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9327 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9331 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9332 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9333 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9334 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9335 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9336 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9337 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9338 Remove macro.
9339 [_ARCH_PWR5X] (__floorf): Likewise.
9340 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9341 inline function.
9342 [__SSE4_1__] (__floorf): Likewise.
9343 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9344 instead of __floor variants.
9345 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9346 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9347 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9348 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9349 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9350 * math/w_tgamma_compat.c (__tgamma): Likewise.
9351 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9352 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9353 * math/w_tgammal_compat.c (__tgammal): Likewise.
9354 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9355 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9356 Likewise.
9357 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9358 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9359 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9360 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9361 Likewise.
9362 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9363 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9364 Likewise.
9365 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9366 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9367 Likewise.
9368 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9369 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9370 Likewise.
9371 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9372 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9373 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9374 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9375 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9376 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9377
221e4bab
JM
93782018-09-12 Joseph Myers <joseph@codesourcery.com>
9379
9380 * elf/Makefile (modules-names-tests): New variable.
9381
3e08ff54
SN
93822018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9383
9384 * NEWS: Mention log2 improvements.
9385 * math/Makefile (type-double-routines): Add e_log2_data.
9386 * sysdeps/i386/fpu/e_log2_data.c: New file.
9387 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9388 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9389 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9390 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9391 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9392 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9393
f41b0a43
SN
93942018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9395
9396 * NEWS: Mention log improvement.
9397 * math/Makefile (type-double-routines): Add e_log_data.
9398 * sysdeps/i386/fpu/e_log_data.c: New file.
9399 * sysdeps/ia64/fpu/e_log_data.c: New file.
9400 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9401 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9402 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9403 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9404 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9405 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9406
5a274db4
L
94072018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9408 Xuepeng Guo <xuepeng.guo@intel.com>
9409
9410 [BZ #23606]
9411 * sysdeps/i386/start.S: Include <sysdep.h>
9412 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9413 enabled. Add cfi_undefined (eip).
9414
b1176270
JM
94152018-09-11 Joseph Myers <joseph@codesourcery.com>
9416
4e7fbdd7
JM
9417 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9418 (MOVQ): Likewise.
9419 (EXTRACT_WORDS64): Likewise.
9420 (INSERT_WORDS64): Likewise.
9421 (GET_FLOAT_WORD): Likewise.
9422 (SET_FLOAT_WORD): Likewise.
9423
b1176270
JM
9424 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9425 argument.
9426 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9427 build, but not for second build if --full-gcc. Use
9428 --enable-languages=all for second build if --full-gcc.
9429 (get_parser): Add --full-gcc option.
9430 (main): Update call to Context.
9431
527f355e
RL
94322018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9433
9434 [BZ #10797]
9435 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9436 Single Quotation Mark).
9437 (thousands_sep): Likewise.
9438 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9439 * localedata/locales/it_IT (thousands_sep): Use ".".
9440 (grouping): Use "3;3".
9441
7244f13d
JM
94422018-09-10 Joseph Myers <joseph@codesourcery.com>
9443
9444 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9445 x86_64 and i686 configs using --enable-obsolete-rpc
9446 --enable-obsolete-nsl.
9447
38245425
SL
94482018-09-06 Stefan Liebler <stli@linux.ibm.com>
9449
9450 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9451
28669f86
SL
94522018-09-06 Stefan Liebler <stli@linux.ibm.com>
9453
9454 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9455 Increment size of new_argv by one.
9456
a33650d1
RL
94572018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9458
9459 [BZ #17426]
9460 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9461 * localedata/locales/ar_IN (d_fmt): Likewise.
9462 * localedata/locales/bhb_IN (d_fmt): Likewise.
9463 * localedata/locales/bho_IN (d_fmt): Likewise.
9464 * localedata/locales/bn_BD (d_fmt): Likewise.
9465 * localedata/locales/bn_IN (d_fmt): Likewise.
9466 * localedata/locales/doi_IN (d_fmt): Likewise.
9467 * localedata/locales/gu_IN (d_fmt): Likewise.
9468 * localedata/locales/hi_IN (d_fmt): Likewise.
9469 * localedata/locales/hne_IN (d_fmt): Likewise.
9470 * localedata/locales/kn_IN (d_fmt): Likewise.
9471 * localedata/locales/mag_IN (d_fmt): Likewise.
9472 * localedata/locales/mai_IN (d_fmt): Likewise.
9473 * localedata/locales/mjw_IN (d_fmt): Likewise.
9474 * localedata/locales/ml_IN (d_fmt): Likewise.
9475 * localedata/locales/mni_IN (d_fmt): Likewise.
9476 * localedata/locales/mr_IN (d_fmt): Likewise.
9477 * localedata/locales/pa_IN (d_fmt): Likewise.
9478 * localedata/locales/raj_IN (d_fmt): Likewise.
9479 * localedata/locales/sat_IN (d_fmt): Likewise.
9480 * localedata/locales/sd_IN (d_fmt): Likewise.
9481 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9482 * localedata/locales/ta_IN (d_fmt): Likewise.
9483 * localedata/locales/ta_LK (d_fmt): Likewise.
9484 * localedata/locales/tcy_IN (d_fmt): Likewise.
9485 * localedata/locales/ur_IN (d_fmt): Likewise.
9486
9487 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9488 * localedata/locales/ks_IN (d_fmt): Likewise.
9489 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9490
9491 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9492 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9493 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9494 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9495
d114e6a7
SN
94962018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9497
9498 * NEWS: Mention exp and exp2 improvements.
9499 * math/Makefile (libm-support): Remove t_exp.
9500 (type-double-routines): Add math_err and e_exp_data.
9501 * sysdeps/aarch64/libm-test-ulps: Update.
9502 * sysdeps/arm/libm-test-ulps: Update.
9503 * sysdeps/i386/fpu/e_exp_data.c: New file.
9504 * sysdeps/i386/fpu/math_err.c: New file.
9505 * sysdeps/i386/fpu/t_exp.c: Remove.
9506 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9507 * sysdeps/ia64/fpu/math_err.c: New file.
9508 * sysdeps/ia64/fpu/t_exp.c: Remove.
9509 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9510 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9511 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9512 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9513 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9514 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9515 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9516 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9517 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9518 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9519 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9520 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9521 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9522 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9523 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9524 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9525
b9d8c474
JM
95262018-09-05 Joseph Myers <joseph@codesourcery.com>
9527
b7cdc2ae
JM
9528 * sysdeps/alpha/fpu/math_private.h: Remove.
9529
b9d8c474
JM
9530 * sysdeps/generic/math_private.h
9531 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9532 Move this inline function ....
9533 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9534 * include/math.h [!_ISOMAC]: To here....
9535
418d99e6
JM
95362018-09-04 Joseph Myers <joseph@codesourcery.com>
9537
9538 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9539 code ....
9540 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9541 * include/fenv.h [!_ISOMAC]: ... to here.
9542 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9543 (feraiseexcept): Likewise.
9544 * math/fromfp.h: Do not include <fenv_private.h>.
9545 * math/s_cexp_template.c: Likewise.
9546 * math/s_csin_template.c: Likewise.
9547 * math/s_csinh_template.c: Likewise.
9548 * math/s_ctan_template.c: Likewise.
9549 * math/s_ctanh_template.c: Likewise.
9550 * math/s_iseqsig_template.c: Likewise.
9551 * math/w_acos_compat.c: Likewise.
9552 * math/w_acosf_compat.c: Likewise.
9553 * math/w_acosl_compat.c: Likewise.
9554 * math/w_asin_compat.c: Likewise.
9555 * math/w_asinf_compat.c: Likewise.
9556 * math/w_asinl_compat.c: Likewise.
9557 * math/w_j0_compat.c: Likewise.
9558 * math/w_j0f_compat.c: Likewise.
9559 * math/w_j0l_compat.c: Likewise.
9560 * math/w_j1_compat.c: Likewise.
9561 * math/w_j1f_compat.c: Likewise.
9562 * math/w_j1l_compat.c: Likewise.
9563 * math/w_jn_compat.c: Likewise.
9564 * math/w_jnf_compat.c: Likewise.
9565 * math/w_log10_compat.c: Likewise.
9566 * math/w_log10f_compat.c: Likewise.
9567 * math/w_log10l_compat.c: Likewise.
9568 * math/w_log2_compat.c: Likewise.
9569 * math/w_log2f_compat.c: Likewise.
9570 * math/w_log2l_compat.c: Likewise.
9571 * math/w_log_compat.c: Likewise.
9572 * math/w_logf_compat.c: Likewise.
9573 * math/w_logl_compat.c: Likewise.
9574 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9575 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9576 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9577 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9578 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9579 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9580 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9581 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9582 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9583 * sysdeps/ieee754/k_standardl.c: Likewise.
9584 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9585 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9586 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9587 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9588 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9589 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9590 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9591 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9592 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9593 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9594 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9595 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9596 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9597 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9598 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9599 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9600 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9601 * math/w_ilogb_template.c: Include <fenv.h> instead of
9602 <fenv_private.h>.
9603 * math/w_llogb_template.c: Likewise.
9604 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9605 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9606
70e2ba33
JM
96072018-09-03 Joseph Myers <joseph@codesourcery.com>
9608
9609 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9610 * math/fromfp.h: Include <fenv_private.h>.
9611 * math/math-narrow.h: Likewise.
9612 * math/s_cexp_template.c: Likewise.
9613 * math/s_csin_template.c: Likewise.
9614 * math/s_csinh_template.c: Likewise.
9615 * math/s_ctan_template.c: Likewise.
9616 * math/s_ctanh_template.c: Likewise.
9617 * math/s_iseqsig_template.c: Likewise.
9618 * math/w_acos_compat.c: Likewise.
9619 * math/w_acosf_compat.c: Likewise.
9620 * math/w_acosl_compat.c: Likewise.
9621 * math/w_asin_compat.c: Likewise.
9622 * math/w_asinf_compat.c: Likewise.
9623 * math/w_asinl_compat.c: Likewise.
9624 * math/w_ilogb_template.c: Likewise.
9625 * math/w_j0_compat.c: Likewise.
9626 * math/w_j0f_compat.c: Likewise.
9627 * math/w_j0l_compat.c: Likewise.
9628 * math/w_j1_compat.c: Likewise.
9629 * math/w_j1f_compat.c: Likewise.
9630 * math/w_j1l_compat.c: Likewise.
9631 * math/w_jn_compat.c: Likewise.
9632 * math/w_jnf_compat.c: Likewise.
9633 * math/w_llogb_template.c: Likewise.
9634 * math/w_log10_compat.c: Likewise.
9635 * math/w_log10f_compat.c: Likewise.
9636 * math/w_log10l_compat.c: Likewise.
9637 * math/w_log2_compat.c: Likewise.
9638 * math/w_log2f_compat.c: Likewise.
9639 * math/w_log2l_compat.c: Likewise.
9640 * math/w_log_compat.c: Likewise.
9641 * math/w_logf_compat.c: Likewise.
9642 * math/w_logl_compat.c: Likewise.
9643 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9644 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9645 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9646 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9647 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9648 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9649 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9650 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9651 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9652 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9653 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9654 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9655 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9656 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9657 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9658 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9659 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9660 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9661 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9662 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9663 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9664 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9665 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9666 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9667 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9668 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9669 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9670 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9671 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9672 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9673 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9674 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9675 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9676 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9677 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9678 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9679 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9680 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9681 * sysdeps/ieee754/k_standardl.c: Likewise.
9682 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9683 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9684 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9685 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9686 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9687 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9688 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9689 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9690 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9691 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9692 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9693 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9694 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9695 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9696 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9697 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9698 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9699 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9700 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9701 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9702 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9703 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9704 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9705 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9706 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9707 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9708 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9709 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9710 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9711 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9712 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9713 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9714 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9715 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9716 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9717 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9718 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9719 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9720 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9721 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9722 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9723 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9724 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9725 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9726 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9727 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9728 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9729 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9730 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9731 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9732 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9733 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9734 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9735 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9736 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9737 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9738 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9739 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9740 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9741 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9742 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9743 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9744 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9745 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9746 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9747 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9748 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9749 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9750 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9751 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9752 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9753
a6e8926f
PP
97542018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9755
9756 [BZ #20271]
9757 * include/stdio.h (__libc_fatal): Mention newline in comment.
9758 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9759 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9760 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9761 * nss/nsswitch.c (__nss_next2): Likewise.
9762 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9763 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9764 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9765 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9766 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9767 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9768 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9769 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9770 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9771 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9772 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9773 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9774 (__netlink_assert_response): Likewise.
9775
2bbd06bc
JM
97762018-08-31 Joseph Myers <joseph@codesourcery.com>
9777
9778 * conform/glibcconform.py: New file.
9779 * conform/list-header-symbols.py: Likewise.
9780 * conform/list-header-symbols.pl: Remove.
9781 * conform/Makefile (tests-special): Only add linknamespace tests
9782 if [PYTHON].
9783 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9784
81b9d87b
L
97852018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9786
9787 [BZ #23597]
9788 * support/Makefile (libsupport-routines): Add
9789 support_copy_file_range and xcopy_file_range.
9790 * support/support.h: Include <sys/types.h>.
9791 (support_copy_file_range): New prototype.
9792 * support/support_copy_file_range.c: New file. Copied and
9793 modified from io/copy_file_range-compat.c.
9794 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9795 instead of copy_file_range.
9796 * support/xcopy_file_range.c: New file.
9797 * support/xunistd.h (xcopy_file_range): New prototype.
9798
d330f31a
CD
97992018-08-30 Carlos O'Donell <carlos@redhat.com>
9800
9801 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9802 xpthread_create and xpthread_join.
9803
2bda273a
FW
98042018-08-30 Florian Weimer <fweimer@redhat.com>
9805
9806 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9807
3bad2358
SL
98082018-08-30 Stefan Liebler <stli@linux.ibm.com>
9809
9810 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9811 if malloc fails.
9812
09c12efc
JM
98132018-08-29 Joseph Myers <joseph@codesourcery.com>
9814
9815 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9816 and minus_oflow as non-finite.
9817
ff6b2450
JM
98182018-08-28 Joseph Myers <joseph@codesourcery.com>
9819
9820 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9821 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9822 moved to fenv_private.h except for ...
9823 (TOINT_INTRINSICS): Kept in math_private.h.
9824 (roundtoint): Likewise.
9825 (converttoint): Likewise.
9826 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9827 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9828 * sysdeps/arm/math_private.h: Remove.
9829 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9830 ....
9831 * sysdeps/generic/math_private.h: ... this file. Include
9832 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9833 Include <fenv_private.h>. Remove functions and macros moved to
9834 fenv_private.h.
9835 * sysdeps/i386/fpu/math_private.h: Remove.
9836 * sysdeps/mips/math_private.h: Move to ....
9837 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9838 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9839 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9840 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9841 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9842 * sysdeps/powerpc/fpu/math_private.h: Do not include
9843 <fenv_private.h>.
9844 * sysdeps/riscv/rvf/math_private.h: Move to ....
9845 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9846 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9847 <fenv_private.h>.
9848 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9849 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9850 * sysdeps/sparc/fpu/math_private.h: Remove.
9851 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9852 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9853 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9854 <fenv_private.h>.
9855 * sysdeps/x86_64/fpu/math_private.h: Do not include
9856 <sysdeps/i386/fpu/fenv_private.h>.
9857
761404b7
FW
98582018-08-28 Florian Weimer <fweimer@redhat.com>
9859
9860 [BZ #23578]
9861 * posix/tst-regcomp-truncated.c: New file.
9862 * posix/Makefile (tests): Add it.
9863 (tst-regcomp-truncated.out): Depend on generated locales.
9864
d6c44c3d
FW
98652018-08-28 Florian Weimer <fweimer@redhat.com>
9866
9867 * support/test-container.c (main): Treat unshare failure with
9868 EPERM as an unsupported test.
9869
745664bd
FW
98702018-08-28 Florian Weimer <fweimer@redhat.com>
9871
9872 [BZ #23520]
9873 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9874 * nscd/netgroupcache.c
9875 (addgetnetgrentX): Add tofreep parameter. Do not free
9876 heap-allocated buffer.
9877 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9878 (addgetnetgrentX_ignore): New function.
9879 (addgetnetgrent): Call it.
9880 (readdgetnetgrent): Likewise.
9881
c8dd67e7
RS
98822018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9883
9884 * string/memmem.c: Use memcmp for first match.
9885
5abedf97
RL
98862018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9887
9888 [BZ #17426]
9889 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9890
86de0499
DD
98912018-08-27 DJ Delorie <dj@redhat.com>
9892
9893 * support/Makefile (others): Don't list programs explicitly as a
9894 dependency of "others".
9895
c3ab2110
JM
98962018-08-27 Joseph Myers <joseph@codesourcery.com>
9897
9898 * sysdeps/generic/math-tests-trap-force.h: New file.
9899 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9900 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9901 * sysdeps/powerpc/math-tests.h: Remove file.
9902 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9903
6b5c8607
TS
99042018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9905 Torvald Riegel <triegel@redhat.com>
99ea93ca
MK
9906
9907 [BZ #23538]
9908 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9909 Update r to include the set wake-request flag if waiters are
9910 remaining after spinning.
9911
4061791f
JM
99122018-08-27 Joseph Myers <joseph@codesourcery.com>
9913
9914 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9915
bc680b33
PE
99162018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9917
761404b7 9918 [BZ #23578]
bc680b33
PE
9919 regex: fix uninitialized memory access
9920 I introduced this bug into gnulib in commit
9921 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9922 eventually it was merged into glibc. The bug was found by
9923 project-repo <bugs@feusi.co> and reported here:
9924 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9925 Diagnosis and draft fix reported by Assaf Gordon here:
9926 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9927 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9928 * posix/regex_internal.c (build_wcs_upper_buffer):
9929 Fix bug when mbrtowc returns 0.
9930
02458a52
CD
99312018-08-24 Carlos O'Donell <carlos@redhat.com>
9932
9933 * po/be.po: Update translation.
9934
acc2842a
DD
99352018-08-24 DJ Delorie <dj@delorie.com>
9936
9937 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9938 $(libunwind).
9939
6c3a8a9d
PP
99402018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9941
b39d961c
TS
9942 [BZ #23400]
9943 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9944 create temporary files in source tree.
6c3a8a9d 9945
895ef79e
JM
99462018-08-24 Joseph Myers <joseph@codesourcery.com>
9947
9948 * sysdeps/generic/math-tests-trap.h: New file.
9949 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9950 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9951 * sysdeps/aarch64/math-tests.h: Remove file.
9952 * sysdeps/arm/math-tests.h: Likewise.
9953 * sysdeps/riscv/math-tests.h: Likewise.
9954 * sysdeps/aarch64/math-tests-trap.h: New file.
9955 * sysdeps/arm/math-tests-trap.h: Likewise.
9956 * sysdeps/riscv/math-tests-trap.h: Likewise.
9957
ca3aac57
WD
99582018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9959
9960 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9961 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9962 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9963 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9964 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9965 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9966 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9967 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9968 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9969 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9970 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9971 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9972 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9973 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9974 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9975 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9976 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9977 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9978
60bcac09
JM
99792018-08-23 Joseph Myers <joseph@codesourcery.com>
9980
9981 * sysdeps/generic/math-tests-exceptions.h: New file.
9982 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9983 (EXCEPTION_TESTS_float): Do not define here.
9984 (EXCEPTION_TESTS_double): Likewise.
9985 (EXCEPTION_TESTS_long_double): Likewise.
9986 (EXCEPTION_TESTS_float128): Likewise.
9987 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9988 Likewise.
9989 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9990 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9991 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9992 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9993 * sysdeps/mips/math-tests.h: Likewise.
9994 * sysdeps/nios2/math-tests.h: Likewise.
9995 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9996 (EXCEPTION_TESTS_float): Do not define here.
9997 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9998 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9999 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10000
3bded567
WD
100012018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10002
10003 * NEWS: Move optimized sinf entry to 2.29.
10004
900fb446
WD
100052018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10006
10007 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10008
561b0bec
DD
100092018-08-22 DJ Delorie <dj@redhat.com>
10010
10011 * Makefile (testroot.pristine): New rules to initialize the
10012 test-in-container "testroot".
10013 * Makerules (all-testsuite): Add tests-container.
10014 * Rules (tests-expected): Add tests-container.
10015 (binaries-all-tests): Likewise.
10016 (tests-container): New, run these tests in the testroot container.
10017 * support/Makefile (others): Add *-container, support_paths.c,
10018 xmkdirp, and links-dso-program.
10019 * support/links-dso-program-c.c: New.
10020 * support/links-dso-program.cc: New.
10021 * support/test-container.c: New.
10022 * support/shell-container.c: New.
10023 * support/echo-container.c: New.
10024 * support/true-container.c: New.
10025 * support/xmkdirp.c: New.
10026 * support/xsymlink.c: New.
10027 * support/support_paths.c: New.
10028 * support/support.h: Add support paths prototypes.
10029 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10030
10031 * nss/tst-nss-test3.c: Convert to test-in-container.
10032 * nss/tst-nss-test3.root/: New.
10033
b35d3509
PE
100342018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10035
10036 regex: port Gnulib code to z/OS POSIX environment
10037 Problem reported by Arnold Robbins in:
10038 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10039 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10040 Undef.
10041
16a25138
JM
100422018-08-22 Joseph Myers <joseph@codesourcery.com>
10043
debc4c98
JM
10044 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10045 (ROUNDING_TESTS_double): Remove.
10046 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10047 (ROUNDING_TESTS_double): Remove.
10048 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10049 (ROUNDING_TESTS_double): Remove.
10050 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10051 (ROUNDING_TESTS_float): Remove.
10052 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10053 (ROUNDING_TESTS_float): Remove.
10054 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10055 (ROUNDING_TESTS_float): Remove.
10056 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10057 !TEST_MATHVEC here.
10058 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10059 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10060
16a25138
JM
10061 * sysdeps/generic/math-tests-rounding.h: New file.
10062 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10063 (ROUNDING_TESTS_float): Do not define here.
10064 (ROUNDING_TESTS_double): Likewise.
10065 (ROUNDING_TESTS_long_double): Likewise.
10066 (ROUNDING_TESTS_float128): Likewise.
10067 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10068 (ROUNDING_TESTS_double): Undefine before defining.
10069 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10070 (ROUNDING_TESTS_double): Undefine before defining.
10071 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10072 (ROUNDING_TESTS_double): Undefine before defining.
10073 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10074 (ROUNDING_TESTS_float): Undefine before defining.
10075 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10076 (ROUNDING_TESTS_float): Undefine before defining.
10077 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10078 (ROUNDING_TESTS_float): Undefine before defining.
10079 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10080 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10081 not define here.
10082 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10083 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10084 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10085 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10086 (ROUNDING_TESTS_float): Do not define here.
10087 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10088 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10089 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10090 (ROUNDING_TESTS_float): Likewise.
10091 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10092 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10093 * sysdeps/mips/math-tests.h [__mips_soft_float]
10094 (ROUNDING_TESTS_float): Likewise.
10095 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10096 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10097 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10098 (ROUNDING_TESTS_double): Likewise.
10099 (ROUNDING_TESTS_long_double): Likewise.
10100
38b0593e
TK
101012018-08-21 Tobias Klauser <tklauser@distanz.ch>
10102
10103 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10104 (PF_XDP): New macro.
10105 (AF_XDP): New macro.
10106 (SOL_XDP): New macro.
10107
5cd7dbde
JM
101082018-08-21 Joseph Myers <joseph@codesourcery.com>
10109
10110 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10111 (TCP_INQ): Likewise.
10112 (TCP_CM_INQ): Likewise.
10113 (TCP_REPAIR_ON): Likewise.
10114 (TCP_REPAIR_OFF): Likewise.
10115 (TCP_REPAIR_OFF_NO_WP): Likewise.
10116 (struct tcp_zerocopy_receive): New type.
10117
aa42b3db
FW
101182018-08-21 Florian Weimer <fweimer@redhat.com>
10119
10120 * support/support.h (support_descriptor_supports_holes): Declare.
10121 * support/Makefile (libsupport-routines): Add
10122 support_descriptor_supports_holes.
10123 * support/support_descriptor_supports_holes.c: New file.
10124 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10125 and stop testing if holes are not supported.
10126 * io/test-lfs.c (do_prepare): Likewise.
10127 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10128 Likewise.
10129 * timezone/tst-tzset.c (create_tz_file): Likewise.
10130 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10131 variable.
10132 (do_prepare): Set it.
10133 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10134
c7627f41
FW
101352018-08-21 Florian Weimer <fweimer@redhat.com>
10136
10137 [BZ #17248]
10138 * Makeconfig (+cflags): Do not sort (and deduplicate).
10139
ef939d92
FW
101402018-08-21 Florian Weimer <fweimer@redhat.com>
10141
10142 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10143 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10144
88ffb39d
FW
101452018-08-20 Florian Weimer <fweimer@redhat.com>
10146
10147 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10148 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10149
17419540
JM
101502018-08-20 Joseph Myers <joseph@codesourcery.com>
10151
e6edd40d
JM
10152 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10153 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10154 and ssi_arch members.
10155
17419540
JM
10156 * elf/elf.c (NT_VMCOREDD): New macro.
10157 (AT_MINSIGSTKSZ): Likewise.
10158
fa78896b
RS
101592018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10160
10161 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10162 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10163 s_cosf-ppc64 and s_cosf-power8.
10164 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10165 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10166 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10167 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10174 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10175 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10176
86a6c75a
FW
101772018-08-17 Florian Weimer <fweimer@redhat.com>
10178
10179 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10180
35cfefd9
FW
101812018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10182
10183 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10184
6413fcde
FW
101852018-08-16 Florian Weimer <fweimer@redhat.com>
10186
10187 * configure.ac: Add --with-nonshared-cflags option.
10188 * config.make.in (extra-nonshared-cflags): Set variable.
10189 * Makeconfig (CFLAGS-.oS): Use it.
10190 * manual/install.texi (Configuring and compiling): Document
10191 --with-nonshared-cflags.
10192 * configure: Regenerate.
10193 * INSTALL: Likewise.
10194
93a2584c
FW
101952018-08-16 Florian Weimer <fweimer@redhat.com>
10196
10197 * Makeconfig (ASFLAGS): Always append required assembler flags.
10198
f6f275d2 101992018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
d6db68e6
ME
10200
10201 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10202 (malloc_consolidate): Likewise.
10203
30a17d8c
PC
102042018-08-16 Pochang Chen <johnchen902@gmail.com>
10205
10206 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10207
953a5a4a
SP
102082018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10209
34f86d61
SP
10210 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10211 every strlen call.
10212
953a5a4a
SP
10213 * benchtests/bench-strlen.c: Print performance numbers in json.
10214
7793ad7a
RS
102152018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10216
10217 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10218 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10219 only for little endian.
10220 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10221 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10222 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10223 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10224 Add check for little endian.
10225 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10226 (__strcmp_power9): Add check for little endian.
10227 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10228 Add check for little endian.
10229 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10230 (__strncmp_power9): Add check for little endian.
10231 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10232 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10233 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10234 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10235 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10236
436e4d5b
SP
102372018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10238
10239 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10240 [!STRLEN](STRLEN): Set to __strlen.
10241 * sysdeps/aarch64/multiarch/strlen.c: New file.
10242 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10243 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10244 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10245 (__libc_ifunc_impl_list): Add strlen.
10246 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10247 strlen_generic and strlen_asimd.
10248
126c4e3f
WD
102492018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10250
10251 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10252 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10253 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10254
49acec17
WD
102552018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10256
10257 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10258
fdb16de3
FW
102592018-08-14 Florian Weimer <fweimer@redhat.com>
10260
10261 [BZ #23519]
10262 * include/stdio.h (__vfxprintf): Declare.
10263 * stdio-common/fxprintf.c (__vfxprintf): New function.
10264 (__fxprintf): Call it.
10265 * misc/err.c (convert_and_print): Remove function.
10266 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10267 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10268 * misc/Makefile (tests): Add tst-warn-wide.
10269 * misc/tst-warn-wide.c: New file.
10270
599cf397
WD
102712018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10272 Szabolcs Nagy <szabolcs.nagy@arm.com>
10273
10274 * NEWS: Mention sinf, cosf, sincosf.
10275 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10276 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10277 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10278 constants rather than including generic sincosf.h.
10279 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10280 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10281 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10282 (reduced_cos): Remove.
10283 (sinf_poly): New function.
10284 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10285
e95c6f61
FW
102862018-08-14 Florian Weimer <fweimer@redhat.com>
10287
10288 [BZ #23521]
10289 [BZ #23522]
10290 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10291 processing, bail out if no room, and close the stream before
10292 returning ERANGE.
10293 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10294 (tst-nss-files-alias-leak): Link with libdl.
10295 (tst-nss-files-alias-leak.out): Depend on nss_files.
10296
10297 * nss/tst-nss-files-alias-leak.c: New file.
10298
2d7acfac
FW
102992018-08-14 Florian Weimer <fweimer@redhat.com>
10300
10301 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10302 server_user, stat_user.
10303
f3cd0904
JM
103042018-08-13 Joseph Myers <joseph@codesourcery.com>
10305
17b26500
JM
10306 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10307 version to 4.18.
10308 (io_pgetevents): New syscall.
10309 (rseq): Likewise.
10310
3c1622eb
JM
10311 * manual/install.texi (Configuring and compiling): Do not list
10312 tools used for testing pretty printers here.
10313 (Tools for Compilation): List Python, PExpect and GDB here.
10314 Update descriptions of uses of Perl and Python.
10315 * INSTALL: Regenerate.
10316
f3cd0904
JM
10317 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10318 version to 4.18.
10319
b7b52b9d
FW
103202018-08-13 Florian Weimer <fweimer@redhat.com>
10321
10322 * misc/error.c (error): Add missing va_end call.
10323 (error_at_line): Likewise.
10324
01780188
FW
103252018-08-13 Florian Weimer <fweimer@redhat.com>
10326
10327 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10328
44727aec
SP
103292018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10330
8cac1f26
SP
10331 * benchtests/scripts/benchout.schema.json (properties): Add
10332 new properties.
10333
44727aec
SP
10334 * benchtests/bench-skeleton.c (main): Add duration and
10335 iterations attributes.
10336
c77bf91b
PE
103372018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10338
10339 regex: Gnulib unibyte RRI uses bytes not chars
10340 Adjust the non-glibc code to agree with what Gawk needs for
10341 rational range interpretation (RRI) for regular expression ranges.
10342 In unibyte locales, Gawk wants ranges to use the underlying byte
10343 rather than the character code point. This change does not affect
10344 glibc proper.
10345 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10346 In unibyte locales, use the byte value rather than
10347 running it through btowc.
10348
2ce7ba7d
JM
103492018-08-10 Joseph Myers <joseph@codesourcery.com>
10350
10351 * sysdeps/generic/math-tests-snan.h: New file.
10352 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10353 (SNAN_TESTS_float): Do not define here.
10354 (SNAN_TESTS_double): Likewise.
10355 (SNAN_TESTS_long_double): Likewise.
10356 (SNAN_TESTS_float128): Likewise.
10357 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10358 * sysdeps/i386/fpu/math-tests.h: Remove file.
10359 * sysdeps/ia64/math-tests-snan.h: New file.
10360 * sysdeps/ia64/math-tests.h: Remove file.
10361 * sysdeps/x86/math-tests.h: Likewise.
10362 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10363
ea5c662c
WD
103642018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10365 Szabolcs Nagy <szabolcs.nagy@arm.com>
10366
10367 * math/Makefile: Add s_sincosf_data.c.
10368 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10369 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10370 (sincosf_poly): Likewise.
10371 (reduce_small): Likewise.
10372 (reduce_large): Likewise.
10373 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10374 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10375 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10376 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10377
43cfdf8f
SN
103782018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10379 Szabolcs Nagy <szabolcs.nagy@arm.com>
10380
10381 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10382 (converttoint): Use lround.
10383 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10384 document the semantics when TOINT_INTRINSICS is set.
10385 (converttoint): Likewise.
10386 (TOINT_RINT): Remove.
10387 (TOINT_SHIFT): Remove.
10388 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10389 path.
10390
69065288
FW
103912018-08-10 Florian Weimer <fweimer@redhat.com>
10392
10393 [BZ #23497]
10394 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10395 function.
10396 (__old_getdents64): Use getdents64. Convert entries without
10397 moving them.
10398 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10399 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10400 tst-readdir64-compat.
10401
8f135efc
IL
104022018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10403
10404 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10405 Fix unwind.
10406
71c01af5
IL
104072018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10408
10409 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10410 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10411 code to s390x-mcount.h and #include it.
10412 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10413 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10414 (__fentry__): Add.
10415
8d997d22
IL
104162018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10417
10418 * stdlib/Versions: Remove __fentry__.
10419 * sysdeps/i386/Versions: Add __fentry__.
10420 * sysdeps/x86_64/Versions: Add __fentry__.
10421
69e2444a
IL
104222018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10423
10424 * sysdeps/s390/Makefile: Register the new tests.
10425 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10426 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10427 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10428 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10429 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10430 * sysdeps/s390/tst-dl-runtime.c: New file.
10431
bde6320f
IL
104322018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10433
10434 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10435 Do not clobber R0.
10436
5755f5e4
IL
104372018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10438
10439 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10440 Do not clobber R0.
10441
c8ad8522
IL
104422018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10443
10444 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10445 Do not clobber R0.
10446
b215eee1
IL
104472018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10448
10449 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10450 Do not clobber R0.
10451
329c6fec
IL
104522018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10453
10454 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10455 Use symbolic offsets for stack variables.
10456
0fb7afa2
IL
104572018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10458
10459 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10460 Use symbolic offsets for stack variables.
10461
6954059a
IL
104622018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10463
10464 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10465 Use symbolic offsets for stack variables.
10466
c7099673
IL
104672018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10468
10469 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10470 Use symbolic offsets for stack variables.
10471
2813e41e
JM
104722018-08-09 Joseph Myers <joseph@codesourcery.com>
10473
10474 * math/gen-libm-test.py: New file.
10475 * math/gen-libm-test.pl: Remove.
10476 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10477 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10478 gen-libm-test.pl.
10479 ($(libm-test-c-noauto-obj)): Likewise.
10480 ($(libm-test-c-auto-obj)): Likewise.
10481 ($(libm-test-c-narrow-obj)): Likewise.
10482 (regen-ulps): Likewise.
10483 * math/README.libm-test: Update references to gen-libm-test.pl.
10484 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10485 referencing gen-libm-test.pl.
10486 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10487 * math/libm-test-support.c: Likewise.
10488 * math/libm-test-support.h: Likewise.
10489 * sysdeps/generic/libm-test-ulps: Likewise.
10490
be64b194
SP
104912018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10492
10493 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10494 Fix value.
10495
140137fb
JM
104962018-08-08 Joseph Myers <joseph@codesourcery.com>
10497
10498 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10499 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10500
b5403eca
ST
105012018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10502
10503 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10504 symbols.
8ac0f9e6
ST
10505 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10506 __pthread_setspecific): Add hidden proto.
10507 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10508 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
b5403eca 10509
014efdd7
SP
105102018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10511
10512 * benchtests/bench-string.h (buf1_size, buf2_size): New
10513 variables.
10514 (init_sizes): New function.
10515 (test_init): Use it.
10516 (alloc_buf, exit_error): New functions.
10517 (alloc_bufs): Use ALLOC_BUF.
10518 (realloc_bufs): Remove.
10519 * benchtests/bench-memcmp.c (do_test): Adjust.
10520 * benchtests/bench-memset-large.c (do_test): Likewise.
10521 * benchtests/bench-memset-walk.c (do_test): Likewise.
10522 * benchtests/bench-memset.c (do_test): Likewise.
10523 * benchtests/bench-strncmp.c (do_test): Likewise.
10524
92a4cba7
AS
105252018-08-06 Andreas Schwab <schwab@suse.de>
10526
10527 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10528 of CONST_THREAD_AREA.
10529
fb4c32ae
L
105302018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10531
10532 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10533 (STATE_SAVE_MASK): Likewise.
10534 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10535 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10536 (STATE_SAVE_MASK): Likewise.
10537 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10538 instead of <cpu-features.h>.
10539
bf418187
DD
105402018-08-03 DJ Delorie <dj@redhat.com>
10541
10542 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
e5721f45 10543 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
bf418187 10544
bb17621a
DD
10545 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10546
ea705eb5
JM
105472018-08-03 Joseph Myers <joseph@codesourcery.com>
10548
10549 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10550 after TEST_* calls.
10551 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10552 * math/libm-test-logb.inc (logb_test_data): Likewise.
10553
284f42bc
WD
105542018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10555
10556 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10557 * string/strstr.c (AVAILABLE): Likewise.
10558
430388d5
L
105592018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10560
10561 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10562 <init-arch.h>.
10563 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10564 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10565 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10566
c5760aa9
CD
105672018-08-03 Carlos O'Donell <carlos@redhat.com>
10568
10569 * po/be.po: Update translation.
10570
6b535b84
CD
10571 * po/be.po: Update translation.
10572
ae67f2e5
L
105732018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10574
10575 * sysdeps/x86/cpu-features-offsets.sym
10576 (rtld_global_ro_offsetof): Removed.
10577 (CPU_FEATURES_SIZE): Likewise.
10578 (CPUID_OFFSET): Likewise.
10579 (CPUID_SIZE): Likewise.
10580 (CPUID_EAX_OFFSET): Likewise.
10581 (CPUID_EBX_OFFSET): Likewise.
10582 (CPUID_ECX_OFFSET): Likewise.
10583 (CPUID_EDX_OFFSET): Likewise.
10584 (FAMILY_OFFSET): Likewise.
10585 (MODEL_OFFSET): Likewise.
10586 (FEATURE_OFFSET): Likewise.
10587 (FEATURE_SIZ): Likewise.
10588 (COMMON_CPUID_INDEX_1): Likewise.
10589 (COMMON_CPUID_INDEX_7): Likewise.
10590 (FEATURE_INDEX_1): Likewise.
10591 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10592
6b5c8607 105932018-08-02 Carlos O'Donell <carlos@redhat.com>
08a5ee14
CD
10594
10595 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10596 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10597 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10598 (install-locales): Depend on install-locale-archive.
10599 (install-locale-archive): Define.
7b7adbd8 10600 (install-locale-files): Define.
08a5ee14
CD
10601 (build-one-locale): Define macro.
10602 * manual/install.texi (Running make install): Document.
10603 * manual/INSTALL: Regenerate.
10604
525691bd
SP
106052018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10606
d67d634b
SP
10607 * benchtests/scripts/compare_strings.py: Import traceback.
10608 (parse_file): Pretty-print error.
10609
525691bd
SP
10610 * NEWS: Mention the change.
10611 * elf/dl-tunables.list: Rename tune namespace to cpu.
10612 * sysdeps/powerpc/dl-tunables.list: Likewise.
10613 * sysdeps/x86/dl-tunables.list: Likewise.
10614 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10615 cpu.name.
10616 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10617 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10618 * manual/README.tunables: Likewise.
10619 * manual/tunables.texi: Likewise.
10620 * sysdeps/powerpc/cpu-features.c: Likewise.
10621 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10622 (init_cpu_features): Likewise.
10623 * sysdeps/x86/cpu-features.c: Likewise.
10624 * sysdeps/x86/cpu-features.h: Likewise.
10625 * sysdeps/x86/cpu-tunables.c: Likewise.
10626 * sysdeps/x86_64/Makefile: Likewise.
10627 * sysdeps/x86/dl-cet.c: Likewise.
10628
506d7fb1
JM
106292018-08-02 Joseph Myers <joseph@codesourcery.com>
10630
10631 [BZ #23479]
10632 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10633 [__mips_hard_float].
10634 (FE_UNDERFLOW): Likewise.
10635 (FE_OVERFLOW): Likewise.
10636 (FE_DIVBYZERO): Likewise.
10637 (FE_INVALID): Likewise.
10638 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10639 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10640 (FE_UPWARD): Likewise.
10641 (FE_DOWNWARD): Likewise.
10642 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10643 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10644 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10645 [__mips_hard_float].
10646 (FP_ROUNDMODE): Likewise.
10647 (FP_RND_NEAREST): Likewise.
10648 (FP_RND_ZERO): Likewise.
10649 (FP_RND_PINF): Likewise.
10650 (FP_RND_MINF): Likewise.
10651 (FP_EX_INVALID): Likewise.
10652 (FP_EX_OVERFLOW): Likewise.
10653 (FP_EX_UNDERFLOW): Likewise.
10654 (FP_EX_DIVZERO): Likewise.
10655 (FP_EX_INEXACT): Likewise.
10656 (FP_INIT_ROUNDMODE): Likewise.
10657 * sysdeps/mips/nofpu/fesetenv.c: New file.
10658 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10659
f6dcefbe
JM
106602018-08-01 Joseph Myers <joseph@codesourcery.com>
10661
10662 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10663 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10664 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10665 conditional on [FE_UPWARD].
10666
fa67ba06
PE
106672018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10668
10669 regex: fix memory leak in Gnulib
10670 Problem and fix reported by Assaf Gordon in:
10671 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10672 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10673 range_ends members too, as they are defined in 'struct
10674 re_charset_t' even if not _LIBC. This affects only Gnulib.
10675
82c80ac2
L
106762018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10677
10678 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10679 ...
10680 (get_common_indices): This.
10681 (init_cpu_features): Updated.
10682
c0e7e2c1
JM
106832018-08-01 Joseph Myers <joseph@codesourcery.com>
10684
46f8cf57
JM
10685 * sysdeps/generic/math-tests-snan-payload.h: New file.
10686 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10687 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10688 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10689 * sysdeps/generic/math-tests.h: Include
10690 <math-tests-snan-payload.h>.
10691 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10692 * sysdeps/hppa/math-tests.h: Remove file.
10693 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10694 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10695 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10696 Likewise.
10697
c0e7e2c1
JM
10698 * sysdeps/generic/math-tests-snan-cast.h: New file.
10699 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10700 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10701 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10702 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10703
74939c83
CD
107042018-08-01 Carlos O'Donel <carlos@redhat.com>
10705
b029723b
CD
10706 * version.h (RELEASE): Set to "development".
10707 (VERSION): Set to "2.28.9000".
10708 * NEWS (2.29): New section.
10709
3c03baca
CD
10710 * version.h (RELEASE): Set to "stable".
10711 (VERSION): Set to "2.28".
10712 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10713 * NEWS: Add the list of bugs fixed in 2.28.
10714
74939c83
CD
10715 * po/ca.po: Update to latest version.
10716 * po/cs.po: Likewise
10717 * po/da.po: Likewise
10718 * po/el.po: Likewise
10719 * po/eo.po: Likewise
10720 * po/es.po: Likewise
10721 * po/fi.po: Likewise
10722 * po/fr.po: Likewise
10723 * po/gl.po: Likewise
10724 * po/hu.po: Likewise
10725 * po/ia.po: Likewise
10726 * po/id.po: Likewise
10727 * po/it.po: Likewise
10728 * po/ja.po: Likewise
10729 * po/ko.po: Likewise
10730 * po/lt.po: Likewise
10731 * po/nb.po: Likewise
10732 * po/nl.po: Likewise
10733 * po/pt_BR.po: Likewise
10734 * po/ru.po: Likewise
10735 * po/rw.po: Likewise
10736 * po/sk.po: Likewise
10737 * po/sl.po: Likewise
10738 * po/tr.po: Likewise
10739 * po/zh_CN.po: Likewise
10740 * po/zh_TW.po: Likewise
10741
d4b54bdf
ST
107422018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10743
10744 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10745 initialization...
10746 (init): ... before initializing libpthread.
10747
42fc12ef
ST
10748 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10749 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10750 (__mach_setup_tls): ... new function.
10751 (mach_setup_tls): New alias.
10752 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10753 __mach_setup_thread.
10754 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10755 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10756 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10757 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10758
6cca855e
CD
107592018-07-31 Carlos O'Donell <carlos@redhat.com>
10760
f650932b
CD
10761 * manual/install.texi: Update versions.
10762 * INSTALL: Regenerate.
10763
6cca855e
CD
10764 * manual/contrib.texi (Contributors): Update contributions.
10765
07fdea47
CD
107662018-07-31 Carlos O'Donell <carlos@redhat.com>
10767
10768 * po/be.po: Update translations.
10769
63d5fad4
AZ
107702018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10771
10772 * sysdeps/sh/libm-test-ulps: Update.
10773
1ff712a6
CD
107742018-07-30 Carlos O'Donell <carlos@redhat.com>
10775
10776 * po/bg.po: Update translations.
10777 * po/de.po: Likewise.
10778 * po/hr.po: Likewise.
10779 * po/pt_BR.po: Likewise.
10780 * po/sv.po: Likewise.
10781 * po/vi.po: Likewise.
10782
98864ed0
L
107832018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10784
10785 [BZ #23467]
10786 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10787 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10788 (CFLAGS-tst-cet-property-1.o): New.
10789 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10790 ($(objpfx)tst-cet-property-2): Likewise.
10791 ($(objpfx)tst-cet-property-2.out): Likewise.
10792 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10793 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10794 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10795 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10796 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10797
c92a00d8
L
107982018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10799
10800 [BZ #23458]
10801 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10802
99bc6241
ST
108032018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10804
10805 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10806 __sbrk): Do not set attribute_hidden.
af86087f 10807 * sysdeps/mach/hurd/not-errno.h: New file.
99bc6241
ST
10808 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10809 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10810
bcb1c4af
CD
108112018-07-27 Carlos O'Donell <carlos@redhat.com>
10812
10813 * po/uk.po: Update translations.
10814 * po/cs.po: Likewise.
10815 * po/pl.po: Likewise.
10816
4591b7db
L
108172018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10818
10819 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10820 parse beyond the note end.
10821
2c6da2f4
AZ
108222018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10823
10824 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10825 kernel does not support OFD locks.
10826 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10827
20365a31
ST
108282018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10829
10830 * sysdeps/mach/hurd/Versions (libc): Make __access and
10831 __access_noerrno external so they can override the ld symbols.
10832 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10833 __writev, __open64, __access_noerrno extern so they can be overrided.
10834 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10835 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10836
cb1a43db
CD
108372018-07-26 Carlos O'Donell <carlos@redhat.com>
10838
10839 * po/libc.pot: Regenerate.
10840
74759ae5
JM
108412018-07-26 Joseph Myers <joseph@codesourcery.com>
10842
10843 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10844
da80612d
L
108452018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10846
10847 [BZ #23459]
10848 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10849 function.
10850 (init_cpu_features): Call get_extended_indices for both Intel
10851 and AMD CPUs.
10852 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10853 Remove "for AMD" comment.
10854
65d87ade
L
108552018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10856
10857 [BZ # 23456]
10858 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10859 COMMON_CPUID_INDEX_80000001.
10860
c9dc4d51
SL
108612018-07-26 Stefan Liebler <stli@linux.ibm.com>
10862
10863 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10864 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10865
cfba5dbb
FW
108662018-07-26 Florian Weimer <fweimer@redhat.com>
10867
10868 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10869 aliases for symbols not in the implementation namespace.
10870
6b5c8607 108712018-07-25 Carlos O'Donell <carlos@redhat.com>
7cd7d36f
CD
10872
10873 [BZ #23393]
10874 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10875 lowercase in LATIN script.
10876 * localedata/Makefile (test-input): Add en_US.UTF-8.
10877 * localedata/en_US.UTF-8.in: New file.
10878 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10879 and restore old tests.
10880 * posix/tst-regexloc.c (do_test): Add back range expression test.
10881
3fb455b3
L
108822018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10883
10884 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10885
d6499b70
AZ
108862018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10887
10888 * nptl/threads.h: Move to ...
10889 * sysdeps/nptl/threads.h: ... here.
10890 * sysdeps/hurd/stdc-predef.h: New file.
10891
08ac6bed
L
108922018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10893
10894 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10895 tst-cet-setcontext-1 if CET is enabled.
10896 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10897 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10898
9faaf938
AZ
108992018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10900
10901 * include/threads.h: Move to ...
10902 * sysdeps/nptl/threads.h: ... here.
10903 * sysdeps/htl/threads.h: New file.
10904 * conform/Makefile (linknamespace-libs-ISO11): Use
10905 static-thread-library instead of linking libpthread.
10906 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10907
d6b8f847
FW
109082018-07-25 Florian Weimer <fweimer@redhat.com>
10909
10910 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10911 nanoseconds into seconds.
10912 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10913 (do_test): Likewise.
10914 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10915 (do_test): Likewise. Avoid nanosecond overflow and spurious
10916 timeouts due to system load.
10917 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10918 (child_wait): Increment it.
10919 (do_test): Wait as long as necessary until all expected threads
10920 have arrived.
10921
25123a1c
L
109222018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10923 H.J. Lu <hongjiu.lu@intel.com>
10924
10925 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10926 __ssp.
10927 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10928 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10929 (__push___start_context): New.
10930 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10931 <asm/prctl.h>.
10932 (__getcontext): Record the current shadow stack base. Save the
10933 caller's shadow stack pointer and base.
10934 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10935 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10936 (__push___start_context): New prototype.
10937 (__makecontext): Call __push___start_context to allocate a new
10938 shadow stack, push __start_context onto the new stack as well
10939 as the new shadow stack.
10940 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10941 <asm/prctl.h>.
10942 (__setcontext): Restore the target shadow stack.
10943 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10944 <asm/prctl.h>.
10945 (__swapcontext): Record the current shadow stack base. Save
10946 the caller's shadow stack pointer and base. Restore the target
10947 shadow stack.
10948 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10949 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10950 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10951
375a4844
L
109522018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10953
10954 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10955 tst-setcontext8 and tst-setcontext9.
10956 * stdlib/tst-setcontext6.c: New file.
10957 * stdlib/tst-setcontext7.c: Likewise.
10958 * stdlib/tst-setcontext8.c: Likewise.
10959 * stdlib/tst-setcontext9.c: Likewise.
10960
bd4f7903
L
109612018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10962
10963 * stdlib/Makefile ((tests): Add tst-setcontext5.
10964 * stdlib/tst-setcontext5.c: New file.
10965
7e28f203
L
109662018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10967
10968 * stdlib/Makefile (tests): Add tst-setcontext4.
10969 * stdlib/tst-setcontext4.c: New file.
10970
8516ad2d
L
109712018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10972
10973 * stdlib/Makefile (tests): Add tst-swapcontext1.
10974 * stdlib/tst-swapcontext1.c: New test.
10975
fddcd003
L
109762018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10977
10978 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10979 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10980 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10981 and tst-cet-legacy-4c.
10982 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10983 and tst-cet-legacy-mod-4.
10984 (CFLAGS-tst-cet-legacy-2.c): New.
10985 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10986 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10987 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10988 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10989 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10990 ($(objpfx)tst-cet-legacy-1): Likewise.
10991 ($(objpfx)tst-cet-legacy-2): Likewise.
10992 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10993 ($(objpfx)tst-cet-legacy-2a): Likewise.
10994 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10995 ($(objpfx)tst-cet-legacy-4): Likewise.
10996 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10997 ($(objpfx)tst-cet-legacy-4a): Likewise.
10998 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10999 (tst-cet-legacy-4a-ENV): Likewise.
11000 ($(objpfx)tst-cet-legacy-4b): Likewise.
11001 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11002 (tst-cet-legacy-4b-ENV): Likewise.
11003 ($(objpfx)tst-cet-legacy-4c): Likewise.
11004 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11005 (tst-cet-legacy-4c-ENV): Likewise.
11006 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11007 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11008 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11009 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11010 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11011 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11012 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11013 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11014 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11015 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11016 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11017
9aa3113a
L
110182018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11019
11020 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11021 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11022 with ssp_base.
11023 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11024 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11025 with ssp_base.
11026
9c79cec8
AS
110272018-07-25 Andreas Schwab <schwab@suse.de>
11028
11029 [BZ #23442]
11030 * locale/weightwc.h (findidx): Handle the case where usrc is a
11031 prefix of cp but one character too short.
11032
969c3355
AZ
110332018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11034
11035 * NEWS: Add ISO C threads addition.
11036
e0f9c462
FW
110372018-07-24 Florian Weimer <fweimer@redhat.com>
11038
11039 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11040 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11041 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11042 4.13.
11043
394df381
L
110442018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11045
11046 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11047 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11048 <sys/prctl.h> and <asm/prctl.h>.
11049 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11050 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11051 and <asm/prctl.h>.
11052 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11053 ARCH_CET_LEGACY_BITMAP.
11054 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11055 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11056 * sysdeps/x86/libc-start.c: Include <startup.h>.
11057
46545530
FW
110582018-07-24 Florian Weimer <fweimer@redhat.com>
11059
11060 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11061 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11062
6b5c8607 110632018-07-24 Rical Jasan <rj@2c3t.io>
9d0a979e 11064 Adhemerval Zanella <adhemerval.zanella@linaro.org>
0a07288b
AZ
11065 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11066
11067 [BZ #14092]
9d0a979e
RJ
11068 * manual/debug.texi: Update adjacent chapter name.
11069 * manual/probes.texi: Likewise.
11070 * manual/threads.texi (ISO C Threads): New section.
11071 (POSIX Threads): Convert to a section.
11072
110732018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11074 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11075
11076 [BZ# 14092]
0a07288b
AZ
11077 * nptl/Makefile (tests): Add new test files.
11078 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11079 * nptl/tst-cnd-basic.c: Likewise.
11080 * nptl/tst-cnd-broadcast.c: Likewise.
11081 * nptl/tst-cnd-timedwait.c: Likewise.
11082 * nptl/tst-mtx-basic.c: Likewise.
11083 * nptl/tst-mtx-recursive.c: Likewise.
11084 * nptl/tst-mtx-timedlock.c: Likewise.
11085 * nptl/tst-mtx-trylock.c: Likewise.
11086 * nptl/tst-thrd-basic.c: Likewise.
11087 * nptl/tst-thrd-detach.c: Likewise.
11088 * nptl/tst-thrd-sleep.c: Likewise.
11089 * nptl/tst-tss-basic.c: Likewise.
11090
ce7528f6
AZ
110912018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11092
c6dd669b
AZ
11093 [BZ #14092]
11094 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11095 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11096 symbols.
11097 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11100 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11101 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11102 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11103 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11104 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11105 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11106 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11107 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11108 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11110 Likewise.
11111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11112 Likewise.
11113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11114 Likewise.
11115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11116 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11117 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11118 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11119 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11120 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11121 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11122 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11123 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11124 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11125 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11126 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11127 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11128 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11129 Likewise.
11130 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11131 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11132 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11133 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11134 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11135 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11136 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11137 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11138 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11139 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11140 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11141 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11142 ikewise.
11143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11145 Likewise.
11146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11147 Likewise.
11148 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11149 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11150 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11151 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11152 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11153 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11154 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11155 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11156
78d40132
AZ
11157 [BZ #14092]
11158 * conform/data/threads.h-data (thread_local): New macro.
11159 (TSS_DTOR_ITERATIONS): Likewise.
11160 (tss_t): New type.
11161 (tss_dtor_t): Likewise.
11162 (tss_create): New function.
11163 (tss_get): Likewise.
11164 (tss_set): Likewise.
11165 (tss_delete): Likewise.
11166 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11167 tss_get, and tss_set objects.
11168 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11169 * nptl/tss_create.c: New file.
11170 * nptl/tss_delete.c: Likewise.
11171 * nptl/tss_get.c: Likewise.
11172 * nptl/tss_set.c: Likewise.
11173 * sysdeps/nptl/threads.h (thread_local): New define.
11174 (TSS_DTOR_ITERATIONS): Likewise.
11175 (tss_t): New typedef.
11176 (tss_dtor_t): Likewise.
11177 (tss_create): New prototype.
11178 (tss_get): Likewise.
11179 (tss_set): Likewise.
11180 (tss_delete): Likewise.
11181
918311a3
AZ
11182 [BZ #14092]
11183 * conform/data/threads.h-data (cnd_t): New type.
11184 (cnd_init): New function.
11185 (cnd_signal): Likewise.
11186 (cnd_broadcast): Likewise.
11187 (cnd_wait): Likewise.
11188 (cnd_timedwait): Likewise.
11189 (cnd_destroy): Likewise.
11190 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11191 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11192 object.
11193 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11194 * nptl/cnd_broadcast.c: New file.
11195 * nptl/cnd_destroy.c: Likewise.
11196 * nptl/cnd_init.c: Likewise.
11197 * nptl/cnd_signal.c: Likewise.
11198 * nptl/cnd_timedwait.c: Likewise.
11199 * nptl/cnd_wait.c: Likewise.
11200 * sysdeps/nptl/threads.h (cnd_t): New type.
11201 (cnd_init): New prototype.
11202 (cnd_signa): Likewise.
11203 (cnd_broadcast): Likewise.
11204 (cnd_wait): Likewise.
11205 (cnd_timedwait): Likewise.
11206 (cnd_destroy): Likewise.
11207
3c20a679
AZ
11208 [BZ #14092]
11209 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11210 (once_flag): New type.
11211 (call_once): New function.
11212 * nptl/Makefile (libpthread-routines): Add call_once object.
11213 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11214 * nptl/call_once.c: New file.
11215 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11216 (once_flag): New type.
11217 (call_once): New prototype.
11218
18d59c1b
AZ
11219 [BZ #14092]
11220 * conform/data/threads.h-data (mtx_plain): New constant.
11221 (mtx_recursive): Likewise.
11222 (mtx_timed): Likewise.
11223 (mtx_t): New type.
11224 (mtx_init): New function.
11225 (mtx_lock): Likewise.
11226 (mtx_timedlock): Likewise.
11227 (mtx_trylock): Likewise.
11228 (mtx_unlock): Likewise.
11229 (mtx_destroy): Likewise.
11230 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11231 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11232 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11233 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11234 * nptl/mtx_destroy.c: New file.
11235 * nptl/mtx_init.c: Likewise.
11236 * nptl/mtx_lock.c: Likewise.
11237 * nptl/mtx_timedlock.c: Likewise.
11238 * nptl/mtx_trylock.c: Likewise.
11239 * nptl/mtx_unlock.c: Likewise.
11240 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11241 (mtx_recursive): Likewise.
11242 (mtx_timed): Likewise.
11243 (mtx_t): New type.
11244 (mtx_init): New prototype.
11245 (mtx_lock): Likewise.
11246 (mtx_timedlock): Likewise.
11247 (mtx_trylock): Likewise.
11248 (mtx_unlock): Likewise.
11249 (mtx_destroy): Likewise.
11250
ce7528f6
AZ
11251 [BZ #14092]
11252 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11253 (linknamespace-libs-ISO11): Add libpthread.a.
11254 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11255 functions.
11256 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11257 * nptl/Makefile (headers): Add threads.h.
11258 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11259 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11260 thrd_yield.
11261 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11262 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11263 thrd_join, thrd_sleep, and thrd_yield symbols.
11264 * nptl/descr.h (struct pthread): Add c11 field.
11265 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11266 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11267 routine with expected function prototype.
11268 (__pthread_create_2_1): Add C11 threads check based on attribute
11269 value.
11270 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11271 * nptl/thrd_create.c: New file.
11272 * nptl/thrd_current.c: Likewise.
11273 * nptl/thrd_detach.c: Likewise.
11274 * nptl/thrd_equal.c: Likewise.
11275 * nptl/thrd_exit.c: Likewise.
11276 * nptl/thrd_join.c: Likewise.
11277 * nptl/thrd_priv.h: Likewise.
11278 * nptl/thrd_sleep.c: Likewise.
11279 * nptl/thrd_yield.c: Likewise.
11280 * include/threads.h: Likewise.
11281
e27f41ba
L
112822018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11283
11284 * bits/indirect-return.h: New file.
11285 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11286 * sysdeps/x86/bits/indirect-return.h: Likewise.
11287 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11288 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11289 (swapcontext): Add __INDIRECT_RETURN.
11290 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11291 (prepare_test_buffer): Use it.
11292
21526a50
AS
112932018-07-24 Andreas Schwab <schwab@suse.de>
11294
11295 [BZ #23448]
11296 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11297 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11298
3650e1d9
L
112992018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11300
11301 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11302 Redefine if shadow stack is enabled.
11303 (SYSCALL_ERROR_LABEL): Likewise.
11304 (__vfork): Pop shadow stack and jump back to to caller directly
11305 when shadow stack is in use.
11306 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11307 Redefine if shadow stack is enabled.
11308 (SYSCALL_ERROR_LABEL): Likewise.
11309 (__vfork): Pop shadow stack and jump back to to caller directly
11310 when shadow stack is in use.
11311
ca027e0f
L
113122018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11313
11314 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11315 enabled.
11316 (foo): Likewise.
11317 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11318 (foo): Likewise.
11319
b99f1c95
JM
113202018-07-20 Joseph Myers <joseph@codesourcery.com>
11321
11322 * scripts/build-many-glibcs.py (Context.checkout): Default
11323 binutils version to 2.31 branch.
11324
c8fabb84
ZL
113252018-07-20 Zong Li <zong@andestech.com>
11326
11327 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11328 URL of gcc's tarball.
11329
786658a0
FW
113302018-07-20 Florian Weimer <fweimer@redhat.com>
11331
11332 [BZ #23396]
11333 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11334 not compare an extra byte after the end of the weights.
11335
46f2474e
ST
113362018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11337
11338 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11339 to 1.
8ba1520e
ST
11340 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11341 hidden prototypes.
11342 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11343 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
2d5c41de
ST
11344 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11345 list of libraries whose stack executability is expected.
11346 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11347 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11348 variable.
11349 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11350 libc.so libpthread.so.
46f2474e 11351
60088242
TS
113522018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11353
11354 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11355 SOCK_NONBLOCK.
75d5e4a0
TS
11356 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11357 and SOCK_NONBLOCK.
de195be0
TS
11358 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11359 implement __pipe2.
11360 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
60088242 11361
1cf4ae7f
LS
113622018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11363
11364 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11365 library to improve command line parsing.
11366 (__main__): make schema file as optional parameter (--schema),
11367 defaulting to benchtests/scripts/benchout.schema.json.
11368 (main): move out of the parsing stuff to __main_  and leave it
11369 only as caller of main comparison functions.
11370
e84bd851
L
113712018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11372
11373 * NEWS: Add a note for Intel CET status.
11374 * manual/install.texi: Likewise.
11375 * INSTALL: Regenerated.
11376
df467d22
QP
113772018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11378
11379 [BZ #23140]
11380 * localedata/locales/oc_FR (mon): Rename to...
11381 (alt_mon): This, then update October (typo fix).
11382 (mon): New content (genitive case, month names preceded by
11383 "de" or "d’").
11384
11385 [BZ #23422]
11386 * localedata/locales/oc_FR (abday): Update all items.
11387 (day): Update Wednesday and Saturday (typo fixes).
11388 (abmon): Update all items, except May.
11389 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11390 (LC_IDENTIFICATION): Bump the revision number and date.
11391 Keep the "category" entries in alphabetic order.
11392 (LC_ADDRESS): Remove no longer needed comment.
11393 (LC_COLLATE): Use “copy "ca_ES"”.
11394 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11395 "name_mrs".
11396
5c112f1b
JM
113972018-07-18 Joseph Myers <joseph@codesourcery.com>
11398
11399 * grp/tst_fgetgrent.c: Include <unistd.h>.
11400 (main): Use mkstemp instead of tmpnam.
11401 * io/test-utime.c (main): Likewise.
11402 * posix/annexc.c (macrofile): Change to modifiable array.
11403 (main): Remove macrofile here.
11404 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11405 macrofile here.
11406 (check_header): Do not remove macrofile here.
11407 * posix/bug-getopt1.c: Include <stdlib.h>.
11408 (do_test): Use mkstemp instead of tmpnam.
11409 * posix/bug-getopt2.c: Include <stdlib.h>.
11410 (do_test): Use mkstemp instead of tmpnam.
11411 * posix/bug-getopt3.c: Include <stdlib.h>.
11412 (do_test): Use mkstemp instead of tmpnam.
11413 * posix/bug-getopt4.c: Include <stdlib.h>.
11414 (do_test): Use mkstemp instead of tmpnam.
11415 * posix/bug-getopt5.c: Include <stdlib.h>.
11416 (do_test): Use mkstemp instead of tmpnam.
11417 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11418 (main): Use mkstemp instead of tmpnam.
11419 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11420 (main): Use mkstemp instead of tmpnam.
11421 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11422 (main): use mkstemp instead of tmpnam.
11423 * stdlib/isomac.c (macrofile): Change to modifiable array.
11424 (main): Remove macrofile here.
11425 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11426 macrofile here.
11427 (check_header): Do not remove macrofile here.
11428
6d90776d
L
114292018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11430
11431 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11432 glibc.tune.x86_shstk.
11433
e6c69509
L
114342018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11435
11436 * NEWS: Mention --enable-cet.
11437 * manual/install.texi: Document --enable-cet.
11438 * INSTALL: Regenerated.
11439
e2d40a88
L
114402018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11441
11442 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11443 Add _CET_NOTRACK before indirect jump to jump table.
11444
77a8ae09
L
114452018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11446
11447 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11448 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11449 to jump table.
11450
90d15dc5
L
114512018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11452
11453 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11454 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11455 to jump table.
11456
f1574581
L
114572018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11458
11459 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11460 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11461 to jump table.
11462
7fb61336
L
114632018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11464
11465 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11466 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11467 to jump table.
11468
0a899af0
L
114692018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11470
11471 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11472 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11473 to jump table.
11474 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11475
177824e2
L
114762018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11477
11478 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11479 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11480 to jump table.
11481
00e7b76a
L
114822018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11483
11484 * sysdeps/i386/i686/multiarch/memset-sse2.S
11485 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11486 to jump table.
11487
7e119cd5
L
114882018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11489
11490 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11491 indirect jump to jump table.
11492
03aaf49b
L
114932018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11494
11495 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11496 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11497 to jump table.
11498 (MEMCPY): Likewise.
11499
811e9e52
L
115002018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11501
11502 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11503 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11504 to jump table.
11505 (MEMCPY): Likewise.
11506
8817df42
L
115072018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11508
11509 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11510 _CET_NOTRACK before indirect jump to jump table.
11511
921595d1
L
115122018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11513
11514 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11515 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11516 to jump table.
11517
4ef60d95
L
115182018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11519
11520 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11521 indirect jump to jump table.
11522
61c4aad7
VT
115232018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11524
11525 [BZ #22241]
11526 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11527 (LOCALES): Likewise.
11528 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11529 * localedata/locales/sah_RU: New file.
11530 * localedata/sah_RU.UTF-8.in: New file.
11531
be9ccd27
L
115322018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11533
11534 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11535 "sysdep.h".
11536 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11537 _CET_ENDBR to indirect jump targets and adjust jump destination
11538 for _CET_ENDBR.
11539 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11540 "sysdep.h".
11541 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11542 _CET_ENDBR to indirect jump targets and adjust jump destination
11543 for _CET_ENDBR.
11544 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11545 "sysdep.h".
11546 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11547 _CET_ENDBR to indirect jump targets and adjust jump destination
11548 for _CET_ENDBR.
11549
5efc6777
L
115502018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11551
11552 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11553 _CET_ENDBR.
11554
562837c0
L
115552018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11556
11557 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11558 _CET_ENDBR.
11559 (_dl_tlsdesc_undefweak): Likewise.
11560 (_dl_tlsdesc_dynamic): Likewise.
11561 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11562 (_dl_tlsdesc_resolve_rel): Likewise.
11563 (_dl_tlsdesc_resolve_rela): Likewise.
11564 (_dl_tlsdesc_resolve_hold): Likewise.
11565 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11566 (_dl_tlsdesc_undefweak): Likewise.
11567 (_dl_tlsdesc_dynamic): Likewise.
11568 (_dl_tlsdesc_resolve_rela): Likewise.
11569 (_dl_tlsdesc_resolve_hold): Likewise.
11570
124bcde6
L
115712018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11572
11573 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11574 (_fini): Likewise.
11575 * sysdeps/x86_64/crti.S (_init): Likewise.
11576 (_fini): Likewise.
11577
9145f033
RL
115782018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11579
11580 [BZ #23140]
11581 * localedata/locales/os_RU (mon): Rename to...
11582 (alt_mon): This.
11583 (mon): Import from CLDR (genitive case).
11584
ba2ea23d
L
115852018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11586
11587 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11588 cet-tunables.h> when CET is enabled.
11589
f753fa7d
L
115902018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11591
6b5c8607 11592 [BZ #21598]
f753fa7d
L
11593 * configure.ac: Add --enable-cet.
11594 * configure: Regenerated.
11595 * elf/Makefille (all-built-dso): Add a comment.
11596 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11597 Include <dl-prop.h>.
11598 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11599 segment.
11600 * elf/dl-open.c: Include <dl-prop.h>.
11601 (dl_open_worker): Call _dl_open_check.
11602 * elf/rtld.c: Include <dl-prop.h>.
11603 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11604 _rtld_main_check.
11605 * sysdeps/generic/dl-prop.h: New file.
11606 * sysdeps/i386/dl-cet.c: Likewise.
11607 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11608 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11609 * sysdeps/x86/cet-tunables.h: Likewise.
11610 * sysdeps/x86/check-cet.awk: Likewise.
11611 * sysdeps/x86/configure: Likewise.
11612 * sysdeps/x86/configure.ac: Likewise.
11613 * sysdeps/x86/dl-cet.c: Likewise.
11614 * sysdeps/x86/dl-procruntime.c: Likewise.
11615 * sysdeps/x86/dl-prop.h: Likewise.
11616 * sysdeps/x86/libc-start.h: Likewise.
11617 * sysdeps/x86/link_map.h: Likewise.
11618 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11619 _CET_ENDBR.
11620 (_dl_runtime_profile): Likewise.
11621 (_dl_runtime_resolve_shstk): New.
11622 (_dl_runtime_profile_shstk): Likewise.
11623 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11624 if CET is enabled.
11625 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11626 (CFLAGS-.os): Likewise.
11627 (CFLAGS-.op): Likewise.
11628 (CFLAGS-.oS): Likewise.
11629 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11630 is enabled.
11631 (tests-special): Add $(objpfx)check-cet.out.
11632 (cet-built-dso): New.
11633 (+$(cet-built-dso:=.note)): Likewise.
11634 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11635 ($(objpfx)check-cet.out): New.
11636 (generated): Add check-cet.out.
11637 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11638 <cet-tunables.h>.
11639 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11640 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11641 (init_cpu_features): Call get_cet_status to check CET status
11642 and update dl_x86_feature_1 with CET status. Call
11643 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11644 (set_x86_shstk). Disable and lock CET in libc.a.
11645 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11646 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11647 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11648 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11649 (_CET_ENDBR): Define if not defined.
11650 (ENTRY): Add _CET_ENDBR.
11651 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11652 x86_shstk.
11653 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11654 _CET_ENDBR.
11655 (_dl_runtime_profile): Likewise.
11656
52b2a80f
RA
116572018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11658
11659 [BZ #21895]
11660 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11661 restore r2 on longjmp.
11662 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11663 test list.
11664 Added rules to build test tst-setjmp-bug21895-static.
11665 Added module setjmp-bug21895 and rules to build a shared object from it.
11666 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11667 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11668
3ae725df
WD
116692018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11670
11671 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11672 * benchtests/bench-strstr.c: Likewise.
11673 * string/memmem.c (FASTSEARCH): Define.
11674 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11675 Add support for FASTSEARCH.
11676 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11677 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11678 (FASTSEARCH): Define.
11679 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11680 * string/test-strstr.c: Likewise.
11681
31e422ca
L
116822018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11683
11684 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11685 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11686
faaee1f0
L
116872018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11688 H.J. Lu <hongjiu.lu@intel.com>
11689
11690 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11691 (__longjmp): Restore shadow stack pointer if shadow stack is
11692 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11693 isn't defined for __longjmp_cancel.
11694 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11695 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11696 and SHADOW_STACK_POINTER_OFFSET is defined.
11697 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11698 (setjmp): Save shadow stack pointer if shadow stack is enabled
11699 and SHADOW_STACK_POINTER_OFFSET is defined.
11700 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11701 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11702 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11703 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11704 <jmp_buf-ssp.h>.
11705 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11706 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11707 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11708 Remove jmp_buf-ssp.sym.
11709 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11710 <jmp_buf-ssp.h>.
11711 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11712 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11713 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11714 jmp_buf-ssp.sym.
11715 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11716 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11717 (__longjmp): Restore shadow stack pointer if shadow stack is
11718 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11719 isn't defined for __longjmp_cancel.
11720 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11721 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11722 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11723
ebff9c5c
L
117242018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11725
11726 [BZ #22563]
11727 * nptl/pthread_create.c: Include <tls-setup.h>.
11728 (__pthread_create_2_1): Call tls_setup_tcbhead.
11729 * sysdeps/generic/tls-setup.h: New file.
11730 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11731 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11732 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11733 Likewise.
11734 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11735 to feature_1.
11736 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11737 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11738 (X86_FEATURE_1_SHSTK): Likewise.
11739 (CET_ENABLED): Likewise.
11740 (IBT_ENABLED): Likewise.
11741 (SHSTK_ENABLED): Likewise.
11742
0a83bad2
RL
117432018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11744
11745 [BZ #23208]
11746 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11747 (LOCALES): Likewise.
11748 * localedata/dsb_DE.UTF-8.in: New file.
11749 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11750
046bfed9
FW
117512018-07-12 Florian Weimer <fweimer@redhat.com>
11752
11753 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11754 __mprotect, not mprotect.
11755
93304f5f
FW
117562018-07-11 Florian Weimer <fweimer@redhat.com>
11757
11758 * io/Makefile (headers): Add bits/statx.h.
11759
4beefeeb
MF
117602018-07-10 Mike FABIAN <mfabian@redhat.com>
11761
11762 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11763 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11764 and headers.
11765 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11766 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11767 for utf8_gen.py
11768
fd70af45
FW
117692018-07-10 Florian Weimer <fweimer@redhat.com>
11770
11771 * io/Makefile (routines): Add statx.
11772 (tests-internal): Add tst-statx.
11773 * io/Versions (GLIBC_2.28): Export statx.
11774 * io/bits/statx.h: New file.
11775 * io/sys/stat.h [__USE_GNU]: Include it.
11776 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11777 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11778 Define.
11779 * io/statx.c: New file.
11780 * io/statx_generic.: Likewise.
11781 * io/tst-statx.: Likewise.
11782 * include/bits/statx.h: Likewise.
11783 * sysdeps/unix/sysv/linux/kernel-features.h
11784 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11785 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11786 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11787 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11788 Undefine.
11789 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11790 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11791 * sysdeps/unix/sysv/linux/statx.c: New file.
11792 * manual/filesys.texi: Note that statx is undocumented.
11793 * sysdeps/**/libc*.abilist: Update.
11794
b444e8f7
AZ
117952018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11796
11797 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11798 a kernel issue which lead to test failure in some cases.
11799
7b2f4ced
FW
118002018-07-10 Florian Weimer <fweimer@redhat.com>
11801
11802 [BZ #23036]
11803 * posix/regexec.c (check_node_accept_bytes): When comparing
11804 weights, do not compare an extra byte after the end of the
11805 weights.
11806
4fa34da6
FW
118072018-07-10 Florian Weimer <fweimer@redhat.com>
11808
11809 * libio/readline.c: Fix copyright year.
11810 * libio/tst-readline.c Likewise.
11811 * nss/tst-nss-files-hosts-getent.c: Likewise.
11812
916124ed
FW
118132018-07-06 Florian Weimer <fweimer@redhat.com>
11814
11815 [BZ #18991]
11816 * nss/nss_files/files-XXX.c (internal_getent): Use
11817 __libc_readline_unlocked. Seek back to the start of the line if
11818 parsing failes with ERANGE.
11819 (get_contents_ret, get_contents): Remove.
11820 * nss/tst-nss-files-hosts-getent.c: New file.
11821 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11822 (tst-nss-files-hosts-getent): Link with -ldl.
11823
3f5e3f5d
FW
118242018-07-06 Florian Weimer <fweimer@redhat.com>
11825
11826 * include/stdio.h (__libc_readline_unlocked): Declare.
11827 (__ftello64, __fseeko64): Declare aliases.
11828 * libio/readline.c: New file.
11829 * libio/tst-readline.c: Likewise.
11830 (routines): Add readline.
11831 (tests-internal): Add tst-readlime.
11832 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11833 __libc_readline_unlocked.
11834 * libio/fseeko.c (__fseeko): Rename from fseeko.
11835 (fseeko): Add alias.
11836 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11837 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11838 (fseeko64): Add alias.
11839 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11840 * libio/ftello64.c (__ftello64): Rename from ftello64.
11841 (ftello64): Add alias.
11842
397c54c1
SN
118432018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11844
11845 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11846 HWCAP_ATOMICS.
11847
d0cd7980
SN
118482018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11849
11850 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11851 Use dl_hwcap without masking.
11852 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11853 Remove HWCAP_CPUID.
11854
ddb3c626
FW
118552018-07-06 Florian Weimer <fweimer@redhat.com>
11856
11857 * conform/conformtest.pl (checknamespace): Escape literal braces
11858 in regular expressions.
11859
bce5911b
AP
118602018-07-06 Amit Pawar <amit.pawar@amd.com>
11861
11862 * sysdeps/x86/cpu-features.c (get_common_indeces):
11863 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11864 * sysdeps/x86/cpu-features.c (init_cpu_features):
11865 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11866
3a885c1f
FW
118672018-07-05 Florian Weimer <fweimer@redhat.com>
11868
11869 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11870 protector.
11871 (CFLAGS-elf-init.oS): Likewise.
11872
38cade0c
FW
118732018-07-05 Florian Weimer <fweimer@redhat.com>
11874 Carlos O'Donell <carlos@redhat.com>
11875
11876 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11877 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11878 with stack protector enabled because there is no risk of infinite
11879 recursion.
11880
9449a295
MR
118812018-07-05 Maciej W. Rozycki <macro@mips.com>
11882
11883 [BZ #19818]
11884 [BZ #23307]
11885 * libc-abis (ABSOLUTE): New ABI.
11886 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11887 * NEWS: Mention the new ABI.
11888
d6da5cb6
FW
118892018-07-05 Florian Weimer <fweimer@redhat.com>
11890
11891 [BZ # 17662]
11892 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11893 (RENAME_WHITEOUT): Define.
11894 [__USE_GNU] (renameat2): Declare.
11895 * stdio-common/Makefile (routines): Add renameat2.
11896 (tests): Add tst-renameat2.
11897 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11898 * stdio-common/renameat2.c: New file.
11899 * stdio-common/tst-renameat2.c: Likewise.
11900 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11901 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11902 undocumented.
11903 * sysdeps/unix/sysv/linux/kernel-features.h
11904 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11905 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11906 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11907 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11908 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11909 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11910 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11911 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11912 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11913 * include/stdio.h (__renameat): Add alias for renameat.
11914 * stdio-common/renameat.c (__renameat): Rename from renameat.
11915 Add hidden definition and alias.
11916 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11917 * sysdeps/mach/hurd/renameat.c: Likewise.
11918 * sysdeps/**/libc*.abilist: Add renameat2.
11919
1002d708
AZ
119202018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11921
11922 * posix/bug-regex33.c: Fix build after regex sync.
11923
34fdb893
CD
119242018-07-04 Carlos O'Donell <carlos@redhat.com>
11925
11926 [BZ #23164]
11927 * localedata/tst-langinfo-setlocale.c: New file.
11928 * localedata/tst-langinfo-setlocale-static.c: New file.
11929 * localedata/tst-langinfo-newlocale.c: New file.
11930 * localedata/tst-langinfo-newlocale-static.c: New file.
11931 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11932 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11933 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11934 (tests-static): Remove tst-langinfo-static. Add
11935 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11936 (tests-special): Remove $(objpfx)tst-langinfo.out,
11937 $(objpfx)tst-langinfo-static.out. Add
11938 $(objpfx)tst-langinfo-setlocale.out,
11939 $(objpfx)tst-langinfo-newlocale.out,
11940 $(objpfx)tst-langinfo-setlocale-static.out,
11941 $(objpfx)tst-langinfo-newlocale-static.out.
11942 ($(objpfx)tst-langinfo.out): Remove.
11943 ($(objpfx)tst-langinfo-static.out): Remove.
11944 ($(objpfx)tst-langinfo-newlocale.out): New target.
11945 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11946 (test-xfail-tst-langinfo-newlocale-static): Add.
11947 ($(objpfx)tst-langinfo-setlocale.out): New target.
11948 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11949 * localedata/tst-langinfo.c: Call test_locale.
11950 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11951 data.
11952
f2873d2d
FW
119532018-07-04 Florian Weimer <fweimer@redhat.com>
11954
11955 testrun.sh: Implement --tool=strace, --tool=valgrind
11956 * Makefile (testrun-script): Define variable.
11957 (testrun.sh): Use variable.
11958 * manual/install.texi (Tools for Compilation): make 4.0 or later
11959 is required.
11960 * configure.ac: Check for make 4.0 or later.
11961 * INSTALL: Regenerate.
11962 * configure: Likewise.
11963
eb04c213
AZ
119642018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11965
11966 [BZ #23233]
11967 [BZ #21163]
11968 [BZ #18986]
11969 [BZ #13762]
11970 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11971 * posix/PCRE.tests: Remove invalid test.
11972 * posix/bug-regex28.c: Fix expected values for used syntax.
11973 * posix/bug-regex37.c: New file.
11974 * posix/bug-regex38.c: Likewise.
11975 * posix/regcomp.c: Sync with gnulib.
11976 * posix/regex.c: Likewise.
11977 * posix/regex.h: Likewise.
11978 * posix/regex_internal.c: Likewise.
11979 * posix/regex_internal.h: Likewise.
11980 * posix/regexec.c: Likewise.
11981
b11643c2
MF
119822018-06-26 Mike FABIAN <mfabian@redhat.com>
11983
11984 [BZ #23308]
11985 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11986 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11987 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11988 * localedata/unicode-gen/PropList.txt: likewise.
11989 * localedata/unicode-gen/UnicodeData.txt: likewise.
11990 * localedata/charmaps/UTF-8: Regenerate.
11991 * localedata/locales/i18n_ctype: likewise.
11992 * localedata/locales/tr_TR: likewise.
11993 * localedata/locales/translit_circle: likewise.
11994 * localedata/locales/translit_cjk_compat: likewise.
11995 * localedata/locales/translit_combining: likewise.
11996 * localedata/locales/translit_compat: likewise.
11997 * localedata/locales/translit_font: likewise.
11998 * localedata/locales/translit_fraction: likewise.
11999
5a357506
FW
120002018-07-03 Florian Weimer <fweimer@redhat.com>
12001
12002 [BZ #23363]
12003 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12004 * stdio-common/tst-printf.sh: Adjust expected output.
12005 * LICENSES: Update.
12006
7279af00
AZ
120072018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12008
12009 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12010 symbol.
12011
b7b88cea
GG
120122018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12013
12014 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12015 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12016 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12017 * stdio-common/tst-printfsz-islongdouble.c: New file.
12018 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12019 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12020 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12021 [subdir == stdio-common] (tests-internal): Add
12022 test-printf-size-ieee128, and test-printf-size-ibm128.
12023 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12024 (CFLAGS-test-printf-size-ibm128.c): New variables.
12025 [subdir == stdio-common] (tests-special): Add
12026 $(objpfx)test-printf-size-ieee128.out and
12027 $(objpfx)test-printf-size-ibm128.out.
12028 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12029 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12030 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12031 __printf_sizeieee128.
12032 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12033 New file.
12034 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12035 Likewise.
12036 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12037 Likewise.
12038
2b445206
SN
120392018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12040
12041 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12042 (exp2f_inline): Likewise.
12043 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12044 (__math_uflowf): Likewise.
12045 (__math_may_uflowf): Likewise.
12046 (__math_divzerof): Likewise.
12047 (__math_invalidf): Likewise.
12048 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12049 (__math_oflowf): Likewise.
12050 (__math_uflowf): Likewise.
12051 (__math_may_uflowf): Likewise.
12052 (__math_divzerof): Likewise.
12053 (__math_invalidf): Likewise.
12054
2827ab99
CD
120552018-06-29 DJ Delorie <dj@redhat.com>
12056 Carlos O'Donell <carlos@redhat.com>
12057
12058 [BZ #23329]
12059 * include/libc-symbols.h: Comment the freeres framework.
12060 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12061 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12062 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12063 * dlfcn/dlerror.c: Include libc-symbols.h
12064 (__dlerror_main_freeres): New function.
12065 * dlfcn/dlfreeres.c: New file.
12066 * dlfcn/sdlfreeres.c: New file.
12067 * include/dlfcn.h: Declare __dlerror_main_freeres.
12068 * malloc/set-freeres.c: Declare __libdl_freeres, and
12069 __libpthread_freeres.
12070 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12071 the releavant libraries are loaded.
12072 * malloc/thread-freeres.c: Add comments.
12073 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12074 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12075 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12076 (__free_stacks): Rename to...
12077 (free_stacks): ...this. Mark static.
12078 (queue_stack): Call free_stacks.
12079 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12080 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12081 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12082 ptr_freeres element from struct.
12083 (pthread_functions): Remove .ptr_freeres from struct initializer.
12084 [SHARED] (nptl_freeres): Remove.
12085 * nptl/nptlfreeres.c: New file.
12086 * nptl/pthreadP.h
12087 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12088 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12089 attribute_hidden.
12090 (__free_stacks): Rename to...
12091 (__nptl_stacks_freeres): ...this.
12092 (__shm_directory_freeres): Declare.
12093 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12094 (__nptl_unwind_freeres): ...this.
12095 * resolv/res-close.c: Add comment.
12096 * resolv/resolv_conf.c: Include libc-symbols.h.
12097 * string/strerror_l.c: Include libc-symbols.h.
12098 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12099 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12100 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12101 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12102
37d3d244
RS
121032018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12104
12105 * stdlib/tst-strfmon_l.c: Add tests for long double.
12106
a1e0c5fa
MW
121072018-06-29 Michael Wolf <milupo@sorbzilla.de>
12108
12109 [BZ #23208]
12110 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12111 * localedata/locales/dsb_DE: New file.
12112
2e0c5de6
RL
121132018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12114
12115 [BZ #23140]
12116 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12117 genitive case).
12118 (alt_mon): New entry, import from CLDR (nominative case).
12119
cdb52c71
SL
121202018-06-29 Sylvain Lesage <severo@rednegra.net>
12121
12122 [BZ #22996]
12123 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12124
ce76a5cb
SP
121252018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12126
0aec4c1d
SP
12127 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12128 Use vector registers.
12129
ce76a5cb
SP
12130 * sysdeps/aarch64/multiarch/memmove_falkor.S
12131 (__memcpy_falkor): Use vector registers.
12132
7e8989d0
MS
121332018-06-29 Martin Sebor <msebor@redhat.com>
12134
12135 * manual/stdio.texi (Customizing Printf): Mention interaction
12136 with GCC built-ins.
12137
bac15a72
MR
121382018-06-29 Maciej W. Rozycki <macro@mips.com>
12139
12140 [BZ #23307]
12141 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12142 `st_value' is 0 if `st_shndx' is SHN_ABS.
12143 * elf/tst-absolute-zero.c: New file.
12144 * elf/tst-absolute-zero-lib.c: New file.
12145 * elf/tst-absolute-zero-lib.lds: New file.
12146 * elf/Makefile (tests): Add `tst-absolute-zero'.
12147 (modules-names): Add `tst-absolute-zero-lib'.
12148 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12149 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12150 ($(objpfx)tst-absolute-zero: New dependency.
12151
e69d994a
ZW
121522018-06-29 Zack Weinberg <zackw@panix.com>
12153
12154 * configure.ac: New command-line option --disable-crypt.
12155 Force --disable-nss-crypt when --disable-crypt is given, with a
12156 warning if it was explicitly enabled.
12157 * configure: Regenerate.
12158 * config.make.in: New boolean substitution variable $(build-crypt).
12159 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12160 when $(build-crypt).
12161 * manual/install.texi: Document --disable-crypt.
12162 * INSTALL: Regenerate.
12163
12164 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12165 which is never set.
12166 * conform/Makefile: Only include libcrypt.a in
12167 linknamespace-libs-xsi and linknamespace-libs-XPG4
12168 when $(build-crypt).
12169 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12170 USE_CRYPT to 1 when $(build-crypt).
12171 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12172 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12173 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12174
841785ba
ZW
121752018-06-29 Zack Weinberg <zackw@panix.com>
12176
12177 * crypt/crypt.h, posix/unistd.h: Update comments and
12178 prototypes for crypt and crypt_r.
12179
12180 * manual/crypt.texi (Cryptographic Functions): New initial
12181 exposition.
12182 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12183 (Unpredictable Bytes): Improve initial exposition. Clarify error
12184 behavior of getentropy and getrandom.
12185 * manual/examples/genpass.c: Generate a salt using getentropy
12186 instead of the current time. Use hash $5$ (SHA-2-256).
12187 * manual/examples/testpass.c: Demonstrate validation against
12188 hashes generated with three different one-way functions.
12189
12190 * manual/intro.texi: crypt.texi does not need an overview
12191 anymore.
12192
12193 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12194 * manual/terminal.texi: Consistently refer to "passphrases"
12195 * instead of "passwords", and to the "user database" instead
12196 * of the "password database".
12197 * manual/users.texi: Similarly. Add notes about how actual
12198 passphrase hashes are now stored in the shadow database.
12199 Remove 20-year-old junk todo note.
12200
6ab902e4
ZW
122012018-06-29 Zack Weinberg <zackw@panix.com>
12202
12203 * manual/crypt.texi: Use a normal top-level @node declaration.
12204 Move most of the introductory text to the 'crypt' section.
12205 Move the example programs below the @deftypefun for 'crypt_r'.
12206 Move the 'getpass' section...
12207 * manual/terminal.texi: ...here.
12208
b10a0acc
ZW
122092018-06-29 Zack Weinberg <zackw@panix.com>
12210 Florian Weimer <fweimer@redhat.com>
12211
12212 * posix/unistd.h: Do not declare encrypt.
12213 (_XOPEN_CRYPT): Remove macro definition.
12214 (crypt): Declare only for _USE_MISC.
12215 * stdlib/stdlib.h: Do not declare setkey.
12216 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12217 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12218
12219 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12220 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12221 into compat symbols. Don't define initial_perm if it's not
12222 going to be used.
12223 * crypt/cert.c: Link explicitly with the expected versions for
12224 setkey and encrypt. If they are not available at all, mark
12225 the test as unsupported.
12226
12227 * sunrpc/des_crypt.c: Unconditionally block linkage with
12228 cbc_crypt and ecb_crypt for new binaries.
12229 * sunrpc/des_soft.c: Unconditionally block linkage with
12230 des_setparity for new binaries.
12231
12232 * manual/crypt.texi: Remove the entire "DES Encryption"
12233 section. Also remove the paragraph talking about FIPS 140-2
12234 from the introduction.
12235 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12236 of libgcrypt for "real" encryption, not DES.
12237 * manual/conf.texi (Constants for Sysconf): Mention that
12238 _XOPEN_CRYPT is no longer impelemented.
12239
12240 * conform/data/unistd.h-data: Remove crypt function declaration.
12241
524d796d
FW
122422018-06-29 Florian Weimer <fweimer@redhat.com>
12243
12244 [BZ #23351]
12245 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12246 (disallow_malloc_check): Remove variable.
12247 (__malloc_check_init): Adjust.
12248 (malloc_set_state): Update comment.
12249 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12250 declarations.
12251
339124ab
RL
122522018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12253
12254 [BZ #23140]
12255 * localedata/locales/ast_ES (mon): Rename to...
12256 (alt_mon): This.
12257 (mon): Import from CLDR (genitive case).
12258
c1f86a33
DA
122592018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12260 Jakub Sitnicki <jkbs@redhat.com>
12261
12262 [BZ #21812]
12263 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12264 on NLM_F_DUMP_INTR.
12265
0b11b649
SN
122662018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12267
12268 * manual/llio.texi: Remove spurious space.
12269
c1c2848b
FW
122702018-06-28 Florian Weimer <fweimer@redhat.com>
12271
12272 [BZ #23349]
12273 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12274 _STRUCT_TIMESPEC.
12275
86a0f561
RS
122762018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12277
12278 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6b5c8607 12279 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
86a0f561
RS
12280 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12281 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12282 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12283 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12284 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12285
780684eb
MR
122862018-06-27 Maciej W. Rozycki <macro@mips.com>
12287
12288 [BZ #23266]
12289 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12290 Copy and null-terminate entries that are not terminated, in
12291 addition to empty ones.
12292
c49e1822
FW
122932018-06-27 Florian Weimer <fweimer@redhat.com>
12294
12295 [BZ #18023]
b39d961c
TS
12296 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12297 (extend_alloca_account): Remove.
c49e1822
FW
12298 * manual/stdio.texi (Variable Arguments Output): Update comment.
12299
a833e627
JM
123002018-06-27 Joseph Myers <joseph@codesourcery.com>
12301
12302 * nptl/sockperf.c: Remove file.
12303
92d6aa85
FW
123042018-06-27 Florian Weimer <fweimer@redhat.com>
12305
12306 [BZ #18023]
12307 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12308 scratch_buffer instead of extend_alloca.
12309
890c2ced
FW
123102018-06-27 Florian Weimer <fweimer@redhat.com>
12311
12312 [BZ #18023]
12313 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12314 scratch_buffer instead of extend_alloca. Update comments.
12315
4272059d
FW
123162018-06-27 Florian Weimer <fweimer@redhat.com>
12317
12318 [BZ #18023]
12319 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12320 instead of extend_alloca.
12321
27f10a09
JM
123222018-06-26 Joseph Myers <joseph@codesourcery.com>
12323
12324 [BZ #13888]
12325 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12326 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12327 /tmp.
12328 * scripts/test-installation.pl: Put temporary files in build
12329 directory, not /tmp.
12330 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12331 (CFLAGS-bug4.c): Likewise.
12332 (CFLAGS-bug5.c): Likewise.
12333 (CFLAGS-test-fseek.c): Likewise.
12334 (CFLAGS-test-popen.c): Likewise.
12335 (CFLAGS-test_rdwr.c): Likewise.
12336 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12337 /tmp.
12338 * stdio-common/bug4.c (main): Likewise.
12339 * stdio-common/bug5.c (main): Likewise.
12340 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12341 * stdio-common/test-popen.c (do_test): Likewise.
12342 * stdio-common/test_rdwr.c (main): Likewise.
12343
05598a09
PF
123442018-06-26 Patsy Franklin <pfrankli@redhat.com>
12345
12346 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12347 (sem_open): Set sem.newsem.pad to zero for valgrind.
12348
06ab719d
AZ
123492018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12350
12351 [BZ #20251]
12352 * NEWS: Mention fcntl64 addition.
12353 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12354 * login/utmp_file.c: Likewise.
12355 * sysdeps/posix/fdopendir.c: Likewise.
12356 * sysdeps/posix/opendir.c: Likewise.
12357 * sysdeps/unix/pt-fcntl.c: Likewise.
12358 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12359 __fcntl64_nocancel_adjusted): New prototype.
12360 (__fcntl_nocancel_adjusted): Remove prototype.
12361 * io/Makefile (routines): Add fcntl64.
12362 (CFLAGS-fcntl64.c): New rule.
12363 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12364 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12365 * io/fcntl.h (fcntl64): Add prototype and redirect if
12366 __USE_FILE_OFFSET64 is defined.
12367 * io/fcntl64.c: New file.
12368 * manual/llio.text: Add a note for which commands fcntl acts a
12369 cancellation point.
12370 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12371 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12372 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12373 New symbols.
12374 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12375 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12376 non-LFS case.
12377 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12378 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12379 to __fcntl64_nocancel.
12380 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12381 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12382 to __fcntl64_nocancel.
12383 * sysdeps/generic/not-cancel.h: Likewise.
12384 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12385 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12386 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12387 (fcntl64): New symbol.
12388 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12393 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12398 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12399 fcntl64): Likewise.
12400 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12402 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12410 Likewise.
12411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12412 Likewise.
12413 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12416
124e0258
FW
124172018-06-26 Florian Weimer <fweimer@redhat.com>
12418
12419 Run thread shutdown functions in an explicit order.
12420 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12421 definition.
12422 (__libc_thread_freeres): Call thread shutdown functions
12423 explicitly.
12424 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12425 * include/string.h (__strerror_thread_freeres): Declare.
12426 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12427 arena_thread_freeres. No longer static. Remove thread shutdown
12428 hook registration.
12429 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12430 Declare.
12431 * resolv/res-close.c (__res_thread_freeres): Renamed from
12432 res_thread_freeres. No longer static. Remove thread shutdown
12433 hook registration.
12434 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12435 * resolv/resolv_conf.c (freeres): Remove incorrect section
12436 attribute and use libc_freeres_fn.
12437 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12438 strerror_thread_freeres. No longer static. Remove thread
12439 shutdown hook registration.
12440 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12441 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12442 shutdown hook registration.
12443 * Makerules (shlib.lds): Do not provide section boundary symbols
12444 for __libc_thread_subfreeres.
12445 * manual/memory.texi (Basic Allocation): Update comment.
12446
935d920e
FW
124472018-06-26 Florian Weimer <fweimer@redhat.com>
12448
12449 Remove always-defined _RPC_THREAD_SAFE_ macro.
12450 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12451 Do not define _RPC_THREAD_SAFE_.
12452 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12453 conditional.
12454 * sunrpc/clnt_perr.c: Likewise.
12455 * sunrpc/clnt_raw.c: Likewise.
12456 * sunrpc/clnt_simp.c: Likewise.
12457 * sunrpc/key_call.c: Likewise.
12458 * sunrpc/rpc_common.c: Likewise.
12459 * sunrpc/rpc_main.c: Likewise.
12460 * sunrpc/rpc_thread.c: Likewise.
12461 * sunrpc/svc.c: Likewise.
12462 * sunrpc/svc_raw.c: Likewise.
12463 * sunrpc/svc_simple.c: Likewise.
12464 * sumrpc/svcauth_des.c: Likewise.
12465
29055464
FW
124662018-06-26 Florian Weimer <fweimer@redhat.com>
12467
12468 * libio/Makefile (tests-internal): Add tst-vtables,
12469 tst-vtables-interposed.
12470 * libio/tst-vtables.c: New file.
12471 * libio/tst-vtables-common.c: Likewise.
12472 * libio/tst-vtables-interposed.c: Likewise.
12473
5c0202af
FW
124742018-06-26 Florian Weimer <fweimer@redhat.com>
12475
12476 * support/support_test_main.c (support_test_main): Only call
12477 setvbuf if not disables.
12478 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12479 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12480
c402355d
FW
124812018-06-26 Florian Weimer <fweimer@redhat.com>
12482
12483 [BZ #23313]
12484 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12485
43b1048a
FW
124862018-06-25 Florian Weimer <fweimer@redhat.com>
12487
12488 [BZ #18023]
12489 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12490 Use struct scratch_buffer instead of extend_alloca.
12491
1599ed4e
FW
124922018-06-25 Florian Weimer <fweimer@redhat.com>
12493
12494 [BZ #18023]
12495 * nss/getent.c (initgroups_keys): Use dynarray instead of
12496 extend_alloca.
12497
a26fe163
FW
124982018-06-25 Florian Weimer <fweimer@redhat.com>
12499
12500 [BZ #18023]
12501 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12502 Use struct scratch_buffer instead of extend_alloca.
12503
90d9d9ce
FW
125042018-06-25 Florian Weimer <fweimer@redhat.com>
12505
12506 [BZ #18023]
12507 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12508 back to malloc directly, without stack allocations.
12509
6b7b2aba
FW
125102018-06-25 Florian Weimer <fweimer@redhat.com>
12511
12512 [BZ #18023]
12513 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12514 of extend_alloca.
12515
2f9f0d18
FW
125162018-06-25 Florian Weimer <fweimer@redhat.com>
12517
12518 [BZ #18023]
12519 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12520 of extend_alloca.
12521 * nscd/hstcache.c (addhstbyX): Likewise.
12522 * nscd/pwdcache.c (addpwbyX): Likewise.
12523 * nscd/servicescache.c (addservbyX): Likewise.
12524
318bad78
FW
125252018-06-25 Florian Weimer <fweimer@redhat.com>
12526
12527 [BZ #18023]
12528 * nscd/connections.c (read_cmdline): New function.
12529 (restart): Use it. Update comment.
12530
189699ab
RL
125312018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12532
12533 [BZ #23140]
12534 * localedata/locales/csb_PL (mon): Rename to...
12535 (alt_mon): This.
12536 (abmon): Rename to...
12537 (ab_alt_mon): This.
12538 (mon): Add with proper genitive forms, copy from Wikipedia.
12539 (abmon): Likewise.
12540
0ea3f13c
RL
125412018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12542
12543 [BZ #19485]
12544 * localedata/locales/csb_PL (mon): Fix typos:
12545 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12546 (yesstr): Add, value is "jo".
12547 (nostr): Add, value is "nié".
12548
d93f4ff1
TMQMF
125492018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12550
12551 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12552 all log1p and significand functions on m680x0.
12553 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12554 of s_significand.c..
12555 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12556 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12557 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12558 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12559 s_log1p.c and include it..
12560
f6299d2a
VC
125612018-06-21 Vincent Chen <vincentc@andestech.com>
12562
12563 * elf/elf.h (R_NDS32_NONE): New define.
12564 (R_NDS32_32_RELA): Likewise.
12565 (R_NDS32_COPY): Likewise.
12566 (R_NDS32_GLOB_DAT): Likewise.
12567 (R_NDS32_JUMP_SLOT): Likewise.
12568 (R_NDS32_RELATIVE): Likewise.
12569 (R_NDS32_TLS_TPOFF): Likewise.
12570 (R_NDS32_TLS_DESC): Likewise.
12571
61ab61c2
MW
125722018-06-21 Mark Wielaard <mark@klomp.org>
12573
12574 * elf/elf.h (R_BPF_MAP_FD): Removed.
12575 (R_BPF_64_64, R_BPF_64_32): New.
12576
f496b28e
FW
125772018-06-21 Florian Weimer <fweimer@redhat.com>
12578
12579 [BZ #23253]
12580 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12581 Renamed from libc_feholdsetround_ctx.
12582 (default_libc_feresetround_ctx): Renamed from
12583 libc_feresetround_ctx.
12584 (default_libc_feholdsetround_noex_ctx): Renamed from
12585 libc_feholdsetround_noex_ctx.
12586 (default_libc_feresetround_noex_ctx): Renamed from
12587 libc_feresetround_noex_ctx.
12588 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12589 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12590 forwardning to the old implementations under the new names.
12591 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12592 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12593 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12594 (libc_feresetround_ctx): Forward to default implements for i386
12595 and MATH_SET_BOTH_ROUNDING_MODES.
12596 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12597 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12598
1760daad
JM
125992018-06-20 Joseph Myers <joseph@codesourcery.com>
12600
99c7adf9
JM
12601 * string/tst-cmp.c: Include <libc-diag.h>.
12602 (strncmp_max): Disable -Wstringop-overflow= around call to
12603 strncmp.
12604 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12605 strncasecmp.
12606
1760daad
JM
12607 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12608 (main): Disable -Wunused-value around call to strpbrk.
12609 * string/bug-strspn1.c: Include <libc-diag.h>.
12610 (main): Disable -Wunused-value around call to strspn.
12611
209ae17c
TMQMF
126122018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12613 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12614
12615 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12616 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12617
badba23c
TMQMF
126182018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12619
5e79e029
TMQMF
12620 * math/Makefile (libm-calls): Move s_significandF to...
12621 (gen-libm-calls): ... here.
12622 * math/s_significand_template.c: New file.
12623 * math/s_significand.c: Removed.
12624 * math/s_significandf.c: Removed.
12625 * math/s_significandl.c: Removed.
12626 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12627 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12628
badba23c
TMQMF
12629 * math/e_exp2_template.c (declare_mgen_finite_alias,
12630 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12631 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12632 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12633
2d1c89a5
FW
126342018-06-20 Florian Weimer <fweimer@redhat.com>
12635
12636 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12637
646c2833
JM
126382018-06-19 Joseph Myers <joseph@codesourcery.com>
12639
12640 [BZ #23280]
12641 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12642 floating-point number to strtod functions rather than possibly
12643 negating result of those functions.
12644 * stdio-common/tst-scanf-round.c: New file.
12645 * stdio-common/Makefile (tests): Add tst-scanf-round.
12646 ($(objpfx)tst-scanf-round): Depend on $(libm).
12647
c77e4dc0
ST
126482018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12649
12650 * sysdeps/mach/hurd/localplt.data: Move to...
12651 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12652 R_386_GLOB_DAT like on Linux i386.
12653
91b2f3e5
JM
126542018-06-18 Joseph Myers <joseph@codesourcery.com>
12655
f2857da7
JM
12656 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12657 (SHM_STAT_ANY): New macro.
12658 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12659 (SHM_STAT_ANY): Likewise.
12660 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12661 (SHM_STAT_ANY): Likewise.
12662 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12663 (SHM_STAT_ANY): Likewise.
12664 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12665 (SHM_STAT_ANY): Likewise.
12666 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12667 (SHM_STAT_ANY): Likewise.
12668 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12669 (SHM_STAT_ANY): Likewise.
12670 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12671 (SHM_STAT_ANY): Likewise.
12672 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12673 (SHM_STAT_ANY): Likewise.
12674 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12675 (SHM_STAT_ANY): Likewise.
12676 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12677 (SHM_STAT_ANY): Likewise.
12678 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12679 (SHM_STAT_ANY): Likewise.
12680
176c7fee
JM
12681 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12682 (SEM_STAT_ANY): New macro.
12683 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12684 (SEM_STAT_ANY): Likewise.
12685 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12686 (SEM_STAT_ANY): Likewise.
12687 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12688 (SEM_STAT_ANY): Likewise.
12689 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12690 (SEM_STAT_ANY): Likewise.
12691 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12692 (SEM_STAT_ANY): Likewise.
12693 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12694 (SEM_STAT_ANY): Likewise.
12695 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12696 (SEM_STAT_ANY): Likewise.
12697 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12698 (SEM_STAT_ANY): Likewise.
12699 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12700 (SEM_STAT_ANY): Likewise.
12701
86bf0019
JM
12702 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12703 (MSG_STAT_ANY): New macro.
12704 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12705 (MSG_STAT_ANY): Likewise.
12706 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12707 (MSG_STAT_ANY): Likewise.
12708 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12709 (MSG_STAT_ANY): Likewise.
12710 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12711 (MSG_STAT_ANY): Likewise.
12712 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12713 (MSG_STAT_ANY): Likewise.
12714 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12715 (MSG_STAT_ANY): Likewise.
12716 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12717 (MSG_STAT_ANY): Likewise.
12718 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12719 (MSG_STAT_ANY): Likewise.
12720 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12721 (MSG_STAT_ANY): Likewise.
12722
91b2f3e5
JM
12723 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12724 (MAP_TYPE): Change value to 0x2b.
12725
3fe8fc79
FW
127262018-06-18 Florian Weimer <fweimer@redhat.com>
12727
12728 [BZ #15722]
12729 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12730 socket with SOCK_CLOEXEC.
12731
809dc95d
JM
127322018-06-18 Joseph Myers <joseph@codesourcery.com>
12733
12734 [BZ #23303]
12735 * sysdeps/powerpc/powerpc64/le/Makefile
12736 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12737 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12738 (gnulib-tests): Also add $(f128-loader-link) for
12739 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12740
298a8b59
ST
127412018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12742
12743 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12744 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12745 of sendfile.
12746 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12747 (sendfile64): New strong alias.
faf7bbc2
ST
12748 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12749 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12750 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
f96a85e0
ST
12751 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12752 attribute.
12753 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12754 ___pthread_get_cleanup_stack.
932d05f0 12755 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
c1b7586c
ST
12756 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12757 * mach/shortcut.awk: Make syscall stubs include
12758 <mach-shortcuts-hidden.h> and add hidden definition.
12759 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
7a646a93
ST
12760 (__mach_msg): Add hidden prototype.
12761 * mach/msg.c: Include <mach.h>.
12762 (__mach_msg): Add hidden definition.
b0344cf5
ST
12763 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12764 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12765 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12766 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
8c9d5342
ST
12767 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12768 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
4d0ac037
ST
12769 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12770 prototype and definition.
12771 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12772 hidden target for _hurd_self_sigstate.
298a8b59 12773
b12c1e79
JM
127742018-06-15 Joseph Myers <joseph@codesourcery.com>
12775
12776 [BZ #23007]
12777 * stdlib/tst-strtod-nan-sign-main.c: New file.
12778 * stdlib/tst-strtod-nan-sign.c: Likewise.
12779 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12780 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12781 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12782 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12783 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12784
b0debe14
HB
127852018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12786
12787 [BZ #23007]
12788 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12789 appropriate sign.
12790
14beef75
FW
127912018-06-14 Florian Weimer <fweimer@redhat.com>
12792
12793 [BZ #23290]
12794 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12795 that the result stays within the ISO-8859-1 range.
12796 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12797 characters are defined in IBM273.
12798
c596630b
ST
127992018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12800
12801 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12802 __mach_task_self): Remove attribute_hidden.
12803
35ebb6b0
JM
128042018-06-14 Joseph Myers <joseph@codesourcery.com>
12805
12806 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12807 ignore -Wrestrict for one test.
12808
3c7b9f1f
SE
128092018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12810 Szabolcs Nagy <szabolcs.nagy@arm.com>
12811
12812 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12813
c59ee916
FW
128142018-06-14 Florian Weimer <fweimer@redhat.com>
12815
12816 * scripts/update-abilist.sh: Accept empty list of files to patch.
12817
43b5ff50
ST
128182018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12819
12820 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12821 test-xfail-check-abi-libmachuser): Add.
c8c910ed
ST
12822 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12823 __libc_read and __libc_write to __read and __write.
c8c6e6d6 12824 * sysdeps/hurd/include/hurd/port.h: New file.
126b3ec3
ST
12825 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12826 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12827 __thread_switch, __evc_wait): Move declarations to...
12828 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12829 attribute_hidden.
06d1a826
ST
12830 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12831 use PLT to call _hurd_self_sigstate.
43b5ff50 12832
fcd6b5ac
JM
128332018-06-13 Joseph Myers <joseph@codesourcery.com>
12834
12835 [BZ #23279]
12836 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12837 MAX_EXP as overflowing.
12838 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12839 overflow flag.
12840 (round_str): Output also whether result overflows in each rounding
12841 mode.
12842 * stdlib/tst-strtod-round-data: Add more tests.
12843 * stdlib/tst-strtod-round-data.h: Regenerated.
12844 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12845 (TEST): Handle extra arguments for overflow flags.
12846 (struct test_overflow): New type.
12847 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12848 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12849 (test_in_one_mode): Take argument with overflow information.
12850 (do_test): Update calls to test_in_one_mode.
12851
35df5a77
CD
128522018-06-12 Carlos O'Donell <carlos@redhat.com>
12853
a745c837
CD
12854 * elf/dl-load (_dl_dst_substitute): Correct comment.
12855 (_dl_dst_count): Likewise.
12856
35df5a77
CD
12857 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12858 lll_futex_timed_wait.
12859
48b12ed5
JM
128602018-06-12 Joseph Myers <joseph@codesourcery.com>
12861
12862 [BZ #23277]
12863 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12864 attribute.
12865 * math/test-nan-const.c: New file.
12866 * math/Makefile (tests): Add test-nan-const.
12867 (CFLAGS-test-nan-const.c): New variable.
12868
cb8f6aff
L
128692018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12870
12871 * benchtests/scripts/compare_strings.py (process_results): Add
12872 funcs argument. Compare only functions which are selected.
12873 (main): Check if base function is among selected functions.
12874 Pass selected functions to process_results.
12875 (__main__): Add -f/--functions argument.
12876
fc2ba803
HZ
128772018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12878 Hongbo Zhang <hongbo.zhang@linaro.org>
12879
12880 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12881 __memcpy_falkor for phecda core.
12882 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12883 __memmove_falkor for phecda core.
12884 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12885 __memset_falkor for phecda core.
12886 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12887 for phecda core.
12888 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12889 macro to identify phecda core.
12890
5aad5f61
CD
128912018-06-12 Carlos O'Donell <carlos@redhat.com>
12892 Andreas Schwab <schwab@suse.de>
12893 Dmitry V. Levin <ldv@altlinux.org>
6b5c8607 12894 Florian Weimer <fweimer@redhat.com>
5aad5f61
CD
12895
12896 [BZ #23102]
12897 [BZ #21942]
12898 [BZ #18018]
12899 [BZ #23259]
12900 CVE-2011-0536
12901 * elf/dl-dst.h: Remove DL_DST_COUNT.
12902 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12903 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12904 (is_dst): Comment. Support ELF gABI.
12905 (_dl_dst_count): Comment. Simplify and count DSTs.
12906 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12907 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12908 locals.
12909
329ea513
ZW
129102018-06-12 Zack Weinberg <zackw@panix.com>
12911
12912 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12913 * sysdeps/unix/sysv/linux/dl-sysdep.c
12914 Include not-cancel.h. Use __close_nocancel instead of __close,
12915 __open64_nocancel instead of __open, __read_nocancel instead of
12916 __libc_read, and __write_nocancel instead of __libc_write.
12917
12918 * csu/check_fds.c (check_one_fd)
12919 * sysdeps/posix/fdopendir.c (__fdopendir)
12920 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
b39d961c 12921 instead of __fcntl and/or __libc_fcntl.
329ea513
ZW
12922
12923 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12924 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
b39d961c 12925 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
329ea513
ZW
12926 Use __open64_nocancel instead of __open_nocancel.
12927
12928 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12929 hidden_proto declarations to the end and issue them if either
12930 IS_IN(libc) or IS_IN(rtld).
12931 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12932 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12933 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12934 read_nocancel, waitpid_nocancel, write_nocancel.
12935
b39d961c
TS
12936 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12937 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12938 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
329ea513 12939
b39d961c
TS
12940 * nptl/pt-fcntl.c: New file.
12941 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12942 (libpthread-routines): Add pt-fcntl.
12943 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12944 (__libc_fcntl): Remove attribute_hidden.
329ea513
ZW
12945 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12946 __fcntl_nocancel_adjusted, not fcntl_common.
b39d961c 12947 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
329ea513
ZW
12948 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12949 to fcntl_nocancel.c.
12950 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12953 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12954
12955 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12956 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12957 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12958 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12959 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12960 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12961 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12962 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12963 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12964 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12965 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12966 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12967 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12968 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12969 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12970 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12971 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12972 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12973 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12974 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12975
b39d961c
TS
12976 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12977 libpthread-routines.
12978 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12979 defines nothing.
329ea513 12980
b39d961c
TS
12981 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12982 __libc_read, and __write instead of __libc_write. Define
12983 __open64 in addition to __open.
329ea513 12984
0221ce2a
L
129852018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12986
12987 [BZ #23250]
12988 [BZ #10686]
12989 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12990 to _private_tm[3] and add __glibc_reserved2.
12991 Add _Static_assert of offset of __private_ss == 0x30.
12992 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12993 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12994
e826574c
FW
129952018-06-12 Florian Weimer <fweimer@redhat.com>
12996
12997 x86: Make strncmp usable from rtld.
12998 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12999 __strncmp_ia32 if in libc (and not in rtld).
13000 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13001 strncmp if not in libc (and not to __strncmp_sse2).
13002
c4ad5782
RL
130032018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13004
13005 [BZ #23140]
13006 * localedata/locales/gd_GB (mon): Rename to...
13007 (alt_mon): This.
13008 (mon): Import from CLDR (genitive case).
13009 * localedata/locales/hsb_DE (mon): Rename to...
13010 (alt_mon): This.
13011 (mon): Import from CLDR (genitive case).
13012 * localedata/locales/wa_BE (mon): Rename to...
13013 (alt_mon): This.
13014 (mon): Add, fill with the proper genitive forms, but CLDR data
13015 is incomplete; completed according to the comments in this file.
13016 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13017
13018 * localedata/locales/wa_BE (country_name): Reword
13019 "Beljike" -> "Beldjike".
13020
ca121b11
JM
130212018-06-11 Joseph Myers <joseph@codesourcery.com>
13022
13023 [BZ #23272]
13024 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13025 cases of non-finite arguments.
13026 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13027
2b69fecb
JDA
130282018-06-10 John David Anglin <danglin@gcc.gnu.org>
13029
13030 [BZ #23174]
13031 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13032
283d9851
AZ
130332018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13034
13035 [BZ #23264]
13036 * include/unistd.h (__execvpex): New prototype.
13037 * posix/Makefile (tests): Add tst-spawn4.
13038 (tests-internal): Add tst-spawn4-compat.
13039 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13040 * posix/tst-spawn4-compat.c: New file.
13041 * posix/tst-spawn4.c: Likewise.
13042 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13043 binaries as shell scripts.
13044 * sysdeps/posix/spawni.c (__spawni): Likewise.
13045
67c05796
L
130462018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13047
13048 [BZ #23145]
13049 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13050 ($(all-built-dso:=.dynsym): New target.
13051 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13052 ($(objpfx)check-initfini.out): New target.
13053 (generated): Add check-initfini.out.
13054 * scripts/check-initfini.awk: New file.
13055 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13056 (_fini): Likewise.
13057 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13058 (_fini): Likewise.
13059 * sysdeps/arm/crti.S (_init): Mark as hidden.
13060 (_fini): Likewise.
13061 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13062 (_fini): Likewise.
13063 * sysdeps/i386/crti.S (_init): Mark as hidden.
13064 (_fini): Likewise.
13065 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13066 (_fini): Likewise.
13067 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13068 (_fini): Likewise.
13069 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13070 (_fini): Likewise.
13071 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13072 (_fini): Likewise.
13073 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13074 (_fini): Likewise.
13075 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13076 (_fini): Likewise.
13077 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13078 (_fini): Likewise.
13079 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13080 (_fini): Likewise.
13081 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13082 (_fini): Likewise.
13083 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13084 (_fini): Likewise.
13085 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13086 (_fini): Likewise.
13087 * sysdeps/sh/crti.S (_init): Mark as hidden.
13088 (_fini): Likewise.
13089 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13090 (_fini): Likewise.
13091 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13092 (_fini): Likewise.
13093
1c09524e
TMQMF
130942018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13095
13096 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13097 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13098 and TF redirection to KFtype and KF only when the default
13099 long double type is not the IEEE 128-bit floating point type.
13100
0e0577c9
JM
131012018-06-05 Joseph Myers <joseph@codesourcery.com>
13102
0c1c33b2
JM
13103 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13104 macro.
13105 (HWCAP_USCAT): Likewise.
13106 (HWCAP_ILRCPC): Likewise.
13107 (HWCAP_FLAGM): Likewise.
13108 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13109 Increase to 28.
13110 (_dl_aarch64_cap_flags): Add new flag names.
13111
bef1cbf4
JM
13112 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13113 (MAP_FIXED_NOREPLACE): New macro.
13114 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13115 (MAP_FIXED_NOREPLACE): Likewise.
13116 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13117 (MAP_FIXED_NOREPLACE): Likewise.
13118 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13119 (MAP_FIXED_NOREPLACE): Likewise.
13120 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13121 (MAP_FIXED_NOREPLACE): Likewise.
13122 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13123 (MAP_FIXED_NOREPLACE): Likewise.
13124 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13125 (MAP_FIXED_NOREPLACE): Likewise.
13126 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13127 (MAP_FIXED_NOREPLACE): Likewise.
13128 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13129 (MAP_FIXED_NOREPLACE): Likewise.
13130 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13131 (MAP_FIXED_NOREPLACE): Likewise.
13132 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13133 (MAP_FIXED_NOREPLACE): Likewise.
13134 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13135 (MAP_FIXED_NOREPLACE): Likewise.
13136 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13137 (MAP_FIXED_NOREPLACE): Likewise.
13138 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13139 (MAP_FIXED_NOREPLACE): Likewise.
13140 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13141 (MAP_FIXED_NOREPLACE): Likewise.
13142
0e0577c9
JM
13143 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13144 version to 4.17.
13145
ab3a0da0
JM
131462018-06-04 Joseph Myers <joseph@codesourcery.com>
13147
13148 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13149 version to 4.17
13150
d2d9dfb6
ST
131512018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13152
13153 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13154 int.
13155 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13156
a650b05e
LS
131572018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13158
13159 * benchtests/scripts/compare_string.py: (process_results) Catch
13160 exception in non-existent base_func and catch exception in
13161 non-existent attribute.
13162 (parse_file) Catch exception if input file does not exist.
13163
195abbf4
LS
131642018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13165
13166 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13167 options to avoid diff calculation and omit header, respectively.
13168 (main): process --no-diff and --no-header
13169
14570163
LS
131702018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13171 H.J. Lu <hongjiu.lu@intel.com>
13172
13173 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13174 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13175 wcsncmp-sse2.
13176 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13177 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13178 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13179 and __wcsncmp_sse2.
13180 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13181 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13182 AVX unaligned load is fast and vzeroupper is preferred.
13183 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13184 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13185 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13186 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13187 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13188 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13189 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13190 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13191 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13192 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13193 is undefined.
13194
e02c026f
FW
131952018-06-01 Florian Weimer <fweimer@redhat.com>
13196
13197 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13198 configuring with --disable-multi-arch, building with
13199 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13200 Haswell-era CPU.
13201
d8c19275
FW
132022018-06-01 Florian Weimer <fweimer@redhat.com>
13203
13204 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13205 results from building with “-march=x86-64 -mtune=generic
13206 -mfpmath=sse” and running on a Haswell-era CPU.
13207
0d2163eb
JM
132082018-06-01 Joseph Myers <joseph@codesourcery.com>
13209
13210 [BZ #18473]
13211 * soft-fp/sqrttf2.c: Remove file.
13212 * soft-fp/sqrtdf2.c: Move to ....
13213 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13214 <shlib-compat.h>.
13215 (__sqrtdf2): Make conditional on
13216 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13217 symbol.
13218 * soft-fp/sqrtsf2.c: Move to ....
13219 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13220 <shlib-compat.h>.
13221 (__sqrtsf2): Make conditional on
13222 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13223 symbol.
13224 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13225 (gcc-double-routines): Remove sqrtdf2.
13226 (gcc-quad-routines): Remove sqrttf2.
13227 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13228 Do not filter out sqrtsf2 and sqrtdf2.
13229 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13230 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13231
10450210
FW
132322018-06-01 Florian Weimer <fweimer@redhat.com>
13233
13234 * sysdeps/generic/libcidn.abilist: Remove file.
13235
4e8a6346
FW
132362018-06-01 Florian Weimer <fweimer@redhat.com>
13237
13238 [BZ #23236]
13239 * libio/strfile.h (struct _IO_str_fields): Rename members to
13240 discourage their use and add comment.
13241 (_IO_STR_DYNAMIC): Remove unused macro.
13242 * libio/strops.c (_IO_str_init_static_internal): Do not use
13243 callback pointers. Call malloc and free.
13244 (_IO_str_overflow): Do not use callback pointers. Call malloc
13245 and free.
13246 (enlarge_userbuf): Likewise.
13247 (_IO_str_finish): Call free.
13248 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13249 _allocate_buffer_unused.
13250 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13251 and free.
13252 (enlarge_userbuf): Likewise.
13253 (_IO_wstr_finish): Call free.
13254 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13255 _allocate_buffer_unused, _free_buffer_unused.
13256 * libio/memstream.c (__open_memstream): Likewise.
13257 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13258 * libio/wmemstream.c (open_wmemstream): Likewise.
13259
50d004c9
PP
132602018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13261
13262 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13263 AMD Ryzen 7 1800X.
13264
2c93fce7
RS
132652018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13266
13267 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13268 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13269 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13270 New file.
13271 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13272 Likewise.
13273 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13274
0ce2fa69
FW
132752018-05-29 Florian Weimer <fweimer@redhat.com>
13276
13277 * support/Makefile (libsupport-routines): Add
13278 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13279 xpthread_barrierattr_setpshared.
13280 * support/xpthread_barrierattr_destroy.c: New file.
13281 * support/xpthread_barrierattr_init.c: Likewise.
13282 * support/xpthread_barrierattr_setpshared.c: Likewise.
13283
7f7b5d8d
L
132842018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13285
13286 [BZ #23206]
13287 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13288 _r_debug and update DT_DEBUG for debugger.
13289
e4890300
FW
132902018-05-29 Florian Weimer <fweimer@redhat.com>
13291
13292 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13293 (tst-strtod5i.out): Likewise.
13294
2c753f3e
JM
132952018-05-25 Joseph Myers <joseph@codesourcery.com>
13296
b5453d9f
JM
13297 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13298 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13299 (sparc64-quad-routines): New variable. Moved from ....
13300 [$(subdir) = soft-fp] (sysdep_routines): Add
13301 $(sparc64-quad-routines). Moved from ....
13302 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13303 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13304 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13305 moved from ....
13306 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13307 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13308 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13309 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13310 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13311 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13312 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13313 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13314 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13315 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13316 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13317 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13318 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13319 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13320 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13321 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13322 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13323 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13324 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13325 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13326 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13327 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13328 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13329 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13330 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13331 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13332 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13333 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13334 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13335 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13336 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13337 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13338 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13339 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13340 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13341 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13342 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13343 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13344 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13345 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13346 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13347 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13348 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13349 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13350 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13351 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13352 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13353 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13354 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13355 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13356 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13357 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13358 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13359 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13360 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13361 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13362 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13363 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13364
2c753f3e
JM
13365 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13366 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13367 (sparc32-quad-routines): New variable. Moved from ....
13368 [$(subdir) = soft-fp] (sysdep_routines): Add
13369 $(sparc32-quad-routines). Moved from ....
13370 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13371 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13372 moved from ....
13373 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13374 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13375 * sysdeps/sparc/sparc32/q_add.c: ... here.
13376 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13377 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13378 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13379 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13380 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13381 * sysdeps/sparc/sparc32/q_div.c: ... here.
13382 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13383 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13384 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13385 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13386 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13387 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13388 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13389 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13390 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13391 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13392 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13393 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13394 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13395 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13396 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13397 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13398 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13399 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13400 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13401 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13402 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13403 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13404 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13405 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13406 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13407 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13408 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13409 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13410 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13411 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13412 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13413 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13414 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13415 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13416 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13417 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13418 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13419 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13420 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13421 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13422 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13423 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13424 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13425 * sysdeps/sparc/sparc32/q_util.c: ... here.
13426 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13427 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13428 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13429 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13430
c1dc1e1b
TMQMF
134312018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13432 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13433
13434 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13435 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13436 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13437 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13438
14186e8d
JM
134392018-05-24 Joseph Myers <joseph@codesourcery.com>
13440
13441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13442 powerpc/soft-fp.
13443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13444 Likewise.
13445 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13446 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13447
fb0e10b8
GG
134482018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13449
13450 [BZ #23171]
13451 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13452 double version.
13453
1dfeb17e
JM
134542018-05-23 Joseph Myers <joseph@codesourcery.com>
13455
13456 * sysdeps/sh/Implies: Remove sh/soft-fp.
13457 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13458 * sysdeps/sh/sfp-machine.h: ... here.
13459
727b38df
L
134602018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13461
13462 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13463 (__mempcpy_erms): Skip zero length.
13464 (__memmove_erms): Likewise.
13465 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13466 (__memset_erms): Likewise.
13467
2834fb46
JM
134682018-05-23 Joseph Myers <joseph@codesourcery.com>
13469
13470 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13471 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13472 Add functions moved from ....
13473 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13474 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13475 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13476 from ....
13477 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13478 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13479 * sysdeps/alpha/e_sqrtl.c: ... here.
13480 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13481 * sysdeps/alpha/local-soft-fp.h: ... here.
13482 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13483 * sysdeps/alpha/ots_add.c: ... here.
13484 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13485 * sysdeps/alpha/ots_cmp.c: ... here.
13486 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13487 * sysdeps/alpha/ots_cmpe.c: ... here.
13488 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13489 * sysdeps/alpha/ots_cvtqux.c: ... here.
13490 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13491 * sysdeps/alpha/ots_cvtqx.c: ... here.
13492 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13493 * sysdeps/alpha/ots_cvttx.c: ... here.
13494 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13495 * sysdeps/alpha/ots_cvtxq.c: ... here.
13496 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13497 * sysdeps/alpha/ots_cvtxt.c: ... here.
13498 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13499 * sysdeps/alpha/ots_div.c: ... here.
13500 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13501 * sysdeps/alpha/ots_mul.c: ... here.
13502 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13503 * sysdeps/alpha/ots_nintxq.c: ... here.
13504 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13505 * sysdeps/alpha/ots_sub.c: ... here.
13506 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13507 * sysdeps/alpha/sfp-machine.h: ... here.
13508
7f9f1ecb
FW
135092018-05-23 Florian Weimer <fweimer@redhat.com>
13510
13511 [BZ #19728]
13512 [BZ #19729]
13513 [BZ #22247]
13514 CVE-2016-6261
13515 CVE-2016-6263
13516 CVE-2017-14062
13517 Switch to extern IDNA implementation (libidn2).
13518 * libidn: Remove subdirectory.
13519 * LICENSES: Do not mention licensing conditions for the removed
13520 libidn code.
13521 * config.h.in (HAVE_LIBIDN): Remove.
13522 * include/dlfcn.h (__libc_dlopen): Update comment.
13523 * include/idna.h: Remove file.
13524 * inet/Makefile (routines): Add idna.
13525 (tests-static, tests-internal): Add tst-idna_name_classify.
13526 (LOCALES): Generate locales for tests.
13527 (tst-idna_name_classify.out): Depend on generated locales.
13528 * inet/idna_name_classify.c: New file.
13529 * inet/tst-idna_name_classify.c: Likewise.
13530 * inet/net-internal.h (__idna_to_dns_encoding)
13531 (__idna_from_dns_encoding): Declare.
13532 * inet/net-internal.h (enum idna_name_classification): Define.
13533 (__idna_name_classify): Declare.
13534 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13535 __idna_from_dns_encoding.
13536 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13537 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13538 name as a fallback in case of encoding errors.
13539 (getnameinfo): Use DEPRECATED_NI_IDN.
13540 * inet/idna.c: New file.
13541 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13542 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13543 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13544 (modules-names): Add tst-no-libidn2.
13545 (extra-test-objs): Add tst-no-libidn2.os.
13546 (LDFLAGS-tst-no-libidn2.so): Set soname.
13547 (LOCALES): Set, and generate locales.
13548 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13549 (tst-resolv-ai_idn-latin1): Likewise.
13550 (tst-resolv-ai_idn-nolibidn2): Likewise.
13551 (tst-resolv-ai_idn.out): Depend on locales.
13552 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13553 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13554 tst-no-libidn2.so.
13555 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13556 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13557 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13558 * resolv/tst-resolv-ai_idn.c: New file.
13559 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13560 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13561 * resolv/tst-no-libidn2.c: Likewise.
13562 * support/support_format_addrinfo.c (format_ai_flags): Do not
13563 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13564 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13565 (gaih_inet): Call __idna_to_dns_encoding and
13566 __idna_from_dns_encoding, and use the original (punycode) name if
13567 __idna_from_dns_encoding fails due to an encoding error.
13568 (getaddrinfo): Use DEPRECATED_AI_IDN.
13569 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13570 * sysdeps/unix/inet/configure: Remove file.
13571 * sysdeps/unix/inet/configure.ac: Likewise.
13572
5f7b841d
FW
135732018-05-23 Florian Weimer <fweimer@redhat.com>
13574
13575 Implement allocate_once.
13576 * include/allocate_once.h: New file.
13577 * misc/allocate_once.c: Likewise.
13578 * misc/tst-allocate_once.c: Likewise.
13579 * misc/Makefile (routines): Add allocate_once.
13580 (tests-internal): Add tst-allocate_once.
13581 (generated): Add tst-allocate_once.mtrace,
13582 tst-allocate_once-mem.out.
13583 (tests-special): Add tst-allocate_once-mem.out.
13584 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13585 (tst-allocate_once-mem.out): Call mtrace.
13586 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13587
ed983107
L
135882018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13589
13590 [BZ #23196]
13591 * string/test-memcpy.c (do_test1): New function.
13592 (test_main): Call it.
13593
9aaaab7c
AS
135942018-05-23 Andreas Schwab <schwab@suse.de>
13595
13596 [BZ #23196]
13597 CVE-2018-11237
13598 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13599 (L(preloop_large)): Save initial destination pointer in %r11 and
13600 use it instead of %rax after the loop.
13601 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13602
5c5c0dd7
JM
136032018-05-22 Joseph Myers <joseph@codesourcery.com>
13604
8f145c77
JM
13605 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13606 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13607 -I../soft-fp. Moved from ....
13608 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13609 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13610 * sysdeps/aarch64/e_sqrtl.c: ... here.
13611 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13612 * sysdeps/aarch64/sfp-machine.h: ... here.
13613
3d6302a5
JM
13614 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13615 -Wmaybe-uninitialized around access to fq[0].
13616 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13617 Likewise.
13618
5c5c0dd7
JM
13619 [BZ #18471]
13620 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13621 aliases for non-libc case of versioned symbols.
13622 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13623 (llseek): Define as compat symbol if
13624 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13625 with link warning.
13626 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13627 Make into a compat symbol, disabled for minimum symbol version
13628 GLIBC_2.28 and later.
13629 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13630
ed0d6988
FW
136312018-05-22 Florian Weimer <fweimer@redhat.com>
13632
13633 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13634 not add -mpreferred-stack-boundary=4.
13635 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13636 (stack-align-test-flags): Likewise.
13637 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13638 Likewise.
13639 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13640 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13641 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13642 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13643 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13644 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13645 (CFLAGS-tst-align2.c): Likewise.
13646
e28e9b1e
L
136472018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13648
13649 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13650 (index_arch_Prefer_FSRM): Likewise.
13651 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13652 Also check Prefer_FSRM.
13653 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13654 Also return OPTIMIZE (erms) for Prefer_FSRM.
13655
1af30adc
L
136562018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13657
13658 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13659 (index_cpu_FSRM): Likewise.
13660 (reg_FSRM): Likewise.
13661
78274dc8
JM
136622018-05-18 Joseph Myers <joseph@codesourcery.com>
13663
7c67e6e8
JM
13664 * math/gen-tgmath-tests.py: Import sys.
13665 (Tests.__init__): Initialize macros_seen.
13666 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13667 if requested to do so for this macro.
13668 (Tests.add_all_tests): Take argument for macro for which to
13669 generate tests.
13670 (Tests.check_macro_list): New function.
13671 (main): Handle check-list argument and argument specifying macro
13672 for which to generate tests.
13673 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13674 [PYTHON] (tgmath3-macro-tests): Likewise.
13675 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13676 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13677 not test-tgmath3.c.
13678 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13679 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13680 to CFLAGS.
13681 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13682 [PYTHON] ($(foreach
13683 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13684 rule.
13685 [PYTHON] (tests-special): Add
13686 $(objpfx)test-tgmath3-macro-list.out.
13687 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13688
ebc129fd
JM
13689 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13690 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13691 later.
13692
78274dc8
JM
13693 [BZ #22639]
13694 * time/tzset.c (SECSPERDAY): Cast to time_t.
13695 * time/tst-y2039.c: New file.
13696 * time/Makefile (tests): Add tst-y2039.
13697
6f7fdeeb
LS
136982018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13699
13700 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13701 (PREFETCH_ONE_SET): Remove duplicate line.
13702
e363a91c
FW
137032018-05-17 Florian Weimer <fweimer@redhat.com>
13704
13705 * sysdeps/generic/math-type-macros-double.h: Include
13706 <math-nan-payload-double.h> after <libm-alias-double.h>.
13707 * sysdeps/generic/math-type-macros-float.h: Include
13708 <math-nan-payload-float.h> after <libm-alias-float.h>.
13709 * sysdeps/generic/math-type-macros-float128.h: Include
13710 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13711 * sysdeps/generic/math-type-macros-ldouble.h: Include
13712 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13713
dae6c43c
AS
137142018-05-17 Andreas Schwab <schwab@suse.de>
13715
13716 * resolv/res_send.c (__res_context_send): Don't set errno when
13717 returing error after malloc failure.
13718
0068c085
L
137192018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13720
13721 * nptl/allocatestack.c (allocate_stack): Remove the
13722 !__ASSUME_PRIVATE_FUTEX paths.
13723 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13724 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13725 Likewise.
13726 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13727 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13728 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13729 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13730 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13731 !__ASSUME_PRIVATE_FUTEX path.
13732 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13733 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13734 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13735 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13736 !__ASSUME_PRIVATE_FUTEX macros.
13737 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13738 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13739 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13740 * sysdeps/unix/sysv/linux/kernel-features.h
13741 (__ASSUME_PRIVATE_FUTEX): Removed.
13742
632a6cbe
JM
137432018-05-17 Joseph Myers <joseph@codesourcery.com>
13744
13745 * math/Makefile (libm-narrow-fns): Add div.
13746 (libm-test-funcs-narrow): Likewise.
13747 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13748 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13749 * math/gen-auto-libm-tests.c (test_functions): Add div.
13750 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13751 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13752 (NARROW_DIV_TRIVIAL): Likewise.
13753 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13754 macro.
13755 (__ddivl): Likewise.
13756 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13757 ddiv.
13758 (CFLAGS-nldbl-ddiv.c): New variable.
13759 (CFLAGS-nldbl-fdiv.c): Likewise.
13760 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13761 __nldbl_ddivl.
13762 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13763 prototype.
13764 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13765 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13766 * math/auto-libm-test-in: Add tests of div.
13767 * math/auto-libm-test-out-narrow-div: New generated file.
13768 * math/libm-test-narrow-div.inc: New file.
13769 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13770 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13771 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13772 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13773 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13774 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13775 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13776 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13777 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13778 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13779 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13780 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13781 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13782 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13783 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13784 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13785 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13786 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13787 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13788 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13789 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13790 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13791 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13792 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13793 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13794 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13795 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13796 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13797 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13798 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13799 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13800 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13805 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13806 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13807 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13808 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13809 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13810 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13811 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13812 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13813
8c78faa9
AZ
138142018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13815
13816 [BZ #23178]
13817 * nscd/nscd-client.h (sendfileall): Remove prototype.
13818 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13819 (handle_request): Use writeall instead of sendfileall.
13820 * nscd/aicache.c (addhstaiX): Likewise.
13821 * nscd/grpcache.c (cache_addgr): Likewise.
13822 * nscd/hstcache.c (cache_addhst): Likewise.
13823 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13824 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13825 * nscd/pwdcache.c (cache_addpw): Likewise.
13826 * nscd/servicescache.c (cache_addserv): Likewise.
13827 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13828 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13829 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13830 Remove define.
13831
04958880
L
138322018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13833
13834 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13835 Include <string/strncat.c>.
13836 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13837 alias.
13838 (__GI___strncat): New hidden alias.
13839
c9992d13
JM
138402018-05-16 Joseph Myers <joseph@codesourcery.com>
13841
13842 * sysdeps/mips/mips32/libm-test-ulps: Update.
13843 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13844
2afece36
FW
138452018-05-16 Florian Weimer <fweimer@redhat.com>
13846
13847 * support/Makefile (libsupport-routines): Add support_quote_blob,
13848 support_test_compare_blob.
13849 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13850 * support/check.h (TEST_COMPARE_BLOB): Define.
13851 (support_test_compare_blob): Declare.
13852 * support/support.h (support_quote_blob): Declare.
13853 * support/support_quote_blob.c: New file.
13854 * support/support_test_compare_blob.c: Likewise.
13855 * support/tst-support_quote_blob.c: Likewise.
13856 * support/tst-test_compare_blob.c: Likewise.
13857
9761bf4d
FW
138582018-05-16 Florian Weimer <fweimer@redhat.com>
13859
13860 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13861 of <strtod_nan_double.h>.
13862 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13863 instead of SET_MANTISSA.
13864 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13865 of include <strtod_nan_float.h>.
13866 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13867 instead of <strtod_nan_ldouble.h>.
13868 * stdlib/strtod_nan_double.h: Move to ...
13869 * sysdeps/generic/math-nan-payload-double.h: ... here.
13870 (FLOAT): Remove definition.
13871 (SET_MANTISSA): Rename to ...
13872 (SET_NAN_PAYLOAD): ... this.
13873 * stdlib/strtod_nan_float.h: Move to ...
13874 * sysdeps/generic/math-nan-payload-float.h: ... here.
13875 (FLOAT): Remove definition.
13876 (SET_MANTISSA): Rename to ...
13877 (SET_NAN_PAYLOAD): ... this.
13878 * sysdeps/generic/math-type-macros-double.h: Include
13879 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13880 instead of <math-svid-compat.h>.
13881 * sysdeps/generic/math-type-macros-float.h: Include
13882 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13883 instead of <math-svid-compat.h>.
13884 * sysdeps/generic/math-type-macros-float128.h: Include
13885 <math-nan-payload-float128.h>.
13886 * sysdeps/generic/math-type-macros-ldouble.h: Include
13887 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13888 instead of <math-svid-compat.h>.
13889 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13890 check for definition.
13891 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13892 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13893 Include <ieee754_float128.h>.
13894 (FLOAT): Remove definition.
13895 (SET_MANTISSA): Rename to ...
13896 (SET_NAN_PAYLOAD): ... this.
13897 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13898 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13899 Do not include <float128_private.h>.
13900 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13901 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13902 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13903 (FLOAT): Remove definition.
13904 (SET_MANTISSA): Rename to ...
13905 (SET_NAN_PAYLOAD): ... this.
13906 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13907 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13908 (FLOAT): Remove definition.
13909 (SET_MANTISSA): Rename to ...
13910 (SET_NAN_PAYLOAD): ... this.
13911 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13912 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13913 (FLOAT): Remove definition.
13914 (SET_MANTISSA): Rename to ...
13915 (SET_NAN_PAYLOAD): ... this.
13916 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13917 of "../stdlib/strtod_nan_double.h".
13918 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13919 of "../stdlib/strtod_nan_float.h".
13920 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13921 instead of "../stdlib/strtod_nan_ldouble.h".
13922 * manual/arith.texi (Parsing of Floats): Adjust comment.
13923
69a01461
JM
139242018-05-16 Joseph Myers <joseph@codesourcery.com>
13925
13926 * math/Makefile (libm-narrow-fns): Add mul.
13927 (libm-test-funcs-narrow): Likewise.
13928 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13929 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13930 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13931 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13932 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13933 (NARROW_MUL_TRIVIAL): Likewise.
13934 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13935 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13936 macro.
13937 (__dmull): Likewise.
13938 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13939 dmul.
13940 (CFLAGS-nldbl-dmul.c): New variable.
13941 (CFLAGS-nldbl-fmul.c): Likewise.
13942 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13943 __nldbl_dmull.
13944 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13945 prototype.
13946 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13947 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13948 * math/auto-libm-test-in: Add tests of mul.
13949 * math/auto-libm-test-out-narrow-mul: New generated file.
13950 * math/libm-test-narrow-mul.inc: New file.
13951 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13952 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13953 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13954 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13955 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13956 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13957 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13958 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13959 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13960 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13961 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13962 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13963 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13964 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13965 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13966 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13967 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13968 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13969 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13970 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13971 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13974 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13975 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13976 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13977 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13995
a15529fd
L
139962018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13997
13998 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13999 with *%eax in call.
14000
98ee36c7
L
140012018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14002
14003 * sysdeps/i386/ldsodefs.h: Removed.
14004 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14005 * sysdeps/x86/ldsodefs.h: This.
14006 (La_i86_regs): New.
14007 (La_i86_retval): Likewise.
14008 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14009 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14010
e322ec32
L
140112018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14012
14013 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14014 unnecessary testl.
14015
0937e209
AM
140162018-05-13 Alan Modra <amodra@gmail.com>
14017
14018 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14019 R_PARISC_TLS_DTPOFF32 reloc addend.
14020
5db7d705
TMQMF
140212018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14022
14023 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14024 * math/math.h: Restrict the prototype definition for the functions
14025 issignaling(_Float128) and iszero(_Float128); and template
14026 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14027 __HAVE_FLOAT128_UNLIKE_LDBL.
14028 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14029 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14030 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14031 __f128() constants; define the type _Float128 as long double;
14032 and reuse long double in __CFLOAT128.
14033
b4d5b8b0
JM
140342018-05-11 Joseph Myers <joseph@codesourcery.com>
14035
14036 * sysdeps/generic/math_private.h: Do not include
14037 <math-barriers.h>.
14038 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14039 <math_private.h>.
14040 * math/fromfp.h: Include <math-barriers.h>.
14041 * math/math-narrow.h: Likewise.
14042 * math/s_nextafter.c: Likewise.
14043 * math/s_nexttowardf.c: Likewise.
14044 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14045 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14046 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14047 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14048 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14049 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14050 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14051 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14052 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14053 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14054 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14055 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14056 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14057 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14058 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14059 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14060 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14061 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14062 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14063 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14064 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14065 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14066 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14067 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14068 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14069 * sysdeps/ieee754/k_standardl.c: Likewise.
14070 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14071 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14072 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14073 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14074 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14075 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14076 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14077 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14078 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14079 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14080 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14081 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14082 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14083 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14084 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14085 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14086 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14087 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14088 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14089 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14090 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14091 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14092
fc79706a
FW
140932018-05-11 Florian Weimer <fweimer@redhat.com>
14094
14095 Use 64-bit epoch values in the time zone file parser.
14096 * include/time.h (internal_time_t): Define.
14097 (__tzfile_compute): Use it.
14098 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14099 member.
14100 (transitions): Switch to internal_time_t.
14101 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14102 types.
14103 (__tzfile_compute): Use internal_time_t for timer argument. Check
14104 for truncation before calling __offtime.
14105
89aacb51
FW
141062018-05-11 Florian Weimer <fweimer@redhat.com>
14107
14108 [BZ #23166]
14109 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14110 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14111 Likewise.
14112 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14113 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14114 export without --enable-obsolete-rpc.
14115 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14116 symbol. This should not have been exported, ever.
14117
bb066cb8
RL
141182018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14119
14120 [BZ #23152]
14121 * localedata/locales/gd_GB (abmon): Fix typo in May:
14122 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14123
70c97f84
SP
141242018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14125
db725a45
SP
14126 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14127 Use multiple registers to copy data in loop tail.
14128
70c97f84
SP
14129 * sysdeps/aarch64/multiarch/memmove_falkor.S
14130 (__memmove_falkor): Use multiple registers to move data in
14131 loop tail.
14132
8f5b00d3
JM
141332018-05-10 Joseph Myers <joseph@codesourcery.com>
14134
14135 * math/math-underflow.h: New file.
14136 * sysdeps/generic/math_private.h: Do not include <float.h>.
14137 (fabs_tg): Remove macro. Moved to math-underflow.h.
14138 (min_of_type_f): Likewise.
14139 (min_of_type_): Likewise.
14140 (min_of_type_l): Likewise.
14141 (min_of_type_f128): Likewise.
14142 (min_of_type): Likewise.
14143 (math_check_force_underflow): Likewise.
14144 (math_check_force_underflow_nonneg): Likewise.
14145 (math_check_force_underflow_complex): Likewise.
14146 * math/e_exp2_template.c: Include <math-underflow.h>.
14147 * math/k_casinh_template.c: Likewise.
14148 * math/s_catan_template.c: Likewise.
14149 * math/s_catanh_template.c: Likewise.
14150 * math/s_ccosh_template.c: Likewise.
14151 * math/s_cexp_template.c: Likewise.
14152 * math/s_clog10_template.c: Likewise.
14153 * math/s_clog_template.c: Likewise.
14154 * math/s_csin_template.c: Likewise.
14155 * math/s_csinh_template.c: Likewise.
14156 * math/s_csqrt_template.c: Likewise.
14157 * math/s_ctan_template.c: Likewise.
14158 * math/s_ctanh_template.c: Likewise.
14159 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14160 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14161 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14162 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14163 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14164 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14165 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14166 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14167 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14168 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14169 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14170 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14171 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14172 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14173 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14174 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14175 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14176 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14177 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14178 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14179 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14180 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14181 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14182 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14183 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14184 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14185 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14186 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14187 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14188 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14189 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14190 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14191 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14192 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14193 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14194 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14195 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14196 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14197 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14198 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14199 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14200 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14201 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14202 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14203 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14204 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14205 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14206 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14207 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14208 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14209 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14210 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14211 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14212 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14213 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14214 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14215 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14216 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14217 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14218 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14219 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14220 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14221 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14222 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14223 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14224 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14225 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14226 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14227 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14228 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14229 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14230 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14231 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14232 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14233 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14234 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14235 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14236 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14237 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14238 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14239 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14240 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14241 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14242 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14243
9ed2e15f
JM
142442018-05-09 Joseph Myers <joseph@codesourcery.com>
14245
14246 * sysdeps/generic/math-barriers.h: New file.
14247 * sysdeps/generic/math_private.h [!math_opt_barrier]
14248 (math_opt_barrier): Move to math-barriers.h.
14249 [!math_opt_barrier] (math_force_eval): Likewise.
14250 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14251 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14252 math-barriers.h.
14253 (math_force_eval): Likewise.
14254 * sysdeps/alpha/fpu/math-barriers.h: New file.
14255 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14256 math-barriers.h.
14257 (math_force_eval): Likewise.
14258 * sysdeps/x86/fpu/math-barriers.h: New file.
14259 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14260 math-barriers.h.
14261 (math_force_eval): Likewise.
14262 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14263 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14264 multiple-include guard for rename.
14265 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14266 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14267 math-barriers.h.
14268 (math_force_eval): Likewise.
14269
5460617d
PP
142702018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14271
14272 [BZ #22786]
43d4f3d5 14273 CVE-2018-11236
5460617d
PP
14274 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14275 computation.
14276 * stdlib/Makefile (test-bz22786): New test.
14277 * stdlib/test-bz22786.c: New test.
14278
aaee3cd8
JM
142792018-05-09 Joseph Myers <joseph@codesourcery.com>
14280
14281 * include/math-narrow-eval.h: New file. Contents moved from ....
14282 * sysdeps/generic/math_private.h: ... here.
14283 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14284 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14285 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14286 * stdlib/strtod_l.c: Likewise.
14287 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14288 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14289 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14290 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14291 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14292 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14293 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14294 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14295 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14296 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14297 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14298 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14299 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14300 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14301 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14302 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14303 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14304 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14305 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14306 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14307 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14308 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14309 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14310 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14311 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14312 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14313 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14314 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14315 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14316
0555c477
AS
143172018-05-08 Andreas Schwab <schwab@suse.de>
14318
14319 * sysdeps/nptl/internaltypes.h: Fix comment.
14320
50d7d351
L
143212018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14322
14323 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14324 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14325 hidden.
14326
543477f7
SP
143272018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14328
14329 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14330 of I into loop header.
14331 * benchtests/bench-memmove-walk.c
14332 (test_main): Likewise.
14333
143342018-05-07 Alexandre Oliva <oliva@gnu.org>
ffa81c22
AO
14335
14336 Revert:
14337 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14338 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14339
0065aaaa
PP
143402018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14341
14342 [BZ #20419]
14343 * elf/dl-load.c (open_verify): Fix stack overflow.
14344 * elf/Makefile (tst-big-note): New test.
14345 * elf/tst-big-note-lib.S: New.
14346 * elf/tst-big-note.c: New.
14347
b289cd9d
JM
143482018-05-04 Joseph Myers <joseph@codesourcery.com>
14349
14350 * scripts/abilist.awk: Ignore absolute symbols.
14351 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14352 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14353 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14354 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14355 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14356 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14357 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14358 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14359 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14360 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14361 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14362 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14397 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14403 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14404 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14417 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14418 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14421 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14422 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14423 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14424 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14425 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14443 Likewise.
14444 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14457 Likewise.
14458 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14481 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14482 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14483 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14484 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14485 Likewise.
14486 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14487 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14488 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14489 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14490 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14491 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14492 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14493 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14494 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14495 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14496 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14497 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14498 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14499 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14500 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14501 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14502 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14503 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14504 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14505 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14506 Likewise.
14507 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14508 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14509 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14510 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14511 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14512 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14513 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14514 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14515 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14516 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14517 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14518 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14519 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14520 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14521 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14522 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14523 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14524 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14525 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14526 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14527 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14528 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14529 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14530 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14531 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14532 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14533 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14534 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14539 Likewise.
14540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14545 Likewise.
14546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14547 Likewise.
14548 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14550 Likewise.
14551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14553 Likewise.
14554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14555 Likewise.
14556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14559 Likewise.
14560 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14561 Likewise.
14562 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14563 Likewise.
14564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14568 Likewise.
14569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14575 Likewise.
14576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14578 Likewise.
14579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14580 Likewise.
14581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14582 Likewise.
14583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14584 Likewise.
14585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14588 Likewise.
14589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14590 Likewise.
14591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14592 Likewise.
14593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14596 Likewise.
14597 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14601 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14602 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14603 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14604 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14605 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14606 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14611 Likewise.
14612 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14624 Likewise.
14625 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14632 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14650 Likewise.
14651 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14664 Likewise.
14665 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14666 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14667 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14668 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14669 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14670 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14671 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14672 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14673 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14674 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14675 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14676 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14677 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14684 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14685 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14686 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14687 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14688 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14689 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14690 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14691 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14692 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14693 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14694 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14695 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14696 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14697 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14698 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14699 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14700 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14701 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14702 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14703
16609018
SL
147042018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14705
14706 [BZ #23137]
14707 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14708 Use atomic_load_acquire to load __tid.
14709
556f5c46
L
147102018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14711
14712 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14713 Restore the pointer into %rdx, after syscall and use %rdx,
14714 instead of %rsi, to restore context.
14715
8b8f32b2
L
147162018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14717
14718 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14719 Pop the pointer into %rdx after syscall and use %rdx, instead
14720 of %rsi, to restore context.
14721
d6cc1829
L
147222018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14723
14724 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14725 handlers after setjmp.
14726 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14727 defined.
14728 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14729 <libc-pointer-arith.h>.
14730 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14731 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14732 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14733 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14734 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14735 * sysdeps/x86/__longjmp_cancel.S: New file.
14736 * sysdeps/x86/longjmp.c: Likewise.
14737 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14738
cf2478d5
AZ
147392018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14740
14741 * NEWS: Add ustat.h deprecation entry.
14742 * bits/ustat.h: Remove file.
14743 * misc/sys/ustat.h: Likewise.
14744 * misc/ustat.h: Likewise.
14745 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14746 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14747 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14748 compatibility mode.
14749 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14750 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14751 generic Linux implementation.
14752
dc115e1c
TMQMF
147532018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14754
14755 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14756 * math/w_expl_compat.c: Likewise.
14757 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14758
6b5c8607 147592018-04-30 Raymond Nicholson <rain1@airmail.cc>
340d9652
RN
14760
14761 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14762
c57bf7c1
AZ
147632018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14764
14765 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14766 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14767 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14768 Remove.
14769 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14771 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14772 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14773 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14774 and SYSCALL_LL64.
14775
06135c33
TMQMF
147762018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14777
33927914
TMQMF
14778 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14779
06135c33
TMQMF
14780 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14781 * math/w_asin_template.c: Likewise.
14782 * math/w_atanh_template.c: Likewise.
14783
3a33b069
GG
147842018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14785
14786 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14787 to powerpc/powerpc64/be for big-endian.
14788 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14789 little-endian.
14790
14791 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14792 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14793 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14794 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14795 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14796 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14797 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14798 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14799 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14800 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14801 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14802 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14803 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14804 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14805 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14806 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14807 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14808 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14809 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14810 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14811 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14812 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14813 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14814 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14815 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14816 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14817 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14818 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14819 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14820 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14821 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14822 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14823
14824 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14825 adjusted to imply powerpc64 and older processors on powerpc64/be.
14826 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14827 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14828 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14829 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14830 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14831 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14832 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14833 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14834 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14835 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14836 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14837 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14838 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14839 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14840 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14841 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14842 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14843 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14844 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14845 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14846 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14847 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14848 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14849 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14850 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14851 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14852 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14853 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14854 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14855 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14856 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14857
14858 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14859 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14860 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14861 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14862
14863 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14864 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14865 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14866 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14867
14868 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14869 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14870 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14871 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14872 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14873 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14874 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14875 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14876 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14877 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14878 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14879
14880 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14881 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14882 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14883 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14884 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14885 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14886 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14887 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14888 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14889 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14890 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14891
14892 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14893 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14894 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14895 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14896 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14897 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14898 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14899 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14900 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14901 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14902 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14903 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14904
14905 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14906 and adjusted to imply olders processors.
14907 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14908 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14909 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14910 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14911 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14912 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14913 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14914 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14915 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14916 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14917 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14918
14919 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14920 powerpc64/le.
14921 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14922 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14923
14924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14925 powerpc64le.
14926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14928
14929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14930 powerpc64/be.
14931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14934
14935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14936 powerpc64 and adjusted.
14937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14940 Likewise.
14941
a3fb6b6b
JM
149422018-04-27 Joseph Myers <joseph@codesourcery.com>
14943
14944 * sysdeps/tile: Remove.
14945 * sysdeps/unix/sysv/linux/tile: Likewise.
14946 * README (tilegx-*-linux-gnu): Remove from list of supported
14947 configurations.
14948 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14949 contribution of support for generic Linux kernel syscall
14950 interface.
14951 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14952 tilegx configurations.
14953 (Config.install_linux_headers): Do not handle tile.
14954 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14955 in comment.
14956 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14957 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14958 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14959 conditional undefine and redefine.
14960 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14961 in comment.
14962 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14963 conditional undefine and redefine.
14964
7a6f7478
AJ
149652018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14966
14967 * signal/tst-sigaction.c: New file to test BZ #23069.
14968 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14969
81b49e96
TMQMF
149702018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14971
14972 [BZ #22766]
14973 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14974 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14975 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14976 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14977
7d80f48e
AZ
149782018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14979
14980 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14981 _DIRENT_MATCHES_DIRENT64 is not defined.
14982 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14983 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14984 is defined.
14985 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14986 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14987
42a2bf58
JM
149882018-04-25 Joseph Myers <joseph@codesourcery.com>
14989
14990 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14991 version to GCC 8 branch.
14992
9320ca88
JM
149932018-04-24 Joseph Myers <joseph@codesourcery.com>
14994
5e14bb97
JM
14995 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14996 (check_no_hidden): Use type of original function when declaring
14997 alias.
14998
9320ca88
JM
14999 * sysdeps/unix/sysv/linux/sys/ptrace.h
15000 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15001 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15002 (struct __ptrace_seccomp_metadata): New type.
15003 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15004 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15005 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15006 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15007 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15008 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15009 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15010 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15011 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15012 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15013 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15014 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15015 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15016 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15017 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15018 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15019
af7e376b
AZ
150202018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15021
15022 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15023 defined.
15024 * dirent/versionsort.c (versionsort): Likewise.
15025 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15026 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15027 * dirent/versionsort64.c (versionsort64): Likewise.
15028 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15029 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15030 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15031 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15032 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15033 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15034 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15035 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15036 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15037 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15040 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15041 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15042
da5e0361
JM
150432018-04-23 Joseph Myers <joseph@codesourcery.com>
15044
15045 * elf/elf.h (NT_PPC_PKEY): New macro.
15046
6b5c8607 150472018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
ea76691a
DSN
15048
15049 [BZ #23094]
15050 * localedata/locales/hr_HR: fix thousands_sep and
15051 mon_thousands_sep
15052
573963e3
JM
150532018-04-20 Joseph Myers <joseph@codesourcery.com>
15054
15055 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15056 (XTABS): Define to TAB3.
15057
c0123b3b
AZ
150582018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15059
0900a849
AZ
15060 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15061
c0123b3b
AZ
15062 * dirent/scandir-tail-common.c: New file.
15063 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15064 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15065 * dirent/scandir.c: Use scandir-tail-common.c.
15066 * dirent/scandirat.c: Likewise.
15067 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15068 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15069 if _DIRENT_MATCHES_DIRENT64 is defined.
15070 * dirent/scandirat64.c (scandirat64): Likewise.
15071 * include/dirent.h (__scandir_tail): Only define iff
15072 _DIRENT_MATCHES_DIRENT64 is not defined.
15073 (__scandir64_tail): Define regardless.
15074 (__scandirat, scandirat64): Remove libc_hidden_proto.
15075 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15076 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15078 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15079 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15080 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15081 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15082
458b94f6
JM
150832018-04-20 Joseph Myers <joseph@codesourcery.com>
15084
15085 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15086 New macro.
15087 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15088 Increase to 24.
15089 (_dl_aarch64_cap_flags): Add asimdfhm.
15090
9f0437e8
CLT
150912018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15092
15093 * sysdeps/nios2/libm-test-ulps: Update.
15094
298d0e31
AZ
150952018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15096
50511ca4
AZ
15097 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15098 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15099
298d0e31
AZ
15100 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15101 requirements.
6b5c8607 15102 (_DIRENT_MATCHES_DIRENT64): Undef
298d0e31
AZ
15103 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15104 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15105 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15106 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15107 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15108 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15109 use getdents64 syscalls as base.
15110 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15111 symbol if required.
15112 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15113 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15114 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15115 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15116 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15117 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15118 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15119 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15120 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15121 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15122 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15123
0085be14
SL
151242018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15125
15126 * scripts/test_printers_common.py (init_test): Disable lock elision.
15127
da796524
SL
151282018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15129
15130 * math/test-tgmath.c (count_double, count_float,
15131 count_ldouble, count_cdouble, count_cfloat,
15132 count_cldouble): Use volatile int.
15133
0dd25301
ST
151342018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15135
15136 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15137 (conformtest-xfail-conds): Add i386-gnu.
cbc256b1 15138 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
0dd25301
ST
15139 i386-gnu.
15140 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15141 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15142 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15143 msqid_ds.msg_lrpid): Likewise.
15144 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15145 Likewise.
15146 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15147 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9d9f8f03
ST
15148 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15149 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15150 unsigned int.
15151 (struct statvfs64): Likewise.
f55a4fde
ST
15152 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15153 Likewise.
77b93390
ST
15154 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15155 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15156 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15157 instead of wait_queue.
15158 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15159 instead of vm_area_struct.
5cd2931a
ST
15160 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15161 struct sched_param definition to it.
e60c3f2b
ST
15162 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15163 * bits/types/struct_sched_param.h: New file.
15164 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15165 <bits/types/struct_sched_param.h> instead of <sched.h>.
15166 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5cd2931a
ST
15167 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15168 generic version but include <bits/pthreadtypes.h> to make struct
15169 sigevent's sigev_notify_attributes field a pthread_attr_t*.
ed370924
ST
15170 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15171 non-compliant.
a564872d
ST
15172 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15173 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15174 [__USE_XOPEN] (OFDEL): New macro.
15175 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
a279b8ed 15176 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5dbfe13b
ST
15177 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15178 prototypes.
15179 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15180 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
81b032c8
ST
15181 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15182 non-compliant.
15183 * sysdeps/i386/sys/ucontext.h: Likewise.
15184 * sysdeps/m68k/sys/ucontext.h: Likewise.
15185 * sysdeps/mips/sys/ucontext.h: Likewise.
15186 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
f00b62ec
ST
15187 * sysdeps/mach/hurd/i386/Makefile
15188 (test-xfail-POSIX/fcntl.h/conform): Add.
15189 (test-xfail-POSIX/signal.h/conform): Add.
15190 (test-xfail-POSIX/semaphore.h/conform): Add.
15191 (test-xfail-POSIX/regex.h/conform): Add.
15192 (test-xfail-POSIX/aio.h/conform): Add.
15193 (test-xfail-POSIX/mqueue.h/conform): Add.
15194 (test-xfail-POSIX/sys/types.h/conform): Add.
15195 (test-xfail-UNIX98/fcntl.h/conform): Add.
15196 (test-xfail-UNIX98/netdb.h/conform): Add.
15197 (test-xfail-UNIX98/signal.h/conform): Add.
15198 (test-xfail-UNIX98/semaphore.h/conform): Add.
15199 (test-xfail-UNIX98/regex.h/conform): Add.
15200 (test-xfail-UNIX98/aio.h/conform): Add.
15201 (test-xfail-UNIX98/ftw.h/conform): Add.
15202 (test-xfail-UNIX98/mqueue.h/conform): Add.
15203 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15204 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15205 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15206 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15207 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15208 (test-xfail-UNIX98/sys/types.h/conform): Add.
15209 (test-xfail-UNIX98/stdlib.h/conform): Add.
15210 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15211 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15212 (test-xfail-POSIX2008/netdb.h/conform): Add.
15213 (test-xfail-POSIX2008/signal.h/conform): Add.
15214 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15215 (test-xfail-POSIX2008/regex.h/conform): Add.
15216 (test-xfail-POSIX2008/aio.h/conform): Add.
15217 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15218 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15219 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15220 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15221 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15222 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15223 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15224 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15225 (test-xfail-XOPEN2K/signal.h/conform): Add.
15226 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15227 (test-xfail-XOPEN2K/regex.h/conform): Add.
15228 (test-xfail-XOPEN2K/aio.h/conform): Add.
15229 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15230 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15231 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15232 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15233 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15234 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15235 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15236 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15237 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15238 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15239 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15240 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15241 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15242 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15243 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15244 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15245 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15246 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15247 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15248 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15249 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15250 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15251 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15252 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15253 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15254 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
cbc256b1
ST
15255 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15256 i386-gnu.
15257 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15258 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
0dd25301 15259
d6397de3
JM
152602018-04-18 Joseph Myers <joseph@codesourcery.com>
15261
15262 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15263 --enable-obsolete for powerpc-linux-gnuspe.
15264
8323a902
ST
152652018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15266
3dc0814c 15267 * conform/data/sys/un.h-data: Allow sun_ prefix.
c5896a45 15268 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
d4379e02 15269 prototypes.
c5896a45
ST
15270 * sysdeps/mach/include/mach.h: Likewise.
15271 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15272 * sysdeps/mach/include/mach_error.h: Likewise.
8323a902 15273
743b9c2a
AZ
152742018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15275
15276 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15277 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15278 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15279 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15280
326e74e7
AS
152812018-04-16 Andreas Schwab <schwab@suse.de>
15282
15283 [BZ #19527]
15284 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15285
6b5c8607 152862018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
a14d8acd
PM
15287
15288 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15289 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15290
a700e7cb
DD
152912018-04-12 DJ Delorie <dj@redhat.com>
15292
15293 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15294 version to 4.16.
15295
d8abfab7
SL
152962018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15297
15298 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15299 (struct kernel_sigaction): Use the same definition on 31bit as is used
15300 on 64bit.
15301
583a27d5
FW
153022018-04-09 Florian Weimer <fweimer@redhat.com>
15303
15304 [BZ #23037]
15305 * resolv/res_send.c (send_dg): Use designated initializers instead
15306 of assignment to zero-initialize other fields of struct mmsghdr.
15307
243f59e5
AZ
153082018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15309
942de61a
AZ
15310 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15311 __READDIR_ALIAS): Undefine after usage.
15312 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15313 __READDIR_R_ALIAS): Likewise.
15314 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15315 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15316 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15317 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15318 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15319 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15320 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15321 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15322 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15323 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15324 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15325 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15326 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15327 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15328 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15329 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15330 * sysdeps/unix/sysv/linux/readdir.c: New file.
15331 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15332 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15333 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15334
243f59e5
AZ
15335 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15336
690c3475
AS
153372018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15338
15339 * manual/charset.texi (Converting a Character): Fix typo.
15340
6b5c8607 153412018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
b4a5d26d 15342
bbc2062a
AZ
15343 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15344
fa7c6199
AZ
15345 * sysdeps/arm/libm-test-ulps: Update.
15346
b4a5d26d
AZ
15347 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15348 as base implementation.
15349 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15350 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15351 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15352 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15353 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15354 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15355 remove unrequired definitions and update comments.
15356 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15357 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15358 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15359 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15360 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15361 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15362 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15363 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15364 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15365 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15366 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15367 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15368 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15369 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15370 and RESET_SA_RESTORER hooks.
15371
db9e55ff
SL
153722018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15373
15374 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15375
cf138b0c
FW
153762018-04-05 Florian Weimer <fweimer@redhat.com>
15377
15378 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15379 integer overflow, memory leak on error, and indeterminate errno
15380 value. Add a null wide character to terminate the result string.
15381 * manual/charset.texi (Converting a Character): Mention embedded
15382 null bytes in the mbrtowc input string. Explain what happens in
15383 the -2 result case. Do not claim that mbrtowc is simple or
15384 obvious to use. Adjust the description of the code example. Use
15385 @code, not @var, for concrete variables.
15386
0f339252
FW
153872018-04-05 Florian Weimer <fweimer@redhat.com>
15388
15389 * manual/examples/mbstouwcs.c: New file.
15390 * manual/charset.texi (Converting a Character): Include it.
15391
e5f9508a
ST
153922018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15393
c120981d
ST
15394 * include/dirent.h (dirfd): Add hidden proto.
15395 * dirent/dirfd.c (dirfd): Add hidden def.
15396 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15397 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
e5f9508a 15398
b2fd61ca
TMQMF
153992018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15400
15401 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15402 sin, cos and sincos to 1 ULP.
15403
10a446dd
MR
154042018-04-04 Maciej W. Rozycki <macro@mips.com>
15405
e7feec37
MR
15406 [BZ #19818]
15407 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15408 symbols.
15409 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15410 * elf/tst-absolute-sym.c: New file.
15411 * elf/tst-absolute-sym-lib.c: New file.
15412 * elf/tst-absolute-sym-lib.lds: New file.
15413 * elf/Makefile (tests): Add `tst-absolute-sym'.
15414 (modules-names): Add `tst-absolute-sym-lib'.
15415 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15416 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15417 ($(objpfx)tst-absolute-sym): New dependency.
15418
10a446dd
MR
15419 [BZ #19818]
15420 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15421 parameter.
15422 (SYMBOL_ADDRESS): New macro.
15423 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15424 SYMBOL_ADDRESS for symbol address calculation.
15425 * elf/dl-runtime.c (_dl_fixup): Likewise.
15426 (_dl_profile_fixup): Likewise.
15427 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15428 * elf/rtld.c (dl_main): Likewise.
15429 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15430 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15431 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15432 (elf_machine_rela): Likewise.
15433 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15434 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15435 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15436 (elf_machine_rela): Likewise.
15437 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15438 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15439 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15440 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15441 Likewise.
15442 (elf_machine_reloc): Likewise.
15443 (elf_machine_got_rel): Likewise.
15444 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15445 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15446 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15447 Likewise.
15448 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15449 Likewise.
15450 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15451 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15452 Likewise.
15453 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15454 Likewise.
15455 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15456 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15457 Likewise.
15458 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15459 Likewise.
15460 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15461 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15462
9185f86d
ZW
154632018-04-04 Zack Weinberg <zackw@panix.com>
15464
15465 * sysdeps/generic/internal-signals.h: Include signal.h,
15466 sigsetops.h, and stdbool.h.
15467 (__libc_signal_block_all): Actually block all signals.
15468 (__libc_signal_block_app): Likewise.
15469 (__libc_signal_restore_set): Actually restore the signal mask.
15470
b07367bc
FW
154712018-04-04 Florian Weimer <fweimer@redhat.com>
15472
15473 inet: Actually build and run tst-deadline.
15474 * inet/Makefile (tests-internal): Add tst-deadline and do not
15475 overwrite the variable.
15476 (tests-static-internal): Remove variable.
15477
f2652643
L
154782018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15479
15480 [BZ #22947]
15481 * bits/uio-ext.h (RWF_APPEND): New.
15482 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15483 * manual/llio.texi: Document RWF_APPEND.
15484 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15485 (RWF_SUPPORTED): Add RWF_APPEND.
15486
6b5c8607 154872018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
d2dc5467
AZ
15488
15489 [BZ #22391]
15490 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15491 check for internal nptl signals.
15492 * nptl/sigaction.c (__sigaction): Likewise.
15493 * signal/sigaddset.c (sigaddset): Likewise.
15494 * signal/sigdelset.c (sigdelset): Likewise.
15495 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15496 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15497 value.
15498 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15499 to filter out internal nptl signals.
15500 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15501 also check realtime signals using standard macros.
15502 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15503 __is_internal_signal, __libc_signal_block_all,
15504 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15505 * sysdeps/nptl/sigfillset.c: Remove file.
15506 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15507 Change return to bool.
15508 (__clear_internal_signals): Remove SIGTIMER clean since it is
15509 equal to SIGCANEL on Linux.
15510 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15511 signal set was constructed using standard functions.
15512
511ed56f
ST
155132018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15514
92846492
ST
15515 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15516 ifname is too long.
e8ef51b1
ST
15517 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15518 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
ff297b70
ST
15519 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15520 hidden def.
15521 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
d8440a21
ST
15522 * signal/sigaddset.c: Include <sigsetopts.h>.
15523 * signal/sigdelset.c: Likewise.
511ed56f 15524
e88ecbbf
WD
155252018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15526
15527 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15528 (__cos): Likewise.
15529 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15530 logic as sin and cos.
15531
aef3e255
WD
155322018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15533
15534 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15535 inputs. Return correct sign.
15536 (do_sincos): Remove small input check before do_sin, let do_sin set
15537 the sign.
15538 (__sin): Likewise.
15539 (__cos): Likewise.
15540
72f6e9a3
WD
155412018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15542
15543 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15544 (do_cos_slow): Likewise.
15545 (do_sin_slow): Likewise.
15546 (reduce_and_compute): Likewise.
15547 (slow): Likewise.
15548 (slow1): Likewise.
15549 (slow2): Likewise.
15550 (sloww): Likewise.
15551 (sloww1): Likewise.
15552 (sloww2): Likewise.
15553 (bslow): Likewise.
15554 (bslow1): Likewise.
15555 (bslow2): Likewise.
15556 (cslow2): Likewise.
15557
64909583
WD
155582018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15559
15560 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15561 (do_cos): Remove corp parameter and calculations.
15562 (do_sin): Likewise.
15563 (do_sincos): Remove cor variable.
15564 (__sin): Use do_sincos for huge inputs.
15565 (__cos): Likewise.
15566 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15567 (reduce_and_compute_sincos): Remove unused function.
15568
d9469deb
WD
155692018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15570
15571 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15572 reduce_sincos, improve accuracy to 136 bits.
15573 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15574 (__sin): Use improved reduction and simplified do_sincos calculation.
15575 (__cos): Likewise.
15576 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15577
7a5640f2
WD
155782018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15579
15580 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15581 (do_sincos_2): Likewise.
15582 (__sin): Remove middle range reduction case.
15583 (__cos): Likewise.
15584 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15585 reduction case.
15586
19a8b9a3
WD
155872018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15588
15589 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15590 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15591 inputs.
15592 (__cos): Likewise.
15593 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15594
f72aa11d
JM
155952018-04-03 Joseph Myers <joseph@codesourcery.com>
15596
15597 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19a8b9a3 15598 version to 4.16
f72aa11d 15599
8e4754ed
AZ
156002018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15601
15602 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15603 Remove definitions.
15604 (opendir_oflags): Use O_DIRECTORY regardless.
15605 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15606 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15607
8e2666ea
ST
156082018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15609
15610 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15611 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15612 macros.
15613 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15614 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15615 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15616 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
deed72f6
ST
15617 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15618 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
8e2666ea 15619
ad2b41bf
ST
15620 * htl/Makefile: Bump licence to LGPL 2.1+.
15621 * htl/alloca_cutoff.c: Likewise.
15622 * htl/cthreads-compat.c: Likewise.
15623 * htl/lockfile.c: Likewise.
15624 * htl/pt-alloc.c: Likewise.
15625 * htl/pt-cancel.c: Likewise.
15626 * htl/pt-cleanup.c: Likewise.
15627 * htl/pt-create.c: Likewise.
15628 * htl/pt-dealloc.c: Likewise.
15629 * htl/pt-detach.c: Likewise.
15630 * htl/pt-exit.c: Likewise.
15631 * htl/pt-getattr.c: Likewise.
15632 * htl/pt-initialize.c: Likewise.
15633 * htl/pt-internal.h: Likewise.
15634 * htl/pt-join.c: Likewise.
15635 * htl/pt-self.c: Likewise.
15636 * htl/pt-setcancelstate.c: Likewise.
15637 * htl/pt-setcanceltype.c: Likewise.
15638 * htl/pt-sigmask.c: Likewise.
15639 * htl/pt-spin-inlines.c: Likewise.
15640 * htl/pt-testcancel.c: Likewise.
15641 * htl/pt-yield.c: Likewise.
15642 * htl/tests/test-1.c: Likewise.
15643 * htl/tests/test-10.c: Likewise.
15644 * htl/tests/test-11.c: Likewise.
15645 * htl/tests/test-12.c: Likewise.
15646 * htl/tests/test-13.c: Likewise.
15647 * htl/tests/test-14.c: Likewise.
15648 * htl/tests/test-15.c: Likewise.
15649 * htl/tests/test-16.c: Likewise.
15650 * htl/tests/test-17.c: Likewise.
15651 * htl/tests/test-2.c: Likewise.
15652 * htl/tests/test-3.c: Likewise.
15653 * htl/tests/test-4.c: Likewise.
15654 * htl/tests/test-5.c: Likewise.
15655 * htl/tests/test-6.c: Likewise.
15656 * htl/tests/test-7.c: Likewise.
15657 * htl/tests/test-8.c: Likewise.
15658 * htl/tests/test-9.c: Likewise.
15659 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15660 * sysdeps/htl/bits/cancelation.h: Likewise.
15661 * sysdeps/htl/bits/pthread-np.h: Likewise.
15662 * sysdeps/htl/bits/pthread.h: Likewise.
15663 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15664 * sysdeps/htl/bits/semaphore.h: Likewise.
15665 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15666 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15667 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15668 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15669 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15670 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15671 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15672 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15673 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15674 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15675 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15676 * sysdeps/htl/old_pt-atfork.c: Likewise.
15677 * sysdeps/htl/pt-atfork.c: Likewise.
15678 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15679 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15680 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15681 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15682 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15683 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15684 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15685 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15686 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15687 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15688 * sysdeps/htl/pt-attr-init.c: Likewise.
15689 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15690 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15691 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15692 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15693 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15694 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15695 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15696 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15697 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15698 * sysdeps/htl/pt-attr.c: Likewise.
15699 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15700 * sysdeps/htl/pt-barrier-init.c: Likewise.
15701 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15702 * sysdeps/htl/pt-barrier.c: Likewise.
15703 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15704 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15705 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15706 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15707 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15708 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15709 * sysdeps/htl/pt-cond-init.c: Likewise.
15710 * sysdeps/htl/pt-cond-signal.c: Likewise.
15711 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15712 * sysdeps/htl/pt-cond-wait.c: Likewise.
15713 * sysdeps/htl/pt-cond.c: Likewise.
15714 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15715 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15716 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15717 * sysdeps/htl/pt-condattr-init.c: Likewise.
15718 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15719 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15720 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15721 * sysdeps/htl/pt-equal.c: Likewise.
15722 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15723 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15724 * sysdeps/htl/pt-getschedparam.c: Likewise.
15725 * sysdeps/htl/pt-getspecific.c: Likewise.
15726 * sysdeps/htl/pt-init-specific.c: Likewise.
15727 * sysdeps/htl/pt-key-create.c: Likewise.
15728 * sysdeps/htl/pt-key-delete.c: Likewise.
15729 * sysdeps/htl/pt-key.h: Likewise.
15730 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15731 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15732 * sysdeps/htl/pt-mutex-init.c: Likewise.
15733 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15734 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15735 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15736 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15737 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15738 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15739 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15740 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15741 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15742 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15743 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15744 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15745 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15746 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15747 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15748 * sysdeps/htl/pt-mutexattr.c: Likewise.
15749 * sysdeps/htl/pt-once.c: Likewise.
15750 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15751 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15752 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15753 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15754 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15755 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15756 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15757 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15758 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15759 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15760 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15761 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15762 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15763 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15764 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15765 * sysdeps/htl/pt-setschedparam.c: Likewise.
15766 * sysdeps/htl/pt-setschedprio.c: Likewise.
15767 * sysdeps/htl/pt-setspecific.c: Likewise.
15768 * sysdeps/htl/pt-spin.c: Likewise.
15769 * sysdeps/htl/pt-startup.c: Likewise.
15770 * sysdeps/htl/pthread.h: Likewise.
15771 * sysdeps/htl/sem-close.c: Likewise.
15772 * sysdeps/htl/sem-destroy.c: Likewise.
15773 * sysdeps/htl/sem-getvalue.c: Likewise.
15774 * sysdeps/htl/sem-init.c: Likewise.
15775 * sysdeps/htl/sem-open.c: Likewise.
15776 * sysdeps/htl/sem-post.c: Likewise.
15777 * sysdeps/htl/sem-timedwait.c: Likewise.
15778 * sysdeps/htl/sem-trywait.c: Likewise.
15779 * sysdeps/htl/sem-unlink.c: Likewise.
15780 * sysdeps/htl/sem-wait.c: Likewise.
15781 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15782 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15783 * sysdeps/mach/htl/pt-block.c: Likewise.
15784 * sysdeps/mach/htl/pt-spin.c: Likewise.
15785 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15786 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15787 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15788 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15789 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15790 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15791 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15792 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15793 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15794 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15795 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15796 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15797 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15798 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15799 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15800 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15801 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15802 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15803 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15804 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15805 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15806 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15807 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15808 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15809 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15810 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15811 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15812 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15813 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15814 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15815 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15816 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15817 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15818 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15819 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15820 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15821 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15822 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15823 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15824 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15825 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15826 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15827 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15828
fb03b04b
ST
15829 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15830 * README: Remove the mention of out-of-tree patches needed for
15831 GNU/Hurd.
15832
fa9e1555
ST
15833 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15834 (UTIME_NOW, UTIME_OMIT): Define macros.
15835
f6fb29d2
ST
15836 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15837 instead of pthread_detach.
15838 (__cthread_fork): Call __pthread_create instead of pthread_create.
15839 (__cthread_keycreate): Call __pthread_key_create instead of
15840 pthread_key_create.
15841 (__cthread_getspecific): Call __pthread_getspecific instead of
15842 pthread_getspecific.
15843 (__cthread_setspecific): Call __pthread_setspecific instead of
15844 pthread_setspecific.
15845 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15846 __pthread_mutex_unlock instead of pthread_mutex_lock and
15847 pthread_mutex_unlock.
15848 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15849 ___pthread_get_cleanup_stack.
15850 (__pthread_get_cleanup_stack): New strong alias.
15851 * htl/pt-create.c: Include <pthreadP.h>.
15852 (entry_point): Call __pthread_exit instead of pthread_exit.
15853 (pthread_create): Rename to __pthread_create.
15854 (pthread_create): New strong alias.
15855 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15856 (pthread_detach): New strong alias.
15857 (__pthread_detach): Call __pthread_cond_broadcast instead of
15858 pthread_cond_broadcast.
fe9748cc
ST
15859 * htl/pt-exit.c: Include <pthreadP.h>.
15860 (__pthread_exit): Call __pthread_setcancelstate and
15861 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15862 __pthread_get_cleanup_stack.
f6fb29d2
ST
15863 * htl/pt-testcancel.c: Include <pthreadP.h>.
15864 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15865 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15866 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15867 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15868 pthread_attr_getstacksize.
15869 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15870 Rename to __pthread_attr_getstackaddr.
15871 (pthread_attr_getstackaddr): New strong alias.
15872 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15873 Rename to __pthread_attr_getstacksize.
15874 (pthread_attr_getstacksize): New strong alias.
15875 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15876 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15877 (pthread_attr_setstack): New strong alias.
15878 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15879 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15880 pthread_attr_getstacksize, pthread_attr_setstacksize and
15881 pthread_attr_setstackaddr.
15882 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15883 Rename to __pthread_attr_setstackaddr.
15884 (pthread_attr_setstackaddr): New strong alias.
15885 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15886 Rename to __pthread_attr_setstacksize.
15887 (pthread_attr_setstacksize): New strong alias.
15888 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15889 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15890 pthread_exit.
15891 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15892 (__pthread_key_create): New hidden def.
15893 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15894 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15895 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15896 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15897 __pthread_setspecific, __pthread_setcancelstate,
15898 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15899 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15900 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15901 declarations.
15902 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15903 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15904 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15905 (pthread_attr_setstackaddr): New strong alias.
15906 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15907 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15908 (pthread_attr_setstacksize): New strong alias.
15909 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15910 (call_exit): Call __pthread_exit instead of pthread_exit.
15911 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15912 (_pthread_mutex_init): New hidden definition.
15913 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15914 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15915 instead of pthread_attr_init and pthread_attr_setstack.
15916
dba2bdbe
ST
15917 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15918 __vm_deallocate instead of vm_allocate and vm_deallocate.
15919 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15920 setenv.
15921 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15922 of geteuid.
15923 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15924 strdup.
15925 * hurd/siginfo.c: Include <libioP.h>.
15926 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15927 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15928 munmap.
dba2bdbe
ST
15929 * mach/devstream.c: Include <libioP.h>.
15930 (dealloc_ref): Call __mach_port_deallocate instead of
15931 mach_port_deallocate.
15932 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15933 Call __mach_port_deallocate instead of mach_port_deallocate.
15934 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15935 pathconf.
15936 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15937 munmap.
15938 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15939 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15940 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15941 of munmap.
15942 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15943 of close.
15944 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15945 instead of sysconf.
15946 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15947 __clock_gettime instead of clock_gettime.
15948 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15949 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15950 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15951 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15952 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15953 tcgetattr.
15954 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15955 __clock_gettime and __nanosleep instead of clock_gettime and
15956 nanosleep.
7a8f45e3
ST
15957 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15958 __hurd_catch_signal.
15959 (hurd_catch_signal): New strong alias.
15960 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15961 __hurd_catch_signal instead of hurd_catch_signal.
15962 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15963 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15964 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15965 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15966 (_hurd_thread_sigstate): Add hidden def.
15967 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15968 mutex_unlock.
15969 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15970 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15971 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15972 __hurd_file_name_path_lookup.
15973 (hurd_file_name_path_lookup): New strong alias.
15974 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15975 hurd_file_name_path_lookup.
15976 * mach/errstring.c (mach_error_type): Add hidden def.
15977 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15978 * mach/mutex-init.c (__mutex_init): Add hidden def.
15979 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15980 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15981 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15982 * sysdeps/mach/hurd/getcwd.c
15983 (_hurd_canonicalize_directory_name_internal): Rename to
15984 __hurd_canonicalize_directory_name_internal.
15985 (_hurd_canonicalize_directory_name_internal): New strong alias.
15986 (__canonicalize_directory_name_internal, __getcwd): Call
15987 __hurd_canonicalize_directory_name_internal instead of
15988 _hurd_canonicalize_directory_name_internal.
15989 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15990 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15991 hidden defs.
15992 * sysdeps/hurd/include/hurd.h: New file.
15993 * sysdeps/hurd/include/hurd/fd.h: New file.
15994 * sysdeps/hurd/include/hurd/signal.h: New file.
15995 * sysdeps/mach/include/lock-intern.h: New file.
15996 * sysdeps/mach/include/mach.h: New file.
15997 * sysdeps/mach/include/mach/mig_support.h: New file.
15998 * sysdeps/mach/include/mach_error.h: New file.
a758c293
ST
15999 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16000 prototype.
16001 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16002 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16003 _HEADER_H_HIDDEN_DEF macro.
16004 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16005 _hurd_fd_error_signal): Add hidden prototype.
16006 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16007 hidden def.
82dbf555
ST
16008 * libio/iolibio.h (_IO_puts): New hidden prototype.
16009 * libio/ioputs.c (_IO_puts): New hidden def.
171488a2
ST
16010 * sysdeps/mach/hurd/localplt.data: New file.
16011
33574c17 160122018-04-02 Agustina Arzille <avarzille@riseup.net>
b39d961c
TS
16013 Amos Jeffries <squid3@treenet.co.nz>
16014 David Michael <fedora.dm0@gmail.com>
16015 Marco Gerards <marco@gnu.org>
16016 Marcus Brinkmann <marcus@gnu.org>
16017 Neal H. Walfield <neal@gnu.org>
16018 Pino Toscano <toscano.pino@tiscali.it>
16019 Richard Braun <rbraun@sceen.net>
16020 Roland McGrath <roland@gnu.org>
16021 Samuel Thibault <samuel.thibault@ens-lyon.org>
16022 Thomas DiModica <ricinwich@yahoo.com>
16023 Thomas Schwinge <tschwinge@gnu.org>
33574c17
ST
16024
16025 * htl: New directory.
16026 * sysdeps/htl: New directory.
16027 * sysdeps/hurd/htl: New directory.
16028 * sysdeps/i386/htl: New directory.
16029 * sysdeps/mach/htl: New directory.
16030 * sysdeps/mach/hurd/htl: New directory.
16031 * sysdeps/mach/hurd/i386/htl: New directory.
16032 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16033 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16034 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16035
03e2aa50
ST
160362018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16037
16038 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16039 signals in thread created for runing timers.
16040
1aa52ced
FW
160412018-04-01 Florian Weimer <fweimer@redhat.com>
16042
16043 * support/support_format_addrinfo.c (support_format_addrinfo):
16044 Include unknown error number in formatted result.
16045
4d76d3e5
FW
160462018-03-29 Florian Weimer <fweimer@redhat.com>
16047
16048 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16049 capture SIGBUS.
16050
d39c0a45
AZ
160512018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16052
16053 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16054 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16055 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16056 (__ASSUME_CLONE_BACKWARDS): Define.
16057
cc8a1620
JH
160582018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16059
57408435 16060 [BZ #23024]
cc8a1620
JH
16061 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16062 early when linux sentinel value is set.
16063
8bfd94d0
ST
160642018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16065
16066 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16067
f178e59f
AS
160682018-03-27 Andreas Schwab <schwab@suse.de>
16069
16070 [BZ #23005]
16071 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16072 allocation of private copy of nsaddr_list fails.
16073
5f45f96a
JM
160742018-03-26 Joseph Myers <joseph@codesourcery.com>
16075
16076 [BZ #16552]
16077 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16078 * sysdeps/unix/sysv/linux/umount.c: ... here.
16079 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16080 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16081 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16082 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16084 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16085 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16086
3dfd23eb
AS
160872018-03-26 Andreas Schwab <schwab@suse.de>
16088
16089 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16090 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16091 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16092 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16093 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16094 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16095 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16096 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16097 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16098 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16099 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16100 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16101 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16102 (R_RISCV_NUM): Define.
16103
fa97d2ab
ST
161042018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16105
16106 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16107 TLS declaration of errno.
37be82a0
ST
16108 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16109 __libc_setup_tls.
16110 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16111 (ARCH_SETUP_TLS): Likewise.
16112 * sysdeps/mach/hurd/libc-start.h: New file copied from
16113 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
978a6803
ST
16114 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16115 instead of __libc_setup_tls.
37be82a0 16116 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
978a6803
ST
16117 __libc_setup_tls before initializing libpthread and running _hurd_init
16118 which starts the signal thread.
16119 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16120 Declare function.
2d813d7b 16121 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fa97d2ab 16122
b8114edd
L
161232018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16124
16125 [BZ #22998]
16126 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16127 after it is defined.
16128
cd66c0e5
AS
161292018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16130 Max Horn <max@quendi.de>
16131
16132 [BZ #22644]
43d4f3d5 16133 CVE-2017-18269
cd66c0e5
AS
16134 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16135 branch conditions.
16136 * string/test-memmove.c (do_test2): New testcase.
16137
a4406139
JM
161382018-03-22 Joseph Myers <joseph@codesourcery.com>
16139
16140 * sysdeps/generic/frame.h: Remove file.
16141 * sysdeps/arm/frame.h: Likewise.
16142 * sysdeps/hppa/frame.h: Likewise.
16143 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16144 macro.
16145 (GET_FRAME): Likewise.
16146 (GET_STACK): Likewise.
16147 (CALL_SIGHANDLER): Likewise.
16148 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16149 Likewise.
16150 (GET_FRAME): Likewise.
16151 (GET_STACK): Likewise.
16152 (CALL_SIGHANDLER): Likewise.
16153 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16154 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16155 (GET_FRAME): Likewise.
16156 (GET_STACK): Likewise.
16157 (CALL_SIGHANDLER): Likewise.
16158 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16159 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16160 (GET_FRAME): Likewise.
16161 (GET_STACK): Likewise.
16162 (ADVANCE_STACK_FRAME): Likewise.
16163 (CALL_SIGHANDLER): Likewise.
16164 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16165 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16166 (GET_FRAME): Likewise.
16167 (GET_STACK): Likewise.
16168 (CALL_SIGHANDLER): Likewise.
16169 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16170 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16171 (GET_FRAME): Likewise.
16172 (GET_STACK): Likewise.
16173 (CALL_SIGHANDLER): Likewise.
16174 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16175 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16176 (GET_FRAME): Likewise.
16177 (GET_STACK): Likewise.
16178 (CALL_SIGHANDLER): Likewise.
16179 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16180 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16181 (GET_FRAME): Likewise.
16182 (GET_STACK): Likewise.
16183 (CALL_SIGHANDLER): Likewise.
16184 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16185 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16186 (GET_FRAME): Likewise.
16187 (GET_STACK): Likewise.
16188 (CALL_SIGHANDLER): Likewise.
16189 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16190 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16191 (GET_FRAME): Likewise.
16192 (GET_STACK): Likewise.
16193 (CALL_SIGHANDLER): Likewise.
16194 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16195 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16196 (GET_FRAME): Likewise.
16197 (GET_STACK): Likewise.
16198 (CALL_SIGHANDLER): Likewise.
16199 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16200 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16201 (GET_FRAME): Likewise.
16202 (GET_STACK): Likewise.
16203 (CALL_SIGHANDLER): Likewise.
16204 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16205 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16206 (GET_FRAME): Likewise.
16207 (GET_STACK): Likewise.
16208 (CALL_SIGHANDLER): Likewise.
16209 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16210 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16211 (FIRST_FRAME_POINTER): Likewise.
16212 (ADVANCE_STACK_FRAME): Likewise.
16213 (GET_STACK): Likewise.
16214 (GET_FRAME): Likewise.
16215 (CALL_SIGHANDLER): Likewise.
16216 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16217 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16218 (ADVANCE_STACK_FRAME): Likewise.
16219 (GET_STACK): Likewise.
16220 (GET_FRAME): Likewise.
16221 (CALL_SIGHANDLER): Likewise.
16222 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16223 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16224 (GET_FRAME): Likewise.
16225 (GET_STACK): Likewise.
16226 (CALL_SIGHANDLER): Likewise.
16227 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16228 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16229 (GET_FRAME): Likewise.
16230 (GET_STACK): Likewise.
16231 (CALL_SIGHANDLER): Likewise.
16232
ffec7b27
JM
162332018-03-21 Joseph Myers <joseph@codesourcery.com>
16234
16235 * sysdeps/x86_64/backtrace.c: Move to ....
16236 * debug/backtrace.c: ... here.
16237 * sysdeps/aarch64/backtrace.c: Remove file.
16238 * sysdeps/alpha/backtrace.c: Likewise.
16239 * sysdeps/hppa/backtrace.c: Likewise.
16240 * sysdeps/ia64/backtrace.c: Likewise.
16241 * sysdeps/mips/backtrace.c: Likewise.
16242 * sysdeps/nios2/backtrace.c: Likewise.
16243 * sysdeps/riscv/backtrace.c: Likewise.
16244 * sysdeps/sh/backtrace.c: Likewise.
16245 * sysdeps/tile/backtrace.c: Likewise.
16246
8a07b0c4
JM
162472018-03-20 Joseph Myers <joseph@codesourcery.com>
16248
d0c5d731
JM
16249 [BZ #22987]
16250 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16251 function.
16252 (fdimf): Likewise.
16253 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16254
8a07b0c4
JM
16255 [BZ #17343]
16256 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16257 possibly overflowing computations.
16258
ceb54b9b
ST
162592018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16260
16261 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16262 values from Linux-specific section now that it is in the GNU section.
16263 * sysdeps/gnu/errlist.c: Regenerate.
16264
8d3f9e85
JM
162652018-03-20 Joseph Myers <joseph@codesourcery.com>
16266
16267 * math/Makefile (libm-narrow-fns): Add sub.
16268 (libm-test-funcs-narrow): Likewise.
16269 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16270 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16271 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16272 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16273 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16274 (NARROW_SUB_TRIVIAL): Likewise.
16275 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16276 macro.
16277 (__dsubl): Likewise.
16278 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16279 dsub.
16280 (CFLAGS-nldbl-dsub.c): New variable.
16281 (CFLAGS-nldbl-fsub.c): Likewise.
16282 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16283 __nldbl_dsubl.
16284 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16285 prototype.
16286 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16287 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16288 * math/auto-libm-test-in: Add tests of sub.
16289 * math/auto-libm-test-out-narrow-sub: New generated file.
16290 * math/libm-test-narrow-sub.inc: New file.
16291 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16292 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16293 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16294 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16295 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16296 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16297 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16298 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16299 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16300 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16301 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16302 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16303 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16304 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16305 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16306 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16307 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16308 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16309 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16310 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16311 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16312 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16313 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16314 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16315 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16316 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16317 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16318 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16319 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16320 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16321 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16322 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16327 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16328 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16329 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16330 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16331 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16332 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16333 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16334 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16335 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16336 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16337
d473f015
JM
163382018-03-19 Joseph Myers <joseph@codesourcery.com>
16339
16340 [BZ #20079]
16341 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16342
fbce6f72
WD
163432018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16344
16345 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16346
72e7ffc3
RB
163472018-03-18 Richard Braun <rbraun@sceen.net>
16348
16349 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16350 thread reference.
16351
542c20a1
AA
163522018-03-18 Agustina Arzille <avarzille@riseup.net>
16353
16354 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16355 (__libc_cleanup_fct): Define function.
16356 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16357 __libc_cleanup_end): Rewrite implementation using
16358 __attribute__ ((__cleanup__)).
16359 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
fb4cc8a0
AA
16360 * hurd/Makefile (routines): Add hurdlock.
16361 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16362 interface.
16363 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16364 * hurd/hurdpid.c: Include <lowlevellock.h>
16365 (_S_msg_proc_newids): Use lll_wait to synchronize.
16366 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16367 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16368 * mach/Makefile (lock-headers): Remove machine-lock.h.
16369 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16370 <machine-lock.h>.
16371 (__spin_lock_t): New type.
16372 (__SPIN_LOCK_INITIALIZER): New macro.
16373 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16374 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16375 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16376 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16377 (__mutex_init): Initialize with lll.
16378 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16379 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16380 needing lll.
16381 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16382 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16383 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16384 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16385 (__setpgid): Use lll for synchronization.
16386 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16387 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16388 instead of <cthreads.h>.
16389 (_IO_lock_inexpensive): New macro
16390 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16391 (__libc_lock_self0): New declaration.
16392 (__libc_lock_owner_self): New macro.
16393 (__libc_key_t): Remove type.
16394 (_LIBC_LOCK_INITIALIZER): New macro.
16395 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16396 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16397 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16398 __libc_lock_define_initialized_recursive,
16399 __rtld_lock_define_initialized_recursive,
16400 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16401 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16402 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16403 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16404 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16405 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16406 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16407 New macros.
16408 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16409 * hurd/hurdlock.c: New file.
16410 * hurd/hurdlock.h: New file.
16411 * mach/lowlevellock.h: New file
542c20a1 16412
9a37922e
ST
164132018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16414
16415 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
489999cc
ST
16416 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16417 when opening a symlink with O_NOFOLLOW.
72103e73
ST
16418 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16419 path when flags contains O_NOFOLLOW.
16420 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16421 if flags contains O_DIRECTORY and the result is a directory.
aa218929
ST
16422 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16423 oneself when the pointer given in D is nul (as set by ext2fs).
20bc801b
ST
16424 * sysdeps/mach/hurd/mlockall.c: New file.
16425 * sysdeps/mach/hurd/munlockall.c: New file.
9a37922e 16426
34e6a869
ST
164272018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16428
16429 * hurd/hurdsig.c: Include <pthread.h>.
16430 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16431 get the signal thread stack layout.
dc33bef3
ST
16432 * hurd/Makefile (headers): Remove threadvar.h.
16433 (inline-headers): Remove threadvar.h.
16434 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16435 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16436 __hurd_threadvar_max, __hurd_errno_location.
16437 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16438 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16439 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16440 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16441 unless TLS is not initialized yet, in which case we do not need a
16442 critical section yet anyway.
16443 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16444 <machine-sp.h>.
16445 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16446 declarations.
16447 (__hurd_threadvar_index): Remove enum.
16448 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16449 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16450 inlines.
16451 (__hurd_reply_port0): New variable declaration.
16452 (__hurd_local_reply_port): New macro.
16453 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16454 (interrupted_reply_port_location): Add thread_t parameter. Use it
16455 with THREAD_TCB to access thread-local variables.
16456 (_hurdsig_abort_rpcs): Pass ss->thread to
16457 interrupted_reply_port_location.
16458 (_hurd_internal_post_signal): Likewise.
16459 (_hurdsig_init): Use presence of cthread_fork instead of
16460 __hurd_threadvar_stack_mask to start signal thread by hand.
16461 Remove signal thread threadvar initialization.
16462 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16463 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16464 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16465 of threadvar.
16466 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16467 __libc_lock_self0.
16468 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16469 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16470 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16471 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16472 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16473 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16474 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16475 define variables.
16476 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16477 <hurd/threadvar.h>.
16478 [IS_IN(rtld)] (rtld_errno): New variable.
16479 [IS_IN(rtld)] (__errno_location): New weak function.
16480 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16481 * sysdeps/mach/hurd/errno.c: Remove file.
16482 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16483 (__fork): Remove THREADVAR_SPACE macro and its use.
16484 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16485 variable.
16486 (init): Do not initialize threadvar.
16487 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16488 symbol.
16489 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16490 __hurd_local_reply_port instead of threadvar.
16491 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16492 _hurd_sigstate fields.
16493 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16494 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16495 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16496 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16497 instead of threadvar.
16498 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16499 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16500 (use_threadvar, global_reply_port): Remove variables.
16501 (__hurd_reply_port0): New variable.
16502 (__mig_get_reply_port): Use __hurd_local_reply_port and
16503 __hurd_reply_port0 instead of threadvar.
16504 (__mig_dealloc_reply_port): Likewise.
16505 (__mig_init): Do not initialize threadvar.
16506 * sysdeps/mach/hurd/profil.c: Fix comment.
c2fb08c7
ST
16507 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16508 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16509 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16510 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16511 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16512 __cthread_setspecific.
16513 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16514 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16515 __cthread_t instead of cthread_fork, cthread_detach,
16516 pthread_getattr_np, pthread_attr_getstack.
16517 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16518 __cthread_keycreate.
16519 (cthread_getspecific): Rename to __cthread_getspecific.
16520 (cthread_setspecific): Rename to __cthread_setspecific.
16521 (__libc_getspecific): Use __cthread_getspecific instead of
16522 cthread_getspecific.
16523 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16524 __cthread_keycreate instead of cthread_keycreate.
16525 (__libc_setspecific): Use __cthread_setspecific instead of
16526 cthread_setspecific.
16527 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16528 Likewise.
dd28d4ba
ST
16529 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16530 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16531 testing whether it is defined.
34e6a869 16532
f8baf2a2
ST
165332018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16534
16535 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16536 Define macro.
16537 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16538 * sysdeps/mach/i386/thread_state.h
16539 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16540 i386_THREAD_STATE.
16541 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16542 i386_THREAD_STATE.
16543 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16544
16545 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16546 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16547
16548 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16549 macros.
16550 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16551 descriptor instead of creating a new one.
16552 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16553
16554 * mach/setup-thread.c: Include <ldsodefs.h>.
16555 (__mach_setup_thread): Call _dl_allocate_tls, pass
16556 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16557 MACHINE_THREAD_STATE_FLAVOR, before getting
16558 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16559 MACHINE_THREAD_STATE_FLAVOR with the result.
16560 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16561 MACHINE_THREAD_STATE_FIX_NEW.
16562 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16563 too. Add original thread parameter.
16564
34ba96b8
JM
165652018-03-16 Joseph Myers <joseph@codesourcery.com>
16566
5d75b75f
JM
16567 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16568 Remove inline function.
16569
34ba96b8
JM
16570 * sysdeps/i386/fpu/libm-test-ulps: Update.
16571 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16572
22679b2c
WD
165732018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16574
16575 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16576 commit.
16577
c429a8d8
JM
165782018-03-15 Joseph Myers <joseph@codesourcery.com>
16579
16580 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16581 (__sincos_code): Remove define and undefine.
16582 [__FAST_MATH__] (__sincos): Remove inline function.
16583 [__FAST_MATH__] (__sincosf): Remove inline function.
16584 [__FAST_MATH__] (__sincosl): Remove inline function.
16585 (__atan2l): Remove inline functions.
16586 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16587 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16588 function.
16589 (floor): Remove inline function.
16590 (ceil): Likewise.
16591 [__FAST_MATH__] (__ldexp_code): Remove macro.
16592 [__FAST_MATH__] (ldexp): Remove inline function.
16593 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16594 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16595 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16596 [__USE_ISOC99] (__lrint_code): Remove macro.
16597 [__USE_ISOC99] (__llrint_code): Likewise.
16598 [__USE_ISOC99] (lrintf): Remove inline function.
16599 [__USE_ISOC99] (lrint): Likewise.
16600 [__USE_ISOC99] (lrintl): Likewise.
16601 [__USE_ISOC99] (llrint): Likewise.
16602 [__USE_ISOC99] (llrintf): Likewise.
16603 [__USE_ISOC99] (llrintl): Likewise.
16604
700593fd
WD
166052018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16606
16607 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16608 (__ieee754_sqrtf): Remove.
16609 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16610 (__ieee754_sqrtf): Remove.
16611 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16612 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16613 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16614 (__ieee754_sqrtf): Remove.
16615 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16616 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16617 (sqrtf): Remove.
16618 (sqrtl): Remove.
16619 (__ieee754_sqrt): Remove.
16620 (__ieee754_sqrtf): Remove.
16621 (__ieee754_sqrtl): Remove.
16622 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16623 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16624 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16625 (__ieee754_sqrtf): Remove.
16626 (__ieee754_sqrtl): Remove.
16627
f67a8147
WD
166282018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16629
16630 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16631 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16632 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16633 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16634 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16635 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16636 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16637 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16638 Likewise.
16639 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16640 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16641 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16642 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16643 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16644 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16645 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16646 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16647 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16648 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16649 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16650 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16651 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16652 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16653 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16654 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16655 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16656 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16657 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16658 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16659 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16660 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16661 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16662 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16663 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16664 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16665 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16666 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16667 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16668 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16669 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16670 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16671 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16672 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16673 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16674 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16675 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16676 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16677 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16678 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16679
1294b189
WD
166802018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16681
16682 * include/math.h (sqrt): Declare with asm redirect.
16683 (sqrtf): Likewise.
16684 (sqrtl): Likewise.
16685 (sqrtf128): Likewise.
16686 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16687 nonlib and libnldbl with -fmath-errno.
16688 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16689 * math/w_sqrt_template.c: Likewise.
16690 * math/w_sqrtf_compat.c: Likewise.
16691 * math/w_sqrtl_compat.c: Likewise.
16692 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16693 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16694 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16695 complex.h.
16696
f1c8185d
WD
166972018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16698
16699 * benchtests/Makefile: Define _ISOMAC.
16700 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16701 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16702 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16703 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16704 * benchtests/bench-timing.h: Define attribute_hidden.
16705
b47c3e76
SP
167062018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16707
16708 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16709 mov + lsr.
16710
807fee29
RL
167112018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16712
16713 [BZ #22963]
16714 * localedata/locales/cs_CZ (mon): Rename to...
16715 (alt_mon): This.
16716 (mon): Import from CLDR (genitive case).
16717
e7155a28
RL
167182018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16719
16720 [BZ #22937]
16721 * localedata/locales/el_CY (abmon): Rename to...
16722 (ab_alt_mon): This.
16723 (abmon): Import from CLDR (abbreviated genitive case).
16724 * localedata/locales/el_GR (abmon): Rename to...
16725 (ab_alt_mon): This.
16726 (abmon): Import from CLDR (abbreviated genitive case).
16727
71d7b121
RL
167282018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16729
16730 [BZ #22932]
16731 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16732
a00bffe8
RB
167332018-03-15 Robert Buj <robert.buj@gmail.com>
16734
16735 [BZ #22848]
16736 * localedata/locales/ca_ES (abmon): Rename to...
16737 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16738 (mon): Rename to...
16739 (alt_mon): This.
16740 (abmon): Import from CLDR (genitive case, month names preceded by
16741 "de" or "d’").
16742 (mon): Likewise.
16743 (abday): Synchronize with CLDR.
16744 (d_t_fmt): Likewise.
16745 (d_fmt): Likewise.
16746 (am_pm): Likewise.
16747
16748 (LC_TIME): Improve indentation.
16749 (LC_TELEPHONE): Likewise.
16750 (LC_NAME): Likewise.
16751 (LC_ADDRESS): Likewise.
16752
f9555d73
JM
167532018-03-14 Joseph Myers <joseph@codesourcery.com>
16754
16755 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16756 (lrintf): Remove definitions used only with old GCC.
16757 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16758 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16759 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16760 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16761 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16762 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16763 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16764 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16765 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16766 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16767 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16768 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16769 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16770 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16771 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16772 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16773 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16774 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16775 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16776 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16777 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16778 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16779 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16780 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16781 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16782 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16783 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16784 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16785
d46f84de
SP
167862018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16787
16788 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16789 instruction to unbreak builds with binutils 2.26 and older.
16790
7108f1f9
SP
167912018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16792
16793 * sysdeps/aarch64/strncmp.S (count): New macro.
16794 (strncmp): Store misaligned length in SRC1 in COUNT.
16795 (mutual_align): Adjust.
16796 (misaligned8): Load dword at a time when it is safe.
16797
2cc7bad0
ZW
167982018-03-12 Zack Weinberg <zackw@panix.com>
16799
16800 [BZ #1190]
16801 [BZ #19476]
16802 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16803 if the _IO_EOF_SEEN bit is already set; update commentary.
16804 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16805 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16806
16807 * support/support_openpty.c, support/tty.h: New files.
16808 * support/Makefile (libsupport-routines): Add support_openpty.
16809
16810 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16811 New test cases.
16812 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16813 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16814
778f1974
DL
168152018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16816
16817 * po/pt_BR.po: Update translations.
16818
6b5c8607 168192018-03-12 David Michael <fedora.dm0@gmail.com>
da6d4404
DM
16820
16821 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16822 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16823 get a port to the startup server.
16824
d3da750d
ZW
168252018-03-11 Zack Weinberg <zackw@panix.com>
16826
16827 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16828 before nldbl-compat.h.
16829
054b72cc
ZW
168302018-03-10 Zack Weinberg <zackw@panix.com>
16831
0d13dfa1
ZW
16832 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16833 math.h or math_private.h.
16834
16835 * sysdeps/alpha/fpu/s_isnan.c
16836 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16837 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16838 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16839 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16840 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16841 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16842 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16843 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16844 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16845 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16847 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16848 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16849 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16850 Include math_private.h.
16851
16852 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16853 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16854 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16855 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16856 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16857 * sysdeps/powerpc/power7/fpu/s_logb.c:
16858 Include math.h and math_private.h.
16859
054b72cc
ZW
16860 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16861 uses of $at in .set noat / .set at.
16862
6253bacd
L
168632018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16864
16865 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16866 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16867 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16868 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16869 Likewise.
16870
229855e5
FW
168712018-03-09 Florian Weimer <fweimer@redhat.com>
16872
16873 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16874 in comment.
16875
9aa5c222
AJ
168762018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16877
16878 [BZ #22919]
16879 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16880 Add nop before __startcontext, add explaining comments.
16881
3dc21497
AZ
168822018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16883
e921c89e
AZ
16884 [BZ #22926]
16885 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16886 empty for __SPE__.
16887 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16888 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16889 Do not build hardware transactional code for __SPE__.
16890 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16891 (__lll_trylock_elision): Likewise.
16892 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16893 (__lll_unlock_elision): Likewise.
16894
d9f26dab 16895 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
3dc21497
AZ
16896 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16897 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16898 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16899 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16900 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16901 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16902 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16903 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16904 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16905 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16906 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16907 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16908 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16909 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16910 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16911 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16912 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16913 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16914 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16915 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16916 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16917 (__ASSUME_CLONE_BACKWARDS): Define.
16918 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16919 __clone2 if __NR_clone2 is defined.
16920 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16921 (__ASSUME_CLONE_BACKWARDS): Likewise.
16922 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16923 (__ASSUME_CLONE_BACKWARDS): Likewise.
16924 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16925 (__ASSUME_CLONE2): Likewise.
16926 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16927 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16928 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16929 variants and the define architecture can use.
16930 (__ASSUME_CLONE_DEFAULT): Define as default.
16931 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16932 (__ASSUME_CLONE_BACKWARDS): Likewise.
16933 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16934 (__ASSUME_CLONE_BACKWARDS): Likewise.
16935 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16936 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16937
adc95fb0
SP
169382018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16939
4e54d918
SP
16940 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16941
30a81dae
SP
16942 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16943 time.
16944
adc95fb0
SP
16945 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16946 (do_test_limit): Likewise.
16947
16948 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16949 for every implementation.
16950 (do_test): Likewise.
16951
16952 * benchtests/bench-strncmp.c: Convert output to json.
16953
4e9066bc
ST
169542018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16955
16956 * io/futimens.c: Add missing start-of-file descriptive comment.
16957 * io/utime.c: Likewise.
16958 * misc/futimesat.c: Likewise.
16959 * misc/utimes.c: Likewise.
16960 * sysdeps/mach/hurd/futimesat.c: Likewise.
16961 * sysdeps/mach/hurd/utimes.c: Likewise.
16962 * sysdeps/posix/utime.c: Likewise.
16963 * sysdeps/posix/utimes.c: Likewise.
16964 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16965 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16966 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16967 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16968
ec1300cf
ST
169692018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16970
16971 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16972 hurd_futimes.
16973 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16974 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16975 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16976 (__futimens): Move implementation to...
16977 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16978 utime_tvalue_from_tspec): ... new helper functions.
16979 (hurd_futimens): New function.
16980 * sysdeps/mach/hurd/futimesat.c: New file.
16981 * sysdeps/mach/hurd/utimensat.c: New file.
16982
bbe762d1
FC
169832018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16984
16985 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16986 UTIME_OMIT): New macros.
16987 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16988 before reverting to converting time spec to time value and calling
16989 __file_utimes.
16990 * sysdeps/mach/hurd/utime-helper.c: New file.
16991 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16992 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16993 reverting to utime_tvalue_from_tval and __file_utimes.
16994 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16995 (__lutimes): Just call hurd_futimens after lookup.
16996 * sysdeps/mach/hurd/utimes.c: Likewise.
16997
a1ede3a4
ST
169982018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16999
17000 * bits/sigaction.h: Add include guard.
17001 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17002 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17003 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17004 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17005 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17006 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17007 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17008 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17009 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17010
6900d2ca
JM
170112018-03-05 Joseph Myers <joseph@codesourcery.com>
17012
17013 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17014 -Wmaybe-uninitialized for -Os.
17015 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17016 this disabling.
17017
68448be2
AZ
170182018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17019
5226a81f
AZ
17020 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17021 __INO_T_MATCHES_INO64_T is defined.
17022 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17023 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17024 of definition.
17025 * dirent/alphasort64.c: Likewise.
17026 * dirent/scandir.c: Likewise.
17027 * dirent/scandir64-tail.c: Likewise.
17028 * dirent/scandir64.c: Likewise.
17029 * dirent/scandirat.c: Likewise.
17030 * dirent/scandirat64.c: Likewise.
17031 * dirent/versionsort.c: Likewise.
17032 * dirent/versionsort64.c: Likewise.
17033 * include/dirent.h: Likewise.
17034
fbd01e6c
AZ
17035 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17036 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17037 for socketpair endpoint.
17038 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17039 WRITE_BUFFER_SIZE as buffer size for sending socket.
17040 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17041 issue on system where send is implemented with sendto syscall.
17042 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17043 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17044 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17045 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17046
68448be2
AZ
17047 [BZ #21269]
17048 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17049 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17050 sa_restorer for vDSO case.
17051 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17052
eb1ca47e
ST
170532018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17054
17055 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
e30c291a
ST
17056 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17057 * hurd/hurd/ioctl.h: Include <mach/port.h>
17058 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
f4bff843
ST
17059 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17060 <mach/mach_types.h> and <mach/message.h>.
430fd945
ST
17061 (headers): Move mach/param.h to bits/mach/param.h.
17062 * sysdeps/mach/i386/mach/param.h: Move file to ...
17063 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17064 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17065 of <mach/param.h>.
3403cb7d
ST
17066 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17067 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17068 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
48d34cbc
ST
17069 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17070 trivial, for C++ conformity.
44c6376c 17071 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
95dfdbd2
ST
17072 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17073 Process mig output through $(migheadersed).
17074 * hurd/Makefile (migheadersed): Define variable.
a726c87a
ST
17075 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17076 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17077 headers.
ba89615d
ST
17078 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17079 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17080 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17081 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17082 <bits/types/sigset_t.h>.
17083 [!defined __USE_GNU]: Do not #error out.
17084 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17085 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17086 Include <stddef.h> and <bits/types/sigset_t.h>
17087 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17088 instead of sighandler_t.
974393ea
ST
17089 * stdlib/errno.h (error_t): Move definition to...
17090 * bits/types/error_t.h: ... new header.
17091 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17092 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17093 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17094 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17095 * hurd/hurd.h: Include <bits/types/error_t.h>
17096 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17097 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17098 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17099 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17100 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17101 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
8d965cde 17102 * sysdeps/mach/hurd/futimens.c: New file.
eb1ca47e 17103
eaf6753f
AS
171042018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17105
17106 [BZ #22918]
17107 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17108 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17109 * nscd/gai.c (__nss_hosts_database): Readd definition.
17110 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17111 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17112 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17113
4dc23804
JM
171142018-03-02 Joseph Myers <joseph@codesourcery.com>
17115
17116 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17117 (ifunc_one): Likewise.
17118
1c81d55f
DD
171192018-03-01 DJ Delorie <dj@delorie.com>
17120
17121 [BZ #22342]
17122 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17123 key value.
17124
b717c14f
MR
171252018-03-01 Maciej W. Rozycki <macro@mips.com>
17126
17127 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17128 `match_pid' parameter.
17129 (td_ta_thr_iter): Update accordingly.
17130
1efe1358
FW
171312018-03-01 Florian Weimer <fweimer@redhat.com>
17132
17133 * nptl/Makefile (install-lib-ldscripts): Remove.
17134 (install): Remove rule.
17135 ($(inst_libdir)/libpthread.so): Likewise.
17136
a527f09c
MF
171372018-03-01 Mike FABIAN <mfabian@redhat.com>
17138
17139 [BZ #22896]
17140 * localedata/locales/an_ES: update month and day names,
17141 improve d_fmt, improve postal_fmt, add country_post,
17142 add country_isbn
17143
35d660b0
MF
171442018-03-01 Mike FABIAN <mfabian@redhat.com>
17145
17146 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17147 Ukrainian instead of Bulgarian.
17148
1a2f44a8
FW
171492018-03-01 Florian Weimer <fweimer@redhat.com>
17150
17151 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17152 reference.
17153
bd60ce86
FW
171542018-03-01 Florian Weimer <fweimer@redhat.com>
17155
17156 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17157 * nptl/Makefile (routines): Add pthread_atfork.
17158 (static-only-routines): Set to pthread_atfork.
17159 (libpthread-routines): Remove pthread_atfork.
17160 (libpthread-static-only-routines): Remove.
17161 (install): Update comment.
17162 (libpthread.so): Do not install libpthread_nonshared.a.
17163 (tests): Do not link with libpthread_nonshared.a.
17164 (generated): Remove libpthread_nonshared.a.
17165 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17166 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17167 with libpthread_nonshared.a.
17168
000f290f
JM
171692018-02-28 Joseph Myers <joseph@codesourcery.com>
17170
e2bcf6a8
JM
17171 [BZ #22902]
17172 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17173 (libc_feholdexcept_setroundf128): New macro.
17174 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17175
000f290f
JM
17176 [BZ #15105]
17177 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17178 libc_hidden_def.
17179 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17180 * include/inttypes.h: New file.
17181
02f2fead
JM
171822018-02-27 Joseph Myers <joseph@codesourcery.com>
17183
17184 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17185 -Os in two more places.
17186
874c56d7
MF
171872018-02-27 Mike FABIAN <mfabian@redhat.com>
17188
17189 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17190 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17191 be sorted correctly at the moment because of a bug.
17192
15973854
MF
171932018-02-27 Mike FABIAN <mfabian@redhat.com>
17194
17195 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17196 treat ñ as a primary different character, sync the collation
17197 for Spanish with CLDR.
17198 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17199 * localedata/Makefile: Add new test files.
17200 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17201 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17202 collation order.
17203 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17204 * localedata/am_ET.UTF-8.in: New test file.
17205 * localedata/az_AZ.UTF-8.in: Likewise.
17206 * localedata/be_BY.UTF-8.in: Likewise.
17207 * localedata/ber_DZ.UTF-8.in: Likewise.
17208 * localedata/ber_MA.UTF-8.in: Likewise.
17209 * localedata/bg_BG.UTF-8.in: Likewise.
17210 * localedata/br_FR.UTF-8.in: Likewise.
17211 * localedata/cmn_TW.UTF-8.in: Likewise.
17212 * localedata/crh_UA.UTF-8.in: Likewise.
17213 * localedata/csb_PL.UTF-8.in: Likewise.
17214 * localedata/cv_RU.UTF-8.in: Likewise.
17215 * localedata/cy_GB.UTF-8.in: Likewise.
17216 * localedata/dz_BT.UTF-8.in: Likewise.
17217 * localedata/eo.UTF-8.in: Likewise.
17218 * localedata/es_ES.UTF-8.in: Likewise.
17219 * localedata/fa_IR.UTF-8.in: Likewise.
17220 * localedata/fi_FI.UTF-8.in: Likewise.
17221 * localedata/fil_PH.UTF-8.in: Likewise.
17222 * localedata/fur_IT.UTF-8.in: Likewise.
17223 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17224 * localedata/ha_NG.UTF-8.in: Likewise.
17225 * localedata/ig_NG.UTF-8.in: Likewise.
17226 * localedata/ik_CA.UTF-8.in: Likewise.
17227 * localedata/kk_KZ.UTF-8.in: Likewise.
17228 * localedata/ku_TR.UTF-8.in: Likewise.
17229 * localedata/ky_KG.UTF-8.in: Likewise.
17230 * localedata/ln_CD.UTF-8.in: Likewise.
17231 * localedata/mi_NZ.UTF-8.in: Likewise.
17232 * localedata/ml_IN.UTF-8.in: Likewise.
17233 * localedata/mn_MN.UTF-8.in: Likewise.
17234 * localedata/mr_IN.UTF-8.in: Likewise.
17235 * localedata/mt_MT.UTF-8.in: Likewise.
17236 * localedata/nb_NO.UTF-8.in: Likewise.
17237 * localedata/om_KE.UTF-8.in: Likewise.
17238 * localedata/os_RU.UTF-8.in: Likewise.
17239 * localedata/ps_AF.UTF-8.in: Likewise.
17240 * localedata/ro_RO.UTF-8.in: Likewise.
17241 * localedata/ru_RU.UTF-8.in: Likewise.
17242 * localedata/sc_IT.UTF-8.in: Likewise.
17243 * localedata/se_NO.UTF-8.in: Likewise.
17244 * localedata/sq_AL.UTF-8.in: Likewise.
17245 * localedata/sv_SE.UTF-8.in: Likewise.
17246 * localedata/szl_PL.UTF-8.in: Likewise.
17247 * localedata/tg_TJ.UTF-8.in: Likewise.
17248 * localedata/tk_TM.UTF-8.in: Likewise.
17249 * localedata/tt_RU.UTF-8.in: Likewise.
17250 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17251 * localedata/ug_CN.UTF-8.in: Likewise.
17252 * localedata/uz_UZ.UTF-8.in: Likewise.
17253 * localedata/vi_VN.UTF-8.in: Likewise.
17254 * localedata/yi_US.UTF-8.in: Likewise.
17255 * localedata/yo_NG.UTF-8.in: Likewise.
17256 * localedata/zh_CN.UTF-8.in: Likewise.
17257 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17258 file and fix bugs in the collation.
17259 * localedata/locales/az_AZ: Likewise.
17260 * localedata/locales/be_BY: Likewise.
17261 * localedata/locales/ber_DZ: Likewise.
17262 * localedata/locales/ber_MA: Likewise.
17263 * localedata/locales/bg_BG: Likewise.
17264 * localedata/locales/br_FR: Likewise.
17265 * localedata/locales/br_FR@euro: Likewise.
17266 * localedata/locales/ca_ES: Likewise.
17267 * localedata/locales/cns11643_stroke: Likewise.
17268 * localedata/locales/crh_UA: Likewise.
17269 * localedata/locales/cs_CZ: Likewise.
17270 * localedata/locales/csb_PL: Likewise.
17271 * localedata/locales/cv_RU: Likewise.
17272 * localedata/locales/cy_GB: Likewise.
17273 * localedata/locales/da_DK: Likewise.
17274 * localedata/locales/dz_BT: Likewise.
17275 * localedata/locales/en_CA: Likewise.
17276 * localedata/locales/eo: Likewise.
17277 * localedata/locales/es_CU: Likewise.
17278 * localedata/locales/es_EC: Likewise.
17279 * localedata/locales/es_ES: Likewise.
17280 * localedata/locales/es_US: Likewise.
17281 * localedata/locales/et_EE: Likewise.
17282 * localedata/locales/fa_IR: Likewise.
17283 * localedata/locales/fi_FI: Likewise.
17284 * localedata/locales/fil_PH: Likewise.
17285 * localedata/locales/fur_IT: Likewise.
17286 * localedata/locales/gez_ER@abegede: Likewise.
17287 * localedata/locales/ha_NG: Likewise.
17288 * localedata/locales/hr_HR: Likewise.
17289 * localedata/locales/hsb_DE: Likewise.
17290 * localedata/locales/hu_HU: Likewise.
17291 * localedata/locales/ig_NG: Likewise.
17292 * localedata/locales/ik_CA: Likewise.
17293 * localedata/locales/is_IS: Likewise.
17294 * localedata/locales/iso14651_t1_pinyin: Likewise.
17295 * localedata/locales/kk_KZ: Likewise.
17296 * localedata/locales/ku_TR: Likewise.
17297 * localedata/locales/ky_KG: Likewise.
17298 * localedata/locales/ln_CD: Likewise.
17299 * localedata/locales/lt_LT: Likewise.
17300 * localedata/locales/lv_LV: Likewise.
17301 * localedata/locales/mi_NZ: Likewise.
17302 * localedata/locales/ml_IN: Likewise.
17303 * localedata/locales/mn_MN: Likewise.
17304 * localedata/locales/mr_IN: Likewise.
17305 * localedata/locales/mt_MT: Likewise.
17306 * localedata/locales/nb_NO: Likewise.
17307 * localedata/locales/om_KE: Likewise.
17308 * localedata/locales/os_RU: Likewise.
17309 * localedata/locales/pl_PL: Likewise.
17310 * localedata/locales/ps_AF: Likewise.
17311 * localedata/locales/ro_RO: Likewise.
17312 * localedata/locales/ru_RU: Likewise.
17313 * localedata/locales/ru_UA: Likewise.
17314 * localedata/locales/sc_IT: Likewise.
17315 * localedata/locales/se_NO: Likewise.
17316 * localedata/locales/si_LK: Likewise.
17317 * localedata/locales/sq_AL: Likewise.
17318 * localedata/locales/sv_FI: Likewise.
17319 * localedata/locales/sv_FI@euro: Likewise.
17320 * localedata/locales/sv_SE: Likewise.
17321 * localedata/locales/szl_PL: Likewise.
17322 * localedata/locales/tg_TJ: Likewise.
17323 * localedata/locales/ti_ER: Likewise.
17324 * localedata/locales/tk_TM: Likewise.
17325 * localedata/locales/tl_PH: Likewise.
17326 * localedata/locales/tr_TR: Likewise.
17327 * localedata/locales/tt_RU: Likewise.
17328 * localedata/locales/tt_RU@iqtelif: Likewise.
17329 * localedata/locales/ug_CN: Likewise.
17330 * localedata/locales/uk_UA: Likewise.
17331 * localedata/locales/uz_UZ: Likewise.
17332 * localedata/locales/uz_UZ@cyrillic: Likewise.
17333 * localedata/locales/vi_VN: Likewise.
17334 * localedata/locales/yi_US: Likewise.
17335 * localedata/locales/yo_NG: Likewise.
17336
ce6636b0
MF
173372018-02-27 Mike FABIAN <mfabian@redhat.com>
17338
17339 * gen-locales.mk: Make test files which contain @ modifiers in their
17340 name work.
17341 * localedata/gen-locale.sh: Likewise.
17342
ac3a3b4b
MF
173432018-02-27 Mike FABIAN <mfabian@redhat.com>
17344
17345 * posix/tst-fnmatch.input: Fix results for range expressions
17346 for non C locales.
17347 * posix/tst-regexloc.c: Do not use a range expression for
17348 de_DE.ISO-8859-1 locale.
17349
770cbe14
MF
173502018-02-27 Mike FABIAN <mfabian@redhat.com>
17351
17352 * posix/bug-regex5.c: Fix test case because with the new
17353 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17354 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17355 file.
17356
0fc355d9
MF
173572018-02-27 Mike FABIAN <mfabian@redhat.com>
17358
17359 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17360 downloaded from ISO, the collation order of @-. and space has changed.
17361 Therefore, this test file needed to be adapted.
17362 * localedata/fr_CA.UTF-8.in: Likewise.
17363 * localedata/fr_FR.UTF-8.in: Likewise.
17364 * localedata/uk_UA.UTF-8.in: Likewise.
17365
43f3893f
MF
173662018-02-27 Mike FABIAN <mfabian@redhat.com>
17367
17368 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17369 order of ȥ in the new iso14651_t1_common file.
17370 * localedata/pl_PL.UTF-8.in: Likewise.
17371
df74ef78
MF
173722018-02-27 Mike FABIAN <mfabian@redhat.com>
17373
17374 * localedata/locales/iso14651_t1_common: Add sections for various
17375 scripts to the iso14651_t1_common file.
17376
d5adfbad
MF
173772018-02-27 Mike FABIAN <mfabian@redhat.com>
17378
17379 * localedata/locales/iso14651_t1_common: Use the code point of a
17380 character in the fourth collation level instead of IGNORE for all
17381 entries which have IGNORE on all 4 levels.
17382
5f5a9610
MF
173832018-02-27 Mike FABIAN <mfabian@redhat.com>
17384
17385 * localedata/locales/iso14651_t1_common: Add some convenient collation
17386 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17387 rules similar to those in CLDR.
17388
8a97e900
MF
173892018-02-27 Mike FABIAN <mfabian@redhat.com>
17390
17391 * localedata/locales/iso14651_t1_common: The new version of this
17392 file downloaded from ISO contained several syntax errors which
17393 are fixed by this patch.
17394
bbdd2fba
MF
173952018-02-27 Mike FABIAN <mfabian@redhat.com>
17396
17397 * localedata/locales/iso14651_t1_common: replace all <U.....>
17398 with <U000.....> because glibc understands only 4 digit or 8 digit
17399
1569e551
MF
174002018-02-27 Mike FABIAN <mfabian@redhat.com>
17401
17402 * localedata/locales/iso14651_t1_common: Necessary changes
17403 to make the file downloaded from ISO usable by glibc.
17404
9479b6d5
MF
174052018-02-27 Mike FABIAN <mfabian@redhat.com>
17406
17407 [BZ #14095]
17408 * localedata/locales/iso14651_t1_common: Update file to
17409 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17410
03b540b3
ST
174112018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17412
17413 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17414 of <nptl/pthreadP.h>
17415 (thread_attr_compare): Move function to...
eb937a52 17416 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
03b540b3 17417 * sysdeps/nptl/timer_routines.h: ... new header.
7211eba6 17418 * sysdeps/mach/hurd/gai_misc.h: New file.
03b540b3 17419
20602c72
JM
174202018-02-26 Joseph Myers <joseph@codesourcery.com>
17421
f54d8f73
JM
17422 * string/strcoll_l.c: Include <libc-diag.h>.
17423 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17424 declarations of seq1 and seq2.
17425
20602c72
JM
17426 [BZ #15105]
17427 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17428 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17429
f5f473a9
DL
174302018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17431
17432 [BZ #22433]
17433 [BZ #22807]
17434 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17435 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17436 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17437 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17438 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17439 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17440
398c6fdd
TMQMF
174412018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17442
17443 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17444 macros used in __ptrace_request.
17445
f5d1f629
L
174462018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17447
17448 [BZ #22792]
17449 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17450 to $(CC).
17451 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17452 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17453 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17454 <tcb-offsets.h>.
17455
54412d20
JM
174562018-02-23 Joseph Myers <joseph@codesourcery.com>
17457
17458 [BZ #15105]
17459 * ctype/ctype.c (tolower): Use libc_hidden_def.
17460 (toupper): Likewise.
17461 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17462 [!_ISOMAC] (toupper): Likewise.
17463
81be4b5e
MF
174642018-02-23 Mike FABIAN <mfabian@redhat.com>
17465
17466 * localedata/Makefile: Remove --quiet argument when
17467 installing locales
17468
9d5cfd8e
MF
174692018-02-23 Mike FABIAN <mfabian@redhat.com>
17470
17471 [BZ #17438]
17472 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17473 in d_fmt.
17474 * localedata/locales/pt_PT (LC_TIME): likewise
17475
6c7269f3
MF
174762018-02-23 Mike FABIAN <mfabian@redhat.com>
17477
17478 [BZ #22646]
17479 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17480 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17481 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17482
92aabad9
AZ
174832018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17484
4cdc25a4
AZ
17485 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17486
27761a10
AZ
17487 * nptl/Makefile (routines): Remove unregister-atfork.
17488 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17489 (fork_handler_alloc): Remove function.
17490 (fork_handlers, fork_handler_init): New variables.
17491 (__fork_lock): Rename to atfork_lock.
17492 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17493 to use a dynamic array to add/remove atfork handlers.
17494 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17495 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17496 Remove declaration.
17497 (fork_handler): Remove next, refcntr, and need_signal member.
17498 (__run_fork_handler_type): New enum.
17499 (__run_fork_handlers): New prototype.
17500 * nptl/register-atfork.c: Remove file.
17501 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17502
92aabad9
AZ
17503 * sysdeps/nptl/nptl-signals.h: Move to ...
17504 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17505 comments.
17506 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17507 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17508 unnecessary check for SIGTIMER.
17509 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17510 remove unnecessary removal of SIGTIMER.
17511 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17512 include-signals.h rename.
17513 * nptl/pthreadP.h: Likewise.
17514 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17515 __is_internal_signal instead of __nptl_is_internal_signal.
17516
6b5c8607 175172018-02-22 Andrew Waterman <andrew@sifive.com>
fdcc6253 17518
7e04eb29 17519 [BZ # 22884]
fdcc6253
AW
17520 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17521 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17522 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17523 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17524
8090720a
DD
175252018-02-22 DJ Delorie <dj@delorie.com>
17526
17527 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17528
6ca24c43
SP
175292018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17530
17531 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17532 do_misaligned, not misaligned8.
17533
e9537ddd
SE
175342018-02-22 Steve Ellcey <sellcey@cavium.com>
17535
17536 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17537 Add memcpy_thunderx2.
17538 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17539 Increment to 4.
17540 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17541 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17542 and IS_THUNDERX2PA checks.
17543 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17544 Use macro to set name appropriately.
17545 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17546 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17547 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17548 New macro.
17549 (IS_THUNDERX2): New macro.
17550
6e336476
SL
175512018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17552
17553 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17554
34957904
ZW
175552018-02-21 Zack Weinberg <zackw@panix.com>
17556
30bfee26
ZW
17557 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17558 Define here, unconditionally.
17559 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17560 * libio/libioP.h: Remove #if 0 blocks.
17561 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17562 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17563 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17564
17565 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17566 Assume weak_alias is always defined.
17567
17568 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17569 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17570 Remove #if 0 and #ifdef TODO blocks.
17571 Assume text_set_element is always defined.
17572
17573 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17574 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17575 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17576
df6c012b
ZW
17577 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17578 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17579 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17580 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17581 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17582 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17583 Reformat bit flags for _flags field to make occupancy clearer.
17584 Update commentary.
17585 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17586 Keep definitions consistent with those in libio/libio.h.
17587
17588 * libio/libio.h (_IO_file_flags): Remove macro.
17589 All uses changed to _flags.
17590
177aad3f
ZW
17591 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17592 (__HAVE_COLUMN, _IO_BE): Don't define.
17593 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17594 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17595 * libio/libioP.h (EOF): Don't define.
17596 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17597 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17598 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17599 testing _IO_UNIFIED_JUMPTABLES.
17600
9964a145
ZW
17601 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17602 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17603 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17604 (_IO_size_t): Delete; all uses changed to size_t.
17605 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17606 (_IO_off_t): Delete; all uses changed to off_t.
17607 (_IO_off64_t): Delete; all uses changed to off64_t.
17608 (_IO_pid_t): Delete; all uses changed to pid_t.
17609 (_IO_uid_t): Delete; all uses changed to uid_t.
17610 (_IO_wint_t): Delete; all uses changed to wint_t.
17611 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17612 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17613 (_IO_cookie_io_functions_t): Delete; all uses changed to
17614 cookie_io_functions_t.
17615 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17616 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17617 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17618 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17619
17620 * libio/iofopncook.c: Remove unnecessary forward declarations.
17621 * libio/iolibio.h: Correct outdated commentary.
17622 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17623 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17624 Remove unnecessary casts.
17625 * stdio-common/getline.c: Use _IO_getdelim directly.
17626 Don't redefine ssize_t.
17627 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17628 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17629 Remove outdated comments.
17630 * stdio-common/vfscanf.c: Don't redefine va_list.
17631
34957904
ZW
17632 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17633 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17634 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17635 which are always true, and __cplusplus, which is always false.
17636
30ac923d
JM
176372018-02-21 Joseph Myers <joseph@codesourcery.com>
17638
039c721a
JM
17639 [BZ #15105]
17640 [BZ #19463]
17641 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17642 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17643 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17644 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17645 libc_hidden_proto.
17646 [!_ISOMAC] (putc_unlocked): Likewise.
17647 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17648 define inline if [__USE_EXTERN_INLINES].
17649 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17650 putc_unlocked.
17651
30ac923d
JM
17652 [BZ #15105]
17653 [BZ #19463]
17654 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17655 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17656 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17657 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17658 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17659 getc_unlocked.
17660 * time/tzfile.c (__tzfile_read): Likewise.
17661
7ec5f946
MF
176622018-02-21 Mike FABIAN <mfabian@redhat.com>
17663
17664 [BZ #22517]
17665 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17666
0d217f40
RJ
176672018-02-21 Rical Jasan <ricaljasan@pacific.net>
17668
17669 * io/fcntl.h: Fix a typo in a comment.
17670
862b4502
RJ
176712018-02-21 Rical Jasan <ricaljasan@pacific.net>
17672
17673 [BZ #22862]
17674 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17675 define _DEFAULT_SOURCE.
17676 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17677
999a6dab
FW
176782018-02-21 Florian Weimer <fweimer@redhat.com>
17679
17680 [BZ #20890]
17681 * elf/cache.c (save_cache): Call fsync on temporary file before
17682 renaming it.
17683 (save_aux_cache): Call fdatasync on temporary file before renaming
17684 it.
17685
52a01100
FW
176862018-02-21 Florian Weimer <fweimer@redhat.com>
17687
17688 [BZ #22787]
17689 * include/caller.h: Remove file.
17690 * elf/dl-caller.c: Likewise.
17691 * elf/Makefile (dl-routines): Remove dl-caller.
17692 (shared-only-routines): Do not add dl-caller.
17693 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17694 __check_caller.
17695 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17696 member.
17697 (dl_open_worker): Do not call __check_caller.
17698 (_dl_open): Do not set caller_dl_open member.
17699 * elf/rtld.c (_rtld_global_ro): Do not initialize
17700 _dl_check_caller member.
17701 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17702 _dl_check_caller member.
17703 (_dl_check_caller): Remove declaration.
17704 * sysdeps/unix/sysv/linux/dl-execstack.c
17705 (_dl_make_stack_executable): Do not call __check_caller.
17706
b5bf62e4
ST
177072018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17708
17709 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
315304d2 17710 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
b5bf62e4 17711
e8d190b9
RJ
177122018-02-20 Rical Jasan <ricaljasan@pacific.net>
17713
17714 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17715 description.
17716
6a3962c4
RJ
177172018-02-20 Rical Jasan <ricaljasan@pacific.net>
17718
da81ae64 17719 [BZ #16335]
6a3962c4
RJ
17720 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17721 of 199606L, 200112L, and 200809L.
17722 (_XOPEN_SOURCE): Document special values of 600 and 700.
17723 (_ISOC11_SOURCE): Document macro.
17724 (_ATFILE_SOURCE): Likewise.
17725 (_FORTIFY_SOURCE): Likewise.
17726
ec481ad8
JM
177272018-02-19 Joseph Myers <joseph@codesourcery.com>
17728
17729 [BZ #15105]
17730 [BZ #19463]
17731 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17732 and define as weak alias of __ferror_unlocked. Use
17733 libc_hidden_weak.
17734 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17735 libc_hidden_proto.
17736 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17737 function if [__USE_EXTERN_INLINES].
17738 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17739 ferror_unlocked.
17740
7d15ef84
RJ
177412018-02-19 Rical Jasan <ricaljasan@pacific.net>
17742
17743 [BZ #6889]
17744 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17745
f8d79582
AJ
177462018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17747
17748 [BZ #22818]
17749 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17750 the GLIBC_2.1 version.
17751
56456a2a
AJ
177522018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17753
17754 [BZ #21508]
17755 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17756 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17757 intl/tst-gettext-de.po from po/de.po by removing the
17758 POT-Creation-Date line.
17759 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17760 ../po/de.po.
17761 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17762 ../po/de.po.
17763
13768813
ST
177642018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17765
17766 * mach/Makefile (headers): Add mach/param.h.
17767 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17768 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
dd1efd8c
ST
17769 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17770 (__ptsname_r): Move implementation to...
17771 (__ptsname_internal): ... new function. Add filling the STP
17772 structure.
13768813 17773
6aca1b61
JDA
177742018-02-17 John David Anglin <danglin@gcc.gnu.org>
17775
17776 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17777 idouble to 1 ULP.
17778
16efad51
RJ
177792018-02-16 Rical Jasan <ricaljasan@pacific.net>
17780
17781 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17782 syntax.
17783
87245073
SL
177842018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17785
17786 * nptl/Makefile (tst-mutex8-ENV): Delete.
17787 * nptl/tst-mutex8.c (check_type):
17788 Add runtime check if mutex will be elided.
17789
7fc03cf3
JM
177902018-02-15 Joseph Myers <joseph@codesourcery.com>
17791
db9881ec
JM
17792 [BZ #20980]
17793 [BZ #21234]
17794 * manual/install.texi (Configuring and compiling): Describe
17795 passing CC and CFLAGS on configure command line, not as
17796 environment variables. Use @code markup on those variables.
17797 Specify what options go in CC and what go in CFLAGS. Note the
17798 requirement to compile with optimization.
17799 * INSTALL: Regenerated.
17800
3785b31c
JM
17801 [BZ #18124]
17802 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17803 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17804 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17805 __sigprocmask instead of sigprocmask.
17806 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17807 Likewise.
17808 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17809 __sigsetjmp and sigprocmask.
17810
055ac2a7
JM
17811 [BZ #15105]
17812 * include/argz.h (argz_next): Use libc_hidden_proto.
17813 (__argz_next): Likewise.
17814 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17815 (argz_next): Use libc_hidden_weak.
17816
e4452a2d
JM
17817 [BZ #15105]
17818 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17819 libc_hidden_proto.
17820 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17821 libc_hidden_def.
17822
499b3153
JM
17823 [BZ #15105]
17824 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17825 libc_hidden_proto.
17826 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17827
7fc03cf3
JM
17828 [BZ #15105]
17829 [BZ #19463]
17830 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17831 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17832 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17833 (__feof_unlocked): New declaration, and inline function if
17834 [__USE_EXTERN_INLINES].
17835 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17836 instead of feof_unlocked.
17837 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17838 * nss/nsswitch.c (nss_parse_file): Likewise.
17839 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17840 Likewise.
17841 * time/getdate.c (__getdate_r): Likewise.
17842 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17843 Define as macro to call __feof_unlocked.
17844
0c8a67a5
WD
178452018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17846
17847 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17848
610ee1fc
WD
178492018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17850
17851 * math/Makefile: Remove mpexp.c and mplog.c
17852 * sysdeps/i386/fpu/mpexp.c: Delete file.
17853 * sysdeps/i386/fpu/mplog.c: Likewise.
17854 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17855 * sysdeps/ia64/fpu/mplog.c: Likewise.
17856 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17857 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17858 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17859 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17860 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17861 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17862 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17863 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17864 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17865 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17866 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17867 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17868 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17869 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17870 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17871 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17872
8e7196c8
SL
178732018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17874
17875 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17876
4f55ad0b
AZ
178772018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17878
17879 * sysdeps/sh/libm-test-ulps: Update.
17880
261a851c
TMQMF
178812018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17882
17883 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17884 idouble to 1 ULP.
17885
e16deca6
ZW
178862018-02-12 Zack Weinberg <zackw@panix.com>
17887
17888 [BZ #19239]
17889 * posix/sys/types.h: Don't include sys/sysmacros.h.
17890 * misc/sys/sysmacros.h: Remove the conditional deprecation
17891 warnings for the macros defined by this header.
17892
de800d83
SN
178932018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17894
17895 * manual/probes.texi: Remove slowexp probes.
17896 * math/Makefile: Remove slowexp.
17897 * sysdeps/generic/math_private.h (__slowexp): Remove.
17898 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17899 document error bounds.
17900 * sysdeps/i386/fpu/slowexp.c: Remove.
17901 * sysdeps/ia64/fpu/slowexp.c: Remove.
17902 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17903 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17904 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17905 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17906 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17907 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17908 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17909 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17910 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17911 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17912 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17913
c3d466cb
WD
179142018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17915
17916 [BZ #13932]
17917 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17918 * benchtests/pow-inputs: Update comment for slow path cases.
17919 * manual/probes.texi (slowpow_p10): Delete removed probe.
17920 (slowpow_p10): Likewise.
17921 * math/Makefile: Remove halfulp.c and slowpow.c.
17922 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17923 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17924 (__halfulp): Remove.
17925 (__slowpow): Remove.
17926 * sysdeps/i386/fpu/halfulp.c: Delete file.
17927 * sysdeps/i386/fpu/slowpow.c: Likewise.
17928 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17929 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17930 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17931 improve comments and add error analysis.
17932 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17933 (power1): Remove function:
17934 (log1): Remove error argument, add error analysis.
17935 (my_log2): Remove function.
17936 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17937 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17938 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17939 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17940 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17941 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17942 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17943 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17944 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17945 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17946 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17947 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17948 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17949 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17950
7bb087bd
ST
179512018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17952
17953 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17954 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17955
2fd4bbaa
DL
179562018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17957
17958 [BZ #22433]
17959 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17960 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17961 and PTRACE_SETHBPREGS.
17962
402ecba4
ZW
179632018-02-10 Zack Weinberg <zackw@panix.com>
17964
17965 [BZ #22830]
17966 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17967 correctly.
17968 * malloc/tst-malloc-stats-cancellation.c: New test case.
17969 * malloc/Makefile: Add new test case.
17970
4f5b921e
WD
179712018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17972
17973 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17974
a85b70db
JM
179752018-02-10 Joseph Myers <joseph@codesourcery.com>
17976
d8742dd8
JM
17977 * math/Makefile (libm-narrow-fns): Add add.
17978 (libm-test-funcs-narrow): Likewise.
17979 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17980 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17981 * math/gen-auto-libm-tests.c (test_functions): Add add.
17982 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17983 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17984 (NARROW_ADD_TRIVIAL): Likewise.
17985 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17986 macro.
17987 (__daddl): Likewise.
17988 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17989 dadd.
17990 (CFLAGS-nldbl-dadd.c): New variable.
17991 (CFLAGS-nldbl-fadd.c): Likewise.
17992 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17993 __nldbl_daddl.
17994 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17995 prototype.
17996 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17997 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17998 * math/auto-libm-test-in: Add tests of add.
17999 * math/auto-libm-test-out-narrow-add: New generated file.
18000 * math/libm-test-narrow-add.inc: New file.
18001 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18002 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18003 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18004 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18005 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18006 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18007 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18008 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18009 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18010 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18011 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18012 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18013 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18014 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18015 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18016 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18017 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18018 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18019 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18020 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18022 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18026 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18028 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18029 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18030 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18040 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18041 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18042 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18043 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18046 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18047
a85b70db
JM
18048 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18049 (f128-pairs): New variable.
18050 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18051 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18052 to CFLAGS.
18053 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18054 Also make tests add $(f128-loader-link) to gnulib-tests.
18055
6a1ff640
DD
180562018-02-09 DJ Delorie <dj@redhat.com>
18057
18058 [BZ #22827]
18059 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18060 64-bit ELF type for 64-bit ELF objects.
18061
bfd47587
JM
180622018-02-09 Joseph Myers <joseph@codesourcery.com>
18063
31958338
JM
18064 * math/libm-test-driver.c (snan_tests_arg): New variable.
18065 * math/libm-test-support.h (snan_tests_arg): New declaration.
18066 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18067
8e554659
JM
18068 * math/Makefile (test-type-pairs): New variable.
18069 (test-type-pairs-f64xf128-yes): Likewise.
18070 (tests): Add test-narrow-macros.
18071 (libm-test-funcs-narrow): New variable.
18072 (libm-test-c-narrow): Likewise.
18073 (generated): Add $(libm-test-c-narrow).
18074 (libm-tests-base-narrow): New variable.
18075 (libm-tests-narrow): Likewise.
18076 (libm-tests): Add $(libm-tests-narrow).
18077 (libm-tests-for-type): Handle $(libm-tests-narrow).
18078 (libm-test-c-narrow-obj): New variable.
18079 ($(libm-test-c-narrow-obj)): New rule.
18080 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18081 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18082 $(o-iterator) to set dependencies and CFLAGS.
18083 * math/gen-auto-libm-tests.c: Document use for narrowing
18084 functions.
18085 (output_for_one_input_case): Take argument NARROW.
18086 (generate_output): Likewise. Update call to
18087 output_for_one_input_case.
18088 (main): Take --narrow option. Update call to generate_output.
18089 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18090 (apply_lit): Update call to _apply_lit.
18091 (apply_arglit): New function.
18092 (parse_args): Handle "a" arguments.
18093 (parse_auto_input): Handle format names using ":".
18094 * math/README.libm-test: Document "a" parameter type.
18095 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18096 (ARG_TYPE_TRUE_MIN): Likewise.
18097 (ARG_TYPE_MAX): Likwise.
18098 (ARG_MIN_EXP): Likewise.
18099 (ARG_MAX_EXP): Likewise.
18100 (ARG_MANT_DIG): Likewise.
18101 (TEST_COND_arg_ibm128): Likewise.
18102 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18103 (TEST_COND_arg_fmt): New macro.
18104 (init_max_error): Update prototype.
18105 * math/libm-test-support.c (test_ibm128): New variable.
18106 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18107 instead of using [TEST_COND_ibm128] conditional.
18108 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18109 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18110 [TEST_NARROW] (TEST_MSG): New definition.
18111 (arg_plus_zero): New macro.
18112 (arg_minus_zero): Likewise.
18113 (arg_plus_infty): Likewise.
18114 (arg_minus_infty): Likewise.
18115 (arg_qnan_value_pl): Likewise.
18116 (arg_qnan_value): Likewise.
18117 (arg_snan_value_pl): Likewise.
18118 (arg_snan_value): Likewise.
18119 (arg_max_value): Likewise.
18120 (arg_min_value): Likewise.
18121 (arg_min_subnorm_value): Likewise.
18122 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18123 (RUN_TEST_LOOP_aa_f): New macro.
18124 (TEST_SUFF): New macro.
18125 (TEST_SUFF_STR): Likewise.
18126 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18127 (TEST_COND_any_ibm128): New macro.
18128 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18129 this_func. Update call to init_max_error.
18130 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18131 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18132 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18133 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18134 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18135 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18136 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18137 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18138 * math/test-math-vector.h (TEST_NARROW): Likewise.
18139 * math/test-arg-double.h: New file.
18140 * math/test-arg-float128.h: Likewise.
18141 * math/test-arg-float32x.h: Likewise.
18142 * math/test-arg-float64.h: Likewise.
18143 * math/test-arg-float64x.h: Likewise.
18144 * math/test-arg-ldouble.h: Likewise.
18145 * math/test-math-narrow.h: Likewise.
18146 * math/test-narrow-macros.c: Likewise.
18147 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18148 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18149 test-narrow-macros-ldbl-64.
18150 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18151
63716ab2
JM
18152 * math/bits/mathcalls-narrow.h: New file.
18153 * include/bits/mathcalls-narrow.h: Likewise.
18154 * math/math-narrow.h: Likewise.
18155 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18156 (__MATHCALL_NARROW_ARGS_2): Likewise.
18157 (__MATHCALL_NARROW_ARGS_3): Likewise.
18158 (__MATHCALL_NARROW_NORMAL): Likewise.
18159 (__MATHCALL_NARROW_REDIR): Likewise.
18160 (__MATHCALL_NARROW): Likewise.
18161 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18162 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18163 defined.
18164 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18165 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18166 (libm-narrow-fns): New variable.
18167 (libm-narrow-types-basic): Likewise.
18168 (libm-narrow-types-ldouble-yes): Likewise.
18169 (libm-narrow-types-float128-yes): Likewise.
18170 (libm-narrow-types-float128-alias-yes): Likewise.
18171 (libm-narrow-types): Likewise.
18172 (libm-routines): Add narrowing functions.
18173 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18174 (libc_feholdexcept_setroundf128): New macro.
18175 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18176 * sysdeps/ieee754/float128/float128_private.h: Include
18177 <math/math-narrow.h>.
18178 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18179 Undefine and redefine.
18180 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18181 (libm_alias_float_ldouble): Undefine and redefine.
18182 (libm_alias_double_ldouble): Likewise.
18183
bfd47587
JM
18184 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18185
3f8d9d58
WD
181862018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18187
18188 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18189 FPCR/FPSR.
18190
1f6676d7
RJ
181912018-02-09 Rical Jasan <ricaljasan@pacific.net>
18192
18193 * manual/creature.texi: Convert references to gcc.info to gcc.
18194 * manual/stdio.texi: Likewise.
18195 * manual/string.texi: Likewise.
18196
d80441dd
JM
181972018-02-07 Joseph Myers <joseph@codesourcery.com>
18198
15081be9
JM
18199 [BZ #17979]
18200 * posix/bits/types.h (__int_least8_t): New typedef.
18201 (__uint_least8_t): Likewise.
18202 (__int_least16_t): Likewise.
18203 (__uint_least16_t): Likewise.
18204 (__int_least32_t): Likewise.
18205 (__uint_least32_t): Likewise.
18206 (__int_least64_t): Likewise.
18207 (__uint_least64_t): Likewise.
18208 * sysdeps/generic/stdint.h (int_least8_t): Define using
18209 __int_least8_t.
18210 (int_least16_t): Define using __int_least16_t.
18211 (int_least32_t): Define using __int_least32_t.
18212 (int_least64_t): Define using __int_least64_t.
18213 (uint_least8_t): Define using __uint_least8_t.
18214 (uint_least16_t): Define using __uint_least16_t.
18215 (uint_least32_t): Define using __uint_least32_t.
18216 (uint_least64_t): Define using __uint_least64_t.
18217 * wcsmbs/uchar.h: Include <bits/types.h>.
18218 (char16_t): Define using __uint_least16_t conditional only on
18219 [!__USE_ISOCXX11].
18220 (char32_t): Define using __uint_least32_t conditional only on
18221 [!__USE_ISOCXX11].
18222 * wcsmbs/test-char-types.c: New file.
18223 * wcsmbs/Makefile (tests): Add test-char-types.
18224
d80441dd
JM
18225 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18226 version to 4.0.1.
18227
6c6c962a
ZW
182282018-02-07 Zack Weinberg <zackw@panix.com>
18229
63fb8f9a
ZW
18230 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18231 Delete all contents except for definitions of _G_HAVE_MMAP and
18232 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18233 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18234 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18235 change as above.
18236
18237 * libio/libio.h: Don't include bits/_G_config.h here.
18238 Include stddef.h with __need_wchar_t defined. Include
18239 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18240 Define _IO_iconv_t here, directly.
18241 Don't define _IO_HAVE_ST_BLKSIZE.
18242 * libio/libioP.h: Include _G_config.h here. Move include of
18243 shlib-compat.h up with rest of includes. Simplify conditionals
18244 controlling definition of _IO_JUMPS_OFFSET.
18245
18246 * csu/init.c: Remove always-true #if around entire file.
18247 Don't include stdio.h. Set _IO_stdin_used to hardwired
18248 constant 0x20001, and update commentary.
18249 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18250 Replace all uses of _G_va_list with __gnuc_va_list.
18251 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18252 instead of #if _IO_HAVE_ST_BLKSIZE.
18253 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18254 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18255 not #ifdef.
18256
6c6c962a
ZW
18257 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18258 multiple-include guard to match.
18259 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18260 into this file.
18261 Remove preprocessor conditionals that are always true and/or
18262 redundant to other preprocessor conditionals in the same nest.
18263 Include shlib-compat.h unconditionally.
18264 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18265 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18266 defined after including stdio.h.
18267 Use __BEGIN_DECLS/__END_DECLS.
18268
18269 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18270 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18271 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18272
a4fea3f2
ZW
182732018-02-07 Zack Weinberg <zackw@panix.com>
18274
18275 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18276 New single-type headers split from _G_config.h.
18277 * libio/bits/types/cookie_io_functions_t.h
18278 * libio/bits/types/struct_FILE.h
18279 New single-type headers split from libio.h.
18280
18281 * libio/Makefile: Install the above new headers. Don't install
18282 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18283 bits/libio-ldbl.h.
18284 * libio/_G_config.h, libio/libio.h: Delete file.
18285
18286 * libio/bits/libio.h: Remove improper-inclusion guard.
18287 Include stdio.h and don't repeat anything that it does.
18288 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18289 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18290 __io_read_fn as cookie_read_function_t,
18291 __io_write_fn as cookie_write_function_t,
18292 __io_seek_fn as cookie_seek_function_t,
18293 __io_close_fn as cookie_close_function_t,
18294 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18295 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18296 here, in the "compatibility defines" section. Remove an #if 0
6c6c962a 18297 block. Use the "body" macros from bits/types/struct_FILE.h to
a4fea3f2
ZW
18298 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18299 and _IO_ferror_unlocked.
18300 Move prototypes of __uflow and __overflow...
18301
18302 * libio/stdio.h: ...here. Don't include bits/libio.h.
18303 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
6c6c962a 18304 directly from stdarg.h. Include bits/types/__fpos_t.h,
a4fea3f2
ZW
18305 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18306 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18307 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18308 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18309 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18310 __ssize_t, not _IO_ssize_t. Unconditionally define
18311 BUFSIZ as 8192 and EOF as (-1).
18312
18313 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18314 macros from bits/types/struct_FILE.h instead of _IO_* macros
18315 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18316 instead of _IO_ssize_t.
18317 * libio/bits/stdio2.h: Similarly.
18318
18319 * libio/iolibio.h: Add multiple-include guard.
18320 Include bits/libio.h after stdio.h.
18321 * libio/libioP.h: Add multiple-include guard.
18322 Include stdio.h and bits/libio.h before iolibio.h.
18323
6c6c962a 18324 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
a4fea3f2
ZW
18325 * include/bits/types/cookie_io_functions_t.h
18326 * include/bits/types/struct_FILE.h: New wrappers.
18327
18328 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
6c6c962a
ZW
18329 Get definitions of _G_fpos_t and _G_fpos64_t from
18330 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18331 respectively. Remove improper-inclusion guards.
a4fea3f2 18332
6c6c962a 18333 * conform/data/stdio.h-data: Update expectations of va_list.
a4fea3f2 18334 * scripts/check-installed-headers.sh: Remove special case for
6c6c962a 18335 libio.h and _G_config.h.
a4fea3f2 18336
ce999220
JM
183372018-02-07 Joseph Myers <joseph@codesourcery.com>
18338
8b4a1182
JM
18339 [BZ #15105]
18340 [BZ #19463]
18341 * include/sys/sysmacros.h [!_ISOMAC]
18342 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18343 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18344 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18345 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18346 libc_hidden_proto.
18347 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18348 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18349 Likewise.
18350 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18351 Undefine and redefine to add use __gnu_dev_ prefix.
18352 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18353 Likewise.
18354 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18355 and define as hidden inline function.
18356 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18357 Likewise.
18358 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18359 Likewise.
18360 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18361 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18362 (gnu_dev_minor): Likewise.
18363 (gnu_dev_makedev): Likewise.
18364 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18365 makedev.
18366 * posix/wordexp.c (exec_comm_child): Likewise.
18367 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18368 instead of minor and __gnu_dev_major instead of major.
18369 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18370 __gnu_dev_major instead of major.
18371 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18372 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18373 instead of gnu_dev_minor.
18374 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18375 (SLAVE_P): Likewise.
18376 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18377 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18378 instead of major.
18379
ce999220
JM
18380 [BZ #21313]
18381 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18382 in another place.
18383 * locale/weightwc.h (findidx): Likewise.
18384
b7c83ca3
WD
183852018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18386
18387 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18388 (slowlog_inexact): Likewise
18389 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18390 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18391
388ff7bd
IG
183922018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18393
18394 [BZ #22797]
18395 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18396 missing second underscore to parameter name.
18397
663e7d78
JM
183982018-02-06 Joseph Myers <joseph@codesourcery.com>
18399
0d40d0ec
JM
18400 [BZ #14508]
18401 [BZ #15512]
18402 [BZ #17082]
18403 [BZ #20530]
18404 * bits/byteswap.h: Update file comment. Do not include
18405 <bits/byteswap-16.h>.
18406 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18407 constant.
18408 (__bswap_16): Define as inline function.
18409 (__bswap_constant_32): Reformat definition.
18410 (__bswap_32): Always define as inline function, not macro, using
18411 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18412 otherwise __bswap_constant_32.
18413 (__bswap_constant_64): Reformat definition. Do not use
18414 __extension__ here.
18415 (__bswap_64): Always define as inline function, not macro. Use
18416 __extension__ on function definition. Use __builtin_bswap64 if
18417 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18418 * string/test-endian-file-scope.c: New file.
18419 * string/test-endian-sign-conversion.c: Likewise.
18420 * string/Makefile (headers): Remove bits/byteswap-16.h.
18421 (tests): Add test-endian-file-scope and
18422 test-endian-sign-conversion.
18423 (CFLAGS-test-endian-sign-conversion.c): New variable.
18424 * bits/byteswap-16.h: Remove file.
18425 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18426 * sysdeps/ia64/bits/byteswap.h: Likewise.
18427 * sysdeps/m68k/bits/byteswap.h: Likewise.
18428 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18429 * sysdeps/s390/bits/byteswap.h: Likewise.
18430 * sysdeps/tile/bits/byteswap.h: Likewise.
18431 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18432 * sysdeps/x86/bits/byteswap.h: Likewise.
18433
383e87c9
JM
18434 [BZ #17721]
18435 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18436 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18437 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18438 199901L] (__restrict): Define to restrict.
18439
d92c2759
JM
18440 [BZ #19667]
18441 * string/testcopy.c: Include <support/support.h>. Do not include
18442 <malloc.h>. Use <support/test-driver.c>.
18443 (main): Rename to do_test. Make static. Use xmalloc instead of
18444 malloc.
18445
625fb764
JM
18446 [BZ #13575]
18447 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18448 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18449 (SSIZE_MAX): Define to INT_MAX.
18450 * posix/test-ssize-max.c: New file.
18451 * posix/Makefile (tests): Add test-ssize-max.
18452
02325d6c
JM
18453 [BZ #19668]
18454 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18455 <support/support.h>. Do not include <malloc.h>.
18456 (query_auxv): Use xmalloc instead of malloc.
18457
663e7d78
JM
18458 [BZ #14553]
18459 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18460 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18461 instead of loff_t.
18462
6b5c8607 184632018-02-06 Florian Weimer <fweimer@redhat.com>
6d7aa2b5
FW
18464
18465 [BZ #18023]
18466 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18467 Use scratch_buffer instead of extend_alloca.
18468
de6da571
ZW
184692018-02-06 Zack Weinberg <zackw@panix.com>
18470
26c07172
ZW
18471 * libio/stdio.h: Don't define getc or putc as macros.
18472 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18473 not _IO_getc and _IO_putc.
18474
de6da571
ZW
18475 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18476 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18477
92669d6e
JM
184782018-02-06 Joseph Myers <joseph@codesourcery.com>
18479
c2b84df9
JM
18480 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18481 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18482
41376f8c
JM
18483 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18484
d28bf648
JM
18485 [BZ #14890]
18486 * elf/elf.h (NT_PRFPREG): New macro.
18487 (NT_S390_VXRS_LOW): Likewise.
18488 (NT_S390_VXRS_HIGH): Likewise.
18489 (NT_S390_GS_CB): Likewise.
18490 (NT_S390_GS_BC): Likewise.
18491 (NT_S390_RI_CB): Likewise.
18492
e76def72
JM
18493 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18494 (MAP_SYNC): New macro.
18495 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18496 Likewise.
18497 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18498 (MAP_SYNC): Likewise.
18499 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18500 (MAP_SYNC): Likewise.
18501 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18502 (MAP_SYNC): Likewise.
18503 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18504 (MAP_SYNC): Likewise.
18505 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18506 (MAP_SYNC): Likewise.
18507 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18508 (MAP_SYNC): Likewise.
18509 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18510 Likewise.
18511 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18512 Likewise.
18513
92669d6e
JM
18514 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18515 (MAP_SHARED_VALIDATE): New macro.
18516 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18517 (MAP_SHARED_VALIDATE): Likewise.
18518
6a5cac49
L
185192018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18520
18521 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18522 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18523 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18524
b44e0dfb
L
185252018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18526
18527 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18528 (DT_NUM): Updated to 35.
18529
f886c16c
L
185302018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18531
18532 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18533 __builtin_expect with __glibc_likely and __glibc_unlikely.
18534 (elf_machine_rela): Likewise.
18535 (elf_machine_lazy_rel): Likewise.
18536
06fbebff
L
185372018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18538
18539 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
8f4bf93f 18540 __builtin_expect with __glibc_likely and __glibc_unlikely.
06fbebff
L
18541 (elf_machine_lazy_rel): Likewise.
18542
371b220f
L
185432018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18544
18545 [BZ #22638]
18546 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18547 SHARED.
65805016 18548 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
371b220f 18549
f649a1b8
AS
185502018-02-05 Andreas Schwab <schwab@suse.de>
18551
18552 [BZ #22761]
18553 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18554 string.
18555
9fdb340e
ST
185562018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18557
18558 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18559 not check against PTHREAD_STACK_MIN.
18560
09e56b9e
SM
185612018-02-02 Sean McKean <smckean83@gmail.com>
18562
18563 [BZ #22735]
18564 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18565
d4b4a00a
FW
185662018-02-02 Florian Weimer <fweimer@redhat.com>
18567
18568 [BZ #22753]
18569 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18570 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18571 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18572 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18573 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18574 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18575 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18576 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18577 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18578 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18579 * misc/tst-preadvwritev2.c (do_test): Call it.
18580 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18581
3dfcbfa1
SP
185822018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18583
84c94d2f
SP
18584 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18585
96e6a716
SP
18586 * benchtests/bench-memcmp.c: Print json instead of plain text.
18587
3dfcbfa1
SP
18588 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18589 every test run.
18590
049375e2
JM
185912018-02-01 Joseph Myers <joseph@codesourcery.com>
18592
39f898c6
JM
18593 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18594 version to 4.15.
18595 (s390_sthyi): New syscall.
18596
6f9a3dd8
JM
18597 * sysdeps/generic/ldbl-classify-compat.h: New file.
18598 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18599 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18600 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18601 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18602 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18603 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18604 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18605 <ldbl-classify-compat.h>.
18606 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18607 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18608 <ldbl-classify-compat.h>.
18609 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18610 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18611 <ldbl-classify-compat.h>.
18612 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18613 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18614 <ldbl-classify-compat.h>.
18615 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18616 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18617 <ldbl-classify-compat.h>.
18618 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18619 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18620 <ldbl-classify-compat.h>.
18621 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18622 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18623 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18624 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18625 * sysdeps/microblaze/math_private.h: Likewise.
18626 * sysdeps/nios2/math_private.h: Likewise.
18627 * sysdeps/sh/math_private.h: Likewise.
18628
eb65a3d5
JM
18629 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18630 * sysdeps/m68k/coldfire/math_private.h: ... here.
18631 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18632 * sysdeps/tile/math_private.h: Likewise.
18633 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18634 Remove macro.
18635 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18636 Likewise.
18637
8a6bb1d0
JM
18638 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18639 Remove macro.
18640 (libc_fetestexcept): Likewise.
18641 (libc_feupdateenv_test): Likewise.
18642 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18643 (libc_fetestexcept): Likewise.
18644 (libc_feupdateenv_test): Likewise.
18645 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18646 (libc_fetestexcept): Likewise.
18647 (libc_feupdateenv_test): Likewise.
18648 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18649 (libc_fetestexcept): Likewise.
18650 (libc_feupdateenv_test): Likewise.
18651
ae1fcb7b
JM
18652 * sysdeps/generic/math_private.h
18653 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18654 New inline function.
18655 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18656 Likewise.
18657
b1c347e2
JM
18658 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18659 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18660 * sysdeps/generic/math_private.h
18661 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18662 inline function.
18663 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18664 Likewise.
18665 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18666 Likewise.
18667 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18668 Likewise.
18669 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18670 Likewise.
18671 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18672 Likewise.
18673 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18674 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18675 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18676 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18677 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18678 (__fegetenv): Likewise.
18679 (fesetenv): Likewise.
18680 (__fesetenv): Likewise.
18681 (feupdateenv): Likewise.
18682 (__feupdateenv): Likewise.
18683 (fegetround): Likewise.
18684 (__fegetround): Likewise.
18685 (fesetround): Likewise.
18686 (__fesetround): Likewise.
18687
d23a4962
JM
18688 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18689 (feraiseexcept): New macro.
18690 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18691 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18692 Remove macro.
18693 (__feraiseexcept): Likewise.
18694 (feclearexcept): Likewise.
18695 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18696 (__feraiseexcept): Likewise.
18697 (feclearexcept): Likewise.
18698 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18699 (__feraiseexcept): Likewise.
18700 (feclearexcept): Likewise.
18701 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18702 (__feraiseexcept): Likewise.
18703 (feclearexcept): Likewise.
18704 (fetestexcept): Likewise.
18705
5f167950
JM
18706 * sysdeps/m68k/coldfire/math-tests.h: New file.
18707
ccc9035a
JM
18708 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18709 * sysdeps/m68k/bits/fenv.h: ... here.
18710 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18711 not define.
18712 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18713 Likewise.
18714 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18715 Likewise.
18716 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18717 Likewise.
18718 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18719 Likewise.
18720 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18721 Define to 0.
18722 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18723 (__FE_UNDEFINED): New enum constant.
18724 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18725 Do not define.
18726 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18727 Likewise.
18728 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18729 Likewise.
18730 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18731 to match generic bits/fenv.h.
18732 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18733 Do not define.
18734
049375e2
JM
18735 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18736 packed on bits.
18737 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18738 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18739 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18740 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18741
f1d73681
CD
187422018-02-01 Carlos O'Donell <carlos@redhat.com>
18743 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18744 Joseph Myers <joseph@codesourcery.com>
18745
18746 [BZ #21314]
18747 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18748 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18749 computation using c.
18750 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18751 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18752 computation using c.
18753
242cbc90
DL
187542018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18755
086ee48e
DL
18756 * version.h (RELEASE): Set to "development".
18757 (VERSION): Set to "2.27.9000".
18758 * NEWS (2.28): New section.
18759
23158b08
DL
18760 * version.h (RELEASE): Set to "stable".
18761 (VERSION): Set to "2.27".
18762 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18763
242cbc90
DL
18764 * NEWS: Add the list of bugs fixed in 2.27.
18765
673e2305
AZ
187662018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18767
18768 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18769 against PTHREAD_STACK_MIN.
18770
ced64e01
DL
187712018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18772
18773 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18774 New entries.
18775 (Rafal Luzynski, Andreas Schwab): Update.
18776
c10c9a5e
RL
187772018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18778
18779 [BZ #10871]
18780 * NEWS: List the languages which actually use the alternative
18781 months feature in this release. Also explain that "alt_mon" and
18782 "ab_alt_mon" are optional.
18783
650ba77a
IM
187842018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18785
18786 [BZ #22765]
18787 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18788
93493119
DL
187892018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18790
18791 * manual/install.texi (Tools for Compilation): Update the newest
18792 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18793 * INSTALL: Regenerated.
18794
363e4519 187952018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
407552cf
ST
18796
18797 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18798 instead of __builtin_expect.
18799
d7536874
FW
188002018-01-30 Florian Weimer <fweimer@redhat.com>
18801
18802 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18803 data.
18804 * nss/tst-nss-getpwent.c (do_test): Likewise.
18805
9a1b267d
RL
188062018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18807
18808 [BZ #10871]
18809 * localedata/locales/hr_HR (mon): Rename to...
18810 (alt_mon): This.
18811 (mon): Import from CLDR (genitive case).
18812 (d_t_fmt): Update the comment.
18813
9a179328
AS
188142018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18815
18816 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18817 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18818 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18819
e01e0ddc
ST
188202018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18821
18822 * mach/Versions: Fix version when __mach_host_self_ was added.
18823 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18824 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18825 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18826 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18827 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18828 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18829 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18830 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18831 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18832 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18833 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18834 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
ba729de6
ST
18835 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18836 || to respect codestyle.
2aadb705
ST
18837 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18838 (do_test_bz20181): Rename accordingly.
406e7a0a
ST
18839 * malloc/malloc.c: Include <assert.h>.
18840 (assert): Do not define.
18841 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
99dfbef4
ST
18842 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18843 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
ac56adbb 18844 * sysdeps/mach/hurd/hp-timing.h: New file.
ef4cf463 18845 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
e01e0ddc 18846
521877e1
PD
188472018-01-29 Darius Rad <darius@bluespec.com>
18848
18849 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18850
532cf290
PD
188512018-01-29 Palmer Dabbelt <palmer@sifive.com>
18852
18853 * sysdeps/init_array/crti.S (.section .init_array): Add
18854 PREINIT_FUNCTION when defined.
40ca951b 18855 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
4215e276 18856 * config.h.in: Regenerate.
ba9e25a6
PD
18857 * manual/platform.texi: Add RISC-V documenation for
18858 __riscv_flush_icache.
c776fa11
PD
18859 * sysdeps/riscv/__longjmp.S: New file.
18860 * sysdeps/riscv/backtrace.c: Likewise.
18861 * sysdeps/riscv/bits/endian.h: Likewise.
18862 * sysdeps/riscv/bits/setjmp.h: Likewise.
18863 * sysdeps/riscv/bits/wordsize.h: Likewise.
18864 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18865 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18866 * sysdeps/riscv/dl-trampoline.S: Likewise.
18867 * sysdeps/riscv/gccframe.h: Likewise.
18868 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18869 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18870 * sysdeps/riscv/machine-gmon.h: Likewise.
18871 * sysdeps/riscv/memusage.h: Likewise.
18872 * sysdeps/riscv/setjmp.S: Likewise.
18873 * sysdeps/riscv/sys/asm.h: Likewise.
18874 * sysdeps/riscv/tls-macros.h: Likewise.
33712660
PD
18875 * sysdeps/riscv/dl-tls.h: New file.
18876 * sysdeps/riscv/libc-tls.c: Likewise.
18877 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18878 * sysdeps/riscv/nptl/tls.h: Likewise.
18879 * sysdeps/riscv/stackinfo.h: Likewise.
67236aeb
PD
18880 * sysdeps/riscv/bits/fenv.h: New file.
18881 * sysdeps/riscv/e_sqrtl.c: Likewise.
18882 * sysdeps/riscv/fpu_control.h: Likewise.
18883 * sysdeps/riscv/math-tests.h: Likewise.
18884 * sysdeps/riscv/nofpu/Implies: Likewise.
18885 * sysdeps/riscv/sfp-machine.h: Likewise.
18886 * sysdeps/riscv/tininess.h: Likewise.
b2cb5e02
PD
18887 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18888 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18889 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18890 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18891 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18892 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18893 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18894 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18895 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18896 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18897 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18898 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18899 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18900 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18901 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18902 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18903 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18904 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18905 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18906 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18907 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18908 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18909 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18910 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18911 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18912 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18913 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18914 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18915 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18916 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18917 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18918 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18919 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18920 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18921 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18922 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18923 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18924 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18925 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18926 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18927 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18928 * sysdeps/riscv/rvf/math_private.h: Likewise.
18929 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18930 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18931 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18932 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18933 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18934 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18935 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18936 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18937 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18938 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18939 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18940 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18941 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18942 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18943 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18944 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
d1c09b24
PD
18945 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18946 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18947 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18948 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
36960f0c
PD
18949 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18950 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18951 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18952 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18953 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18954 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18955 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18956 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18957 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
7f33b09c
PD
18958 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18959 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18960 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18961 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18962 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18963 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18964 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18965 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18966 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18967 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18968 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18969 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18970 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18971 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18972 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18973 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18974 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18975 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18976 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18977 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18978 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18979 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
ee53fed9
PD
18980 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18981 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18982 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
2268c433
PD
18983 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18984 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18985 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18986 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18987 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18988 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18989 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18990 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18991 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18992 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18993 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18994 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18995 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18996 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
c5061557
PD
18997 * sysdeps/riscv/Implies: New file.
18998 * sysdeps/riscv/Makefile: Likewise.
18999 * sysdeps/riscv/configure: Likewise.
19000 * sysdeps/riscv/configure.ac: Likewise.
19001 * sysdeps/riscv/nptl/Makefile: Likewise.
19002 * sysdeps/riscv/preconfigure: Likewise.
19003 * sysdeps/riscv/rv64/Implies-after: Likewise.
19004 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19005 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19006 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19007 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19008 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19009 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19010 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19011 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19012 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19013 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19014 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
0fd5d876
PD
19015 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19016 (Config): Likewise.
532cf290 19017
cdd14619
FW
190182018-01-29 Florian Weimer <fweimer@redhat.com>
19019
19020 [BZ #22701]
19021 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19022 libnsl_hidden_proto.
19023 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19024 libnsl_hidden_proto.
19025 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19026 * nis/Makefile (libnsl-routines): Add nss-default only for
19027 build-obsolete-nsl.
19028 * nis/nis_defaults.c (__nis_default_ttl): Add
19029 libnsl_hidden_nolink_def.
19030 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19031 declaration.
19032 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19033 * nis/ypclnt.c (yp_maplist): Likewise.
19034
b7ccb5de
RN
190352018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19036
19037 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19038 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19039
522623e4
JM
190402018-01-29 Joseph Myers <joseph@codesourcery.com>
19041
e3aa6999
JM
19042 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19043 clean -dxfq for git updates when replacing sources.
19044
088de7d0
JM
19045 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19046 --disable-libcilkrts unconditionally, not just for the final GCC
19047 build for Hurd.
19048
522623e4
JM
19049 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19050 version to 4.15.
19051
8b406f87
RL
190522018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19053
19054 [BZ #10871]
19055 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19056 case).
19057
105e90bd
RL
190582018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19059
19060 [BZ #10871]
19061 * localedata/locales/be_BY (mon): Rename to...
19062 (alt_mon): This, then synchronize with CLDR (nominative case).
19063 (abmon): Rename to...
19064 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19065 (mon): Import from CLDR (genitive case).
19066 (abmon): Likewise.
19067 * localedata/locales/be_BY@latin (mon): Rename to...
19068 (alt_mon): This.
19069 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19070
19071 * localedata/locales/be_BY@latin (lang_name): Reworded to
19072 "biełaruskaja mova".
19073
561cb414
RL
190742018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19075
19076 [BZ #10871]
19077 * localedata/locales/el_CY (mon): Renamed to...
19078 (alt_mon): This.
19079 (mon): Import from CLDR (genitive case).
19080 * localedata/locales/el_GR: Likewise.
19081
f7bdf30d
RL
190822018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19083
19084 [BZ #10871]
19085 * localedata/locales/ru_RU (mon): Rename to...
19086 (alt_mon): This.
19087 (abmon): Rename to...
19088 (ab_alt_mon): This.
19089 (mon): Import from CLDR (genitive case).
19090 (abmon): Copy from the old content except the 5th month which is
19091 now in the genitive case, even when abbreviated.
19092 * localedata/locales/ru_UA: Likewise.
19093 * time/tst-strptime.c (day_tests): Add an actual example of
19094 a difference between %b and %Ob in Russian.
19095
85285a0c
ST
190962018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19097
19098 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
da8168df
ST
19099 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19100 a `c' variable.
3538a4b6 19101 * resolv/res-close.c: Include <stdlib.h>.
b29848b9
ST
19102 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19103 <sys/wait.h>, <time.h>, <sys/uio.h>.
19104 (NOT_CANCEL_H): Add inclusion guard.
4f66dc23 19105 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
147d1dbb
ST
19106 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19107 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19108 return 0.
05ebfe87
ST
19109 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19110 vm_address_t * to ElfW(Addr) * for dl_main parameter.
61a3a8c6
ST
19111 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19112 instead of void *.
19113 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19114 timer_ptr2id to cast struct timer_node * to void *.
d4d5b2dd
ST
19115 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19116 --disable-libcilkrts to gcc configure.
19fd8d0d
ST
19117 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19118 and make them the default for now.
903d3633
ST
19119 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19120 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
7dab2d00
ST
19121 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19122 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19123 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19124 MACH_IPC_COMPAT.
06fac9f5
ST
19125 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19126 __task_terminate would ever return successfully.
f8177753
ST
19127 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19128 to global scope.
41cdb1eb
ST
19129 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19130 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
660b7bff
ST
19131 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19132 critical section to make code simpler and avoid warning.
19133 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19134 critical section to make code simpler and avoid warning.
844bf921
ST
19135 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19136 const char * instead of char *.
f8bee46c
ST
19137 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19138 __hurd_file_name_split, hurd_file_name_split,
19139 __hurd_directory_name_split, hurd_directory_name_split,
19140 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19141 hurd_file_name_path_lookup): Make lookup function parameter take a
19142 const char *name instead of char *name.
19143 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19144 __hurd_directory_name_split): Likewise.
19145 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19146 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
40066975
ST
19147 * sysdeps/mach/hurd/check_native.c: New file.
19148 * sysdeps/mach/hurd/check_pf.c: New file.
7c5b106d
ST
19149 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19150 (__freeifaddrs): Define macro to freeifaddrs.
5f982b0b
ST
19151 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19152 * sysdeps/mach/libmachuser.abilist: New file.
cef7166a
ST
19153 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19154 (do_test_bz20181): Rename accordingly.
19155 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
3fc1ecf9
ST
19156 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19157 <sys/mount.h>.
28f6186f
ST
19158 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19159 version only if __USE_EXTERN_INLINES is defined.
19160 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19161 __hurd_sockfail): Likewise.
19162 (_hurd_fd_get): Always declare functions, and provide inline versions
19163 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19164 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19165 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19166 _hurd_port_set): Always declare functions, and provide inline versions
19167 only if __USE_EXTERN_INLINES and _LIBC are defined and
19168 IS_IN(libc).
19169 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19170 _hurd_critical_section_unlock): Likewise.
19171 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19172 * __hurd_threadvar_location): Likewise.
19173 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19174 _hurd_userlink_clear): Likewise.
19175 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19176 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19177 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19178 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19179 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19180 __spin_lock_locked): Likewise.
19181 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19182 __spin_lock_locked): Likewise.
19183 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19184 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19185 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19186 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19187 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
b1025304
ST
19188 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19189 _POSIX_NO_TRUNC): Define to 0.
a902a086
ST
19190 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19191 check size against PTHREAD_STACK_MIN.
625ba81e
ST
19192 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19193 IS_IN(libpthread)]: Include <sigsetops.h>.
2e52dff4
ST
19194 * mach/Makefile (user-interfaces): Add mach/gnumach.
19195 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19196 * sysdeps/mach/configure (mach_interface_list): Regenerate.
80463dc6
ST
19197 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19198 instead of invalid -1.
1f89ac71
ST
19199 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19200 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19201 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19202 <net/ppp_defs.h>.
85285a0c 19203
1fd1e27c 192042018-01-27 Thomas Schwinge <tschwinge@gnu.org>
84814e2a
TS
19205
19206 * hurd/fcntl-internal.h: New file.
19207
3854c5a8
JC
192082018-01-27 James Clarke <jrtc27@jrtc27.com>
19209
7e23a7dd
JC
19210 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19211
3854c5a8
JC
19212 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19213
5503f413
AS
192142018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19215
19216 [BZ #22701]
19217 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19218 Build only shared objects.
19219
caaf7804
CD
192202018-01-26 Carlos O'Donell <carlos@redhat.com>
19221
19222 * README: Update for hppa.
19223
1cbf818d
PM
192242018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19225
caaf7804
CD
19226 * sysdeps/sparc/fpu/libm-test-ulps: Update
19227 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
1cbf818d 19228
caaf7804 192292018-01-26 Carlos O'Donell <carlos@redhat.com>
2ec0e7ea
CD
19230
19231 Revert:
19232
19233 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19234
19235 [BZ #22563]
19236 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19237 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19238 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19239 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19240 to feature_1.
19241
19242 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19243
19244 [BZ #22563]
19245 * bits/types/__cancel_jmp_buf_tag.h: New file.
19246 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19247 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19248 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19249 * nptl/Makefile (headers): Add
19250 bits/types/__cancel_jmp_buf_tag.h.
19251 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19252 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19253 * sysdeps/nptl/pthread.h: Include
19254 <bits/types/__cancel_jmp_buf_tag.h>.
19255 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19256 __cancel_jmp_buf.
19257 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19258
65f6c94e
RL
192592018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19260
19261 [BZ #10871]
19262 * localedata/locales/uk_UA (mon): Renamed to...
19263 (alt_mon): This.
19264 (alt_digits): "0" removed and then renamed to...
19265 (mon): This.
19266 (date_fmt): Definition changed not to use the alternative
19267 digits hack.
19268
fb58aac5
PD
192692018-01-25 Palmer Dabbelt <palmer@sifive.com>
19270
19271 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19272 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19273 * elf/elf.h (EF_RISCV_RVC): New define.
19274 (EF_RISCV_FLOAT_ABI): Likewise.
19275 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19276 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19277 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19278 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19279 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19280 define.
19281 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19282
128c43a2
AS
192832018-01-25 Andreas Schwab <schwab@suse.de>
19284
19285 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19286 single quotes.
19287 * sysdeps/gnu/configure: Regenerate.
19288 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19289 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19291 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19292 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19293 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19294 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19295 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19296
f9015003
ST
192972018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19298
48130690 19299 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
47c4b4b0 19300 URL, and run autoconf, make it the default for now.
f9015003 19301
91b2cffa
JM
193022018-01-24 Joseph Myers <joseph@codesourcery.com>
19303
3005b705
JM
19304 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19305 soft-float ColdFire configuration.
19306
69231fab
JM
19307 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19308 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19309 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19310
d4c7e1d0
JM
19311 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19312 MicroBlaze file.
19313
0cfe5be5
JM
19314 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19315 ....
19316 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19317 ... here.
19318 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19319 New file.
19320
91b2cffa
JM
19321 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19322 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19323 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19324 file.
19325
c739e191
SN
193262018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19327
19328 [BZ #22742]
19329 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19330 Rename to __reserved and add comment.
19331 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19332 Rename to __reserved.
19333
394b5bac
JM
193342018-01-24 Joseph Myers <joseph@codesourcery.com>
19335
19336 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19337 i686-gnu configurations.
19338 (Context.run_builds): Include mig, gnumach and hurd in components
19339 considered.
19340 (Context.checkout): Add mig, gnumach and hurd to components.
19341 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19342 hurd.
19343 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19344 (Config.build): Install gnumach headers, build mig and install
19345 hurd headers for 'gnu' OS.
19346 (Config.install_gnumach_headers): New function.
19347 (Config.install_hurd_headers): Likewise.
19348 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19349 when building for 'gnu' OS.
19350
28c3f14f
TK
193512018-01-23 Tobias Klauser <tklauser@distanz.ch>
19352
19353 * manual/tunables.texi (Hardware Capability Tunables): Fix
19354 spelling.
19355
0f5e2da1
RJ
193562018-01-22 Rical Jasan <ricaljasan@pacific.net>
19357
19358 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19359 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19360 (ALTMON_11, ALTMON_12): Improve documentation.
19361 * manual/time.texi (strftime): Likewise.
19362
7817b14a
RL
193632018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19364
19365 [BZ #10871]
19366 * localedata/locales/pl_PL: Alternative month names added,
19367 primary month names are genitive now.
19368 * time/tst-strptime.c (day_tests): Actually use a genitive case
19369 of a month name in Polish language.
19370
22390764
RL
193712018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19372
19373 [BZ #10871]
19374 * manual/locale.texi: Document ALTMON_1..12 constants for
19375 nl_langinfo. Specify when to use ALTMON instead of MON.
19376 * manual/time.texi (strftime, strptime): Document GNU extension
19377 permitting O modifier with %B and %b. Specify when to use
19378 %OB instead of %B.
19379
761a585c
RL
193802018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19381
19382 [BZ #10871]
19383 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19384 names, define them as the same as abbreviated month names explicitly.
19385 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19386 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19387 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19388 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19389 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19390 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19391 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19392 _NL_WABALTMON_12): New enum constants.
19393 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19394 wab_alt_mon, and ab_alt_mon_defined members.
19395 (time_output): Output ab_alt_mon and wab_alt_mon members.
19396 (time_read): Read them, initialize them as copies of abmon and wabmon
19397 respectively if they are missing, initialize ab_alt_mon_defined.
19398 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19399 * locale/programs/locfile-kw.h: Regenerate.
19400 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19401 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19402 and ru_RU.UTF-8.
19403 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19404 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19405 (__strftime_internal): Handle %Ob and %Oh formats.
19406 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19407 (__strptime_internal): Handle %Ob and %Oh formats.
19408 * time/tst-strptime.c (day_tests): Add more tests to parse different
19409 forms of month names including the new %Ob format specifier.
19410
95cb863a
RL
194112018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19412
19413 [BZ #10871]
19414 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19415 define them as the same as primary full month names explicitly.
19416 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19417 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19418 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19419 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19420 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19421 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19422 _NL_WALTMON_12): New enum constants.
19423 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19424 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19425 macros.
19426 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19427 walt_mon, and alt_mon_defined members.
19428 (time_output): Output alt_mon and walt_mon members.
19429 (time_read): Read them, initialize them as copies of mon and wmon
19430 respectively if they are missing, initialize alt_mon_defined.
19431 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19432 * locale/programs/locfile-kw.h: Regenerate.
19433 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19434 * localedata/tst-langinfo.c (map): Add tests for the new constants
19435 ALTMON_1 .. ALTMON_12.
19436 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19437 and pl_PL.UTF-8.
19438 * time/strftime_l.c (f_altmonth): New macro.
19439 (__strftime_internal): Handle %OB format.
19440 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19441 (__strptime_internal): Handle %OB format.
19442 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19443 of month names including the new %OB format specifier.
19444
4612268a
TMQMF
194452018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19446
19447 [BZ #22685]
19448 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19449 from ABORT_TRANSACTION.
19450 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19451 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19452 ABORT_TRANSACTION_IMPL): Likewise.
19453 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19454 Linux code, but remove the code that aborts transactions.
19455
64f63cb4
ST
194562018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19457
19458 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19459
32ac6e92
RL
194602018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19461
19462 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19463 in date: "2004-14-09" should be "2004-09-14".
19464 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19465 "2003-15-09" should be "2003-09-15".
19466
8e448310
AS
194672018-01-18 Arjun Shankar <arjun@redhat.com>
19468
19469 [BZ #22343]
71aa429b 19470 [BZ #22774]
4590634f 19471 CVE-2018-6485
71aa429b 19472 CVE-2018-6551
8e448310
AS
19473 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19474 after padding.
19475 (_int_memalign): check for integer overflow before calling
19476 _int_malloc.
19477 * malloc/tst-malloc-too-large.c: New test.
19478 * malloc/Makefile: Add tst-malloc-too-large.
19479
e234d7cb
RL
194802018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19481
19482 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19483 in date: "2017-24-07" should be "2017-07-24".
19484 * localedata/locales/mai_IN: Likewise.
19485 * localedata/locales/mai_NP: Likewise.
19486
48b66019
DL
194872018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19488
19489 * po/ru.po: Update translations.
19490
1eeddc58
JM
194912018-01-17 Joseph Myers <joseph@codesourcery.com>
19492
19493 [BZ #22719]
19494 * sysdeps/hppa/backtrace.c: New file.
19495
207a72e2
L
194962018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19497
19498 [BZ #22715]
19499 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19500 align La_x86_64_retval to VEC_SIZE.
19501
4942c4ea
JM
195022018-01-16 Joseph Myers <joseph@codesourcery.com>
19503
19504 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19505 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19506
10d200db
FW
195072018-01-16 Florian Weimer <fweimer@redhat.com>
19508
19509 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19510 Move tst-thread-exit-clobber ...
19511 [$(CXX)] (tests-unsupported): ... to here.
19512
953c49cc
SN
195132018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19514
19515 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19516 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19517 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19518 (_dl_aarch64_cap_flags): Update.
19519 (_DL_HWCAP_COUNT): Update.
19520
afce1991
SN
195212018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19522
19523 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19524 (_DL_HWCAP_LAST): Remove.
19525 (_DL_HWCAP_COUNT): Move to ...
19526 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19527 (_DL_HWCAP_COUNT): ... here.
19528
b725132d
FW
195292018-01-16 Florian Weimer <fweimer@redhat.com>
19530
19531 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19532 mode with GNU extensions.
19533
c9e613a7
AH
195342018-01-15 Alan Hayward <alan.hayward@arm.com>
19535
19536 * elf/elf.h (NT_ARM_SVE): Define.
19537
860b0240
FW
195382018-01-15 Florian Weimer <fweimer@redhat.com>
19539
19540 [BZ #22636]
19541 * nptl/tst-minstack-throw.cc: New file.
19542 * nptl/Makefile (tests): Add tst-minstack-throw.
19543 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19544 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19545
16d0f6ac
JM
195462018-01-15 Joseph Myers <joseph@codesourcery.com>
19547
19548 * scripts/build-many-glibcs.py (Context.checkout): Default
19549 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19550 version to 1.1.0.
19551
505d3910
CD
195522018-01-13 Carlos O'Donell <carlos@redhat.com>
19553
19554 [BZ #22707]
19555 * elf/elf.h (DF_1_STUB): Define.
19556 (DF_1_PIE): Define.
19557
af1e6be4
TMQMF
195582018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19559
19560 [BZ #22697]
19561 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19562 Do not add 0.5 to integer or out-of-range arguments.
19563
98d13ce0
DL
195642018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19565
19566 * po/bg.po: Update translations.
19567 * po/cs.po: Likewise.
19568 * po/de.po: Likewise.
19569 * po/ko.po: Likewise.
19570 * po/pl.po: Likewise.
19571 * po/sv.po: Likewise.
19572 * po/uk.po: Likewise.
19573 * po/vi.po: Likewise.
19574
3d1d7928
SN
195752018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19576
19577 * aarch64/start.S (_start): Use __wrap_main.
19578 (__wrap_main): New local symbol.
19579
52a713fd
DL
195802018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19581
19582 [BZ #22679]
19583 CVE-2018-1000001
19584 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19585 generic_getcwd if the path returned by getcwd syscall is not absolute.
19586 * io/tst-getcwd-abspath.c: New test.
19587 * io/Makefile (tests): Add tst-getcwd-abspath.
19588
249a5895
IK
195892018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19590
19591 * malloc/malloc.c (malloc_consolidate): Add size check.
19592
1a51e46e
FW
195932018-01-12 Florian Weimer <fweimer@redhat.com>
19594
19595 * support/write_message.c (write_message): Preserve errno.
19596 * support/check.c (print_failure): Likewise.
19597 * support/support_test_verify_impl.c (support_test_verify_impl):
19598 Likewise.
19599 * support/support_test_compare_failure.c
19600 (support_test_compare_failure): Likewise.
19601
9a08a366
FW
196022018-01-12 Florian Weimer <fweimer@redhat.com>
19603
19604 [BZ #22701]
19605 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19606 Prevent installation of libnsl.so.
19607 (libnsl-inhibit-o): Do not build (or install) static libraries.
19608
80647883 196092018-01-12 Egmont Koblinger <egmont@gmail.com>
f172187b
EK
19610
19611 [BZ #22657]
19612 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19613 before the day number which may produce a double space.
19614 (date_fmt): Likewise.
19615
c8924f1f
JM
196162018-01-12 Joseph Myers <joseph@codesourcery.com>
19617
19618 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19619 instead of fegetenv.
19620
da09e6fa
JM
196212018-01-11 Joseph Myers <joseph@codesourcery.com>
19622
19623 [BZ #22702]
19624 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19625 comment to say exceptions are discarded.
19626 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19627 __fegetenv.
19628 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19629 be enabled.
19630
08c6e952
FW
196312018-01-11 Florian Weimer <fweimer@redhat.com>
19632
19633 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19634 and error message.
19635
d8b77890
FW
196362018-01-11 Florian Weimer <fweimer@redhat.com>
19637
19638 [BZ #22636]
19639 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19640 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19641
b303185d
JM
196422018-01-10 Joseph Myers <joseph@codesourcery.com>
19643
19644 [BZ #22693]
19645 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19646 negative arguments in test for NaN or infinity argument.
19647
ee61d028
DL
196482018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19649
19650 * po/libc.pot: Regenerate.
19651
f993b875
FW
196522018-01-10 Florian Weimer <fweimer@redhat.com>
19653
19654 [BZ #22636]
19655 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19656 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19657
09085ede
ST
196582018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19659
19660 * hurd/hurd/fd.h: Include <fcntl.h>
19661 (__hurd_at_flags): New function.
19662 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19663 with call to __hurd_at_flags.
19664 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19665 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19666 __faccessat
19667 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19668 (__access_noerrno): Use __faccessat_common instead of access_common.
19669 (__access): Likewise.
19670 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19671 with a call to __faccessat.
19672 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19673 (__faccessat_common): ... this. Move implementation of __access into it when
19674 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19675 reauthenticate_cwdir_at helper to implement AT mechanism.
19676 (__faccessat_noerrno): New function, just calls __faccessat_common.
19677 (__faccessat): New function, just calls __faccessat_common.
19678 (faccessat): Define weak alias.
19679
12727488
JM
196802018-01-10 Joseph Myers <joseph@codesourcery.com>
19681
87faac55
JM
19682 [BZ #22691]
19683 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19684 (CFLAGS-s_fmaxmagl.c): New variable.
19685 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19686
12727488
JM
19687 [BZ #22690]
19688 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19689 long int for arguments of possibly overflowing addition or
19690 subtraction.
19691 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19692
e134ca17
JM
196932018-01-09 Joseph Myers <joseph@codesourcery.com>
19694
b2584ac2
JM
19695 [BZ #22688]
19696 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19697 (CFLAGS-e_remainderl.c): New variable.
19698
e134ca17
JM
19699 [BZ #22687]
19700 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19701 variable.
19702 (CFLAGS-s_cacoshl.c): Likewise.
19703 (CFLAGS-s_casinhl.c): Likewise.
19704 (CFLAGS-s_catanl.c): Likewise.
19705 (CFLAGS-s_catanhl.c): Likewise.
19706 (CFLAGS-s_cexpl.c): Likewise.
19707 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19708 (CFLAGS-s_csinhl.c): Likewise.
19709 (CFLAGS-s_clogl.c): Likewise.
19710 (CFLAGS-s_clog10l.c): Likewise.
19711 (CFLAGS-s_csinl.c): Likewise.
19712 (CFLAGS-s_csqrtl.c): Likewise.
19713
d31a4a48
ST
197142017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
197152017-01-09 Svante Signell <svante.signell@gmail.com>
311ba8dc
ST
19716
19717 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19718 (_hurd_exec_paths): New function.
19719 * hurd/hurd.h (_hurd_exec): Deprecate function.
19720 (_hurd_exec_paths): Declare function.
19721 * hurd/Versions: Export _hurd_exec_paths.
19722 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19723 (__execve): Use __getcwd to build absolute path, and use
19724 _hurd_exec_paths instead of _hurd_exec.
19725 * sysdeps/mach/hurd/spawni.c: Likewise.
19726 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19727 _hurd_exec.
19728
d7ff3f11
DL
197292018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19730
19731 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19732 test instead of failing in case of ENOENT returned by posix_openpt.
19733
401311cf
FW
197342018-01-08 Florian Weimer <fweimer@redhat.com>
19735
19736 resolv: Support binary labels in test framework.
19737 * support/resolv_test.c (struct to_be_freed): Remove.
19738 (struct compressed_name): New.
19739 (allocate_compressed_name, ascii_tolower)
19740 (compare_compressed_name): New functions.
19741 (struct resolv_response_builder): Update type of
19742 compression_offsets for use with tsearch. Rempve to_be_freed.
19743 (response_push_pointer_to_free): Remove function.
19744 (resolv_response_add_name): Rewrite using struct compressed_name
19745 and tsearch instead of hsearch_r.
19746 (response_builder_allocate): Remove initialization of
19747 compression_offsets.
19748 (response_builder_free): Update for removal of to_be_freed. Use
19749 tdestroy instead of hdestroy_r.
19750 * resolv/Makefile (tests): Add tst-resolv-binary.
19751 (tst-resolv-binary): Link with -lresolv -lpthread.
19752
2b3aa446
FW
197532018-01-08 Florian Weimer <fweimer@redhat.com>
19754
19755 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19756 time. Pass positive flag instead of negative flag to
19757 support_test_compare_failure.
19758 (support_test_compare_failure): Change negative parameter to
19759 positive.
19760 * support/support_test_compare_failure.c (report)
19761 (support_test_compare_failure): Likewise.
19762 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19763 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19764
630f4cc3
SN
197652018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19766
19767 [BZ #22637]
19768 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19769 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19770 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19771 stacksize.
19772 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19773
c70e4e9c
L
197742018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19775
19776 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19777 Add s_sincosf-sse2 and s_sincosf-fma.
19778 (CFLAGS-s_sincosf-fma.c): New.
19779 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19780 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19781 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19782 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19783 __sincosf is defined.
19784
579396ee
FW
197852018-01-08 Florian Weimer <fweimer@redhat.com>
19786
19787 * nptl/tst-thread-exit-clobber.cc: New file.
19788 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19789 C++11 mode.
19790 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19791 (tests): Add tst-thread-exit-clobber.
19792 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19793
dabd75b6
FW
197942018-01-08 Florian Weimer <fweimer@redhat.com>
19795
19796 * support/check.h (support_static_assert): Define.
19797 (TEST_COMPARE): Use it.
19798
c2e014cc
AJ
197992018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19800
19801 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19802 [!__RLIM_T_MATCHES_RLIM64_T]
19803 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19804 __getrlimit64. Add libc_hidden_weak.
19805
31a98837
PD
198062018-01-06 Palmer Dabbelt <palmer@sifive.com>
19807
19808 * elf/elf.h (R_RISCV_NONE): New define.
19809 (R_RISCV_32): Likewise.
19810 (R_RISCV_64): Likewise.
19811 (R_RISCV_RELATIVE): Likewise.
19812 (R_RISCV_COPY): Likewise.
19813 (R_RISCV_JUMP_SLOT): Likewise.
19814 (R_RISCV_TLS_DTPMOD32): Likewise.
19815 (R_RISCV_TLS_DTPMOD64): Likewise.
19816 (R_RISCV_TLS_DTPREL32): Likewise.
19817 (R_RISCV_TLS_DTPREL64): Likewise.
19818 (R_RISCV_TLS_TPREL32): Likewise.
19819 (R_RISCV_TLS_TPREL64): Likewise.
00505532
PD
19820 * Makerules (make-link-multidir): Make directories before linking into
19821 them.
150bbac1
PD
19822 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19823 define.
19824 (VDSO_HASH_LINUX_4_15): Likewise.
1598f3ad
PD
19825 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19826 in subdirectories of lib.
8e13c51b
PD
19827 * nptl/Makefile (/librt.so): Always depend on
19828 "$(shared-thread-library)".
31a98837 19829
fad7d57e
ST
198302018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19831
19832 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
4a5ce6e9
ST
19833 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19834 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19835 (___tls_get_addr).
19836 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
107a35a5
ST
19837 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19838 "-O2 -march=i686".
01c7e549 19839 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
f417d92c
ST
19840 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19841 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19842 * sysdeps/gnu/glob-lstat-compat.c: New file.
19843 * sysdeps/gnu/glob64-lstat-compat.c: New file.
200fc24b 19844 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
fad7d57e 19845
3a32b716
TMQMF
198462018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19847
19848 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19849 Reserve 16 chars to reloc_addr before calling _itoa_word.
19850
24731685
AJ
198512018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19852
19853 [BZ #22678]
19854 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19855 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19856
19be56d8
AJ
19857 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19858 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19859
a6d0afb5
AJ
19860 * resource/tst-getrlimit.c: Add copyright header.
19861
8e900969
AJ
198622018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19863 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19864
19865 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19866 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19867 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19868 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19869 instead.
19870 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19871 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19872 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19873 RLIM64_INFINITY): Fix values to match the kernel ones.
19874 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19875 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19876 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19877 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19878 getrlimit64@@GLIBC_2_27.
19879 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19880 and setrlimit64.
19881 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19882 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19883 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19884 setrlimit, getrlimit64 and setrlimit64.
19885
0d0bc784
AJ
198862018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19887
19888 [BZ #22648]
19889 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19890 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19891
ba374b6d
JM
198922018-01-04 Joseph Myers <joseph@codesourcery.com>
19893
19894 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19895 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19896 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19897
4854ddd8
AZ
198982018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19899
b0a4eca2
AZ
19900 [BZ #15479]
19901 [BZ #22666]
19902 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19903 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19904
4854ddd8
AZ
19905 [BZ #15479]
19906 [BZ #22665]
19907 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19908 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19909 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19910 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19911
8a5df95f
FW
199122018-01-04 Florian Weimer <fweimer@redhat.com>
19913
19914 [BZ #22667]
19915 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19916 Align the stack before calling exit.
19917 * stdlib/tst-makecontext-align.c: New file.
19918 * stdlib/Makefile (tests): Add tst-makecontext-align.
19919
82eef55f
FW
199202018-01-04 Florian Weimer <fweimer@redhat.com>
19921
19922 Add support for calling dlvsym from libc.so.
19923 * include/dlfcn.h (__libc_dlvsym): Declare.
19924 * elf/Makefile (tests-static-internal): Add
19925 tst-libc_dlvsym-static.
19926 (tests-internal): Add tst-libc_dlvsym.
19927 (modules-names): Add tst-libc_dlvsym-dso.
19928 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19929 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19930 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19931 object tst-libc_dlvsym-dso.so needs to be built before running
19932 these tests.
19933 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19934 * elf/Versions: Export __libc_dlvsym.
19935 * elf/dl-libc.c (struct do_dlvsym_args): New.
19936 (do_dlvsym, __libc_dlvsym): New functions.
19937 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19938 (_dl_open_hook2): New variable.
19939 (__libc_register_dl_open_hook): Set it.
19940 * elf/tst-libc_dlvsym-dso.c: New file.
19941 * elf/tst-libc_dlvsym-static.c: Likewise.
19942 * elf/tst-libc_dlvsym.c: Likewise.
19943 * elf/tst-libc_dlvsym.h: Likewise.
19944
1714fc06
ST
199452018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19946
19947 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19948 include <sys/mount.h>.
19949
3c7d0312
WD
199502018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19951
19952 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19953 Add __NO_MATH_ERRNO__ check.
19954
7eff0954
JM
199552018-01-02 Joseph Myers <joseph@codesourcery.com>
19956
19957 * sysdeps/mips/mips32/libm-test-ulps: Update.
19958 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19959
77f49956
FW
199602018-01-02 Florian Weimer <fweimer@redhat.com>
19961
19962 * misc/tst-pselect.c: Add copyright header.
19963
363e4519 199642018-01-02 Aurelien Jarno <aurelien@aurel32.net>
d35989be
AJ
19965
19966 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19967 comment.
19968 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19969 comment.
19970 (settrlimit): Rename into setrlimit.
19971 (__sttrlimit): Rename into __setrlimit.
19972
3e4226ff
AJ
19973 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19974 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19975 never defined in that case.
19976
b9256ab6
JM
199772018-01-02 Joseph Myers <joseph@codesourcery.com>
19978
28fd6a44
JM
19979 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19980
a4933a15
JM
19981 * sysdeps/arm/libm-test-ulps: Update.
19982
b9256ab6
JM
19983 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19984 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19985
4cf82d23
RS
199862018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19987
19988 * NEWS: Add cosf and sincosf to list of optimized functions.
19989
6a9dd7a7
AJ
199902018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19991
19992 [BZ #22660]
19993 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19994 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19995 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19996 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19997
dbba87d5
DL
199982018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19999
b05cb613
DL
20000 [BZ #22433]
20001 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20002
dbba87d5
DL
20003 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20004 making a copy of it.
20005
688903eb
JM
200062018-01-01 Joseph Myers <joseph@codesourcery.com>
20007
66ac23de
JM
20008 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20009 trailing whitespace removed.
20010 * scripts/config.guess: Update to version 2018-01-01.
20011 * scripts/config.sub: Update to version 2018-01-01.
20012 * scripts/move-if-change: Update from gnulib.
20013
09533208
JM
20014 * NEWS: Update copyright dates.
20015 * catgets/gencat.c (print_version): Likewise.
20016 * csu/version.c (banner): Likewise.
20017 * debug/catchsegv.sh: Likewise.
20018 * debug/pcprofiledump.c (print_version): Likewise.
20019 * debug/xtrace.sh (do_version): Likewise.
20020 * elf/ldconfig.c (print_version): Likewise.
20021 * elf/ldd.bash.in: Likewise.
20022 * elf/pldd.c (print_version): Likewise.
20023 * elf/sotruss.sh: Likewise.
20024 * elf/sprof.c (print_version): Likewise.
20025 * iconv/iconv_prog.c (print_version): Likewise.
20026 * iconv/iconvconfig.c (print_version): Likewise.
20027 * locale/programs/locale.c (print_version): Likewise.
20028 * locale/programs/localedef.c (print_version): Likewise.
20029 * login/programs/pt_chown.c (print_version): Likewise.
20030 * malloc/memusage.sh (do_version): Likewise.
20031 * malloc/memusagestat.c (print_version): Likewise.
20032 * malloc/mtrace.pl: Likewise.
20033 * manual/libc.texinfo: Likewise.
20034 * nptl/version.c (banner): Likewise.
20035 * nscd/nscd.c (print_version): Likewise.
20036 * nss/getent.c (print_version): Likewise.
20037 * nss/makedb.c (print_version): Likewise.
20038 * posix/getconf.c (main): Likewise.
20039 * scripts/test-installation.pl: Likewise.
20040 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20041
688903eb
JM
20042 * All files with FSF copyright notices: Update copyright dates
20043 using scripts/update-copyrights.
20044 * locale/programs/charmap-kw.h: Regenerated.
20045 * locale/programs/locfile-kw.h: Likewise.
20046
4f820792
ZW
200472017-12-31 Zack Weinberg <zackw@panix.com>
20048
20049 * libio/bits/libio-ldbl.h: Correct check for improper
20050 inclusion. Add own multiple include guard.
20051
3e3c904d
AJ
200522017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20053 Dmitry V. Levin <ldv@altlinux.org>
20054
20055 [BZ #22625]
31f96325 20056 CVE-2017-16997
3e3c904d
AJ
20057 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20058 string token expansion. Check for NULL pointer or empty string possibly
20059 returned by expand_dynamic_string_token.
20060 (decompose_rpath): Check for empty path after dynamic string
20061 token expansion.
20062
7e21972b
DL
200632017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20064
c48831d0
DL
20065 [BZ #22433]
20066 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20067
ac583f50
DL
20068 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20069 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20070 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20071 and PTRACE_SYSCALL.
20072 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20073 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20074 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20075 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20076 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20077 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20078
7e21972b
DL
20079 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20080 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20081 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20082 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20083 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20084 bits/ptrace-shared.h.
20085 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20086 <bits/ptrace-shared.h>.
20087 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20088 __ptrace_peeksiginfo_flags, ptrace): Remove.
20089 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20090 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20091 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20092 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20093 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20094
72f29e3a
AJ
200952017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20096
20097 [BZ #17804]
20098 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20099 end of the loop. Improve comments.
20100
54e4efc2
AJ
201012017-12-29 Zack Weinberg <zackw@panix.com>
20102
20103 [BZ #22615]
20104 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20105 might be set on success.
20106
f8aa69be
AJ
201072017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20108
20109 [BZ #22611]
20110 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20111 is unchanged on success.
20112
97f13188
DL
201132017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20114
2bd86632
DL
20115 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20116 updated.
20117 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20118 expand_dynamic_string_token): Likewise.
20119 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20120 is_path argument.
20121
1c36e1e6
DL
20122 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20123 contains ':'.
20124
97f13188
DL
20125 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20126 is set and name contains ':', and all code depending on these checks.
20127
48a8f832
ZW
201282017-12-24 Zack Weinberg <zackw@panix.com>
20129
20130 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20131 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20132 respectively.
20133 * libio/libio.h: Rename the original version of this file to
20134 libio/bits/libio.h. Error out if not included by stdio.h or the
20135 stub libio.h.
20136 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20137 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20138 if not included by bits/libio.h or the stub _G_config.h.
20139 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20140 sysdeps/unix/sysv/linux/bits. Error out if not included by
20141 bits/libio.h or the stub _G_config.h.
20142 * libio/stdio.h: Include bits/libio.h, not libio.h.
20143 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20144 well as libio.h and _G_config.h.
20145
20146 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20147 * libio/strfile.h, stdio-common/vfscanf.c
20148 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20149 Include stdio.h, not _G_config.h nor libio.h.
20150 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20151 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20152
20153 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20154
a47ad79a
DL
201552017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20156
20157 [BZ #22347]
20158 * stdlib/getrandom.c (getrandom): Fix comment.
20159 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20160
363e4519 201612017-12-23 Aurelien Jarno <aurelien@aurel32.net>
e65a5644 20162
f5c558f3
AJ
20163 [BZ #21161]
20164 * manual/arith.texi (strtoul): Fix a typo.
20165
e65a5644
AJ
20166 [BZ #22596]
20167 * manual/arith.texi (finite): Fix the description of the return
20168 value.
20169
ed8ae46b
EB
201702017-12-22 Eric Blake <ebb9@byu.net>
20171
20172 Avoid gcc warnings on cygwin
20173 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20174 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20175 Avoid unused variable.
20176
bad7a0c8
FW
201772017-12-22 Florian Weimer <fweimer@redhat.com>
20178
20179 * io/Makefile (routines): Add copy_file_range.
20180 (tests): Add tst-copy_file_range.
20181 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20182 * io/Versions (GLIBC_2.27): Export copy_file_range.
20183 * io/copy_file_range-compat.c: New file.
20184 * io/copy_file_range.c: Likewise.
20185 * io/tst-copy_file_range-compat.c: Likewise.
20186 * io/tst-copy_file_range.c: Likewise.
20187 * manual/llio.texi (Copying File Data): New section.
20188 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20189 * support/Makefile (libsupport-routines): Add support-xfstat,
20190 xftruncate, xlseek.
20191 * support/support-xfstat.c: New file.
20192 * support/xftruncate.c: Likewise.
20193 * support/xlseek.c: Likewise.
20194 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20195 * sysdeps/unix/sysv/linux/**.abilist: Update.
20196 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20197
6cb86fd2
SN
201982017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20199
20200 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20201 disable-multi-arch variant to aarch64-linux-gnu.
20202
41d11b15
JM
202032017-12-20 Joseph Myers <joseph@codesourcery.com>
20204
20205 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20206 trailing whitespace removed.
20207 * scripts/config.guess: Update to version 2017-12-17.
20208 * scripts/config.sub: Update to version 2017-11-23.
20209 * scripts/install-sh: Update to version 2017-09-23.17.
20210 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20211
4735850f
AZ
202122017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20213
8d2d239c
AZ
20214 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20215 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20216 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20217 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20218 * sysdeps/tile/crtn.S: Likewise.
20219 * sysdeps/tile/dl-start.S (_start): Likewise.
20220 * sysdeps/tile/dl-trampoline.S: Likewise.
20221 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20222 * sysdeps/tile/start.S (_start): Likewise.
20223 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20224 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20225 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20226 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20227 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20228 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20229 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20230
24d1d8ec
AZ
20231 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20232 comment.
20233 * sysdeps/tile/preconfigure: Remove tilegx folder.
20234 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20235 * sysdeps/tile/Implies: ... here.
20236 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20237 * sysdeps/tile/Makefile: ... here.
20238 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20239 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20240 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20241 * sysdeps/tile/bits/wordsize.h: ... here.
20242 * sysdeps/tile/tilegx/*: Move to ...
20243 * sysdeps/tile/*: ... here.
20244 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20245 * sysdeps/tile/tilegx32/Implies: ... here.
20246 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20247 * sysdeps/tile/tilegx64/Implies: ... here.
20248 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20249 to ...
20250 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20251 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20252 * sysdeps/unix/sysv/linux/tile/*: ... here.
20253 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20254 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20255 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20256 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20257
ed95f611
AZ
20258 * README: Remove tilepro-*-linux-gnu from supported architecture.
20259 * scripts/build-many-glibcs.py: Likewise.
20260 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20261 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20262 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20263 elf_machine_matches_host, elf_machine_dynamic,
20264 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20265 howto, elf_machine_rela): Likewise.
20266 * sysdeps/tile/dl-start.S (_start): Likewise.
20267 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20268 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20269 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20270 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20271 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20272 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20273 Likewise.
20274 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20275 * sysdeps/tile/preconfigure: Likewise.
20276 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20277 POINTER_CHK_GUARD): Likewise.
20278 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20279 * sysdeps/tile/start.S (_start): Likewise.
20280 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20281 Likewise.
20282 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20283 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20284 CMOVNEZ): Remove.
20285 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20286 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20287 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20288 Likewise.
20289 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20290 * sysdeps/tile/tilepro/Implies: Remove file.
20291 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20292 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20293 * sysdeps/tile/tilepro/memchr.c: Likewise.
20294 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20295 * sysdeps/tile/tilepro/memset.c: Likewise.
20296 * sysdeps/tile/tilepro/memusage.h: Likewise.
20297 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20298 * sysdeps/tile/tilepro/strchr.c: Likewise.
20299 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20300 * sysdeps/tile/tilepro/strlen.c: Likewise.
20301 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20302 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20303 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20304 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20305 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20306 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20307 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20308 Likewise.
20309 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20310 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20311 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20312 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20313 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20314 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20315 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20316 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20317 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20318 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20319 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20320 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20321 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20322 tilepro mention in comment.
20323
4735850f
AZ
20324 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20325 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20326 * nptl/pthread_join_common.c: New file: common function used on
20327 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20328 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20329 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20330 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20331 (cleanup): Move definition to pthread_join_common.c.
20332 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20333 Remove superflous checks.
20334 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20335 Likewise.
20336
8bfb461e
SN
203372017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20338
20339 * sysdeps/aarch64/libm-test-ulps: Update.
20340
4e001969
AZ
203412017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20342
20343 * sysdeps/aarch64/memset.S (MEMSET): Define.
20344
8a26ad2a
FW
203452017-12-20 Florian Weimer <fweimer@redhat.com>
20346
20347 [BZ #22635]
20348 nptl: Provide full implementation of pthread_self in libc.so.
20349 * nptl/Makefile (routines): Add pthread_self.
20350 (libpthread-routines): Replace pthread_self with
20351 compat-pthread_self.
20352 * nptl/forward.c (pthread_self): Remove.
20353 * nptl/nptl-init.c (pthread_functions): Do not initialize
20354 ptr_pthread_self.
20355 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20356 * nptl/compat-pthread_self.c: New file.
20357 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20358 Remove ptr_pthread_self.
20359
5069ff32
AR
203602017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20361
20362 * posix/regcomp.c: Fix spelling in comments.
20363 * posix/regex.h: Likewise.
20364 * posix/regex_internal.c: Likewise.
20365 * posix/regexec.c: Likewise.
20366
c85e54ac
GG
203672017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20368
20369 [BZ #22377]
20370 * math/Makefile [C++] (tests): Add test for iseqsig.
20371 * math/math.h [C++] (iseqsig): New implementation, which does
20372 not rely on __MATH_TG/__builtin_types_compatible_p.
20373 * math/test-math-iseqsig.cc: New file.
20374 * sysdeps/powerpc/powerpc64le/Makefile
20375 (CFLAGS-test-math-iseqsig.cc): New variable.
20376
10e93d96
DL
203772017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20378
20379 * elf/dl-load.c (is_trusted_path): Remove.
20380 (fillin_rpath): Remove check_trusted argument and its use,
20381 all callers changed.
20382
ce16eb52
L
203832017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20384
20385 [BZ #22630]
20386 * Makeconfig (link-pie-before-libc): Replace -pie with
20387 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20388 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20389 (tst-dlopen-aout-no-pie): New.
20390 (LDFLAGS-tst-prelink): Removed.
20391 (tst-prelink-no-pie): New.
20392 (LDFLAGS-tst-main1): Removed.
20393 (tst-main1-no-pie): New.
20394 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20395 (tst-gmon-no-pie): New.
20396
126adc89
L
203972017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20398
20399 * manual/install.texi: Document that --enable-static-pie
20400 implies PIE.
20401 * INSTALL: Regenerated.
20402
648615e1
BE
204032017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20404
20405 [BZ #21309]
20406 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20407 unsigned.
20408
f1e00502
JM
204092017-12-19 Joseph Myers <joseph@codesourcery.com>
20410
20411 Revert:
20412
20413 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20414
20415 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20416
20417 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20418
20419 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20420 <errno.h>. Include "eexp.tbl".
20421 (half): New constant.
20422 (one): Likewise.
20423 (__ieee754_exp): Rewrite.
20424 (__slowexp): Remove prototype.
20425 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20426 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20427 * sysdeps/i386/fpu/slowexp.c: Likewise.
20428 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20429 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20430 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20431 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20432 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20433 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20434 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20435 comment.
20436 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20437 (CPPFLAGS-slowexp.c): Remove variable.
20438 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20439 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20440 (CFLAGS-slowexp-fma.c): Remove variable.
20441 (CFLAGS-slowexp-fma4.c): Likewise.
20442 (CFLAGS-slowexp-avx.c): Likewise.
20443 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20444 define as macro.
20445 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20446 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20447 * math/Makefile (type-double-routines): Remove slowexp.
20448 * manual/probes.texi (slowexp_p6): Remove.
20449 (slowexp_p32): Likewise.
20450
d711a00f
AZ
204512017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20452
e184ac3a
AZ
20453 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20454 arithmetic.
20455
d711a00f
AZ
20456 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20457
6f58c10d
JM
204582017-12-19 Joseph Myers <joseph@codesourcery.com>
20459
20460 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20461
6fd0a3c6
PM
204622017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20463
20464 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20465 <errno.h>. Include "eexp.tbl".
20466 (half): New constant.
20467 (one): Likewise.
20468 (__ieee754_exp): Rewrite.
20469 (__slowexp): Remove prototype.
20470 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20471 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20472 * sysdeps/i386/fpu/slowexp.c: Likewise.
20473 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20474 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20475 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20476 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20477 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20478 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20479 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20480 comment.
20481 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20482 (CPPFLAGS-slowexp.c): Remove variable.
20483 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20484 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20485 (CFLAGS-slowexp-fma.c): Remove variable.
20486 (CFLAGS-slowexp-fma4.c): Likewise.
20487 (CFLAGS-slowexp-avx.c): Likewise.
20488 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20489 define as macro.
20490 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20491 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20492 * math/Makefile (type-double-routines): Remove slowexp.
20493 * manual/probes.texi (slowexp_p6): Remove.
20494 (slowexp_p32): Likewise.
20495
3bb1ef58 204962017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6b5c8607 20497 James Clarke <jrtc27@jrtc27.com>
3bb1ef58
AZ
20498
20499 [BZ #22603]
20500 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20501 addition.
20502
554e3d51
AZ
205032017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20504
20505 [BZ #22605]
20506 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20507 code.
20508
cba595c3
L
205092017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20510
20511 [BZ #22563]
20512 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20513 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20514 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20515 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20516 to feature_1.
20517
f81ddabf
L
205182017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20519
20520 [BZ #22563]
20521 * bits/types/__cancel_jmp_buf_tag.h: New file.
20522 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20523 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20524 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20525 * nptl/Makefile (headers): Add
20526 bits/types/__cancel_jmp_buf_tag.h.
20527 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20528 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20529 * sysdeps/nptl/pthread.h: Include
20530 <bits/types/__cancel_jmp_buf_tag.h>.
20531 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20532 __cancel_jmp_buf.
20533 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20534
1a49fc59
L
205352017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20536
20537 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20538 --enable-static-pie variants to x86_64, x32 and i686.
20539
8e52f573
JM
205402017-12-19 Joseph Myers <joseph@codesourcery.com>
20541
66425185
JM
20542 [BZ #22631]
20543 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20544 argument for attrubutes. All callers changed.
20545 (__inline_mathop1): Likewise. All callers changed.
20546 (__inline_mathop): Likewise. All callers changed.
20547 [__USE_MISC] (scalbn): Use __inline_forward instead of
20548 __inline_forward_c.
20549 [__USE_ISOC99] (scalbln): Likewise.
20550 [__USE_ISOC99] (nearbyint): Likewise.
20551 [__USE_ISOC99] (lrint): Likewise.
20552 [__USE_MISC] (scalbnf): Likewise.
20553 [__USE_ISOC99] (scalblnf): Likewise.
20554 [__USE_ISOC99] (nearbyintf): Likewise.
20555 [__USE_ISOC99] (lrintf): Likewise.
20556 [__USE_MISC] (scalbnl): Likewise.
20557 [__USE_ISOC99] (scalblnl): Likewise.
20558 [__USE_ISOC99] (nearbyintl): Likewise.
20559 [__USE_ISOC99] (lrintl): Likewise.
20560 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20561 __inline_mathop and __m81_defun changed.
20562
8e52f573
JM
20563 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20564 CPU or FPU for ARM hard-float configurations.
20565
1421f39b
JM
205662017-12-18 Joseph Myers <joseph@codesourcery.com>
20567
40c4162d
JM
20568 * nptl/tst-attr3.c: Include <libc-diag.h>.
20569 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20570
5983df32
JM
20571 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20572
1421f39b
JM
20573 * string/tester.c (test_strncat): Also disable -Warray-bounds
20574 warnings for two tests.
20575
00c714df
L
205762017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20577
20578 [BZ #22614]
20579 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20580 $(cc-pie-default) == yes.
20581 * config.make.in (cc-pie-default): New.
20582 * configure.ac (libc_cv_pie_default): Renamed to ...
20583 (libc_cv_cc_pie_default): This.
20584 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20585 * configure: Regenerated.
20586
8e1472d2
FW
205872017-12-18 Florian Weimer <fweimer@redhat.com>
20588
20589 [BZ #20204]
20590 ld.so: Harden dl-libc/libdl hooks.
20591 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20592 (rtld_active): New function.
20593 * dlfcn/dladdr.c (__dladdr): Call it.
20594 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20595 * dlfcn/dlclose.c (__dlcose): Likewise.
20596 * dlfcn/dlerror.c (__dlerror): Likewise.
20597 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20598 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20599 * dlfcn/dlopen.c (__dlopen): Likewise.
20600 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20601 * dlfcn/dlsym.c (__dlsym): Likewise.
20602 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20603 * libio/vtables.c (_IO_vtable_check): Likewise.
20604 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20605 (__libc_dlclose): Likewise.
20606 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20607 assignment.
20608
49b036bc
JM
206092017-12-18 Joseph Myers <joseph@codesourcery.com>
20610
20611 [BZ #22446]
20612 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20613 buffers for readlink input and output.
20614
368b6c8d
ST
206152017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20616
c85c564d
ST
20617 [BZ #22624]
20618 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20619 inhibit_stack_protector.
20620
368b6c8d
ST
20621 [BZ #22624]
20622 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20623 inhibit_stack_protector.
20624
bb195224
DL
206252017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20626
20627 [BZ #22627]
20628 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20629 code and invocation.
20630
14d886ed
SN
206312017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20632
20633 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20634
7d38eb38
AJ
206352017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20636
20637 [BZ #22505]
20638 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20639
2e77deef
RS
206402017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20641
20642 * sysdeps/s390/fpu/libm-test-ulps: Update.
20643
0b9bef6d
RS
206442017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20645
20646 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20647
984ae996
RS
206482017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20649
20650 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20651 constants to s_sincosf.h file.
20652 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20653 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20654 implementation.
20655 * sysdeps/ieee754/flt-32/s_sincosf.h:
20656 New file.
20657
363e4519 206582017-12-12 Carlos O'Donell <carlos@redhat.com>
93930ea9
CD
20659
20660 [BZ #14681]
20661 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20662 before mtrace.
20663
9d7a3741
L
206642017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20665
20666 [BZ #19574]
20667 * INSTALL: Regenerated.
20668 * Makeconfig (real-static-start-installed-name): New.
20669 (pic-default): Updated for --enable-static-pie.
20670 (pie-default): New for --enable-static-pie.
20671 (default-pie-ldflag): Likewise.
20672 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20673 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20674 Replace $(static-start-installed-name) with
20675 $(real-static-start-installed-name).
20676 (+prectorT): Updated for --enable-static-pie.
20677 (+postctorT): Likewise.
20678 (CFLAGS-.o): Add $(pie-default).
20679 (CFLAGS-.op): Likewise.
20680 * NEWS: Mention --enable-static-pie.
20681 * config.h.in (ENABLE_STATIC_PIE): New.
20682 * configure.ac (--enable-static-pie): New configure option.
20683 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20684 (have-static-pie): Likewise.
20685 Enable static PIE if linker supports --no-dynamic-linker.
20686 (ENABLE_STATIC_PIE): New AC_DEFINE.
20687 (enable-static-pie): New LIBC_CONFIG_VAR.
20688 * configure: Regenerated.
20689 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20690 gr$(start-installed-name) for --enable-static-pie.
20691 (extra-objs): Likewise.
20692 (install-lib): Likewise.
20693 (extra-objs): Add static-reloc.o and static-reloc.os
20694 ($(objpfx)$(start-installed-name)): Also depend on
20695 $(objpfx)static-reloc.o.
20696 ($(objpfx)r$(start-installed-name)): New.
20697 ($(objpfx)g$(start-installed-name)): Also depend on
20698 $(objpfx)static-reloc.os.
20699 ($(objpfx)gr$(start-installed-name)): New.
20700 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20701 in libc.a.
20702 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20703 initimage.
20704 * csu/static-reloc.c: New file.
20705 * elf/Makefile (routines): Add dl-reloc-static-pie.
20706 (elide-routines.os): Likewise.
20707 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20708 (tst-tls1-static-non-pie-no-pie): New.
20709 * elf/dl-reloc-static-pie.c: New file.
20710 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20711 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20712 STATIC_PIE_BOOTSTRAP.
20713 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20714 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20715 (tests-static): Likewise.
20716 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20717 (tst-gmon-static-no-pie): New.
20718 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20719 (CRT-tst-gmon-static-pie): Likewise.
20720 (tst-gmon-static-pie-ENV): Likewise.
20721 (tests-special): Likewise.
20722 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20723 (clean-tst-gmon-static-pie-data): Likewise.
20724 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20725 * gmon/tst-gmon-static-pie.c: New file.
20726 * manual/install.texi: Document --enable-static-pie.
20727 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20728 (_dl_get_dl_main_map): Likewise.
20729 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20730 * sysdeps/x86_64/configure.ac: Likewise.
20731 * sysdeps/i386/configure: Regenerated.
20732 * sysdeps/x86_64/configure: Likewise.
20733 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20734 (ASFLAGS-.op): Likewise.
20735
95511aab
JM
207362017-12-15 Joseph Myers <joseph@codesourcery.com>
20737
20738 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20739 * posix/tst-mmap-offset.c (fname): Use /tmp.
20740 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20741
a7e3edf4
SE
207422017-12-15 Steve Ellcey <sellcey@cavium.com>
20743
20744 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20745
d232f2e1
TS
207462017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20747
20748 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20749 errno.
20750
174edbde
JM
207512017-12-15 Joseph Myers <joseph@codesourcery.com>
20752
5170fa49
JM
20753 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20754 --with-float=hard for arm-linux-gnueabihf configurations.
20755
f2da2fd8
JM
20756 [BZ #14121]
20757 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20758 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20759 ($(mo-installed)): Use $(objpfx)%.mo.
20760 (realclean): Remove rule.
20761
0c4fe28d
JM
20762 * po/Makefile (linguas): Remove rule and dependencies.
20763 (linguas.mo): Likewise.
20764 (.PHONY): Do not depend on linguas and linguas.mo.
20765 (podir): Remove variable.
20766 (pofiles): Likewise.
20767 [$(pofiles)] (%.po): Remove rule.
20768
174edbde
JM
20769 * sysdeps/sparc/sparc32/Makefile
20770 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20771 start-of-line whitespace in argument of echo.
20772 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20773 with whitespace. Generate __wrap_.udiv alias.
20774 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20775 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20776 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20777 * sysdeps/sparc/sparc32/urem.S: Likewise.
20778
1e36806f
RS
207792017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20780
20781 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20782 for aligned inputs.
20783
aa6932aa
SP
207842017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20785
5f1603c3
SP
20786 * benchtests/bench-strcmp.c: Print output in JSON format.
20787
aa6932aa
SP
20788 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20789
3ff3dfa5
FW
207902017-12-14 Florian Weimer <fweimer@redhat.com>
20791
20792 [BZ #22607]
20793 CVE-2017-1000409
20794 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20795 the expanded path string.
20796
8a0b17e4
FW
207972017-12-14 Florian Weimer <fweimer@redhat.com>
20798
20799 [BZ #22606]
20800 CVE-2017-1000408
20801 * elf/dl-load.c (system_dirs): Update comment.
20802 (nsystem_dirs_len): Use array_length.
20803 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20804
f58bd7f0
FW
208052017-12-14 Florian Weimer <fweimer@redhat.com>
20806
20807 Simplify compiling most of support/ outside of glibc.
20808 * support/check_addrinfo.c: Include <string.h>.
20809 * support/check_dns_packet.c: Likewise.
20810 * support/check_hostent.c: Likewise.
20811 * support/support_can_chroot.c: Include <support/xunistd.h>.
20812 * support/support_format_addrinfo.c: Include <stdlib.h>
20813 * support/support_format_dns_packet.c: Include <stdbool.h>.
20814 * support/support_format_hostent.c: Include <stdlib.h>.
20815 * support/support_format_netent.c: Likewise.
20816 * support/support_write_string.c: Include <support/xunistd.h>.
20817 * support/xdlfcn.c: Include <stddef.h>.
20818
4ca945e9
L
208192017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20820
20821 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20822
1b6e07f8
PM
208232017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20824 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20825
e6a1c5dc
PM
20826 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20827 (sysdeps_routines): Add memset-niagara7.
20828 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20829 Likewise.
20830 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20831 file.
20832 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20833 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20834 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20835 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20836 Add niagara7 option.
20837 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20838 memset.
20839
1b6e07f8
PM
20840 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20841 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20842 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20843 Likewise.
20844 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20845 New file.
20846 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20847 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20848 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20849 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20850 and __memmove_niagara7.
20851 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20852 Add niagara7 option.
20853 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20854 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20855 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20856 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20857 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20858
bfb7bf22
JM
208592017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20860
767a26d6
JM
20861 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20862 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20863 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20864 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20865
bfb7bf22
JM
20866 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20867 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20868 _dl_sparc_cap_flags array.
20869 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20870
2bce01eb
SP
208712017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20872
20873 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20874 time whenever possible.
20875
363e4519 208762017-12-12 Carlos O'Donell <carlos@redhat.com>
243b6333
CD
20877
20878 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20879 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20880
6f7c0092
JM
208812017-12-12 Joseph Myers <joseph@codesourcery.com>
20882
20883 * soft-fp/fmadf4.c: Move to ....
20884 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20885 * soft-fp/fmasf4.c: Move to ....
20886 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20887 * soft-fp/fmatf4.c: Move to ....
20888 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20889 * sysdeps/ieee754/soft-fp/Makefile: New file.
20890 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20891 * sysdeps/arm/preconfigure: Regenerated.
20892 * sysdeps/arm/nofpu/Implies: New file.
20893 * sysdeps/arm/s_fma.c: Remove file.
20894 * sysdeps/arm/s_fmaf.c: Likewise.
20895 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20896 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20897 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20898 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20899 * sysdeps/microblaze/s_fma.c: Remove file.
20900 * sysdeps/microblaze/s_fmaf.c: Likewise.
20901 * sysdeps/mips/mips32/nofpu/Implies: New file.
20902 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20903 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20904 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20905 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20906 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20907 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20908 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20909 implementation.
20910 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20911 * sysdeps/nios2/s_fma.c: Remove file.
20912 * sysdeps/nios2/s_fmaf.c: Likewise.
20913 * sysdeps/sh/nofpu/Implies: New file.
20914 * sysdeps/sh/s_fma.c: Remove file.
20915 * sysdeps/sh/s_fmaf.c: Likewise.
20916 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20917 * sysdeps/tile/s_fma.c: Remove file.
20918 * sysdeps/tile/s_fmaf.c: Likewise.
20919
ac817e08
L
209202017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20921
20922 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20923 Add s_cosf-sse2 and s_cosf-fma.
20924 (CFLAGS-s_cosf-fma.c): New.
20925 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20926 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20927 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20928
eb428576
SE
209292017-12-12 Steve Ellcey <sellcey@cavium.com>
20930
20931 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20932
c80acdc3
AZ
209332017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20934
cc683f7e
AZ
20935 * libio/Makefile (tests): Add tst-bz22415.
20936 (tst-bz22415-ENV): New rule.
20937 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20938 (tests-special): Add tst-bz22415-mem.out.
20939 ($(objpfx)tst-bz22415-mem.out): New rule.
20940 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20941 in case of a successful seek operation.
20942 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20943 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20944 buffer is required.
20945 * libio/tst-bz22415.c: New test.
20946
c80acdc3
AZ
20947 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20948
363e4519 209492017-12-12 James Clarke <jrtc27@jrtc27.com>
89bd8016
JC
20950
20951 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20952 __IPC_64 to 0 to avoid IPC_64 being set.
20953
4e0dca54
SN
209542017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20955
20956 [BZ #22593]
20957 * math/bits/mathcalls.h (nextafter): Remove const.
20958 (nexttoward): Likewise.
20959
8df5d347
JM
209602017-12-12 Joseph Myers <joseph@codesourcery.com>
20961
20962 * configure.ac (--with-fp): Remove configure option.
20963 (with_fp_cond): New variable.
20964 (libc_cv_with_fp): New configure test. Use this variable instead
20965 of with_fp.
20966 * configure: Regenerated.
20967 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20968 * manual/install.texi (Configuring and compiling): Remove
20969 --without-fp.
20970 * INSTALL: Regenerated.
20971 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20972 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20973 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20974 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20975 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20976 use --without-fp to configure glibc.
20977
0cee1257
RJ
209782017-12-12 Rical Jasan <ricaljasan@pacific.net>
20979
20980 * manual/locale.texi (nl_langinfo): Fix a typo.
20981
363e4519 209822017-12-12 Aurelien Jarno <aurelien@aurel32.net>
f54ad2f9
AJ
20983
20984 [BZ #22588]
20985 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20986
36975e8e
L
209872017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20988
20989 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20990 (CFLAGS-argp-parse.c): Likewise.
20991 (CFLAGS-argp-fmtstream.c): Likewise.
20992 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20993 (CPPFLAGS-sha512-crypt.c): Likewise.
20994 (CPPFLAGS-md5-crypt.c): Likewise.
20995 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20996 (CFLAGS-stack_chk_fail_local.c): Likewise.
20997 (CFLAGS-backtrace.c): Likewise.
20998 (CFLAGS-sprintf_chk.c): Likewise.
20999 (CFLAGS-snprintf_chk.c): Likewise.
21000 (CFLAGS-vsprintf_chk.c): Likewise.
21001 (CFLAGS-vsnprintf_chk.c): Likewise.
21002 (CFLAGS-asprintf_chk.c): Likewise.
21003 (CFLAGS-vasprintf_chk.c): Likewise.
21004 (CFLAGS-obprintf_chk.c): Likewise.
21005 (CFLAGS-dprintf_chk.c): Likewise.
21006 (CFLAGS-vdprintf_chk.c): Likewise.
21007 (CFLAGS-printf_chk.c): Likewise.
21008 (CFLAGS-fprintf_chk.c): Likewise.
21009 (CFLAGS-vprintf_chk.c): Likewise.
21010 (CFLAGS-vfprintf_chk.c): Likewise.
21011 (CFLAGS-gets_chk.c): Likewise.
21012 (CFLAGS-fgets_chk.c): Likewise.
21013 (CFLAGS-fgets_u_chk.c): Likewise.
21014 (CFLAGS-fread_chk.c): Likewise.
21015 (CFLAGS-fread_u_chk.c): Likewise.
21016 (CFLAGS-swprintf_chk.c): Likewise.
21017 (CFLAGS-vswprintf_chk.c): Likewise.
21018 (CFLAGS-wprintf_chk.c): Likewise.
21019 (CFLAGS-fwprintf_chk.c): Likewise.
21020 (CFLAGS-vwprintf_chk.c): Likewise.
21021 (CFLAGS-vfwprintf_chk.c): Likewise.
21022 (CFLAGS-fgetws_chk.c): Likewise.
21023 (CFLAGS-fgetws_u_chk.c): Likewise.
21024 (CFLAGS-read_chk.c): Likewise.
21025 (CFLAGS-pread_chk.c): Likewise.
21026 (CFLAGS-pread64_chk.c): Likewise.
21027 (CFLAGS-recv_chk.c): Likewise.
21028 (CFLAGS-recvfrom_chk.c): Likewise.
21029 (CFLAGS-tst-longjmp_chk.c): Likewise.
21030 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21031 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21032 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21033 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21034 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21035 (CFLAGS-tst-chk1.c): Likewise.
21036 (CFLAGS-tst-chk2.c): Likewise.
21037 (CFLAGS-tst-chk3.c): Likewise.
21038 (CFLAGS-tst-chk4.cc): Likewise.
21039 (CFLAGS-tst-chk5.cc): Likewise.
21040 (CFLAGS-tst-chk6.cc): Likewise.
21041 (CFLAGS-tst-lfschk1.c): Likewise.
21042 (CFLAGS-tst-lfschk2.c): Likewise.
21043 (CFLAGS-tst-lfschk3.c): Likewise.
21044 (CFLAGS-tst-lfschk4.cc): Likewise.
21045 (CFLAGS-tst-lfschk5.cc): Likewise.
21046 (CFLAGS-tst-lfschk6.cc): Likewise.
21047 (CFLAGS-tst-ssp-1.c): Likewise.
21048 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21049 (CFLAGS-scandir64.c): Likewise.
21050 (CFLAGS-scandir-tail.c): Likewise.
21051 (CFLAGS-scandir64-tail.c): Likewise.
21052 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21053 (CFLAGS-dl-tunables.c): Likewise.
21054 (CFLAGS-dl-runtime.c): Likewise.
21055 (CFLAGS-dl-lookup.c): Likewise.
21056 (CFLAGS-dl-iterate-phdr.c): Likewise.
21057 (CFLAGS-vismain.c): Likewise.
21058 (CFLAGS-tst-linkall-static.c): Likewise.
21059 (CFLAGS-tst-linkall-static.c): Likewise.
21060 (CPPFLAGS-dl-load.c): Likewise.
21061 (CFLAGS-ldconfig.c): Likewise.
21062 (CFLAGS-dl-cache.c): Likewise.
21063 (CFLAGS-cache.c): Likewise.
21064 (CFLAGS-rtld.c): Likewise.
21065 (CFLAGS-multiload.c): Likewise.
21066 (CFLAGS-filtmod1.c): Likewise.
21067 (CFLAGS-tst-align.c): Likewise.
21068 (CFLAGS-tst-align2.c): Likewise.
21069 (CFLAGS-tst-alignmod.c): Likewise.
21070 (CFLAGS-tst-alignmod2.c): Likewise.
21071 (CPPFLAGS-tst-execstack.c): Likewise.
21072 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21073 (CFLAGS-tst-latepthreadmod.c): Likewise.
21074 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21075 (CFLAGS-getgrnam_r.c): Likewise.
21076 (CFLAGS-getgrent_r.c): Likewise.
21077 (CFLAGS-getgrent.c): Likewise.
21078 (CFLAGS-fgetgrent.c): Likewise.
21079 (CFLAGS-fgetgrent_r.c): Likewise.
21080 (CFLAGS-putgrent.c): Likewise.
21081 (CFLAGS-initgroups.c): Likewise.
21082 (CFLAGS-getgrgid.c): Likewise.
21083 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21084 (CFLAGS-getsgent.c): Likewise.
21085 (CFLAGS-fgetsgent.c): Likewise.
21086 (CFLAGS-fgetsgent_r.c): Likewise.
21087 (CFLAGS-putsgent.c): Likewise.
21088 (CFLAGS-getsgnam.c): Likewise.
21089 (CFLAGS-getsgnam_r.c): Likewise.
21090 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21091 (CFLAGS-iconv_charmap.c): Likewise.
21092 (CFLAGS-dummy-repertoire.c): Likewise.
21093 (CFLAGS-charmap.c): Likewise.
21094 (CFLAGS-linereader.c): Likewise.
21095 (CFLAGS-simple-hash.c): Likewise.
21096 (CFLAGS-gconv_conf.c): Likewise.
21097 (CFLAGS-iconvconfig.c): Likewise.
21098 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21099 (CFLAGS-gethstbyad.c): Likewise.
21100 (CFLAGS-gethstbynm_r.c): Likewise.
21101 (CFLAGS-gethstbynm.c): Likewise.
21102 (CFLAGS-gethstbynm2_r.c): Likewise.
21103 (CFLAGS-gethstbynm2.c): Likewise.
21104 (CFLAGS-gethstent_r.c): Likewise.
21105 (CFLAGS-gethstent.c): Likewise.
21106 (CFLAGS-rcmd.c): Likewise.
21107 (CFLAGS-getnetbynm_r.c): Likewise.
21108 (CFLAGS-getnetbynm.c): Likewise.
21109 (CFLAGS-getnetbyad_r.c): Likewise.
21110 (CFLAGS-getnetbyad.c): Likewise.
21111 (CFLAGS-getnetent_r.c): Likewise.
21112 (CFLAGS-getnetent.c): Likewise.
21113 (CFLAGS-getaliasent_r.c): Likewise.
21114 (CFLAGS-getaliasent.c): Likewise.
21115 (CFLAGS-getrpcent_r.c): Likewise.
21116 (CFLAGS-getrpcent.c): Likewise.
21117 (CFLAGS-getservent_r.c): Likewise.
21118 (CFLAGS-getservent.c): Likewise.
21119 (CFLAGS-getprtent_r.c): Likewise.
21120 (CFLAGS-getprtent.c): Likewise.
21121 (CFLAGS-either_ntoh.c): Likewise.
21122 (CFLAGS-either_hton.c): Likewise.
21123 (CFLAGS-getnetgrent.c): Likewise.
21124 (CFLAGS-getnetgrent_r.c): Likewise.
21125 (CFLAGS-tst-checks-posix.c): Likewise.
21126 (CFLAGS-tst-sockaddr.c): Likewise.
21127 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21128 (CFLAGS-tst-translit.c): Likewise.
21129 (CFLAGS-tst-gettext2.c): Likewise.
21130 (CFLAGS-tst-codeset.c): Likewise.
21131 (CFLAGS-tst-gettext3.c): Likewise.
21132 (CFLAGS-tst-gettext4.c): Likewise.
21133 (CFLAGS-tst-gettext5.c): Likewise.
21134 (CFLAGS-tst-gettext6.c): Likewise.
21135 * io/Makefile (CFLAGS-open.c): Likewise.
21136 (CFLAGS-open64.c): Likewise.
21137 (CFLAGS-creat.c): Likewise.
21138 (CFLAGS-creat64.c): Likewise.
21139 (CFLAGS-fcntl.c): Likewise.
21140 (CFLAGS-poll.c): Likewise.
21141 (CFLAGS-ppoll.c): Likewise.
21142 (CFLAGS-lockf.c): Likewise.
21143 (CFLAGS-statfs.c): Likewise.
21144 (CFLAGS-fstatfs.c): Likewise.
21145 (CFLAGS-statvfs.c): Likewise.
21146 (CFLAGS-fstatvfs.c): Likewise.
21147 (CFLAGS-fts.c): Likewise.
21148 (CFLAGS-fts64.c): Likewise.
21149 (CFLAGS-ftw.c): Likewise.
21150 (CFLAGS-ftw64.c): Likewise.
21151 (CFLAGS-lockf.c): Likewise.
21152 (CFLAGS-posix_fallocate.c): Likewise.
21153 (CFLAGS-posix_fallocate64.c): Likewise.
21154 (CFLAGS-fallocate.c): Likewise.
21155 (CFLAGS-fallocate64.c): Likewise.
21156 (CFLAGS-read.c): Likewise.
21157 (CFLAGS-write.c): Likewise.
21158 (CFLAGS-test-stat.c): Likewise.
21159 (CFLAGS-test-lfs.c): Likewise.
21160 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21161 (CFLAGS-fputc.c): Likewise.
21162 (CFLAGS-fputwc.c): Likewise.
21163 (CFLAGS-freopen64.c): Likewise.
21164 (CFLAGS-freopen.c): Likewise.
21165 (CFLAGS-fseek.c): Likewise.
21166 (CFLAGS-fseeko64.c): Likewise.
21167 (CFLAGS-fseeko.c): Likewise.
21168 (CFLAGS-ftello64.c): Likewise.
21169 (CFLAGS-ftello.c): Likewise.
21170 (CFLAGS-fwide.c): Likewise.
21171 (CFLAGS-genops.c): Likewise.
21172 (CFLAGS-getc.c): Likewise.
21173 (CFLAGS-getchar.c): Likewise.
21174 (CFLAGS-getwc.c): Likewise.
21175 (CFLAGS-getwchar.c): Likewise.
21176 (CFLAGS-iofclose.c): Likewise.
21177 (CFLAGS-iofflush.c): Likewise.
21178 (CFLAGS-iofgetpos64.c): Likewise.
21179 (CFLAGS-iofgetpos.c): Likewise.
21180 (CFLAGS-iofgets.c): Likewise.
21181 (CFLAGS-iofgetws.c): Likewise.
21182 (CFLAGS-iofputs.c): Likewise.
21183 (CFLAGS-iofputws.c): Likewise.
21184 (CFLAGS-iofread.c): Likewise.
21185 (CFLAGS-iofsetpos64.c): Likewise.
21186 (CFLAGS-iofsetpos.c): Likewise.
21187 (CFLAGS-ioftell.c): Likewise.
21188 (CFLAGS-iofwrite.c): Likewise.
21189 (CFLAGS-iogetdelim.c): Likewise.
21190 (CFLAGS-iogetline.c): Likewise.
21191 (CFLAGS-iogets.c): Likewise.
21192 (CFLAGS-iogetwline.c): Likewise.
21193 (CFLAGS-ioputs.c): Likewise.
21194 (CFLAGS-ioseekoff.c): Likewise.
21195 (CFLAGS-ioseekpos.c): Likewise.
21196 (CFLAGS-iosetbuffer.c): Likewise.
21197 (CFLAGS-iosetvbuf.c): Likewise.
21198 (CFLAGS-ioungetc.c): Likewise.
21199 (CFLAGS-ioungetwc.c): Likewise.
21200 (CFLAGS-oldfileops.c): Likewise.
21201 (CFLAGS-oldiofclose.c): Likewise.
21202 (CFLAGS-oldiofgetpos64.c): Likewise.
21203 (CFLAGS-oldiofgetpos.c): Likewise.
21204 (CFLAGS-oldiofsetpos64.c): Likewise.
21205 (CFLAGS-oldiofsetpos.c): Likewise.
21206 (CFLAGS-peekc.c): Likewise.
21207 (CFLAGS-putc.c): Likewise.
21208 (CFLAGS-putchar.c): Likewise.
21209 (CFLAGS-putwc.c): Likewise.
21210 (CFLAGS-putwchar.c): Likewise.
21211 (CFLAGS-rewind.c): Likewise.
21212 (CFLAGS-wfileops.c): Likewise.
21213 (CFLAGS-wgenops.c): Likewise.
21214 (CFLAGS-oldiofopen.c): Likewise.
21215 (CFLAGS-iofopen.c): Likewise.
21216 (CFLAGS-iofopen64.c): Likewise.
21217 (CFLAGS-oldtmpfile.c): Likewise.
21218 (CFLAGS-tst_putwc.c): Likewise.
21219 * locale/Makefile (CFLAGS-md5.c): Likewise.
21220 (CFLAGS-charmap.c): Likewise.
21221 (CFLAGS-locfile.c): Likewise.
21222 (CFLAGS-charmap-dir.c): Likewise.
21223 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21224 (CFLAGS-getpt.c): Likewise.
21225 (CFLAGS-pt_chown.c): Likewise.
21226 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21227 (CFLAGS-obstack.c): Likewise.
21228 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21229 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21230 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21231 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21232 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21233 (CFLAGS-test-tgmath.c): Likewise.
21234 (CFLAGS-test-tgmath2.c): Likewise.
21235 (CFLAGS-test-tgmath-ret.c): Likewise.
21236 (CFLAGS-test-powl.c): Likewise.
21237 (CFLAGS-test-snan.c): Likewise.
21238 (CFLAGS-test-signgam-finite.c): Likewise.
21239 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21240 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21241 (CFLAGS-test-signgam-uchar.c): Likewise.
21242 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21243 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21244 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21245 (CFLAGS-test-signgam-uint.c): Likewise.
21246 (CFLAGS-test-signgam-uint-init.c): Likewise.
21247 (CFLAGS-test-signgam-uint-static.c): Likewise.
21248 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21249 (CFLAGS-test-signgam-ullong.c): Likewise.
21250 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21251 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21252 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21253 (CFLAGS-test-math-cxx11.cc): Likewise.
21254 (CFLAGS-test-math-isinff.cc): Likewise.
21255 (CFLAGS-test-math-iszero.cc): Likewise.
21256 (CFLAGS-test-math-issignaling.cc): Likewise.
21257 (CFLAGS-test-math-iscanonical.cc): Likewise.
21258 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21259 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21260 (CFLAGS-test-flt-eval-method.c): Likewise.
21261 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21262 (CFLAGS-test-finite-macros.c): Likewise.
21263 * misc/Makefile (CFLAGS-select.c): Likewise.
21264 (CFLAGS-tsearch.c): Likewise.
21265 (CFLAGS-lsearch.c): Likewise.
21266 (CFLAGS-pselect.c): Likewise.
21267 (CFLAGS-readv.c): Likewise.
21268 (CFLAGS-writev.c): Likewise.
21269 (CFLAGS-preadv.c): Likewise.
21270 (CFLAGS-preadv64.c): Likewise.
21271 (CFLAGS-pwritev.c): Likewise.
21272 (CFLAGS-pwritev64.c): Likewise.
21273 (CFLAGS-preadv2.c): Likewise.
21274 (CFLAGS-preadv64v2.c): Likewise.
21275 (CFLAGS-pwritev2.c): Likewise.
21276 (CFLAGS-pwritev64v2.c): Likewise.
21277 (CFLAGS-usleep.c): Likewise.
21278 (CFLAGS-syslog.c): Likewise.
21279 (CFLAGS-error.c): Likewise.
21280 (CFLAGS-getpass.c): Likewise.
21281 (CFLAGS-mkstemp.c): Likewise.
21282 (CFLAGS-mkstemp64.c): Likewise.
21283 (CFLAGS-getsysstats.c): Likewise.
21284 (CFLAGS-getusershell.c): Likewise.
21285 (CFLAGS-err.c): Likewise.
21286 (CFLAGS-tst-tsearch.c): Likewise.
21287 (CFLAGS-msync.c): Likewise.
21288 (CFLAGS-fdatasync.c): Likewise.
21289 (CFLAGS-fsync.c): Likewise.
21290 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21291 (CFLAGS-unwind.c): Likewise.
21292 (CFLAGS-unwind-forcedunwind.c): Likewise.
21293 (CFLAGS-pthread_cancel.c): Likewise.
21294 (CFLAGS-pthread_setcancelstate.c): Likewise.
21295 (CFLAGS-pthread_setcanceltype.c): Likewise.
21296 (CFLAGS-cancellation.c): Likewise.
21297 (CFLAGS-libc-cancellation.c): Likewise.
21298 (CFLAGS-pthread_exit.c): Likewise.
21299 (CFLAGS-forward.c): Likewise.
21300 (CFLAGS-pthread_testcancel.c): Likewise.
21301 (CFLAGS-pthread_join.c): Likewise.
21302 (CFLAGS-pthread_timedjoin.c): Likewise.
21303 (CFLAGS-pthread_once.c): Likewise.
21304 (CFLAGS-pthread_cond_wait.c): Likewise.
21305 (CFLAGS-sem_wait.c): Likewise.
21306 (CFLAGS-sem_timedwait.c): Likewise.
21307 (CFLAGS-fcntl.c): Likewise.
21308 (CFLAGS-lockf.c): Likewise.
21309 (CFLAGS-pread.c): Likewise.
21310 (CFLAGS-pread64.c): Likewise.
21311 (CFLAGS-pwrite.c): Likewise.
21312 (CFLAGS-pwrite64.c): Likewise.
21313 (CFLAGS-wait.c): Likewise.
21314 (CFLAGS-waitpid.c): Likewise.
21315 (CFLAGS-sigwait.c): Likewise.
21316 (CFLAGS-msgrcv.c): Likewise.
21317 (CFLAGS-msgsnd.c): Likewise.
21318 (CFLAGS-tcdrain.c): Likewise.
21319 (CFLAGS-open.c): Likewise.
21320 (CFLAGS-open64.c): Likewise.
21321 (CFLAGS-pause.c): Likewise.
21322 (CFLAGS-recv.c): Likewise.
21323 (CFLAGS-send.c): Likewise.
21324 (CFLAGS-accept.c): Likewise.
21325 (CFLAGS-sendto.c): Likewise.
21326 (CFLAGS-connect.c): Likewise.
21327 (CFLAGS-recvfrom.c): Likewise.
21328 (CFLAGS-recvmsg.c): Likewise.
21329 (CFLAGS-sendmsg.c): Likewise.
21330 (CFLAGS-close.c): Likewise.
21331 (CFLAGS-read.c): Likewise.
21332 (CFLAGS-write.c): Likewise.
21333 (CFLAGS-nanosleep.c): Likewise.
21334 (CFLAGS-sigsuspend.c): Likewise.
21335 (CFLAGS-msync.c): Likewise.
21336 (CFLAGS-fdatasync.c): Likewise.
21337 (CFLAGS-fsync.c): Likewise.
21338 (CFLAGS-pt-system.c): Likewise.
21339 (CFLAGS-tst-cleanup2.c): Likewise.
21340 (CFLAGS-tst-cleanupx2.c): Likewise.
21341 (CFLAGS-flockfile.c): Likewise.
21342 (CFLAGS-ftrylockfile.c): Likewise.
21343 (CFLAGS-funlockfile.c): Likewise.
21344 (CFLAGS-tst-initializers1.c): Likewise.
21345 (CFLAGS-tst-initializers1-c89.c): Likewise.
21346 (CFLAGS-tst-initializers1-c99.c): Likewise.
21347 (CFLAGS-tst-initializers1-c11.c): Likewise.
21348 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21349 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21350 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21351 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21352 (CFLAGS-nscd_getgr_r.c): Likewise.
21353 (CFLAGS-nscd_gethst_r.c): Likewise.
21354 (CFLAGS-nscd_getai.c): Likewise.
21355 (CFLAGS-nscd_initgroups.c): Likewise.
21356 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21357 (CFLAGS-pause.c): Likewise.
21358 (CFLAGS-pread.c): Likewise.
21359 (CFLAGS-pread64.c): Likewise.
21360 (CFLAGS-pwrite.c): Likewise.
21361 (CFLAGS-pwrite64.c): Likewise.
21362 (CFLAGS-sleep.c): Likewise.
21363 (CFLAGS-wait.c): Likewise.
21364 (CFLAGS-waitid.c): Likewise.
21365 (CFLAGS-waitpid.c): Likewise.
21366 (CFLAGS-getopt.c): Likewise.
21367 (CFLAGS-wordexp.c): Likewise.
21368 (CFLAGS-sysconf.c): Likewise.
21369 (CFLAGS-pathconf.c): Likewise.
21370 (CFLAGS-fpathconf.c): Likewise.
21371 (CFLAGS-spawn.c): Likewise.
21372 (CFLAGS-spawnp.c): Likewise.
21373 (CFLAGS-spawni.c): Likewise.
21374 (CFLAGS-glob.c): Likewise.
21375 (CFLAGS-glob64.c): Likewise.
21376 (CFLAGS-getconf.c): Likewise.
21377 (CFLAGS-nanosleep.c): Likewise.
21378 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21379 (CFLAGS-getpwent.c): Likewise.
21380 (CFLAGS-getpw.c): Likewise.
21381 (CFLAGS-fgetpwent_r.c): Likewise.
21382 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21383 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21384 (CFLAGS-mq_timedreceive.c): Likewise.
21385 (CFLAGS-mq_timedsend.c): Likewise.
21386 (CFLAGS-clock_nanosleep.c): Likewise.
21387 (CFLAGS-librt-cancellation.c): Likewise.
21388 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21389 (CFLAGS-getspent.c): Likewise.
21390 (CFLAGS-fgetspent.c): Likewise.
21391 (CFLAGS-fgetspent_r.c): Likewise.
21392 (CFLAGS-putspent.c): Likewise.
21393 (CFLAGS-getspnam.c): Likewise.
21394 (CFLAGS-getspnam_r.c): Likewise.
21395 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21396 (CFLAGS-sigsuspend.c): Likewise.
21397 (CFLAGS-sigtimedwait.c): Likewise.
21398 (CFLAGS-sigwait.c): Likewise.
21399 (CFLAGS-sigwaitinfo.c): Likewise.
21400 (CFLAGS-sigreturn.c): Likewise.
21401 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21402 (CFLAGS-vfwprintf.c): Likewise.
21403 (CFLAGS-tmpfile.c): Likewise.
21404 (CFLAGS-tmpfile64.c): Likewise.
21405 (CFLAGS-tempname.c): Likewise.
21406 (CFLAGS-psignal.c): Likewise.
21407 (CFLAGS-vprintf.c): Likewise.
21408 (CFLAGS-cuserid.c): Likewise.
21409 (CFLAGS-errlist.c): Likewise.
21410 (CFLAGS-siglist.c): Likewise.
21411 (CFLAGS-scanf15.c): Likewise.
21412 (CFLAGS-scanf17.c): Likewise.
21413 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21414 (CFLAGS-msort.c): Likewise.
21415 (CFLAGS-qsort.c): Likewise.
21416 (CFLAGS-system.c): Likewise.
21417 (CFLAGS-fmtmsg.c): Likewise.
21418 (CFLAGS-strfmon.c): Likewise.
21419 (CFLAGS-strfmon_l.c): Likewise.
21420 (CFLAGS-strfromd.c): Likewise.
21421 (CFLAGS-strfromf.c): Likewise.
21422 (CFLAGS-strfroml.c): Likewise.
21423 (CFLAGS-tst-bsearch.c): Likewise.
21424 (CFLAGS-tst-qsort.c): Likewise.
21425 (CFLAGS-tst-makecontext2.c): Likewise.
21426 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21427 (CFLAGS-xnlm_prot.c): Likewise.
21428 (CFLAGS-xrstat.c): Likewise.
21429 (CFLAGS-xyppasswd.c): Likewise.
21430 (CFLAGS-xklm_prot.c): Likewise.
21431 (CFLAGS-xrex.c): Likewise.
21432 (CFLAGS-xsm_inter.c): Likewise.
21433 (CFLAGS-xmount.c): Likewise.
21434 (CFLAGS-xrusers.c): Likewise.
21435 (CFLAGS-xspray.c): Likewise.
21436 (CFLAGS-xnfs_prot.c): Likewise.
21437 (CFLAGS-xrquota.c): Likewise.
21438 (CFLAGS-xkey_prot.c): Likewise.
21439 (CFLAGS-auth_unix.c): Likewise.
21440 (CFLAGS-key_call.c): Likewise.
21441 (CFLAGS-pmap_rmt.c): Likewise.
21442 (CFLAGS-clnt_perr.c): Likewise.
21443 (CFLAGS-openchild.c): Likewise.
21444 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21445 (CFLAGS-msgsnd.c): Likewise.
21446 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21447 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21448 (CFLAGS-tzset.c): Likewise.
21449 (CFLAGS-getdate.c): Likewise.
21450 (CFLAGS-test_time.c): Likewise.
21451 (CPPFLAGS-tst-tzname.c): Likewise.
21452 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21453 (CFLAGS-zic.c): Likewise.
21454 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21455 (CFLAGS-wcswidth.c): Likewise.
21456 (CFLAGS-wcstol.c): Likewise.
21457 (CFLAGS-wcstoul.c): Likewise.
21458 (CFLAGS-wcstoll.c): Likewise.
21459 (CFLAGS-wcstoull.c): Likewise.
21460 (CFLAGS-wcstod.c): Likewise.
21461 (CFLAGS-wcstold.c): Likewise.
21462 (CFLAGS-wcstof128.c): Likewise.
21463 (CFLAGS-wcstof.c): Likewise.
21464 (CFLAGS-wcstol_l.c): Likewise.
21465 (CFLAGS-wcstoul_l.c): Likewise.
21466 (CFLAGS-wcstoll_l.c): Likewise.
21467 (CFLAGS-wcstoull_l.c): Likewise.
21468 (CFLAGS-wcstod_l.c): Likewise.
21469 (CFLAGS-wcstold_l.c): Likewise.
21470 (CFLAGS-wcstof128_l.c): Likewise.
21471 (CFLAGS-wcstof_l.c): Likewise.
21472 (CPPFLAGS-tst-wchar-h.c): Likewise.
21473 (CPPFLAGS-wcstold_l.c): Likewise.
583dd860 21474
f4b2aea6
PC
214752017-12-11 Paul A. Clarke <pc@us.ibm.com>
21476
21477 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21478
c9cd7b0c
AZ
214792017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21480 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21481
21482 * manual/tunables.texi (Hardware Capability Tunables): Document
21483 glibc.tune.cached_memopt.
21484 * sysdeps/powerpc/cpu-features.c: New file.
21485 * sysdeps/powerpc/cpu-features.h: New file.
21486 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21487 _dl_powerpc_cpu_features.
21488 * sysdeps/powerpc/dl-tunables.list: New file.
21489 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21490 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21491 (INIT_ARCH): Initialize use_aligned_memopt.
21492 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21493 IS_IN(rtld))]: Restrict dl_platform_init availability and
21494 initialize CPU features used by tunables.
21495 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21496 Add memcpy-power8-cached.
21497 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21498 __memcpy_power8_cached.
21499 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21500 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21501 New file.
21502
e70c6fee
L
215032017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21504
21505 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21506 (CFLAGS-noinl-tester.c): Likewise.
21507 (CFLAGS-tst-strlen.c): Likewise.
21508 (CFLAGS-stratcliff.c): Likewise.
21509 (CFLAGS-test-ffs.c): Likewise.
21510 (CFLAGS-tst-inlcall.c): Likewise.
21511 (CFLAGS-tst-xbzero-opt.c): Likewise.
21512 (CFLAGS-memcpy.c): Likewise.
21513 (CFLAGS-wordcopy.c): Likewise.
21514
dee94366
SL
215152017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21516
21517 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21518 Store r15 on stack and add cfi rule.
21519 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21520 Likewise.
21521
363e4519 215222017-12-10 Aurelien Jarno <aurelien@aurel32.net>
f648728c
AJ
21523
21524 [BZ #22577]
21525 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21526 call.
21527
9d0ffa60
L
215282017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21529
21530 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21531 Add s_sinf-sse2 and s_sinf-fma.
21532 (CFLAGS-s_sinf-fma.c): New.
21533 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21534 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21535 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21536
9574c7b6
L
215372017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21538
21539 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21540
d15e83c5
JM
215412017-12-07 Joseph Myers <joseph@codesourcery.com>
21542
21543 [BZ #22568]
21544 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21545 part of result to imaginary part of argument if it is zero and the
21546 real part of the argument is not finite.
21547 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21548 of result to real part of argument if it is zero and the imaginary
21549 part of the argument is not finite.
21550
d89756eb
MF
215512017-12-07 Mike FABIAN <mfabian@redhat.com>
21552
21553 [BZ #22524]
21554 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21555 and to the list of locales to be built for testing.
21556 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21557 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21558 and build the collation rules upon that.
21559
1f9055ce
JM
215602017-12-07 Joseph Myers <joseph@codesourcery.com>
21561
21562 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21563 * manual/math.texi (Mathematics): Document support for _Float32.
21564 * math/Makefile (test-types): Add float32.
21565 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21566 * stdlib/Versions (GLIBC_2.27): Likewise.
21567 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21568 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21569 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21570 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21571 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21572 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21573 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21574 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21575 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21576 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21577 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21578 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21579 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21580 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21581 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21582 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21583 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21584 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21585 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21586 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21587 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21588 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21589 Likewise.
21590 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21591 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21592 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21593 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21594 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21596 Likewise.
21597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21598 Likewise.
21599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21600 Likewise.
21601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21602 Likewise.
21603
21604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21605 Likewise.
21606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21607 Likewise.
21608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21609 Likewise.
21610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21611 Likewise.
21612 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21613 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21614 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21615 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21616 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21617 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21618 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21619 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21620 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21621 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21622 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21623 Likewise.
21624 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21625 Likewise.
21626 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21627 Likewise.
21628 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21629 Likewise.
21630 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21631 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21632 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21633 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21634 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21635 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21636 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21637 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21638
5244527d
JM
216392017-12-06 Joseph Myers <joseph@codesourcery.com>
21640
fb1ca2aa
JM
21641 * stdlib/strtof.c: Include <bits/floatn.h>
21642 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21643 and later undefine as macro. Define as weak alias if
21644 [!USE_WIDE_CHAR].
21645 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21646 and later undefine as macro. Define as weak alias if
21647 [USE_WIDE_CHAR].
21648 * stdlib/strtof_l.c: Include <bits/floatn.h>
21649 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21650 and later undefine as macro. Define as weak alias if
21651 [!USE_WIDE_CHAR].
21652 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21653 and later undefine as macro. Define as weak alias if
21654 [USE_WIDE_CHAR].
21655
fc10cc3f
JM
21656 * stdlib/strfromf.c: Include <bits/floatn.h>.
21657 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21658 and later undefine as macro and define as weak alias.
21659
e420d228
JM
21660 * math/test-float32.h: New file.
21661
26007a2f
JM
21662 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21663 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21664 (libm_alias_float_other_r): Create f32 alias.
21665 (libm_alias_float_r): Use semicolon before call to
21666 libm_alias_float_other_r.
21667
c191f64c
JM
21668 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21669 second argument to libm_alias_float_other.
21670 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21671 second argument to libm_alias_float_other.
21672 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21673 argument to libm_alias_float_other.
21674
5244527d
JM
21675 [BZ #22561]
21676 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21677 real part of result for argument 0 + i * NaN.
21678 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21679 results for tests of 0 + i * NaN.
21680
d73fac82
AZ
216812017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21682
21683 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21684
7ec094e8
DM
216852017-12-06 David S. Miller <davem@davemloft.net>
21686
21687 * sysdeps/sparc/fpu/libm-test-ulps: Update
21688 exp_{downward,towardzero,upward} ulps.
21689
53994f12
JM
216902017-12-06 Joseph Myers <joseph@codesourcery.com>
21691
1dbe6f64
JM
21692 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21693 variables static.
21694
53994f12
JM
21695 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21696 (Y0_2D): Likewise.
21697 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21698 (Y0_2D): Likewise.
21699 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21700 (Y0_2D): Likewise.
21701 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21702 (Y0_2D): Likewise.
21703
62ea2193
MF
217042017-12-06 Mike FABIAN <mfabian@redhat.com>
21705
21706 [BZ #22515]
21707 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21708 and to the list of locales to be built for testing.
21709 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21710 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21711 and build the collation rules upon that.
21712
87235d70
RS
217132017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21714
21715 * NEWS: Add sinf to list of optimized functions.
21716
0d93b7fd
JM
217172017-12-06 Joseph Myers <joseph@codesourcery.com>
21718
21719 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21720 (__HAVE_FLOAT32X): Likewise.
21721 * manual/math.texi (Mathematics): Document support for _Float64
21722 and _Float32x.
21723 * math/Makefile (test-types): Add float64 and float32x.
21724 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21725 functions.
21726 * stdlib/Versions (GLIBC_2.27): Likewise.
21727 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21728 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21729 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21730 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21731 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21732 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21733 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21734 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21735 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21736 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21737 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21738 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21739 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21740 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21741 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21742 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21743 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21744 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21745 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21746 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21747 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21748 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21749 Likewise.
21750 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21751 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21752 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21753 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21754 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21755 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21756 Likewise.
21757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21758 Likewise.
21759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21760 Likewise.
21761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21762 Likewise.
21763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21764 Likewise.
21765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21766 Likewise.
21767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21768 Likewise.
21769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21770 Likewise.
21771 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21772 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21773 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21774 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21775 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21776 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21777 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21778 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21779 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21780 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21781 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21782 Likewise.
21783 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21784 Likewise.
21785 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21786 Likewise.
21787 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21788 Likewise.
21789 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21790 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21791 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21792 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21793 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21794 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21795 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21796 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21797
f7787234
JM
217982017-12-05 Joseph Myers <joseph@codesourcery.com>
21799
21800 * bits/floatn-common.h: Include <bits/long-double.h>.
21801 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21802 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21803 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21804 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21805 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21806 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21807 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21808 (__builtin_huge_valf64): Use __builtin_huge_vall.
21809 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21810 (__builtin_inff64): Use __builtin_infl.
21811 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21812 (__builtin_nanf64): Use __builtin_nanl.
21813 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21814 (__builtin_nansf64): Use __builtin_nansl.
21815
363e4519
DL
218162017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21817 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
6b5c8607 21818 Carlos O'Donnell <carlos@redhat.com>
07ed18d2
RA
21819
21820 * elf/dl-tunables.list: Add elision parameters.
21821 * manual/tunables.texi: Add entries about elision tunable.
21822 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21823 Add callback functions to dynamically enable/disable elision.
21824 Add multiple callbacks functions to set elision parameters.
21825 Deleted __libc_enable_secure check.
21826 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21827 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21828 * configure: Regenerated.
21829 * configure.ac: Option enable_lock_elision was deleted.
21830 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21831 * config.make.in: Remove references to enable_lock_elision.
21832 * manual/install.texi: Elision configure option was removed.
21833 * INSTALL: Regenerated to remove enable_lock_elision.
21834 * nptl/Makefile:
21835 Disable elision so it can verify error case for destroying a mutex.
21836 * sysdeps/powerpc/nptl/elide.h:
21837 Cleanup ENABLE_LOCK_ELISION check.
21838 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21839 * sysdeps/s390/configure: Regenerated.
21840 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21841 * nptl/tst-mutex8.c:
21842 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21843 * sysdeps/powerpc/powerpc32/sysdep.h:
21844 Deleted all ENABLE_LOCK_ELISION checks.
21845 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21846 * sysdeps/powerpc/sysdep.h: Likewise.
21847 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21848 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21849 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21850 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21851 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21852 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21853 enable-lock-elision.
21854
a5a2a76b
JM
218552017-12-05 Joseph Myers <joseph@codesourcery.com>
21856
21857 * stdlib/strtod.c: Include <bits/floatn.h>.
21858 (BUILD_DOUBLE): New macro.
21859 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21860 (strtof64): Define and later undefine as macro. Define as weak
21861 alias if [!USE_WIDE_CHAR].
21862 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21863 (wcstof64): Define and later undefine as macro. Define as weak
21864 alias if [USE_WIDE_CHAR].
21865 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21866 (strtof32x): Define and later undefine as macro. Define as weak
21867 alias if [!USE_WIDE_CHAR].
21868 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21869 (wcstof32x): Define and later undefine as macro. Define as weak
21870 alias if [USE_WIDE_CHAR].
21871 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21872 (BUILD_DOUBLE): New macro.
21873 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21874 (strtof64_l): Define and later undefine as macro. Define as weak
21875 alias if [!USE_WIDE_CHAR].
21876 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21877 (wcstof64_l): Define and later undefine as macro. Define as weak
21878 alias if [USE_WIDE_CHAR].
21879 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21880 (strtof32x_l): Define and later undefine as macro. Define as weak
21881 alias if [!USE_WIDE_CHAR].
21882 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21883 (wcstof32x_l): Define and later undefine as macro. Define as weak
21884 alias if [USE_WIDE_CHAR].
21885
94d80dfc
AZ
218862017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21887
21888 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21889 (reduced): Use ones as double instead of integer.
21890
00d54af7
SN
218912017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21892
21893 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21894
f2d64d62
JM
218952017-12-05 Joseph Myers <joseph@codesourcery.com>
21896
1f70eae4
JM
21897 * stdlib/strfromd.c: Include <bits/floatn.h>.
21898 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21899 and later undefine as macro and define as weak alias.
21900 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21901 Likewise.
21902
e2c4dce5
JM
21903 * math/test-float32x.h: New file.
21904 * math/test-float64.h: Likewise.
21905
f2d64d62
JM
21906 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21907 (libm_alias_double_other_r_f64): New macro.
21908 (libm_alias_double_other_r_f32x): Likewise.
21909 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21910 libm_alias_double_other_r_f32x.
21911 (libm_alias_double_r): Use semicolon before call to
21912 libm_alias_double_other_r.
21913 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21914 <bits/floatn.h>.
21915 (libm_alias_double_other_r_f64): New macro.
21916 (libm_alias_double_other_r_f32x): Likewise.
21917 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21918 libm_alias_double_other_r_f32x.
21919
91c318e7
L
219202017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21921
21922 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21923 int.
21924 (SINF_FUNC): Likewise. Replace floor with simple casts.
21925
de9661d6
MF
219262017-12-05 Mike FABIAN <mfabian@redhat.com>
21927
21928 [BZ #22517]
21929 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21930 and to the list of locales to be built for testing.
21931 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21932 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21933 and build the collation rules upon that.
21934
f18b8dc7
CM
219352017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21936
21937 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21938 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21939 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21940 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21941 instead of __insn__xxx.
21942 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21943 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21944 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21945 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21946 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21947 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21948
446d22e9
FW
219492017-12-05 Florian Weimer <fweimer@redhat.com>
21950
21951 Linux: Implement interfaces for memory protection keys
21952 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21953 xsignal, xsysconf.
21954 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21955 * support/xunistd.h (xsysconf): Declare.
21956 * support/xraise.c: New file.
21957 * support/xsigaction.c: Likewise.
21958 * support/xsignal.c: Likewise.
21959 * support/xsysconf.c: Likewise.
21960 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21961 pkey_set, pkey_get, pkey_mprotect.
21962 [misc] (tests): Add tst-pkey.
21963 (tst-pkey): Link with -lpthread.
21964 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21965 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21966 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21967 (PKEY_DISABLE_WRITE): Define.
21968 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21969 Declare.
21970 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21971 (SEGV_PKUERR): Add.
21972 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21973 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21974 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21975 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21976 Add.
21977 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21978 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21979 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21980 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21981 * sysdeps/unix/sysv/linux/**.abilist: Update.
21982
da616c14
FW
219832017-12-05 Florian Weimer <fweimer@redhat.com>
21984
21985 * support/tst-test_compare.c (subprocess): Use long long instead
21986 of long argument for consistent type width across 32-bit and
21987 64-bit architectures.
21988 (do_test): Adjust expected output.
21989
216933b2
JM
219902017-12-05 Joseph Myers <joseph@codesourcery.com>
21991
21992 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21993 (cosf): Define using libm_alias_float.
21994 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21995 (fabsf): Define using libm_alias_float.
21996 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21997 (fmaf): Define using libm_alias_float.
21998 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21999 (rintf): Define using libm_alias_float.
22000 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22001 (sinf): Define using libm_alias_float.
22002 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22003 <libm-alias-float.h>.
22004 (modff): Define using libm_alias_float.
22005 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22006 <libm-alias-float.h>.
22007 (logbf): Define using libm_alias_float.
22008 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22009 <libm-alias-float.h>.
22010 (ceilf): Define using libm_alias_float.
22011 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22012 <libm-alias-float.h>.
22013 (copysignf): Define using libm_alias_float.
22014 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22015 <libm-alias-float.h>.
22016 (floorf): Define using libm_alias_float.
22017 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22018 <libm-alias-float.h>.
22019 (llrintf): Define using libm_alias_float.
22020 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22021 <libm-alias-float.h>.
22022 (llroundf): Define using libm_alias_float.
22023 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22024 <libm-alias-float.h>.
22025 (lrintf): Define using libm_alias_float.
22026 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22027 <libm-alias-float.h>.
22028 (lroundf): Define using libm_alias_float.
22029 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22030 <libm-alias-float.h>.
22031 (nearbyintf): Define using libm_alias_float.
22032 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22033 <libm-alias-float.h>.
22034 (rintf): Define using libm_alias_float.
22035 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22036 <libm-alias-float.h>.
22037 (roundf): Define using libm_alias_float.
22038 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22039 <libm-alias-float.h>.
22040 (truncf): Define using libm_alias_float.
22041 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22042 Include <libm-alias-float.h>.
22043 (ceilf): Define using libm_alias_float.
22044 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22045 Include <libm-alias-float.h>.
22046 (copysignf): Define using libm_alias_float.
22047 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22048 Include <libm-alias-float.h>.
22049 (floorf): Define using libm_alias_float.
22050 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22051 Include <libm-alias-float.h>.
22052 (llrintf): Define using libm_alias_float.
22053 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22054 Include <libm-alias-float.h>.
22055 (llroundf): Define using libm_alias_float.
22056 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22057 Include <libm-alias-float.h>.
22058 (logbf): Define using libm_alias_float.
22059 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22060 Include <libm-alias-float.h>.
22061 (lrintf): Define using libm_alias_float.
22062 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22063 Include <libm-alias-float.h>.
22064 (lroundf): Define using libm_alias_float.
22065 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22066 Include <libm-alias-float.h>.
22067 (modff): Define using libm_alias_float.
22068 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22069 Include <libm-alias-float.h>.
22070 (roundf): Define using libm_alias_float.
22071 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22072 Include <libm-alias-float.h>.
22073 (truncf): Define using libm_alias_float.
22074 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22075 <libm-alias-float.h>.
22076 (llrintf): Define using libm_alias_float.
22077 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22078 <libm-alias-float.h>.
22079 (llroundf): Define using libm_alias_float.
22080 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22081 <libm-alias-float.h>.
22082 (ceilf): Define using libm_alias_float.
22083 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22084 <libm-alias-float.h>.
22085 (floorf): Define using libm_alias_float.
22086 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22087 <libm-alias-float.h>.
22088 (llroundf): Define using libm_alias_float.
22089 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22090 <libm-alias-float.h>.
22091 (lroundf): Define using libm_alias_float.
22092 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22093 <libm-alias-float.h>.
22094 (roundf): Define using libm_alias_float.
22095 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22096 <libm-alias-float.h>.
22097 (truncf): Define using libm_alias_float.
22098 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22099 <libm-alias-float.h>.
22100 (copysignf): Define using libm_alias_float.
22101 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22102 <libm-alias-float.h>.
22103 (llrintf): Define using libm_alias_float.
22104 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22105 <libm-alias-float.h>.
22106 (llroundf): Define using libm_alias_float.
22107 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22108 <libm-alias-float.h>.
22109 (lrintf): Define using libm_alias_float.
22110 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22111 <libm-alias-float.h>.
22112 (lroundf): Define using libm_alias_float.
22113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22114 <libm-alias-float.h>.
22115 (ceilf): Define using libm_alias_float.
22116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22117 <libm-alias-float.h>.
22118 (copysignf): Define using libm_alias_float.
22119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22120 <libm-alias-float.h>.
22121 (cosf): Define using libm_alias_float.
22122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22123 <libm-alias-float.h>.
22124 (floorf): Define using libm_alias_float.
22125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22126 <libm-alias-float.h>.
22127 (llrintf): Define using libm_alias_float.
22128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22129 <libm-alias-float.h>.
22130 (llroundf): Define using libm_alias_float.
22131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22132 <libm-alias-float.h>.
22133 (logbf): Define using libm_alias_float.
22134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22135 <libm-alias-float.h>.
22136 (modff): Define using libm_alias_float.
22137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22138 <libm-alias-float.h>.
22139 (roundf): Define using libm_alias_float.
22140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22141 <libm-alias-float.h>.
22142 (sinf): Define using libm_alias_float.
22143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22144 <libm-alias-float.h>.
22145 (truncf): Define using libm_alias_float.
22146 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22147 <libm-alias-float.h>.
22148 (ceilf): Define using libm_alias_float.
22149 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22150 <libm-alias-float.h>.
22151 (copysignf): Define using libm_alias_float.
22152 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22153 <libm-alias-float.h>.
22154 (floorf): Define using libm_alias_float.
22155 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22156 <libm-alias-float.h>.
22157 (llrintf): Define using libm_alias_float.
22158 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22159 <libm-alias-float.h>.
22160 (llroundf): Define using libm_alias_float.
22161 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22162 <libm-alias-float.h>.
22163 (nearbyintf): Define using libm_alias_float.
22164 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22165 <libm-alias-float.h>.
22166 (rintf): Define using libm_alias_float.
22167 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22168 <libm-alias-float.h>.
22169 (roundf): Define using libm_alias_float.
22170 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22171 <libm-alias-float.h>.
22172 (truncf): Define using libm_alias_float.
22173 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22174 <libm-alias-float.h>.
22175 (ceilf): Define using libm_alias_float.
22176 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22177 <libm-alias-float.h>.
22178 (floorf): Define using libm_alias_float.
22179 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22180 <libm-alias-float.h>.
22181 (llroundf): Define using libm_alias_float.
22182 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22183 <libm-alias-float.h>.
22184 (roundf): Define using libm_alias_float.
22185 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22186 <libm-alias-float.h>.
22187 (truncf): Define using libm_alias_float.
22188 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22189 <libm-alias-float.h>.
22190 (copysignf): Define using libm_alias_float.
22191 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22192 <libm-alias-float.h>.
22193 (llrintf): Define using libm_alias_float.
22194 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22195 <libm-alias-float.h>.
22196 (llroundf): Define using libm_alias_float.
22197 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22198 <libm-alias-float.h>.
22199 (cosf): Define using libm_alias_float.
22200 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22201 <libm-alias-float.h>.
22202 (llrintf): Define using libm_alias_float.
22203 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22204 <libm-alias-float.h>.
22205 (llroundf): Define using libm_alias_float.
22206 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22207 <libm-alias-float.h>.
22208 (sinf): Define using libm_alias_float.
22209
93485524
FW
222102017-12-04 Florian Weimer <fweimer@redhat.com>
22211
22212 * support/check.h (TEST_COMPARE): Define.
22213 (support_test_compare_failure): Declare.
22214 * support/Makefile (libsupport-routines): Add
22215 support_test_compare_failure.
22216 (tests): Add tst-test_compare.
22217 * support /support_test_compare_failure.c: New file.
22218 * support/tst-test_compare.c: Likewise.
22219
96b06a19
MF
222202017-12-04 Mike FABIAN <mfabian@redhat.com>
22221
22222 [BZ #22527]
22223 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22224 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22225 available, this rewrite of the collation rules does reproduce
22226 the test file in the same order.
22227
1f6d91f3
MF
222282017-12-04 Mike FABIAN <mfabian@redhat.com>
22229
22230 [BZ #10580]
22231 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22232 digraphs in the month and day names. Using single code points for
22233 digraphs is deprecated. While there are dedicated Unicode
22234 codepoints, for the digraphs, these are included for backwards
22235 compatibility and modern texts use a sequence of Basic Latin
22236 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22237 This makes the month and day names agree exactly with CLDR now,
22238 CLDR does not use the single code points for the digraphs either.
22239
2e49fed8
CM
222402017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22241
22242 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22243
73895b49
JM
222442017-12-04 Joseph Myers <joseph@codesourcery.com>
22245
22246 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22247 of floor.
22248
4c1d801a
SP
222492017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22250
22251 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22252 Define only for libc.so.
22253
478593e6
SL
222542017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22255
22256 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22257 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
6b5c8607 22258 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
478593e6
SL
22259 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22260 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22261
7863a711
RS
222622017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22263
22264 [BZ #5997]
22265 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22266
800a496a
JDA
222672017-12-02 John David Anglin <danglin@gcc.gnu.org>
22268
b3f7fb12
JDA
22269 [BZ libc/19170]
22270 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22271 PREINIT_FUNCTION_WEAK is nonzero.
22272 (gmon_initializer): New function. Put procedure label for it in
22273 .init_array section.
22274 (_init): Don't call PREINIT_FUNCTION.
22275 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22276 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22277 value when map argument is null.
22278
800a496a
JDA
22279 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22280 depi instruction from PIC pc-relative sequence.
22281 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22282 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22283 (elf_machine_load_address): Likewise.
22284 (elf_machine_runtime_setup): Likewise.
22285
d17542d2
JM
222862017-12-02 Joseph Myers <joseph@codesourcery.com>
22287
22288 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22289 <libm-alias-double.h>.
22290 (logb): Define using libm_alias_double.
22291 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22292 <libm-alias-double.h>.
22293 (copysign): Define using libm_alias_double.
22294 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22295 <libm-alias-double.h>.
22296 (llrint): Define using libm_alias_double.
22297 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22298 <libm-alias-double.h>.
22299 (llround): Define using libm_alias_double.
22300 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22301 <libm-alias-double.h>.
22302 (lrint): Define using libm_alias_double.
22303 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22304 <libm-alias-double.h>.
22305 (lround): Define using libm_alias_double.
22306 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22307 Include <libm-alias-double.h>.
22308 (copysign): Define using libm_alias_double.
22309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22310 Include <libm-alias-double.h>.
22311 (llrint): Define using libm_alias_double.
22312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22313 Include <libm-alias-double.h>.
22314 (llround): Define using libm_alias_double.
22315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22316 <libm-alias-double.h>.
22317 (logb): Define using libm_alias_double.
22318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22319 Include <libm-alias-double.h>.
22320 (lrint): Define using libm_alias_double.
22321 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22322 Include <libm-alias-double.h>.
22323 (lround): Define using libm_alias_double.
22324 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22325 <libm-alias-double.h>.
22326 (llrint): Define using libm_alias_double.
22327 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22328 <libm-alias-double.h>.
22329 (llround): Define using libm_alias_double.
22330 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22331 <libm-alias-double.h>.
22332 (llround): Define using libm_alias_double.
22333 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22334 <libm-alias-double.h>.
22335 (lround): Define using libm_alias_double.
22336 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22337 <libm-alias-double.h>.
22338 (copysign): Define using libm_alias_double.
22339 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22340 <libm-alias-double.h>.
22341 (llrint): Define using libm_alias_double.
22342 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22343 <libm-alias-double.h>.
22344 (llround): Define using libm_alias_double.
22345 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22346 <libm-alias-double.h>.
22347 (lrint): Define using libm_alias_double.
22348 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22349 <libm-alias-double.h>.
22350 (lround): Define using libm_alias_double.
22351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22352 <libm-alias-double.h>.
22353 (copysign): Define using libm_alias_double.
22354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22355 <libm-alias-double.h>.
22356 (llrint): Define using libm_alias_double.
22357 (lrint): Likewise.
22358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22359 <libm-alias-double.h>.
22360 (llround): Define using libm_alias_double.
22361 (lround): Likewise.
22362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22363 <libm-alias-double.h>.
22364 (logb): Define using libm_alias_double.
22365 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22366 <libm-alias-double.h>.
22367 (copysign): Define using libm_alias_double.
22368 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22369 <libm-alias-double.h>.
22370 (llrint): Define using libm_alias_double.
22371 (lrint): Likewise.
22372 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22373 <libm-alias-double.h>.
22374 (llround): Define using libm_alias_double.
22375 (lround): Likewise.
22376 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22377 <libm-alias-double.h>.
22378 (llround): Define using libm_alias_double.
22379 (lround): Likewise.
22380 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22381 <libm-alias-double.h>.
22382 (copysign): Define using libm_alias_double.
22383 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22384 <libm-alias-double.h>.
22385 (llrint): Define using libm_alias_double.
22386 (lrint): Likewise.
22387 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22388 <libm-alias-double.h>.
22389 (llround): Define using libm_alias_double.
22390 (lround): Likewise.
22391 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22392 <libm-alias-double.h>.
22393 (llrint): Define using libm_alias_double.
22394 (lrint): Likewise.
22395 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22396 <libm-alias-double.h>.
22397 (llround): Define using libm_alias_double.
22398 (lround): Likewise.
22399
ec2cf3f4
JM
224002017-12-01 Joseph Myers <joseph@codesourcery.com>
22401
0ddde474
JM
22402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22403 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22404 compat symbol based on llround.
22405
0d5ba561
JM
22406 * sysdeps/powerpc/power7/fpu/s_logb.c
22407 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22408 symbol based on __logb, not on logb.
22409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22410 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22411 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22412 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22413
51ea3b20
JM
22414 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22415 (rint): Define using libm_alias_double.
22416 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22417 <libm-alias-double.h>.
22418 (modf): Define using libm_alias_double.
22419 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22420 <libm-alias-double.h>.
22421 (ceil): Define using libm_alias_double.
22422 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22423 <libm-alias-double.h>.
22424 (floor): Define using libm_alias_double.
22425 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22426 <libm-alias-double.h>.
22427 (nearbyint): Define using libm_alias_double.
22428 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22429 <libm-alias-double.h>.
22430 (rint): Define using libm_alias_double.
22431 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22432 <libm-alias-double.h>.
22433 (round): Define using libm_alias_double.
22434 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22435 <libm-alias-double.h>.
22436 (trunc): Define using libm_alias_double.
22437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22438 <libm-alias-double.h>.
22439 (ceil): Define using libm_alias_double.
22440 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22441 Include <libm-alias-double.h>.
22442 (floor): Define using libm_alias_double.
22443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22444 <libm-alias-double.h>.
22445 (modf): Define using libm_alias_double.
22446 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22447 Include <libm-alias-double.h>.
22448 (round): Define using libm_alias_double.
22449 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22450 Include <libm-alias-double.h>.
22451 (trunc): Define using libm_alias_double.
22452 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22453 <libm-alias-double.h>.
22454 (ceil): Define using libm_alias_double.
22455 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22456 <libm-alias-double.h>.
22457 (floor): Define using libm_alias_double.
22458 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22459 <libm-alias-double.h>.
22460 (round): Define using libm_alias_double.
22461 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22462 <libm-alias-double.h>.
22463 (trunc): Define using libm_alias_double.
22464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22465 <libm-alias-double.h>.
22466 (ceil): Define using libm_alias_double.
22467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22468 <libm-alias-double.h>.
22469 (floor): Define using libm_alias_double.
22470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22471 <libm-alias-double.h>.
22472 (modf): Define using libm_alias_double.
22473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22474 <libm-alias-double.h>.
22475 (round): Define using libm_alias_double.
22476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22477 <libm-alias-double.h>.
22478 (trunc): Define using libm_alias_double.
22479 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22480 <libm-alias-double.h>.
22481 (ceil): Define using libm_alias_double.
22482 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22483 <libm-alias-double.h>.
22484 (floor): Define using libm_alias_double.
22485 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22486 <libm-alias-double.h>.
22487 (nearbyint): Define using libm_alias_double.
22488 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22489 <libm-alias-double.h>.
22490 (rint): Define using libm_alias_double.
22491 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22492 <libm-alias-double.h>.
22493 (round): Define using libm_alias_double.
22494 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22495 <libm-alias-double.h>.
22496 (trunc): Define using libm_alias_double.
22497 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22498 <libm-alias-double.h>.
22499 (ceil): Define using libm_alias_double.
22500 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22501 <libm-alias-double.h>.
22502 (floor): Define using libm_alias_double.
22503 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22504 <libm-alias-double.h>.
22505 (round): Define using libm_alias_double.
22506 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22507 <libm-alias-double.h>.
22508 (trunc): Define using libm_alias_double.
22509
ec2cf3f4
JM
22510 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22511 (fabs): Define using libm_alias_double.
22512 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22513 (fma): Define using libm_alias_double.
22514 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22515 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22516 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22517 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22518
5b7bd975
AZ
225192017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22520
0594b13f
AZ
22521 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22522
dbdfcf3b
AZ
22523 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22524 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22525 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22526
5b7bd975
AZ
22527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22528 due redirect macro.
22529
ef9ecfa6
AS
225302017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22531
22532 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22533
5b4e5e78
AZ
225342017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22535
2a14526b
AZ
22536 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22537 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22538 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22539 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22540
dbeb74ef 22541 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1c051a9b
AZ
22542 (libm-sysdep_routines): Add s_nearbyintf-generic and
22543 s_nearbyint-generic.
22544 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22545 New file.
22546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22548 Likewise.
22549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22550 Likewise.
22551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22552 file.
22553 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22554 Likewise.
22555
22556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
dbeb74ef
AZ
22557 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22558 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22559 file.
22560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22562 Likewise.
22563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22566
fa7ded96
AZ
22567 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22568 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22570 file.
22571 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22573 Likewise.
22574 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22577
e240cf0e
AZ
22578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22579 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22581 file.
22582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22584 Likewise.
22585 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22588
5b4e5e78
AZ
22589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22590 (sysdep_calls): New rule.
22591 (sysdep_routines): Use sysdep_calls as base.
22592 (libm-sysdep_routines): Add generic rule for symbols shared with
22593 libc. Add s_copysign-generic and s_copysign-generic objects.
22594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22595 New file.
22596 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22598 Likewise.
22599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22602
d985adae
MF
226032017-12-01 Mike FABIAN <mfabian@redhat.com>
22604
22605 [BZ #22519]
22606 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22607 the list of locales to be built for testing.
22608 * localedata/is_IS.UTF-8.in: New file.
22609 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22610 on iso14651_t1.
22611
ff84a0e0
JM
226122017-12-01 Joseph Myers <joseph@codesourcery.com>
22613
22614 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22615 <libm-alias-float.h>.
22616 (fabsf): Define using libm_alias_float.
22617
ef5d8b43
L
226182017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22619
22620 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22621
c0535adf
JM
226222017-11-30 Joseph Myers <joseph@codesourcery.com>
22623
f938b397
JM
22624 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22625 <libm-alias-float.h>.
22626 (fabsf): Define using libm_alias_float.
22627 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22628 <libm-alias-float.h>.
22629 (lrintf): Define using libm_alias_float.
22630 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22631 <libm-alias-float.h>.
22632 (rintf): Define using libm_alias_float.
22633
2251fad0
JM
22634 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22635 <libm-alias-double.h>.
22636 (fabs): Define using libm_alias_double.
22637 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22638 <libm-alias-double.h>.
22639 (lrint): Define using libm_alias_double.
22640 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22641 <libm-alias-double.h>.
22642 (rint): Define using libm_alias_double.
22643
e53df1de
JM
22644 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22645 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22646 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22647 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22648 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22649 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22650 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22651 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22652 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22653 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22654 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22655 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22656 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22657 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22658 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22659 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22660 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22661 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22662 s_atan_template.c.
22663 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22664 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22665 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22666 s_ceil_template.c.
22667 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22668 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22669 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22670 s_cos_template.c.
22671 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22672 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22673 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22674 s_expm1_template.c.
22675 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22676 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22677 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22678 s_fabs_template.c.
22679 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22680 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22681 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22682 s_floor_template.c.
22683 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22684 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22685 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22686 s_frexp_template.c.
22687 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22688 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22689 s_lrint_template.c.
22690 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22691 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22692 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22693 s_modf_template.c.
22694 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22695 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22696 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22697 s_nearbyint_template.c.
22698 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22699 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22700 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22701 s_remquo_template.c.
22702 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22703 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22704 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22705 s_rint_template.c.
22706 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22707 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22708 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22709 s_sin_template.c.
22710 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22711 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22712 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22713 s_sincos_template.c.
22714 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22715 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22716 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22717 s_tan_template.c.
22718 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22719 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22720 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22721 s_tanh_template.c.
22722 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22723 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22724 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22725 s_trunc_template.c.
22726 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22727 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22728 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22729 s_atan.c instead of including s_atan.c.
22730 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22731 s_atanf.c instead of including s_atanf.c.
22732 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22733 s_atanl.c instead of including s_atanl.c.
22734 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22735 instead of s_atan.c.
22736 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22737 instead of s_atanf.c.
22738 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22739 instead of s_atanl.c.
22740
c0535adf
JM
22741 * scripts/update-copyrights: Do not handle intl/plural.c
22742 specially.
22743
1faaf703
JB
227442017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22745
22746 [BZ #22432]
22747 * configure.ac (BISON): Require to be present.
22748 * configure: Regenerated.
22749 * intl/Makefile (generated): Add plural.c.
22750 [$(BISON) != no]: Make code unconditional.
22751 (plural.c): Change rule to $(objpfx)plural.c.
22752 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22753 * intl/plural.c: Remove.
22754 * manual/install.texi (Tools for Compilation): Document bison as
22755 required.
22756 * INSTALL: Regenerated.
22757
faec6323
JM
227582017-11-30 Joseph Myers <joseph@codesourcery.com>
22759
bd6ea9ed
JM
22760 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22761 <libm-alias-double.h>.
22762 (llrint): Define using libm_alias_double.
22763 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22764 <libm-alias-float.h>.
22765 (llrintf): Define using libm_alias_float.
22766 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22767 <libm-alias-ldouble.h>.
22768 (llrintl): Define using libm_alias_ldouble.
22769
faec6323
JM
22770 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22771 declare_mgen_alias instead of weak_alias.
22772 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22773 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22774 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22775
023cade3
AZ
227762017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22777
9e2279a0
AZ
22778 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22779 Add add_n-generic.
22780 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22781 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22782 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22783
75f37c71
AZ
22784 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22785 Add submul_1-generic.
22786 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22787 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22788 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22789
b70cbbfc 22790 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
dda1d2e8
AZ
22791 Add addmul_1-generic.
22792 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22793 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22794 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22795
22796 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
b70cbbfc
AZ
22797 Add sub_n-generic.
22798 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22799 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22800 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22801
023cade3
AZ
22802 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22803 Add mul_1-generic.
22804 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22805 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22806 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22807
fbb5fd03
MF
228082017-11-30 Mike FABIAN <mfabian@redhat.com>
22809
22810 According to CLDR, collation rules for Serbian and Bosnian
22811 should be the same as for Croatian.
22812
22813 [BZ #22534]
22814 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22815 and to the list of locales to be built for testing.
22816 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22817 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22818 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22819 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22820
5e56e937
MF
228212017-11-30 Mike FABIAN <mfabian@redhat.com>
22822
22823 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22824 to make test case pass.
22825 * localedata/hr_HR.UTF-8.in: Add more test strings.
22826
cf4341ca
MF
228272017-11-30 Mike FABIAN <mfabian@redhat.com>
22828
22829 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22830
363e4519 228312017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
9ca6b343
DSN
22832
22833 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22834 the list of locales to built for testing.
22835 * localedata/hr_HR.UTF-8.in: New file.
22836
363e4519 228372017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
37075ae1
DSN
22838
22839 [BZ #10580]
22840 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22841 iso14651_t1.
22842 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22843 CLDR (except use ligatures for the digraphs, CLDR does not use
22844 the ligatures), add first_workday, some fixes in the date and time
22845 formats.
22846 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22847 for Đ and đ.
22848 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22849 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22850 Add int_p_cs_precedes and int_n_cs_precedes.
22851 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22852 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22853 LC_MONETARY now).
22854 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22855 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22856 name_miss.
22857 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22858 and lang_lib. Change postal_fmt.
22859
f33632cc
L
228602017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22861
22862 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22863 <setjmp.h>.
22864 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22865 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22866 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22867 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22868 * sysdeps/generic/setjmpP.h: New file.
22869 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22870 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22871 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22872 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22873 Add jmp_buf-ssp.sym.
22874 (tests): Add tst-saved_mask-1.
22875
34697694
AS
228762017-11-30 Arjun Shankar <arjun@redhat.com>
22877
22878 [BZ #22375]
37ac8e63 22879 CVE-2017-17426
34697694
AS
22880 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22881 instead of request2size.
22882
3e5efdbd
JM
228832017-11-30 Joseph Myers <joseph@codesourcery.com>
22884
18305fba
JM
22885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22886 (__lllrint): Remove alias.
22887 (lllrint): Likewise.
22888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22889 (__lllrintf): Likewise.
22890 (lllrintf): Likewise.
22891
3e5efdbd
JM
22892 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22893 <libm-alias-float.h>.
22894 (copysignf): Define using libm_alias_float.
22895 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22896 <libm-alias-float.h>.
22897 (fabsf): Define using libm_alias_float.
22898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22899 Include <libm-alias-float.h>.
22900 (copysignf): Define using libm_alias_float.
22901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22902 <libm-alias-float.h>.
22903 (fabsf): Define using libm_alias_float.
22904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22905 <libm-alias-float.h>.
22906 (fdimf): Define using libm_alias_float.
22907 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22908 <libm-alias-float.h>.
22909 (fmaf): Define using libm_alias_float.
22910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22911 <libm-alias-float.h>.
22912 (llrintf): Define using libm_alias_float.
22913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22914 Include <libm-alias-float.h>.
22915 (nearbyintf): Define using libm_alias_float.
22916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22917 <libm-alias-float.h>.
22918 (rintf): Define using libm_alias_float.
22919 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22920 <libm-alias-float.h>.
22921 (llrintf): Define using libm_alias_float.
22922 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22923 <libm-alias-float.h>.
22924 (lrintf): Define using libm_alias_float.
22925 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22926 <libm-alias-float.h>.
22927 (nearbyintf): Define using libm_alias_float.
22928 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22929 <libm-alias-float.h>.
22930 (rintf): Define using libm_alias_float.
22931 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22932 <libm-alias-float.h>.
22933 (ceilf): Define using libm_alias_float.
22934 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22935 <libm-alias-float.h>.
22936 (floorf): Define using libm_alias_float.
22937 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22938 <libm-alias-float.h>.
22939 (fmaf): Define using libm_alias_float.
22940 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22941 <libm-alias-float.h>.
22942 (lrintf): Define using libm_alias_float.
22943 (llrintf): Likewise.
22944 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22945 <libm-alias-float.h>.
22946 (nearbyintf): Define using libm_alias_float.
22947 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22948 <libm-alias-float.h>.
22949 (rintf): Define using libm_alias_float.
22950 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22951 <libm-alias-float.h>.
22952 (truncf): Define using libm_alias_float.
22953 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22954 <libm-alias-float.h>.
22955 (copysignf): Define using libm_alias_float.
22956 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22957 <libm-alias-float.h>.
22958 (fabsf): Define using libm_alias_float.
22959 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22960 <libm-alias-float.h>.
22961 (lrintf): Define using libm_alias_float.
22962 (llrintf): Likewise.
22963 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22964 <libm-alias-float.h>.
22965 (nearbyintf): Define using libm_alias_float.
22966 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22967 <libm-alias-float.h>.
22968 (rintf): Define using libm_alias_float.
22969
011fba7e
JM
229702017-11-29 Joseph Myers <joseph@codesourcery.com>
22971
875cd548
JM
22972 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22973 <libm-alias-double.h>.
22974 (copysign): Define using libm_alias_double.
22975 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22976 <libm-alias-double.h>.
22977 (fabs): Define using libm_alias_double.
22978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22979 Include <libm-alias-double.h>.
22980 (copysign): Define using libm_alias_double.
22981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22982 <libm-alias-double.h>.
22983 (fabs): Define using libm_alias_double.
22984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22985 <libm-alias-double.h>.
22986 (fdim): Define using libm_alias_double.
22987 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22988 <libm-alias-double.h>.
22989 (fma): Define using libm_alias_double.
22990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22991 <libm-alias-double.h>.
22992 (llrint): Define using libm_alias_double.
22993 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22994 Include <libm-alias-double.h>.
22995 (nearbyint): Define using libm_alias_double.
22996 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22997 <libm-alias-double.h>.
22998 (rint): Define using libm_alias_double.
22999 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23000 <libm-alias-double.h>.
23001 (fabs): Define using libm_alias_double.
23002 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23003 <libm-alias-double.h>.
23004 (llrint): Define using libm_alias_double.
23005 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23006 <libm-alias-double.h>.
23007 (nearbyint): Define using libm_alias_double.
23008 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23009 <libm-alias-double.h>.
23010 (rint): Define using libm_alias_double.
23011 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23012 <libm-alias-double.h>.
23013 (ceil): Define using libm_alias_double.
23014 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23015 <libm-alias-double.h>.
23016 (floor): Define using libm_alias_double.
23017 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23018 <libm-alias-double.h>.
23019 (fma): Define using libm_alias_double.
23020 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23021 <libm-alias-double.h>.
23022 (lrint): Define using libm_alias_double.
23023 (llrint): Likewise.
23024 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23025 <libm-alias-double.h>.
23026 (nearbyint): Define using libm_alias_double.
23027 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23028 <libm-alias-double.h>.
23029 (rint): Define using libm_alias_double.
23030 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23031 <libm-alias-double.h>.
23032 (trunc): Define using libm_alias_double.
23033 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23034 <libm-alias-double.h>.
23035 (copysign): Define using libm_alias_double.
23036 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23037 <libm-alias-double.h>.
23038 (fabs): Define using libm_alias_double.
23039 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23040 <libm-alias-double.h>.
23041 (lrint): Define using libm_alias_double.
23042 (llrint): Likewise.
23043 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23044 <libm-alias-double.h>.
23045 (nearbyint): Define using libm_alias_double.
23046 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23047 <libm-alias-double.h>.
23048 (rint): Define using libm_alias_double.
23049
cf4ebc27
JM
23050 [BZ #22229]
23051 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23052 <math_ldbl_opt.h>.
23053 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23054
0c097378
JM
23055 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23056 SPARC --disable-multi-arch glibc variants.
23057
34bb10aa
JM
23058 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23059 <libm-alias-float.h>.
23060 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23061 if [SHARED].
23062 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23063 <libm-alias-float.h>.
23064 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23065 if [SHARED].
23066 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23067 <libm-alias-float.h>.
23068 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23069 if [SHARED].
23070 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23071 <libm-alias-float.h>.
23072 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23073 if [SHARED].
23074 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23075 <libm-alias-float.h>.
23076 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23077 if [SHARED].
23078 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23079 <libm-alias-float.h>.
23080 (ceilf): Define using libm_alias_float.
23081 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23082 <libm-alias-float.h>.
23083 (floorf): Define using libm_alias_float.
23084 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23085 <libm-alias-float.h>.
23086 (fmaf): Define using libm_alias_float.
23087 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23088 <libm-alias-float.h>.
23089 (nearbyintf): Define using libm_alias_float.
23090 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23091 <libm-alias-float.h>.
23092 (rintf): Define using libm_alias_float.
23093 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23094 <libm-alias-float.h>.
23095 (truncf): Define using libm_alias_float.
23096 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23097 (copysignf): Define using libm_alias_float.
23098 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23099 (cosf): Define using libm_alias_float.
23100 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23101 (fabsf): Define using libm_alias_float.
23102 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23103 (fmaxf): Define using libm_alias_float.
23104 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23105 (fminf): Define using libm_alias_float.
23106 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23107 (llrintf): Define using libm_alias_float.
23108 [!__ILP32__] (lrintf): Likewise.
23109 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23110 (sincosf): Define using libm_alias_float.
23111 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23112 (sinf): Define using libm_alias_float.
23113 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23114 (lrintf): Define using libm_alias_float.
23115
011fba7e
JM
23116 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23117 <libm-alias-double.h>.
23118 (atan): Define using libm_alias_double.
23119 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23120 <libm-alias-double.h>.
23121 (ceil): Define using libm_alias_double.
23122 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23123 <libm-alias-double.h>.
23124 (floor): Define using libm_alias_double.
23125 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23126 <libm-alias-double.h>.
23127 (fma): Define using libm_alias_double.
23128 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23129 <libm-alias-double.h>.
23130 (nearbyint): Define using libm_alias_double.
23131 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23132 <libm-alias-double.h>.
23133 (rint): Define using libm_alias_double.
23134 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23135 <libm-alias-double.h>.
23136 (sin): Define using libm_alias_double.
23137 (cos): Likewise.
23138 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23139 <libm-alias-double.h>.
23140 (tan): Define using libm_alias_double.
23141 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23142 <libm-alias-double.h>.
23143 (trunc): Define using libm_alias_double.
23144 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23145 (copysign): Define using libm_alias_double.
23146 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23147 (fabs): Define using libm_alias_double.
23148 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23149 (fmax): Define using libm_alias_double.
23150 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23151 (fmin): Define using libm_alias_double.
23152 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23153 (llrint): Define using libm_alias_double.
23154 [!__ILP32__] (lrint): Likewise.
23155 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23156 (lrint): Define using libm_alias_double.
23157
1cbd7bfe
AZ
231582017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23159
21bfcc3d
AZ
23160 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23161 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23162 objects.
23163 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23164 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23165 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23166 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23167 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23168 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23169
522228dd
AZ
23170 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23171 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23172 objects.
23173 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23174 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23175 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23176 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23177 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23178 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23179
2a6f4fab
AZ
23180 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23181 (libm-sysdep_routines): Add s_nearbyint-generic and
23182 s_nearbyintf-generic objects.
23183 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23184 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23185 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23186 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23187 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23188 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23189
712b5b83
AZ
23190 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23191 Add s_finitef-generic and s_finite-generic objects.
23192 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23193 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23194 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23195 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23196 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23197 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23198
c96d3335
AZ
23199 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23200 Add s_isinff-generic and s_isinf-generic objects.
23201 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23202 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23203 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23204 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23205 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23206 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23207
c6862a23
AZ
23208 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23209 Add s_isnanf-generic and s_isnan-generic objects.
23210 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23211 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23212 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23213 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23214 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23215 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23216
1cbd7bfe
AZ
23217 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23218 macro.
23219 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23220 rule.
23221 (sysdep_routines): Use sysdep_calls as base.
23222 (libm-sysdep_routines): Add generic rule for symbols shared with
23223 libc. Add s_signbit-generic and s_signbitf-generic objects.
23224 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23225 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23226 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23227 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23228 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23229 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23230
aa1142c5
JM
232312017-11-29 Joseph Myers <joseph@codesourcery.com>
23232
23233 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23234 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23235 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23236 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23237 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23238 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23239 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23240 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23241 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23242 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23243 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23244 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23245 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23246 libm_alias_float_r.
23247 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23248 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23249 (logf): Likewise.
23250 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23251 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23252 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23253 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23254 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23255 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23256 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23257 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23258 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23259 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23260 libm_alias_float.
23261 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23262 (cosf): Likewise.
23263 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23264 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23265 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23266 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23267 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23268 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23269 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23270 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23271 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23272 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23273 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23274 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23275 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23276 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23277 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23278 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23279 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23280 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23281 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23282 libm_alias_float.
23283 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23284 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23285 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23286 * sysdeps/ia64/fpu/w_lgammaf_main.c
23287 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23288 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23289
363e4519
DL
232902017-11-28 Mike FABIAN <mfabian@redhat.com>
23291 Alexandre Oliva <aoliva@redhat.com>
8da25eec
AO
23292
23293 [BZ #17750]
23294 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23295 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23296 accents sorting.
23297 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23298 sorting.
23299 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23300 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23301 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23302 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23303 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23304 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23305 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23306 instead of “ifdef DIACRIT_BACKWARD”.
23307
a55430cb
AZ
233082017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23309
23310 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23311 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23312 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23313 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23314 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23315 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23316 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23317 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23318 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23319 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23320 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23321 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23322 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23323 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23324 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23325 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23326 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23327 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23328 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23329 ($(have-as-vis3) == yes): Remove conditional.
23330 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23331 Likewise.
23332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23333 file.
23334 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23335 file.
23336 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23337 file.
23338 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23339 file.
23340 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23341 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23342 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23343 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23344 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23345 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23346 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23347 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23348
0609ec0a
JM
233492017-11-29 Joseph Myers <joseph@codesourcery.com>
23350
23351 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23352 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23353 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23354 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23355 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23356 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23357 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23358 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23359 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23360 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23361 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23362 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23363 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23364 libm_alias_double_r.
23365 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23366 (log): Likewise.
23367 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23368 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23369 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23370 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23371 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23372 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23373 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23374 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23375 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23376 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23377 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23378 libm_alias_double.
23379 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23380 (cos): Likewise.
23381 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23382 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23383 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23384 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23385 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23386 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23387 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23388 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23389 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23390 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23391 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23392 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23393 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23394 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23395 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23396 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23397 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23398 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23399 libm_alias_double.
23400 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23401 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23402 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23403 * sysdeps/ia64/fpu/w_lgamma_main.c
23404 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23405 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23406
d5bfa34a
JDA
234072017-11-28 John David Anglin <danglin@gcc.gnu.org>
23408
23409 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23410 address of $global$ into %dp register earlier. Use pc-relative
23411 instruction sequence for PIC case.
23412
bc4e8f9b
JM
234132017-11-28 Joseph Myers <joseph@codesourcery.com>
23414
e4602cba
JM
23415 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23416 (asinhf): Define using libm_alias_float.
23417 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23418 (atanf): Define using libm_alias_float.
23419 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23420 (cbrtf): Define using libm_alias_float.
23421 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23422 (ceilf): Define using libm_alias_float.
23423 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23424 (copysignf): Define using libm_alias_float.
23425 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23426 (expm1f): Define using libm_alias_float.
23427 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23428 (fabsf): Define using libm_alias_float.
23429 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23430 (floorf): Define using libm_alias_float.
23431 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23432 (fmaxf): Define using libm_alias_float.
23433 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23434 (fminf): Define using libm_alias_float.
23435 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23436 (frexpf): Define using libm_alias_float.
23437 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23438 (llrintf): Define using libm_alias_float.
23439 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23440 (logbf): Define using libm_alias_float.
23441 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23442 (lrintf): Define using libm_alias_float.
23443 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23444 (nearbyintf): Define using libm_alias_float.
23445 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23446 (remquof): Define using libm_alias_float.
23447 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23448 (rintf): Define using libm_alias_float.
23449 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23450 (truncf): Define using libm_alias_float.
23451 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23452 <libm-alias-float.h>.
23453 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23454 if [SHARED].
23455 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23456 <libm-alias-float.h>.
23457 (expf): Define using libm_alias_float, or libm_alias_float_other
23458 if [SHARED].
23459 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23460 <libm-alias-float.h>.
23461 (log2f): Define using libm_alias_float, or libm_alias_float_other
23462 if [SHARED].
23463 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23464 <libm-alias-float.h>.
23465 (logf): Define using libm_alias_float, or libm_alias_float_other
23466 if [SHARED].
23467 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23468 <libm-alias-float.h>.
23469 (powf): Define using libm_alias_float, or libm_alias_float_other
23470 if [SHARED].
23471 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23472 <libm-alias-float.h>.
23473 (cosf): Define using libm_alias_float.
23474 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23475 <libm-alias-float.h>.
23476 (sincosf): Define using libm_alias_float.
23477 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23478 <libm-alias-float.h>.
23479 (sinf): Define using libm_alias_float.
23480 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23481 (fmaxf): Define using libm_alias_float.
23482 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23483 (fminf): Define using libm_alias_float.
23484 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23485 <libm-alias-float.h>.
23486 (fmaf): Define using libm_alias_float.
23487
bc4e8f9b
JM
23488 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23489 (asinh): Define using libm_alias_double.
23490 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23491 (atan): Define using libm_alias_double.
23492 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23493 (cbrt): Define using libm_alias_double.
23494 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23495 (ceil): Define using libm_alias_double.
23496 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23497 (copysign): Define using libm_alias_double.
23498 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23499 (expm1): Define using libm_alias_double.
23500 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23501 (fabs): Define using libm_alias_double.
23502 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23503 (fdim): Define using libm_alias_double.
23504 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23505 (floor): Define using libm_alias_double.
23506 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23507 (fmax): Define using libm_alias_double.
23508 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23509 (fmin): Define using libm_alias_double.
23510 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23511 (frexp): Define using libm_alias_double.
23512 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23513 (llrint): Define using libm_alias_double.
23514 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23515 (logb): Define using libm_alias_double.
23516 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23517 (lrint): Define using libm_alias_double.
23518 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23519 (nearbyint): Define using libm_alias_double.
23520 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23521 (remquo): Define using libm_alias_double.
23522 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23523 (rint): Define using libm_alias_double.
23524 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23525 (trunc): Define using libm_alias_double.
23526 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23527 (fmax): Define using libm_alias_double.
23528 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23529 (fmin): Define using libm_alias_double.
23530 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23531 (fma): Define using libm_alias_double.
23532
8d81ce0c
L
235332017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23534
23535 [BZ #22370]
23536 * elf/dl-hwcaps.c (ROUND): Removed.
23537 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23538 and ELF_NOTE_NEXT_OFFSET.
23539 * elf/dl-load.c (ROUND): Removed.
23540 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23541 * elf/readelflib.c (ROUND): Removed.
23542 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23543 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23544 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23545 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23546
6940bd96
JM
235472017-11-28 Joseph Myers <joseph@codesourcery.com>
23548
313ba463
JM
23549 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23550 [!__fmaf] (fmaf): Define using libm_alias_float.
23551
6940bd96
JM
23552 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23553 [!__fma] (fma): Define using libm_alias_double.
23554 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23555
22c69b6a
MF
235562017-11-28 Mike FABIAN <mfabian@redhat.com>
23557
23558 [BZ #22336]
23559 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23560 and implement the collation rules for cs from CLDR on top of that.
23561 * Makefile: Add cs_CZ.UTF-8 to test-input.
23562 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23563
8d7d3ba8
SP
235642017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23565
23566 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23567
0422ed1e
VR
235682017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23569 Icarus Sparry <icarus.w.sparry@intel.com>
23570
23571 * benchtests/Makefile:Add BENCHSET to allow subsets of
23572 benchmarks to be run.
23573 * benchtests/README: Add documentation for: Running subsets of
23574 benchmarks.
23575
0595e360
VR
235762017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23577
d5090db3
VR
23578 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23579 range of tests names.
23580
0595e360
VR
23581 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23582 result from property and remove "max", min" and "mean" from
23583 required properties based on benchtests/bench-skeleton.c.
23584
b4c645c2
FW
235852017-11-28 Florian Weimer <fweimer@redhat.com>
23586
23587 [BZ #20826]
23588 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23589 due to Internet requirement.
23590 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23591 tst-getaddrinfo5.
23592 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23593
88684de7
AZ
235942017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23595
69056564
AZ
23596 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23597 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23598 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23599 (sysdep_routines): Add memset-ultra1.
23600 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23601 file.
23602 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23603 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23604 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23605 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23606 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23607 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23608 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23609 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23610
88684de7
AZ
23611 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23612 file.
23613 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23614 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23615 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23616 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23617 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23618 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23619 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23620 macro.
23621 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23622 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23623 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23624 (sysdep_routines): Add memcpy-ultra1.
23625 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23626 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23627
d8124864
JM
236282017-11-28 Joseph Myers <joseph@codesourcery.com>
23629
f433d0b3
JM
23630 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23631 (cfloat_versions): Take function argument without trailing 'f'.
23632 Call libm_alias_float_other.
23633 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23634 * sysdeps/alpha/fpu/cargf.c: Likewise.
23635 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23636 * sysdeps/alpha/fpu/conjf.c: Likewise.
23637 * sysdeps/alpha/fpu/crealf.c: Likewise.
23638 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23639 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23640 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23641 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23642 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23643 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23644 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23645 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23646 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23647 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23648 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23649 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23650 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23651 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23652 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23653 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23654 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23655 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23656 (clog10f): Use libm_alias_float_other.
23657 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23658 (ceilf): Define using libm_alias_float.
23659 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23660 (copysignf): Define using libm_alias_float.
23661 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23662 (fabsf): Define using libm_alias_float.
23663 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23664 (floorf): Define using libm_alias_float.
23665 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23666 (fmaxf): Define using libm_alias_float.
23667 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23668 (fminf): Define using libm_alias_float.
23669 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23670 (lrintf): Define using libm_alias_float.
23671 (llrintf): Likewise.
23672 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23673 (lroundf): Define using libm_alias_float.
23674 (llroundf): Likewise.
23675 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23676 (rintf): Define using libm_alias_float.
23677 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23678 (truncf): Define using libm_alias_float.
23679
15ff4900
JM
23680 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23681 (ceilf): Define using libm_alias_float.
23682 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23683 (floorf): Define using libm_alias_float.
23684 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23685 (fmaf): Define using libm_alias_float.
23686 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23687 (fmaxf): Define using libm_alias_float.
23688 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23689 (fminf): Define using libm_alias_float.
23690 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23691 (llrintf): Define using libm_alias_float.
23692 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23693 (llroundf): Define using libm_alias_float.
23694 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23695 (lrintf): Define using libm_alias_float.
23696 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23697 (lroundf): Define using libm_alias_float.
23698 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23699 <libm-alias-float.h>.
23700 (nearbyintf): Define using libm_alias_float.
23701 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23702 (rintf): Define using libm_alias_float.
23703 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23704 (roundf): Define using libm_alias_float.
23705 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23706 (truncf): Define using libm_alias_float.
23707
5de60638
JM
23708 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23709 (ceil): Define using libm_alias_double.
23710 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23711 (copysign): Define using libm_alias_double.
23712 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23713 (fabs): Define using libm_alias_double.
23714 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23715 (floor): Define using libm_alias_double.
23716 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23717 (fmax): Define using libm_alias_double.
23718 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23719 (fmin): Define using libm_alias_double.
23720 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23721 (lrint): Define using libm_alias_double.
23722 (llrint): Likewise.
23723 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23724 (lround): Define using libm_alias_double.
23725 (llround): Likewise.
23726 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23727 (rint): Define using libm_alias_double.
23728 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23729 (trunc): Define using libm_alias_double.
23730
d8124864
JM
23731 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23732 (libm_alias_double_r): Add semicolon after weak_alias call.
23733
f07d2ec8
JM
237342017-11-27 Joseph Myers <joseph@codesourcery.com>
23735
23736 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23737 (ceil): Define using libm_alias_double.
23738 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23739 (floor): Define using libm_alias_double.
23740 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23741 (fma): Define using libm_alias_double.
23742 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23743 (fmax): Define using libm_alias_double.
23744 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23745 (fmin): Define using libm_alias_double.
23746 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23747 (llrint): Define using libm_alias_double.
23748 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23749 (llround): Define using libm_alias_double.
23750 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23751 (lrint): Define using libm_alias_double.
23752 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23753 (lround): Define using libm_alias_double.
23754 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23755 (nearbyint): Define using libm_alias_double.
23756 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23757 (rint): Define using libm_alias_double.
23758 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23759 (round): Define using libm_alias_double.
23760 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23761 (trunc): Define using libm_alias_double.
23762
4bab0224
FW
237632017-11-27 Florian Weimer <fweimer@redhat.com>
23764
23765 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23766 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23767 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23768 (tests): Add tst-mlock2.
23769 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23770 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23771 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23772 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23773 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23774 for mlock. Document mlock2.
23775
a23aa5b7
JM
237762017-11-27 Joseph Myers <joseph@codesourcery.com>
23777
23778 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23779 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23780 Likewise.
23781 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23782 Likewise.
23783 * sysdeps/x86/Makeconfig: New file.
23784 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23785 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23786 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23787 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23788 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23789 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23790 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23791 Likewise.
23792 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23793 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23794 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23795 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23796 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23797 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23798 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23799 * manual/math.texi (Mathematics): Document support for _Float64x.
23800 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23801 * stdlib/Versions (GLIBC_2.27): Likewise.
23802 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23803 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23804 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23805 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23806 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23807 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23808 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23809 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23810 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23811 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23812 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23813 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23815 Likewise.
23816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23817 Likewise.
23818 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23819 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23820 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23821 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23822 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23823 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23824 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23825 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23826 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23827 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23828 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23829 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23830 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23831 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23832
c2c299fd
AS
238332017-11-27 Andreas Schwab <schwab@suse.de>
23834
23835 * elf/Makefile (dl-routines): Add dl-sort-maps.
23836 * elf/dl-sort-maps.c: New file.
23837 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23838 (_dl_sort_maps): Declare.
23839 * elf/dl-fini.c (_dl_sort_fini): Remove.
23840 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23841 * elf/dl-close.c (_dl_close_worker): Likewise.
23842 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23843 open-coding it.
23844 * elf/dl-open.c (dl_open_worker): Likewise.
23845
9d4b0117
JM
238462017-11-24 Joseph Myers <joseph@codesourcery.com>
23847
de61465c
JM
23848 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23849 using libm_alias_float128.
23850 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23851 Likewise.
23852 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23853 Likewise.
23854 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23855 (setpayloadsigf128): Likewise.
23856 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23857 Likewise.
23858 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23859 Likewise.
23860
9ae6d171
JM
23861 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23862 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23863 -mfloat128 to CFLAGS.
23864 ($(foreach
23865 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23866 Likewise.
23867 (CFLAGS-libm-test-support-float64x.c): New variable.
23868 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23869 $(f128-loader-link) to gnulib-tests.
23870
6e70d156
JM
23871 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23872 (libm_alias_float128_other_r): If
23873 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23874 alias.
23875 (libm_alias_float128_r): Add semicolon after weak_alias call.
23876 * sysdeps/generic/libm-alias-ldouble.h
23877 (libm_alias_ldouble_other_r_f128): New macro.
23878 (libm_alias_ldouble_other_r_f64x): Likewise.
23879 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23880 and libm_alias_ldouble_other_r_f64x.
23881 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23882 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23883 (libm_alias_ldouble_other_r_f128): New macro.
23884 (libm_alias_ldouble_other_r_f64x): Likewise.
23885 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23886 and libm_alias_ldouble_other_r_f64x.
23887
df2806cd
JM
23888 * stdlib/strfroml.c: Always include <stdlib.h>.
23889 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23890 undefine as macro and define as weak alias.
23891 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23892 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23893 <stdlib.h>.
23894 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23895 Define and later undefine as macro and define as weak alias.
23896
0df4fe35
JM
23897 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23898 Define and later undefine as macro. Define as weak alias if
23899 [!USE_WIDE_CHAR].
23900 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23901 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23902 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23903 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23904 Define and later undefine as macro. Define as weak alias if
23905 [!USE_WIDE_CHAR].
23906 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23907 Define and later undefine as macro. Define as weak alias if
23908 [USE_WIDE_CHAR].
23909 * sysdeps/ieee754/float128/strtof128_l.c
23910 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23911 Define and later undefine as macro. Define as weak alias if
23912 [!USE_WIDE_CHAR].
23913 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23914 Define and later undefine as macro. Define as weak alias if
23915 [USE_WIDE_CHAR].
23916 * sysdeps/ieee754/ldbl-128/strtold_l.c
23917 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23918 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23919 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23920 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23921 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23922 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23923 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23924 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23925 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23926 * sysdeps/ieee754/ldbl-96/strtold_l.c
23927 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23928 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23929 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23930 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23931
ae7207d0
JM
23932 * math/test-float64x.h: New file.
23933 * math/Makefile (type-float64x-yes): New variable.
23934 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23935
9596fc69
JM
23936 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23937 function-like macro.
23938 (min_of_type_): Likewise.
23939 (min_of_type_l): Likewise.
23940 (min_of_type_f128): Likewise.
23941 (min_of_type): Pass () as last argument of __MATH_TG.
23942
46453c3c
JM
23943 * stdlib/tst-strtod-round-skeleton.c
23944 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23945 headers.
23946
01e659e7
JM
23947 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23948 for combinations of long double with _Float64 and _Float64x.
23949
5c60afdd
JM
23950 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23951 (__DECL_SIMD_cosf32): Likewise.
23952 (__DECL_SIMD_cosf64): Likewise.
23953 (__DECL_SIMD_cosf32x): Likewise.
23954 (__DECL_SIMD_cosf64x): Likewise.
23955 (__DECL_SIMD_cosf128x): Likewise.
23956 (__DECL_SIMD_sinf16): Likewise.
23957 (__DECL_SIMD_sinf32): Likewise.
23958 (__DECL_SIMD_sinf64): Likewise.
23959 (__DECL_SIMD_sinf32x): Likewise.
23960 (__DECL_SIMD_sinf64x): Likewise.
23961 (__DECL_SIMD_sinf128x): Likewise.
23962 (__DECL_SIMD_sincosf16): Likewise.
23963 (__DECL_SIMD_sincosf32): Likewise.
23964 (__DECL_SIMD_sincosf64): Likewise.
23965 (__DECL_SIMD_sincosf32x): Likewise.
23966 (__DECL_SIMD_sincosf64x): Likewise.
23967 (__DECL_SIMD_sincosf128x): Likewise.
23968 (__DECL_SIMD_logf16): Likewise.
23969 (__DECL_SIMD_logf32): Likewise.
23970 (__DECL_SIMD_logf64): Likewise.
23971 (__DECL_SIMD_logf32x): Likewise.
23972 (__DECL_SIMD_logf64x): Likewise.
23973 (__DECL_SIMD_logf128x): Likewise.
23974 (__DECL_SIMD_expf16): Likewise.
23975 (__DECL_SIMD_expf32): Likewise.
23976 (__DECL_SIMD_expf64): Likewise.
23977 (__DECL_SIMD_expf32x): Likewise.
23978 (__DECL_SIMD_expf64x): Likewise.
23979 (__DECL_SIMD_expf128x): Likewise.
23980 (__DECL_SIMD_powf16): Likewise.
23981 (__DECL_SIMD_powf32): Likewise.
23982 (__DECL_SIMD_powf64): Likewise.
23983 (__DECL_SIMD_powf32x): Likewise.
23984 (__DECL_SIMD_powf64x): Likewise.
23985 (__DECL_SIMD_powf128x): Likewise.
23986
9d4b0117
JM
23987 * stdlib/Versions (libc): Move entries for wcstof128 and
23988 wcstof128_l to ....
23989 * wcsmbs/Versions (libc): ... here.
23990 Include <float128-abi.h>.
23991
7911dd47
FW
239922017-11-24 Florian Weimer <fweimer@redhat.com>
23993
23994 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23995 bits/mman-shared.h.
23996 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23997 <bits/mman-shared.h>.
23998 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23999 to ...
24000 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24001 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24002 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24003 <bits/mman-shared.h>.
24004
c45d78aa
AZ
240052017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24006
24007 [BZ #22457]
24008 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24009 posix_memalign/free.
24010 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24011
3ffc4cc1
MF
240122017-11-22 Mike FABIAN <mfabian@redhat.com>
24013
24014 [BZ #22469]
24015 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24016 and implement the collation rules for pl from CLDR on top of that.
24017 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24018 of locales to be built for testing.
24019 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24020
3a327316
JM
240212017-11-23 Joseph Myers <joseph@codesourcery.com>
24022
24023 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24024 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24025 libm_alias_ldouble_other.
24026 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24027 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24028 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24029 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24030 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24031 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24032 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24033 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24034 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24035 libm_alias_ldouble_r.
24036 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24037 libm_alias_ldouble_other.
24038 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24039 (log10l): Likewise.
24040 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24041 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24042 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24043 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24044 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24045 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24046 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24047 (atan2l): Likewise.
24048 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24049 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24050 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24051 libm_alias_ldouble.
24052 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24053 (cosl): Likewise.
24054 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24055 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24056 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24057 (expl): Likewise.
24058 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24059 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24060 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24061 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24062 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24063 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24064 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24065 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24066 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24067 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24068 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24069 libm_alias_ldouble.
24070 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24071 libm_alias_ldouble_other.
24072 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24073 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24074 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24075 libm_alias_ldouble.
24076 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24077 libm_alias_ldouble_other.
24078 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24079 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24080 * sysdeps/ia64/fpu/w_lgammal_main.c
24081 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24082 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24083
0a947e06
FW
240842017-11-23 Florian Weimer <fweimer@redhat.com>
24085
24086 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24087 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24088 alike. Remove freeres marker.
24089 * malloc/arena.c (arena_thread_freeres): Call
24090 tcache_thread_shutdown.
24091
67f36c79
FW
240922017-11-23 Florian Weimer <fweimer@redhat.com>
24093
24094 [BZ #22459]
24095 Export nscd hash function as __nss_hash.
24096 * include/nss.h (__nss_hash): Declare.
24097 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24098 symbol.
24099 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24100 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24101 of __nscd_hash.
24102 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24103 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24104 * nss/Makefiles (routines): Add nss_hash.
24105 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24106 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24107 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24108 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24109
cccb6d4e
FW
241102017-11-23 Florian Weimer <fweimer@redhat.com>
24111
24112 [BZ #22478]
24113 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24114 Return error code, not -1.
24115 * signal/tst-sigwait-eintr.c: New file.
24116 * signal/Makefile (tests): Add tst-sigwait-eintr.
24117
59d2cbb1
FW
241182017-11-23 Florian Weimer <fweimer@redhat.com>
24119
24120 Linux: Add memfd_create system call wrapper
24121 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24122 tst-memfd_create.
24123 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24124 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24125 [__USE_GNU] (memfd_create): Declare.
24126 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24127 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24128 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24129 * sysdeps/unix/sysv/linux/**.abilist: Update.
24130 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24131
a90d1ac2
JM
241322017-11-22 Joseph Myers <joseph@codesourcery.com>
24133
0a9d1d62
JM
24134 * localedata/gen-locale.sh: Fix typo in variable name.
24135
754034c4
JM
24136 * resolv/res_debug.c (p_secstodate): Condition definition on
24137 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24138 directly as __p_secstodate, and as a compat symbol. Do not use
24139 libresolv_hidden_def.
24140 * resolv/resolv.h (p_secstodate): Remove macro and function
24141 declaration.
24142 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24143 using p_secstodate.
24144 * include/resolv.h (__p_secstodate): Do not use
24145 libresolv_hidden_proto.
24146 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24147 (tests-internal): ... here.
24148 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24149 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24150 and declare and use __p_secstodate and use compat_symbol_reference
24151 in that case.
24152 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24153 implementation returning 77.
24154
f120cda6
JM
24155 [BZ #22463]
24156 * resolv/res_debug.c: Include <libc-diag.h>.
24157 (p_secstodate): Assert time_t at least as wide as u_long. On
24158 overflow, use integer seconds since the epoch as output, or use
24159 "<overflow>" as output and set errno to EOVERFLOW if integer
24160 seconds since the epoch would be 14 or more characters.
24161 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24162 for sprintf call.
24163 * resolv/tst-p_secstodate.c: New file.
24164 * resolv/Makefile (tests): Add tst-p_secstodate.
24165 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24166
a90d1ac2
JM
24167 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24168 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24169 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24170
0285e6bd
PE
241712017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24172
24173 * posix/regcomp.c (init_word_char): Add comments.
24174
4bae6150
JM
241752017-11-22 Joseph Myers <joseph@codesourcery.com>
24176
24177 [BZ #22447]
24178 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24179 strlen to compute length of ut_user and set trailing NUL byte of
24180 result explicitly.
24181
4b7af5fc
MF
241822017-11-21 Mike FABIAN <mfabian@redhat.com>
24183
24184 [BZ #15537]
24185 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24186 using “copy "iso14651_t1"” and then implementing the
24187 collation rules for lv from CLDR on top of that.
24188 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24189 of locales to be built for testing.
24190 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24191 sorting.
24192
922bb78c
JM
241932017-11-21 Joseph Myers <joseph@codesourcery.com>
24194
24195 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24196 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24197 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24198 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24199 [__USE_MISC] (MADV_HWPOISON): New macro.
24200 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24201
a3aaa598
AZ
242022017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24203
24204 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24205 -Wmissing-braces on GCC 4.9.
24206
8beba15d
SL
242072017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24208
24209 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24210 * sysdeps/s390/s390-32/start.S (_start): Likewise
24211 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24212 (thread_start): Likewise.
24213 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24214 (thread_start): Likewise.
24215 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24216 (__makecontext_ret): Likewise.
24217 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24218 (__makecontext_ret): Likewise.
24219
80eb52e3
SL
242202017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24221
24222 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24223 __wcschrnul): Remove attribute_hidden.
24224
567d8c1f
PE
242252017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24226
24227 regex: don't assume uint64_t or uint32_t
24228 This avoids -Werror=overflow errors for 32-bit systems in
24229 the 64-bit case. Problem reported by Joseph Myers in:
24230 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24231 Also, when this code is used in Gnulib it ports to platforms
24232 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24233 them, and on some 32-bit compilers there is no uint64_t.
24234 Problem reported by Gianluigi Tiesi in:
24235 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24236 * posix/regcomp.c (init_word_char): Don't assume that the types
24237 uint64_t and uint32_t exist. Adapted from Gnulib patch
24238 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24239 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24240
4d7632ff
SP
242412017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24242
5a67c4fa
SP
24243 * sysdeps/aarch64/memset-reg.h: New file.
24244 * sysdeps/aarch64/memset.S: Use it.
24245 (__memset): Rename to MEMSET macro.
24246 [ZVA_MACRO]: Use zva_macro.
24247 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24248 Add memset_generic and memset_falkor.
24249 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24250 (__libc_ifunc_impl_list): Add memset ifuncs.
24251 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24252 local variable zva_size.
24253 * sysdeps/aarch64/multiarch/memset.c: New file.
24254 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24255 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24256 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24257 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24258 (DCZID_DZP_MASK): New macro.
24259 (DCZID_BS_MASK): Likewise.
24260 (init_cpu_features): Read and set zva_size.
24261 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24262 (struct cpu_features): New member zva_size.
24263
eb332f9f
SP
24264 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24265 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24266 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24267
4d7632ff
SP
24268 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24269 backwards. Fix timing computation.
24270 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24271 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24272 on memset by N at a time. Fix timing computation.
24273
a465b89e
FW
242742017-11-20 Florian Weimer <fweimer@redhat.com>
24275
24276 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24277 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24278
0f74bbf5
FW
242792017-11-19 Florian Weimer <fweimer@redhat.com>
24280
24281 manual: Document mprotect
24282 * manual/memory.texi (Memory Protection): New section.
24283 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24284 documentation of PROT_* flags and reference the Memory Protection
24285 section instead.
24286
f6e965ee
FW
242872017-11-19 Florian Weimer <fweimer@redhat.com>
24288
24289 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24290 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24291 (Scatter-Gather): ... to here. Remove misleading comment.
24292
363e4519 242932017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
ea69a5c8 24294
5f9d1949
CB
24295 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24296 style.
24297
ea69a5c8
CB
24298 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24299 when /proc/<pid>/setgroups does not exist.
24300
8db7f48c
FW
243012017-11-18 Florian Weimer <fweimer@redhat.com>
24302
24303 * sysdeps/unix/sysv/linux/tst-ttyname.c
24304 (become_root_in_mount_ns): Remove.
24305 (do_in_chroot_1): Call support_enter_mount_namespace.
24306 (do_in_chroot_2): Likewise.
24307 (do_test): Call support_become_root early.
24308
273a0c49
FW
243092017-11-18 Florian Weimer <fweimer@redhat.com>
24310
24311 * support/namespace.h (support_enter_mount_namespace): Declare.
24312 * support/support_enter_mount_namespace.c: New file.
24313 * support/Makefile (libsupport-routines): Add
24314 support_enter_mount_namespace.
24315
8adfb0ee
FW
243162017-11-18 Florian Weimer <fweimer@redhat.com>
24317
24318 * support/temp_file.c (support_create_temp_directory): Use
24319 test_dir and do not rely on the presence of the XXXXXX suffix.
24320 * support/temp_file.h (support_create_temp_directory): Update
24321 comment.
24322 * support/tst-xreadlink.c (do_test): Adjust.
24323 * support/support_chroot.c (support_chroot_create): Likewise.
24324
df0c40ee
TMQMF
243252017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24326
24327 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24328 macro.
24329 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24330 htm-no-suspend.
24331
015c6dc2
JM
243322017-11-17 Joseph Myers <joseph@codesourcery.com>
24333
f58e5f48
JM
24334 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24335 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24336 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24337 (ceill): Define using libm_alias_ldouble.
24338 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24339 <libm-alias-ldouble.h>.
24340 (copysignl): Define using libm_alias_ldouble.
24341 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24342 (fabsl): Define using libm_alias_ldouble.
24343 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24344 (floorl): Define using libm_alias_ldouble.
24345 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24346 (fmaxl): Define using libm_alias_ldouble.
24347 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24348 (fminl): Define using libm_alias_ldouble.
24349 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24350 (llrintl): Define using libm_alias_ldouble.
24351 (lrintl): Likewise.
24352 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24353 <libm-alias-ldouble.h>.
24354 (nearbyintl): Define using libm_alias_ldouble.
24355 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24356 (truncl): Define using libm_alias_ldouble.
24357 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24358 <libm-alias-ldouble.h>.
24359 (lrintl): Define using libm_alias_ldouble.
24360
2ce30701
JM
24361 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24362 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24363 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24364 (asinhl): Define using libm_alias_ldouble.
24365 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24366 (atanl): Define using libm_alias_ldouble.
24367 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24368 (cbrtl): Define using libm_alias_ldouble.
24369 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24370 (ceill): Define using libm_alias_ldouble.
24371 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24372 (copysignl): Define using libm_alias_ldouble.
24373 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24374 (fabsl): Define using libm_alias_ldouble.
24375 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24376 (floorl): Define using libm_alias_ldouble.
24377 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24378 (fmaxl): Define using libm_alias_ldouble.
24379 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24380 (fminl): Define using libm_alias_ldouble.
24381 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24382 (frexpl): Define using libm_alias_ldouble.
24383 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24384 (llrintl): Define using libm_alias_ldouble.
24385 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24386 (logbl): Define using libm_alias_ldouble.
24387 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24388 (lrintl): Define using libm_alias_ldouble.
24389 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24390 (nearbyintl): Define using libm_alias_ldouble.
24391 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24392 (nextafterl): Define using libm_alias_ldouble.
24393 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24394 (remquol): Define using libm_alias_ldouble.
24395 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24396 (rintl): Define using libm_alias_ldouble.
24397 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24398 (truncl): Define using libm_alias_ldouble.
24399 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24400 (fmaxl): Define using libm_alias_ldouble.
24401 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24402 (fminl): Define using libm_alias_ldouble.
24403
015c6dc2
JM
24404 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24405 to C syntax instead of availability and properties of types.
24406 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24407 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24408 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24409 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24410 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24411 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24412
ce003e5d
FW
244132017-11-17 Florian Weimer <fweimer@redhat.com>
24414
24415 support_become_root: Enable file creation in namespaces.
24416 * support/support_become_root.c (setup_mapping): New function.
24417 (support_become_root): Call it.
24418
e7df6c5c
JM
244192017-11-17 Joseph Myers <joseph@codesourcery.com>
24420
24421 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24422 macro.
24423
58a813bf
AZ
244242017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24425
24426 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24427 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24428
f97773d1
JM
244292017-11-16 Joseph Myers <joseph@codesourcery.com>
24430
6a6aa1f3
JM
24431 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24432
f97773d1
JM
24433 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24434 version to 4.14.
24435
a306c790
SP
244362017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24437
7b0fb870
SP
24438 * INSTALL: Fix botched up regeneration.
24439
24440 * NEWS: Update sourceare link to https.
a306c790
SP
24441 * configure.ac: Likewise.
24442 * crypt/md5test-giant.c: Likewise.
24443 * dlfcn/bug-atexit1.c: Likewise.
24444 * dlfcn/bug-atexit2.c: Likewise.
24445 * localedata/README: Likewise.
24446 * malloc/tst-mallocfork.c: Likewise.
24447 * manual/install.texi: Likewise.
24448 * nptl/tst-pthread-getattr.c: Likewise.
24449 * stdio-common/tst-fgets.c: Likewise.
24450 * stdio-common/tst-fwrite.c: Likewise.
24451 * sunrpc/Makefile: Likewise.
24452 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24453 * wcsmbs/tst-mbrtowc2.c: Likewise.
7b0fb870
SP
24454 * configure: Regenerate.
24455 * INSTALL: Regenerate.
a306c790 24456
7532837d
MS
244572017-11-15 Martin Sebor <msebor@redhat.com>
24458
24459 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24460 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24461 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24462
495a56fd
LS
244632017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24464
d9611e30
LS
24465 [BZ #22145]
24466 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24467 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24468
a09dfc19
LS
24469 [BZ #22145]
24470 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24471 Defer is_pty check until end of the function.
24472 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24473
2fbce9c2
LS
24474 [BZ #22145]
24475 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24476 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24477 (ttyname): Likewise.
24478 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24479 (__ttyname_r): Likewise.
24480
d10d6cab
LS
24481 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24482 int to bool.
24483
9b5a8750
LS
24484 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24485
495a56fd
LS
24486 * manual/terminal.texi (Is It a Terminal):
24487 Mention ENODEV for ttyname and ttyname_r.
24488
fa680dc6
JM
244892017-11-15 Joseph Myers <joseph@codesourcery.com>
24490
78cde19f
JM
24491 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24492 constant and macro.
24493
fa680dc6
JM
24494 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24495 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24496 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24497 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24498 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24499 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24500
ad4f43a2
AZ
245012017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24502
1ba1d8a4
AZ
24503 * signal/sigrelse.c (sigrelse): Optimize implementation.
24504
ad4f43a2
AZ
24505 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24506 (__sigpause): Rely on __sigsuspend to implement single thread
24507 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24508
d0212d42
JM
245092017-11-15 Joseph Myers <joseph@codesourcery.com>
24510
24511 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24512 kernel version to 4.14.
24513
2180fee1
SE
245142017-11-15 Steve Ellcey <sellcey@cavium.com>
24515
24516 [BZ #22442]
24517 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24518 Check if ifname is too long.
24519
cad7ca39
LS
245202017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24521
24522 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24523
58c9f659
MF
245242017-11-15 Mike FABIAN <mfabian@redhat.com>
24525
24526 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24527 was accidentally lost.
24528
0fa87c01
MF
245292017-11-15 Mike FABIAN <mfabian@redhat.com>
24530
24531 * localedata/locales/az_IR: Add standard copyright header.
24532
34eb4157
FW
245332017-11-15 Florian Weimer <fweimer@redhat.com>
24534
24535 [BZ #22439]
24536 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24537 not just the top one. Output a new "subheaps" statistic.
24538
7a9368a1
FW
245392017-11-15 Florian Weimer <fweimer@redhat.com>
24540
24541 [BZ #22408]
24542 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24543 under the per-arena lock.
24544 * malloc/Makefile (tests): Add tst-malloc_info.
24545 (tst-malloc_info): Link with libpthread.
24546 * malloc/tst-malloc_info.c: New file.
24547
be3a79a3
JM
245482017-11-15 Joseph Myers <joseph@codesourcery.com>
24549
24550 [BZ #21660]
24551 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24552 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24553 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24554 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24555 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24556 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24557 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24558 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24559 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24560 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24561 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24562 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24563 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24564 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24565 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24566 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24567 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24568 (__floating_type): Likewise.
24569 (__real_integer_type): Likewise.
24570 (__complex_integer_type): Likewise.
24571 (__expr_is_real): Likewise.
24572 (__tgmath_real_type_sub): Likewise.
24573 (__tgmath_real_type): Likewise.
24574 (__tgmath_complex_type_sub): Likewise.
24575 (__tgmath_complex_type): Likewise.
24576 (__TGMATH_F128): Likewise.
24577 (__TGMATH_CF128): Likewise.
24578 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24579 new macros.
24580 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24581 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24582 Likewise.
24583 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24584 Likewise.
24585 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24586 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24587 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24588 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24589 Likewise.
24590 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24591 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24592 Likewise.
24593 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24594 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24595 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24596 Likewise.
24597 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24598 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24599 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24600 (cimag): Likewise.
24601 (creal): Likewise.
24602
ec72135e
JM
246032017-11-14 Joseph Myers <joseph@codesourcery.com>
24604
2e64ec9c
JM
24605 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24606 for stpncpy calls for GCC 8.
24607 (test_strncat): Disable -Wstringop-truncation warning for strncat
24608 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24609 strncat call for GCC 7.
24610 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24611 calls for GCC 8.
24612 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24613 trailing NUL.
24614
ec72135e
JM
24615 * string/bug-strncat1.c: Include <libc-diag.h>.
24616 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24617
363e4519 246182017-11-13 Claude Paroz <claude@2xlibre.net>
a259f5d3
CP
24619
24620 [BZ #22387]
24621 * localedata/locales/aa_DJ: Improved readibility by replacing
24622 <Uxxxx> sequences in the ASCII printable range by their ASCII
24623 character equivalents.
24624 * localedata/locales/aa_ER: Likewise.
24625 * localedata/locales/aa_ER@saaho: Likewise.
24626 * localedata/locales/aa_ET: Likewise.
24627 * localedata/locales/af_ZA: Likewise.
24628 * localedata/locales/agr_PE: Likewise.
24629 * localedata/locales/ak_GH: Likewise.
24630 * localedata/locales/am_ET: Likewise.
24631 * localedata/locales/anp_IN: Likewise.
24632 * localedata/locales/ar_AE: Likewise.
24633 * localedata/locales/ar_BH: Likewise.
24634 * localedata/locales/ar_DZ: Likewise.
24635 * localedata/locales/ar_EG: Likewise.
24636 * localedata/locales/ar_IN: Likewise.
24637 * localedata/locales/ar_IQ: Likewise.
24638 * localedata/locales/ar_JO: Likewise.
24639 * localedata/locales/ar_KW: Likewise.
24640 * localedata/locales/ar_LB: Likewise.
24641 * localedata/locales/ar_LY: Likewise.
24642 * localedata/locales/ar_MA: Likewise.
24643 * localedata/locales/ar_OM: Likewise.
24644 * localedata/locales/ar_QA: Likewise.
24645 * localedata/locales/ar_SA: Likewise.
24646 * localedata/locales/ar_SD: Likewise.
24647 * localedata/locales/ar_SS: Likewise.
24648 * localedata/locales/ar_SY: Likewise.
24649 * localedata/locales/ar_TN: Likewise.
24650 * localedata/locales/ar_YE: Likewise.
24651 * localedata/locales/as_IN: Likewise.
24652 * localedata/locales/ast_ES: Likewise.
24653 * localedata/locales/ayc_PE: Likewise.
24654 * localedata/locales/az_AZ: Likewise.
24655 * localedata/locales/az_IR: Likewise.
24656 * localedata/locales/be_BY: Likewise.
24657 * localedata/locales/be_BY@latin: Likewise.
24658 * localedata/locales/bem_ZM: Likewise.
24659 * localedata/locales/ber_DZ: Likewise.
24660 * localedata/locales/ber_MA: Likewise.
24661 * localedata/locales/bg_BG: Likewise.
24662 * localedata/locales/bhb_IN: Likewise.
24663 * localedata/locales/bho_IN: Likewise.
24664 * localedata/locales/bi_VU: Likewise.
24665 * localedata/locales/bn_BD: Likewise.
24666 * localedata/locales/bn_IN: Likewise.
24667 * localedata/locales/bo_CN: Likewise.
24668 * localedata/locales/bo_IN: Likewise.
24669 * localedata/locales/br_FR: Likewise.
24670 * localedata/locales/brx_IN: Likewise.
24671 * localedata/locales/bs_BA: Likewise.
24672 * localedata/locales/byn_ER: Likewise.
24673 * localedata/locales/ca_AD: Likewise.
24674 * localedata/locales/ca_ES: Likewise.
24675 * localedata/locales/ca_FR: Likewise.
24676 * localedata/locales/ca_IT: Likewise.
24677 * localedata/locales/ce_RU: Likewise.
24678 * localedata/locales/chr_US: Likewise.
24679 * localedata/locales/cmn_TW: Likewise.
24680 * localedata/locales/crh_UA: Likewise.
24681 * localedata/locales/cs_CZ: Likewise.
24682 * localedata/locales/csb_PL: Likewise.
24683 * localedata/locales/cv_RU: Likewise.
24684 * localedata/locales/cy_GB: Likewise.
24685 * localedata/locales/da_DK: Likewise.
24686 * localedata/locales/de_AT: Likewise.
24687 * localedata/locales/de_BE: Likewise.
24688 * localedata/locales/de_CH: Likewise.
24689 * localedata/locales/de_DE: Likewise.
24690 * localedata/locales/de_IT: Likewise.
24691 * localedata/locales/de_LI: Likewise.
24692 * localedata/locales/de_LU: Likewise.
24693 * localedata/locales/doi_IN: Likewise.
24694 * localedata/locales/dv_MV: Likewise.
24695 * localedata/locales/dz_BT: Likewise.
24696 * localedata/locales/el_CY: Likewise.
24697 * localedata/locales/el_GR: Likewise.
24698 * localedata/locales/en_AG: Likewise.
24699 * localedata/locales/en_AU: Likewise.
24700 * localedata/locales/en_BW: Likewise.
24701 * localedata/locales/en_CA: Likewise.
24702 * localedata/locales/en_DK: Likewise.
24703 * localedata/locales/en_GB: Likewise.
24704 * localedata/locales/en_HK: Likewise.
24705 * localedata/locales/en_IE: Likewise.
24706 * localedata/locales/en_IL: Likewise.
24707 * localedata/locales/en_IN: Likewise.
24708 * localedata/locales/en_NG: Likewise.
24709 * localedata/locales/en_NZ: Likewise.
24710 * localedata/locales/en_PH: Likewise.
24711 * localedata/locales/en_SG: Likewise.
24712 * localedata/locales/en_US: Likewise.
24713 * localedata/locales/en_ZA: Likewise.
24714 * localedata/locales/en_ZM: Likewise.
24715 * localedata/locales/en_ZW: Likewise.
24716 * localedata/locales/eo: Likewise.
24717 * localedata/locales/es_AR: Likewise.
24718 * localedata/locales/es_BO: Likewise.
24719 * localedata/locales/es_CL: Likewise.
24720 * localedata/locales/es_CO: Likewise.
24721 * localedata/locales/es_CR: Likewise.
24722 * localedata/locales/es_CU: Likewise.
24723 * localedata/locales/es_DO: Likewise.
24724 * localedata/locales/es_EC: Likewise.
24725 * localedata/locales/es_ES: Likewise.
24726 * localedata/locales/es_GT: Likewise.
24727 * localedata/locales/es_HN: Likewise.
24728 * localedata/locales/es_MX: Likewise.
24729 * localedata/locales/es_NI: Likewise.
24730 * localedata/locales/es_PA: Likewise.
24731 * localedata/locales/es_PE: Likewise.
24732 * localedata/locales/es_PR: Likewise.
24733 * localedata/locales/es_PY: Likewise.
24734 * localedata/locales/es_SV: Likewise.
24735 * localedata/locales/es_US: Likewise.
24736 * localedata/locales/es_UY: Likewise.
24737 * localedata/locales/es_VE: Likewise.
24738 * localedata/locales/et_EE: Likewise.
24739 * localedata/locales/eu_ES: Likewise.
24740 * localedata/locales/eu_ES@euro: Likewise.
24741 * localedata/locales/fa_IR: Likewise.
24742 * localedata/locales/ff_SN: Likewise.
24743 * localedata/locales/fi_FI: Likewise.
24744 * localedata/locales/fil_PH: Likewise.
24745 * localedata/locales/fo_FO: Likewise.
24746 * localedata/locales/fr_BE: Likewise.
24747 * localedata/locales/fr_CA: Likewise.
24748 * localedata/locales/fr_CH: Likewise.
24749 * localedata/locales/fr_FR: Likewise.
24750 * localedata/locales/fr_LU: Likewise.
24751 * localedata/locales/fur_IT: Likewise.
24752 * localedata/locales/fy_DE: Likewise.
24753 * localedata/locales/fy_NL: Likewise.
24754 * localedata/locales/ga_IE: Likewise.
24755 * localedata/locales/gd_GB: Likewise.
24756 * localedata/locales/gez_ER: Likewise.
24757 * localedata/locales/gez_ET: Likewise.
24758 * localedata/locales/gl_ES: Likewise.
24759 * localedata/locales/gu_IN: Likewise.
24760 * localedata/locales/gv_GB: Likewise.
24761 * localedata/locales/ha_NG: Likewise.
24762 * localedata/locales/hak_TW: Likewise.
24763 * localedata/locales/he_IL: Likewise.
24764 * localedata/locales/hi_IN: Likewise.
24765 * localedata/locales/hif_FJ: Likewise.
24766 * localedata/locales/hne_IN: Likewise.
24767 * localedata/locales/hr_HR: Likewise.
24768 * localedata/locales/hsb_DE: Likewise.
24769 * localedata/locales/ht_HT: Likewise.
24770 * localedata/locales/hu_HU: Likewise.
24771 * localedata/locales/hy_AM: Likewise.
24772 * localedata/locales/i18n: Likewise.
24773 * localedata/locales/ia_FR: Likewise.
24774 * localedata/locales/id_ID: Likewise.
24775 * localedata/locales/ig_NG: Likewise.
24776 * localedata/locales/ik_CA: Likewise.
24777 * localedata/locales/is_IS: Likewise.
24778 * localedata/locales/it_CH: Likewise.
24779 * localedata/locales/it_IT: Likewise.
24780 * localedata/locales/iu_CA: Likewise.
24781 * localedata/locales/ja_JP: Likewise.
24782 * localedata/locales/ka_GE: Likewise.
24783 * localedata/locales/kk_KZ: Likewise.
24784 * localedata/locales/kl_GL: Likewise.
24785 * localedata/locales/kn_IN: Likewise.
24786 * localedata/locales/ko_KR: Likewise.
24787 * localedata/locales/kok_IN: Likewise.
24788 * localedata/locales/ks_IN: Likewise.
24789 * localedata/locales/ks_IN@devanagari: Likewise.
24790 * localedata/locales/ku_TR: Likewise.
24791 * localedata/locales/kw_GB: Likewise.
24792 * localedata/locales/ky_KG: Likewise.
24793 * localedata/locales/lb_LU: Likewise.
24794 * localedata/locales/lg_UG: Likewise.
24795 * localedata/locales/li_BE: Likewise.
24796 * localedata/locales/li_NL: Likewise.
24797 * localedata/locales/lij_IT: Likewise.
24798 * localedata/locales/ln_CD: Likewise.
24799 * localedata/locales/lo_LA: Likewise.
24800 * localedata/locales/lt_LT: Likewise.
24801 * localedata/locales/lv_LV: Likewise.
24802 * localedata/locales/lzh_TW: Likewise.
24803 * localedata/locales/mag_IN: Likewise.
24804 * localedata/locales/mai_IN: Likewise.
24805 * localedata/locales/mg_MG: Likewise.
24806 * localedata/locales/mhr_RU: Likewise.
24807 * localedata/locales/mi_NZ: Likewise.
24808 * localedata/locales/mk_MK: Likewise.
24809 * localedata/locales/ml_IN: Likewise.
24810 * localedata/locales/mn_MN: Likewise.
24811 * localedata/locales/mni_IN: Likewise.
24812 * localedata/locales/mr_IN: Likewise.
24813 * localedata/locales/ms_MY: Likewise.
24814 * localedata/locales/mt_MT: Likewise.
24815 * localedata/locales/my_MM: Likewise.
24816 * localedata/locales/nan_TW: Likewise.
24817 * localedata/locales/nan_TW@latin: Likewise.
24818 * localedata/locales/nb_NO: Likewise.
24819 * localedata/locales/nds_DE: Likewise.
24820 * localedata/locales/nds_NL: Likewise.
24821 * localedata/locales/ne_NP: Likewise.
24822 * localedata/locales/nhn_MX: Likewise.
24823 * localedata/locales/niu_NU: Likewise.
24824 * localedata/locales/niu_NZ: Likewise.
24825 * localedata/locales/nl_AW: Likewise.
24826 * localedata/locales/nl_BE: Likewise.
24827 * localedata/locales/nl_NL: Likewise.
24828 * localedata/locales/nn_NO: Likewise.
24829 * localedata/locales/nr_ZA: Likewise.
24830 * localedata/locales/nso_ZA: Likewise.
24831 * localedata/locales/oc_FR: Likewise.
24832 * localedata/locales/om_ET: Likewise.
24833 * localedata/locales/om_KE: Likewise.
24834 * localedata/locales/or_IN: Likewise.
24835 * localedata/locales/os_RU: Likewise.
24836 * localedata/locales/pa_IN: Likewise.
24837 * localedata/locales/pa_PK: Likewise.
24838 * localedata/locales/pap_AW: Likewise.
24839 * localedata/locales/pap_CW: Likewise.
24840 * localedata/locales/pl_PL: Likewise.
24841 * localedata/locales/ps_AF: Likewise.
24842 * localedata/locales/pt_BR: Likewise.
24843 * localedata/locales/pt_PT: Likewise.
24844 * localedata/locales/quz_PE: Likewise.
24845 * localedata/locales/raj_IN: Likewise.
24846 * localedata/locales/ro_RO: Likewise.
24847 * localedata/locales/ru_RU: Likewise.
24848 * localedata/locales/ru_UA: Likewise.
24849 * localedata/locales/rw_RW: Likewise.
24850 * localedata/locales/sa_IN: Likewise.
24851 * localedata/locales/sat_IN: Likewise.
24852 * localedata/locales/sc_IT: Likewise.
24853 * localedata/locales/sd_IN: Likewise.
24854 * localedata/locales/sd_IN@devanagari: Likewise.
24855 * localedata/locales/se_NO: Likewise.
24856 * localedata/locales/sgs_LT: Likewise.
24857 * localedata/locales/shs_CA: Likewise.
24858 * localedata/locales/si_LK: Likewise.
24859 * localedata/locales/sid_ET: Likewise.
24860 * localedata/locales/sk_SK: Likewise.
24861 * localedata/locales/sl_SI: Likewise.
24862 * localedata/locales/sm_WS: Likewise.
24863 * localedata/locales/so_DJ: Likewise.
24864 * localedata/locales/so_ET: Likewise.
24865 * localedata/locales/so_KE: Likewise.
24866 * localedata/locales/so_SO: Likewise.
24867 * localedata/locales/sq_AL: Likewise.
24868 * localedata/locales/sq_MK: Likewise.
24869 * localedata/locales/sr_ME: Likewise.
24870 * localedata/locales/sr_RS: Likewise.
24871 * localedata/locales/sr_RS@latin: Likewise.
24872 * localedata/locales/ss_ZA: Likewise.
24873 * localedata/locales/st_ZA: Likewise.
24874 * localedata/locales/sv_FI: Likewise.
24875 * localedata/locales/sv_SE: Likewise.
24876 * localedata/locales/sw_KE: Likewise.
24877 * localedata/locales/sw_TZ: Likewise.
24878 * localedata/locales/szl_PL: Likewise.
24879 * localedata/locales/ta_IN: Likewise.
24880 * localedata/locales/ta_LK: Likewise.
24881 * localedata/locales/tcy_IN: Likewise.
24882 * localedata/locales/te_IN: Likewise.
24883 * localedata/locales/tg_TJ: Likewise.
24884 * localedata/locales/th_TH: Likewise.
24885 * localedata/locales/the_NP: Likewise.
24886 * localedata/locales/ti_ER: Likewise.
24887 * localedata/locales/ti_ET: Likewise.
24888 * localedata/locales/tig_ER: Likewise.
24889 * localedata/locales/tk_TM: Likewise.
24890 * localedata/locales/tl_PH: Likewise.
24891 * localedata/locales/tn_ZA: Likewise.
24892 * localedata/locales/to_TO: Likewise.
24893 * localedata/locales/tpi_PG: Likewise.
24894 * localedata/locales/tr_CY: Likewise.
24895 * localedata/locales/tr_TR: Likewise.
24896 * localedata/locales/ts_ZA: Likewise.
24897 * localedata/locales/tt_RU: Likewise.
24898 * localedata/locales/tt_RU@iqtelif: Likewise.
24899 * localedata/locales/ug_CN: Likewise.
24900 * localedata/locales/uk_UA: Likewise.
24901 * localedata/locales/unm_US: Likewise.
24902 * localedata/locales/ur_IN: Likewise.
24903 * localedata/locales/ur_PK: Likewise.
24904 * localedata/locales/uz_UZ: Likewise.
24905 * localedata/locales/uz_UZ@cyrillic: Likewise.
24906 * localedata/locales/ve_ZA: Likewise.
24907 * localedata/locales/vi_VN: Likewise.
24908 * localedata/locales/wa_BE: Likewise.
24909 * localedata/locales/wae_CH: Likewise.
24910 * localedata/locales/wal_ET: Likewise.
24911 * localedata/locales/wo_SN: Likewise.
24912 * localedata/locales/xh_ZA: Likewise.
24913 * localedata/locales/yi_US: Likewise.
24914 * localedata/locales/yo_NG: Likewise.
24915 * localedata/locales/yue_HK: Likewise.
24916 * localedata/locales/yuw_PG: Likewise.
24917 * localedata/locales/zh_CN: Likewise.
24918 * localedata/locales/zh_HK: Likewise.
24919 * localedata/locales/zh_SG: Likewise.
24920 * localedata/locales/zh_TW: Likewise.
24921 * localedata/locales/zu_ZA: Likewise.
24922
cae87e64
FW
249232017-11-13 Florian Weimer <fweimer@redhat.com>
24924
24925 * support/next_to_fault.h, support/next_to_fault.c: New files.
24926 * support/Makefile (libsupport-routines): Add next_to_fault.
24927 * resolv/tst-inet_pton.c (struct next_to_fault)
24928 (next_to_fault_allocate, next_to_fault_free): Remove.
24929 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24930
4a306ef1
L
249312017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24932
24933 * elf/dl-support.c: Include <dl-procruntime.c>.
24934 * include/link.h: Include <link_map.h>.
24935 * sysdeps/generic/dl-procruntime.c: New file.
24936 * sysdeps/generic/link_map.h: Likewise.
24937 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24938 the writable ld.so namespace.
24939
e69897bf
PE
249402017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24941
24942 timezone: pacify GCC -Wstringop-truncation
24943 Problem reported by Martin Sebor in:
24944 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24945 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24946
1ffe1ccb
FW
249472017-11-12 Florian Weimer <fweimer@redhat.com>
24948
eceed671
FW
24949 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24950 tst-xreadlink.
24951 (tests): Add tst-xreadlink.
1ffe1ccb
FW
24952 * support/support.h (xstrndup): Declare.
24953 * support/xunistd.h (xunlink, xreadlink): Declare.
24954 * support/temp_file.h (support_create_temp_directory): Declare.
24955 * support/temp_file.c (support_create_temp_directory): New function.
24956 * support/support_chroot.c (support_chroot_create): Use it.
24957 * support/xreadlink.c: New file.
24958 * support/xstrndup.c: Likewise.
24959 * support/xunlink.c: Likewise.
24960 * support/tst-xreadlink.c: Likewise.
24961
456b40a9
JDA
249622017-11-11 John David Anglin <danglin@gcc.gnu.org>
24963
24964 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24965
c0a25aa9
FW
249662017-11-11 Florian Weimer <fweimer@redhat.com>
24967
24968 [BZ #22409]
24969 [BZ #22412]
24970 * resolv/res_comp.c (printable_string, binary_hnok)
24971 (binary_leading_dash): New functions.
24972 (res_hnok): Reimplement using these functions and ns_name_pton.
24973 (res_ownok): Likewise.
24974 (res_mailok): Reimplement using printable_string, ns_name_pton and
24975 binary_hnok.
24976 (res_dnok): Reimplement using printable_string and ns_name_pton.
24977 * resolv/tst-res_hnok.c (tests): Add additional tests.
24978 (LETTERDIGITS, PRINTABLE): Define.
24979 (do_test): Adjust one_char results.
24980
9e0ad304
FW
249812017-11-11 Florian Weimer <fweimer@redhat.com>
24982
24983 [BZ #22413]
24984 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24985 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24986
e2a9fca8
FW
249872017-11-11 Florian Weimer <fweimer@redhat.com>
24988
24989 * resolv/tst-ns_name_pton.c: New file.
24990 * resolv/Makefile (tests): Add tst-ns_name_pton.
24991 (tst-ns_name_pton): Link against libresolv.
24992
5c1a6923
FW
249932017-11-11 Florian Weimer <fweimer@redhat.com>
24994
24995 * resolv/tst-res_hnok.c: New file.
24996 * resolv/Makefile (tests): Add tst-res_hnok.
24997 (tst-res_hnok): Link against libresolv.
24998
a19c0a1d
FW
249992017-11-11 Florian Weimer <fweimer@redhat.com>
25000
25001 * resolv/tst-resolv-network.c: Use test framework instead explicit
25002 main function.
25003
8cb5295d
L
250042017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25005
25006 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25007 <jmp_buf-macros.h>.
25008 [!_ISOMAC] (STR_HELPER): New.
25009 [!_ISOMAC] (STR): Likewise.
25010 [!_ISOMAC] (TEST_SIZE): Likewise.
25011 [!_ISOMAC] (TEST_ALIGN): Likewise.
25012 [!_ISOMAC] (TEST_OFFSET): Likewise.
25013 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25014 field offsets of jmp_buf as well as sigjmp_buf.
25015 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25016 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25017 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25018 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25019 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25020 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25021 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25022 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25023 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25024 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25025 Likewise.
25026 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25027 Likewise.
25028 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25030 Likewise.
25031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25032 Likewise.
25033 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25034 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25035 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25036 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25037 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25038 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25039 Likewise.
25040 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25041 Likewise.
25042 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25043 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25044 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25045
58c4a161
JM
250462017-11-07 Joseph Myers <joseph@codesourcery.com>
25047
3683b423
JM
25048 * include/float.h
25049 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25050 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25051 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25052 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25053 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25054 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25055 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25056 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25057 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25058 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25059 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25060 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25061 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25062 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25063 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25064 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25065 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25066 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25067 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25068 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25069 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25070 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25071 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25072 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25073 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25074 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25075 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25076 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25077 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25078 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25079 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25080 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25081 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25082 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25083 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25084 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25086 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25088 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25090 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25092 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25094 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25096 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25098 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25099 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25100 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25101 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25102 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25103 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25104 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25105 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25106 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25107 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25108 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25109 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25110 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25111 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25112 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25113 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25114 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25115 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25116 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25117 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25118 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25119 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25120 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25121 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25122 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25123 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25124 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25125 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25126 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25127 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25128 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25129 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25130 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25131 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25132 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25133 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25134 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25135 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25136 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25137
58c4a161
JM
25138 * stdlib/tst-strtod.h (F16): New macro.
25139 (F32): Likewise.
25140 (F64): Likewise.
25141 (F32X): Likewise.
25142 (F64X): Likewise.
25143 (F128X): Likewise.
25144 (IF_FLOAT16): Likewise.
25145 (IF_FLOAT32): Likewise.
25146 (IF_FLOAT64): Likewise.
25147 (IF_FLOAT32X): Likewise.
25148 (IF_FLOAT64X): Likewise.
25149 (IF_FLOAT128X): Likewise.
25150 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25151 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25152 (STRTOD_TEST_FOREACH): Likewise.
25153 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25154 (CHOOSE_f64): Likewise.
25155 (CHOOSE_f32x): Likewise.
25156 (CHOOSE_f64x): Likewise.
25157
feda96a1
AS
251582017-11-07 Andreas Schwab <schwab@suse.de>
25159
25160 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25161
1bd0cbb8
MF
251622017-11-07 Mike FABIAN <mfabian@redhat.com>
25163
25164 [BZ #22403]
25165 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25166 to be escaped.
25167 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25168 to be escaped.
25169
363e4519 251702017-11-07 Claude Paroz <claude@2xlibre.net>
d8301314
CP
25171
25172 [BZ #22403]
25173 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25174 to be escaped.
25175 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25176 to be escaped.
25177 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25178 to be escaped.
25179
dff91cd4
AZ
251802017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25181
06be6368
AZ
25182 [BZ #22298]
25183 * nptl/allocatestack.c (allocate_stack): Check if
25184 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25185 __PTHREAD_MUTEX_HAVE_PREV is defined.
25186 * nptl/descr.h (pthread): Likewise.
25187 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25188 Likewise.
25189 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25190 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25191 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25192 * sysdeps/nptl/bits/thread-shared-types.h
25193 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25194 defines.
25195 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25196 of __WORDSIZE for internal layout.
25197 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25198 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25199 instead of __WORDSIZE whether to use an union for __spins and __list
25200 fields.
25201 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25202 case.
25203 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25204 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25205 defines.
25206 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25207 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25208 Likewise.
25209 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25210 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25211 Likewise.
25212 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25213 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25214 Likewise.
25215 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25216 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25217 Likewise.
25218 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25219 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25220 Likewise.
25221 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25222 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25223 Likewise.
25224 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25225 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25226 Likewise.
25227 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25228 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25229 Likewise.
25230 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25231 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25232 Likewise.
25233 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25234 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25235 Likewise.
25236 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25237 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25238 Likewise.
25239 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25240 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25241 Likewise.
25242 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25243 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25244 Likewise.
25245 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25246 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25247 Likewise.
25248
72b3c6ee
AZ
25249 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25250 New macros.
25251 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25252 checks for expected input type size.
25253 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25254 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25255 Likewise.
25256 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25257 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25258 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25259 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25260 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25261 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25262 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25263 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25264 superflous runtime assert check.
25265 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25266 Likewise.
25267 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25268 Likewise.
25269 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25270 Likewise.
25271 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25272 Likewise.
25273 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25274 Likewise.
25275 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25276 Likewise.
25277 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25278 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25279 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25280 Likewise.
25281 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25282 Likewise.
25283 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25284 Likewise.
25285 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25286 Likewise.
25287 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25288 Likewise.
25289 * nptl/pthread_attr_setinheritsched.c
25290 (__pthread_attr_setinheritsched): Likewise.
25291 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25292 Likewise.
25293 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25294 Likewise.
25295 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25296 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25297 __old_pthread_attr_setstack): Likewise.
25298 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25299 Likewise.
25300 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25301 Likewise.
25302 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25303 Likewise.
25304 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25305 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25306 Likewise.
25307 * nptl/tst-typesizes.c: Remove file.
25308
dff91cd4
AZ
25309 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25310 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25311 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25312 checks for internal pthread_mutex_t offsets.
25313 * sysdeps/aarch64/nptl/pthread-offsets.h
25314 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25315 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25316 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25317 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25318 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25319 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25320 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25321 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25322 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25323 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25324 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25325 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25326 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25327 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25328 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25329 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25330 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25331 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25332
b7fc95f8
FW
253332017-11-07 Florian Weimer <fweimer@redhat.com>
25334
25335 * bits/mman-linux.h: Move ...
25336 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25337 comment.
25338 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25339 outdated comment.
25340
6b860364
RS
253412017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25342
25343 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25344 Redefine STRNLEN as __strnlen_power8.
25345
802c1f16
AZ
253462017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25347
d83da3a4
AZ
25348 * signal/sighold.c (sighold): Optimize implementation.
25349
6a4235f1
AZ
25350 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25351 __NR_rt_sigqueueinfo.
25352
8b0e795a
AZ
25353 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25354 __sigtimedwait.
25355 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25356 assume __NR_rt_sigtimedwait.
25357 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25358 and add LIBC_CANCEL_HANDLED for cancellation marking.
25359 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25360
a1a638dd
AZ
25361 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25362 (sysdeps_routines): Add memchr_noneon.
25363 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25364 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25365 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25366 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25367 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25368 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25369 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25370
802c1f16
AZ
25371 * sysdeps/arm/arm-ifunc.h: New file.
25372 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25373 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25374 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25375 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25376 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25377 (__memcpy_neon): Avoid create hidden alias.
25378 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25379 (__memcpy_vfp): Likewise.
25380 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25381 (sysdep_routines): Add memcpy_arm.
25382 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25383
abcb584d
L
253842017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25385
25386 [BZ #22362]
25387 * Makerules (make-link-multidir): New.
25388 * config.make.in (multidir): New.
25389 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25390 * configure: Regenerated.
25391 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25392 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25393 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25394 New target.
25395
4e2dff67
JM
253962017-11-06 Joseph Myers <joseph@codesourcery.com>
25397
25398 [BZ #22402]
25399 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25400 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25401
a1c7cd3c
MF
254022017-11-04 Mike FABIAN <mfabian@redhat.com>
25403
25404 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25405 to be escaped.
25406
b9af29c0
FW
254072017-11-04 Florian Weimer <fweimer@redhat.com>
25408
25409 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25410
4ca70e1a
JM
254112017-11-03 Joseph Myers <joseph@codesourcery.com>
25412
25413 * math/math.h [__HAVE_DISTINCT_FLOAT16
25414 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25415 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25416 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25417 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25418 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25419 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25420 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25421 (__MATH_TG_F32): New macro.
25422 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25423 (__MATH_TG_F64X): Likewise.
25424 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25425 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25426
ba0e6668
DL
254272017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25428
25429 * po/de.po: Update translations.
25430 * po/ru.po: Likewise.
25431
bc18a6d3
FW
254322017-11-03 Florian Weimer <fweimer@redhat.com>
25433
25434 * manual/filesys.texi (Hard Links): Document linkat.
25435
97255170
JM
254362017-11-03 Joseph Myers <joseph@codesourcery.com>
25437
86ec4865
JM
25438 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25439 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25440 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25441 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25442 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25443 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25444 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25445 the same as _Float128.
25446 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25447 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25448 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25449
97255170
JM
25450 * stdlib/stdlib.h
25451 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25452 Declare.
25453 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25454 Likewise.
25455 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25456 Likewise.
25457 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25458 (strtof32x): Likewise.
25459 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25460 (strtof64x): Likewise.
25461 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25462 (strtof128x): Likewise.
25463 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25464 (strfromf16): Likewise.
25465 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25466 (strfromf32): Likewise.
25467 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25468 (strfromf64): Likewise.
25469 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25470 (strfromf32x): Likewise.
25471 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25472 (strfromf64x): Likewise.
25473 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25474 (strfromf128x): Likewise.
25475 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25476 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25477 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25478 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25479 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25480 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25481
6d58ce5e
RH
254822017-11-03 Richard Henderson <rth@twiddle.net>
25483
25484 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25485
659ca267
SN
254862017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25487
25488 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25489
94d2f0af
SN
254902017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25491
25492 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25493 DT_TLSDESC_GOT initialization.
25494 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25495 (_dl_tlsdesc_resolve_hold): Likewise.
25496 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25497 (_dl_tlsdesc_resolve_hold): Likewise.
25498 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25499 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25500
28e1ddf3
SN
255012017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25502
25503 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25504
0ca3d1d6
SN
255052017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25506
25507 [BZ #18572]
25508 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25509 non-lazily for R_ARM_TLS_DESC.
25510
2c1d4e5f
SN
255112017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25512
25513 [BZ #17078]
25514 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25515 R_ARM_TLS_DESC case.
25516 (elf_machine_lazy_rel): Remove the prelink check.
25517
91c5a366
SN
255182017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25519
25520 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25521 DT_TLSDESC_GOT initialization.
25522 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25523 (_dl_tlsdesc_resolve_rela): Likewise.
25524 (_dl_tlsdesc_resolve_hold): Likewise.
25525 (_dl_tlsdesc_undefweak): Remove ldar.
25526 (_dl_tlsdesc_dynamic): Likewise.
25527 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25528 (_dl_tlsdesc_resolve_rela): Likewise.
25529 (_dl_tlsdesc_resolve_hold): Likewise.
25530 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25531 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25532 (_dl_tlsdesc_resolve_rela): Likewise.
25533 (_dl_tlsdesc_resolve_hold): Likewise.
25534
b7cf203b
SN
255352017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25536
25537 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25538 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25539
0cc5b022
SN
255402017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25541
25542 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25543 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25544
43ddff2e
JM
255452017-11-02 Joseph Myers <joseph@codesourcery.com>
25546
25547 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25548 Declare.
25549 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25550 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25551 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25552 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25553 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25554 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25555 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25556 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25557 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25558 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25559 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25560
5baac970
MF
255612017-11-02 Mike FABIAN <mfabian@redhat.com>
25562
25563 [BZ #22382]
25564 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25565 * localedata/locales/tpi_PG: Add standard header.
25566
ef11081f
FW
255672017-11-02 Florian Weimer <fweimer@redhat.com>
25568
25569 test-errno-linux: quotactl can fail with EPERM in containers.
25570 * sysdeps/unix/sysv/linux/test-errno-linux.c
25571 (LIST, LIST_FORWARD): New macros.
25572 (check_error_in_list): New function.
25573 (test_wrp_rv): Accept list of permitted error codes.
25574 (test_wrp_rv2): Remove.
25575 (test_wrp): Call test_wrp_rv with list of error codes.
25576 (test_wrp2): Accept list of error codes.
25577 (do_test): Adjust. Allow EPERM for quotactl.
25578
d10b132b
FW
255792017-11-02 Florian Weimer <fweimer@redhat.com>
25580
25581 * stdio-common/bug16.c (do_test): Use array_length.
25582 * stdio-common/errlist.c (_sys_nerr): Likewise.
25583 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25584 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25585 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25586 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25587 (do_test): Use array_length.
25588 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25589 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25590 * stdio-common/tst-printf-round.c (do_test): Likewise.
25591 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25592 (CHECK): Use array_length.
25593 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25594 * stdio-common/tstscanf.c (main): Likewise.
25595 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25596
c94a5688
FW
255972017-11-02 Florian Weimer <fweimer@redhat.com>
25598
25599 Add array_length and array_end macros.
25600 * include/array_length.h: New file.
25601
2fac6a6c
FW
256022017-11-02 Florian Weimer <fweimer@redhat.com>
25603
25604 [BZ #22332]
25605 * posix/tst-glob-tilde.c (do_noescape): New variable.
25606 (one_test): Process it.
25607 (do_test): Set do_noescape. Add unescaping test case.
25608
2f1b212e
JM
256092017-11-01 Joseph Myers <joseph@codesourcery.com>
25610
260fbd0a
JM
25611 * math/complex.h
25612 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25613 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25614 with appropriate macros defined and undefined.
25615 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25616 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25617 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25618 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25619 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25620 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25621 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25622 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25623 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25624 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25625
2f1b212e
JM
25626 * math/complex.h
25627 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25628 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25629 that for long double. Do not condition define and undefine of
25630 _Mdouble_complex_ on [__CFLOAT128].
25631
95b93c6e
L
256322017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25633
25634 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25635 of <sysdeps/generic/sysdep.h>.
25636 (ALIGNARG): Removed.
25637 (ASM_SIZE_DIRECTIVE): Likewise.
25638 (ENTRY): Likewise.
25639 (END): Likewise.
25640 (ENTRY_CHK): Likewise.
25641 (END_CHK): Likewise.
25642 (syscall_error): Likewise.
25643 (mcount): Likewise.
25644 (PSEUDO_END): Likewise.
25645 (L): Likewise.
25646 (atom_text_section): Likewise.
25647 * sysdeps/x86/sysdep.h: New file.
25648 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25649 of <sysdeps/generic/sysdep.h>.
25650 (ALIGNARG): Removed.
25651 (ASM_SIZE_DIRECTIVE): Likewise.
25652 (ENTRY): Likewise.
25653 (END): Likewise.
25654 (ENTRY_CHK): Likewise.
25655 (END_CHK): Likewise.
25656 (syscall_error): Likewise.
25657 (mcount): Likewise.
25658 (PSEUDO_END): Likewise.
25659 (L): Likewise.
25660 (atom_text_section): Likewise.
25661
1bb36539
RL
256622017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25663
25664 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25665 category of LC_CTYPE set to "i18n:2012".
25666 * localedata/locales/i18n_ctype: Regenerate.
25667
067f5d97 256682017-10-31 Yury Norov <ynorov@caviumnetworks.com>
e8681faa 25669
87bbc4cf
YN
25670 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25671 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25672 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25673 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25674
e8681faa
YN
25675 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25676 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25677 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25678 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25679
540af6e2
JM
256802017-10-31 Joseph Myers <joseph@codesourcery.com>
25681
43e66283
JM
25682 * math/complex.h
25683 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25684 New macro.
25685 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25686 Likewise.
25687 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25688 Likewise.
25689 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25690 (CMPLXF32X): Likewise.
25691 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25692 (CMPLXF64X): Likewise.
25693 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25694 (CMPLXF128X): Likewise.
25695
540af6e2
JM
25696 * math/math.h
25697 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25698 (__MATH_EVAL_FMT2): Define to add 0.0f.
25699
58af72b4
AM
257002017-10-31 Alan Modra <amodra@gmail.com>
25701
25702 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25703 include sysdep.h.
25704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25709 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25711 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25712 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25714 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25715 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25718 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25719 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25720 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25721 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25722 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25723 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25724 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25725 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25726 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25727 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25728 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25729 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25730 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25731 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25732 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25733 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25734 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25735 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25736 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25737 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25738 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25739 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25740 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25741 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25742 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25743 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25744 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25745 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25746 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25747 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25748 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25749 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25750 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25751 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25752 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25753 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25754 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25755 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25756 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25757 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25758 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25759 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25760 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25761 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25762 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25763 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25764 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25765 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25766 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25767 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25768 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25769 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25770 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25771 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25772 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25773
25774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25775 include sysdep.h and math_ldbl_opt.h.
25776
25777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25778 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25803
112f30b3
AM
258042017-10-31 Alan Modra <amodra@gmail.com>
25805
25806 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25807 string/strncase_l.c, not string/strncase.c.
25808 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25809 (libc_hidden_def): Redefine.
25810
e9e7eced
AM
258112017-10-31 Alan Modra <amodra@gmail.com>
25812
25813 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25814 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25815 (__strcasecmp): Don't define.
25816
f7b465cf
AM
258172017-10-31 Alan Modra <amodra@gmail.com>
25818
25819 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25820 IS_IN (libc).
25821 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25822 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25823 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25824
d46b09f9
AM
258252017-10-31 Alan Modra <amodra@gmail.com>
25826
25827 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25828 USE_AS_STPNCPY.
25829
e9b8e194
AM
258302017-10-31 Alan Modra <amodra@gmail.com>
25831
25832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25833 Redefine only when SHARED.
25834
eda162dd
JM
258352017-10-30 Joseph Myers <joseph@codesourcery.com>
25836
b61afe8c
JM
25837 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25838 Include <bits/math-finite.h> with appropriate macros defined and
25839 undefined.
25840 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25841 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25842 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25843 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25844 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25845
eda162dd
JM
25846 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25847 [!_Mlong_double_] (_Mlong_double_): Likewise.
25848 [!_Mfloat16_] (_Mfloat16_): Likewise.
25849 [!_Mfloat32_] (_Mfloat32_): Likewise.
25850 [!_Mfloat64_] (_Mfloat64_): Likewise.
25851 [!_Mfloat128_] (_Mfloat128_): Likewise.
25852 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25853 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25854 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25855 (_Mdouble_): Define without indirection through those macros.
25856 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25857 [!_Mfloat128_] (_Mfloat128_): Likewise.
25858 [_Mlong_double_] (_Mlong_double_): Likewise.
25859 (_Mdouble_): Define without indirection through those macros.
25860 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25861 not add -D_Mlong_double_=double.
25862 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25863 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25864
4ad5106e
L
258652017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25868
fe326df7
L
258692017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 * sysdeps/x86/libc-start.c: Reformat.
25872
c5cc4514
L
258732017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25874
25875 [BZ #22353]
25876 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25877 (1): Renamed to ...
25878 (L(Src0)): This.
25879 (L(Src1)): New.
25880 (L(Src2)): Likewise.
25881 (L(1)): Renamed to ...
25882 (L(Src3)): This.
25883
ce12269f
JM
258842017-10-30 Joseph Myers <joseph@codesourcery.com>
25885
25886 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25887 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25888 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25889 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25890 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25891 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25892 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25893 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25894 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25895 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25896 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25897 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25898 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25899 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25900 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25901 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25902 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25903 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25904 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25905 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25906 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25907 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25908 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25909 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25910 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25911 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25912 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25913 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25914 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25915 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25916 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25917 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25918 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25919 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25920 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25921 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25922 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25923 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25924 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25925 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25926 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25927 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25928 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25929 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25930 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25931 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25932 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25933 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25934 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25935 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25936 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25937 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25938 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25939 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25940 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25941 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25942 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25943 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25944 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25945 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25946 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25947 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25948 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25949 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25950 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25951 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25952
4484b9e2
FW
259532017-10-30 Florian Weimer <fweimer@redhat.com>
25954
25955 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25956 always defined.
25957 * io/tst-mkdirat.c (do_test): Likewise.
25958 * io/tst-mkfifoat.c (do_test): Likewise.
25959 * io/tst-mknodat.c (do_test): Likewise.
25960 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25961 * locale/programs/locale.c (select_dirs): Likewise.
25962 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25963 * posix/bug-glob2.c (my_readdir): Likewise.
25964 * posix/tst-dir.c (main): Likewise.
25965 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25966 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25967
68fe16dd
FW
259682017-10-30 Florian Weimer <fweimer@redhat.com>
25969
25970 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25971 just __USE_GNU.
25972
dadf23f0
FW
259732017-10-30 Florian Weimer <fweimer@redhat.com>
25974
25975 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25976 Convert to support/test-driver.c.
25977 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25978 New macro parameters.
25979 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25980 * posix/tst-gnuglob.c: New file.
25981 * posix/tst-gnuglob64.c: Likewise.
25982 * posix/Makefile (tests): Add tst-gnuglob64.
25983
363e4519 259842017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
fbcecc08
MF
25985
25986 [BZ #19485]
25987 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25988 and use a better translation for March in “mon”.
25989 * localedata/locales/csb_PL: Use more ASCII to improve the
25990 readability of the source.
25991
b110af82
MF
259922017-10-30 Mike FABIAN <mfabian@redhat.com>
25993
25994 [BZ #13953]
25995 * localedata/locales/km_KH: Use ASCII as much
25996 as possible for better readability of the source and
25997 remove useless comments.
25998 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25999 was commented out and apparently wrong anyway because it was
26000 using Lao characters. If Buddhist era should be used
26001 for km_KH, a native speaker should write the correct formaat
26002 for Khmer.
26003 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26004 (According to CLDR, the first weekday for Cambodia is Sunday).
26005 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26006 (These were using Lao characters which must be wrong. If we get
26007 the correct data from a native speaker, we could add it back, until
26008 then it is better not to have name_mr and name_mrs at all than
26009 having it wrong).
26010
f301e533
RL
260112017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26012
26013 * locale/loadlocale.c: Correct size of
26014 _nl_value_type_LC_<category> arrays.
26015
7e9d7073
JM
260162017-10-27 Joseph Myers <joseph@codesourcery.com>
26017
26018 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26019 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26020 with appropriate macros defined and undefined.
26021 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26022 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26023 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26024 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26025 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26026
63d3b468
L
260272017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26028
26029 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26030 "-O2 -march=i586".
26031
a4cc02c7
MF
260322017-10-27 Mike FABIAN <mfabian@redhat.com>
26033
26034 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26035 with lowercase letters to make it agree with CLDR.
26036
1e5971ec
MF
260372017-10-27 Mike FABIAN <mfabian@redhat.com>
26038
26039 [BZ #15260]
26040 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26041 first letters of yesstr and nostr in yesexpr and noexpr,
26042 not for the full words.
26043 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26044 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26045 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26046 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26047 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26048 first letters of yesstr and nostr in yesexpr and noexpr,
26049 until now only English was matched in yesexpr and noexpr.
26050 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26051 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26052 fil but not for tl. As tl and fil are very similar, using fil
26053 is probably better than using English.
26054
363e4519 260552017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
bc5fc7de
MF
26056
26057 [BZ #21706]
26058 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26059 in yesstr and nostr.
26060
5d220788
JM
260612017-10-26 Joseph Myers <joseph@codesourcery.com>
26062
ecc7da5b
JM
26063 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26064 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26065 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26066 Likewise.
26067 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26068 Likewise.
26069 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26070 Likewise.
26071 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26072 Likewise.
26073 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26074 (SNANF128X): Likewise.
26075
5d220788
JM
26076 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26077 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26078 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26079 (HUGE_VAL_F32): Likewise.
26080 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26081 (HUGE_VAL_F64): Likewise.
26082 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26083 (HUGE_VAL_F32X): Likewise.
26084 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26085 (HUGE_VAL_F64X): Likewise.
26086 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26087 (HUGE_VAL_F128X): Likewise.
26088
363e4519 260892017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
67ad7163
TV
26090
26091 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26092 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26093 for the br_FR locale.
26094
363e4519 260952017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
408dff7e
TV
26096
26097 [BZ #21706]
26098 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26099
337ff3c5
CD
261002017-10-25 Carlos O'Donell <carlos@redhat.com>
26101
02eec681
CD
26102 * locale/programs/record-status.h: Define globals, and function
26103 prototypes. Move function bodies...
26104 * locale/programs/record-status.c: ... to here. New file.
26105 * iconv/Makefile (iconv_prog-modules): Add record-status.
26106 * locale/Makefile (lib-modules): Likewise.
26107 * iconv/iconv_prog.c: Remove verbose.
26108 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26109 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26110 record a warning about ASCII compatibility.
26111 * locale/programs/ld-monetary.c (monetary_finish): If
26112 warn_int_curr_symbol is true then record a warning about the symbol
26113 not being in our ISO 4217 list.
26114 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26115 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26116 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26117 (OPT_NO_WARN): Define.
26118 (OPT_WARN): Define.
26119 (options): Add entry for --no-warnings, and --warnings.
26120 (set_warnings): New function to enable/disable warnings.
26121 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26122 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26123 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26124 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26125 Pass flags to generate_locale.
26126 (generate_locale): Accept new flag argument and pass it to localedef
26127 invocation.
26128 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26129 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26130
56fa555a
CD
26131 * localedata/Makefile (test-input-data): Use full file name.
26132 * localedata/da_DK.in: Rename to...
26133 * localedata/da_DK.ISO-8859-1.in: ...this.
26134 * localedata/de_DE.in: Rename to...
26135 * localedata/de_DE.ISO-8859-1.in: ...this.
26136 * localedata/en_US.in: Rename to...
26137 * localedata/en_US.ISO-8859-1.in: ...this.
26138 * localedata/fr_FR.in: Rename to...
26139 * localedata/fr_FR.UTF-8.in: ... this.
26140 * localedata/hr_HR.in: Rename to...
26141 * localedata/hr_HR.ISO-8859-2.in: ...this.
26142 * localedata/hu_HU.in: Rename to...
26143 * localedata/hu_HU.UTF-8.in: ...this.
26144 * localedata/si_LK.in: Rename to...
26145 * localedata/si_LK.UTF-8.in: ...this.
26146 * localedata/sv_SE.in: Rename to...
26147 * localedata/sv_SE.ISO-8859-1.in: ...this.
26148 * localedata/tr_TR.in: Rename to...
26149 * localedata/tr_TR.UTF-8.in: ...this.
26150 * localedata/uk_UA.in: Rename to...
26151 * localedata/uk_UA.UTF-8.in: ...this.
26152 * localedata/sort-test.sh: Test file is locale name with the
26153 suffix.
26154
337ff3c5
CD
26155 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26156 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26157 file.
26158 * localedata/locales/i18n_ctype: Regenerate.
26159 * localedata/locales/tr_TR: Likewise.
26160 * localedata/locales/translit_circle: Likewise.
26161 * localedata/locales/translit_cjk_compat: Likewise.
26162 * localedata/locales/translit_combining: Likewise.
26163 * localedata/locales/translit_compat: Likewise.
26164 * localedata/locales/translit_font: Likewise.
26165 * localedata/locales/translit_fraction: Likewise.
26166
63da5cd4
RS
261672017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26168
26169 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26170 lxvd2x/stxvd2x with lvx/stvx.
26171 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26172
a122dbfb
L
261732017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26174
26175 * include/alloc_buffer.h: Replace "if if " with "if " in
26176 comments.
26177 * sysdeps/mips/memcpy.S: Likkewise.
26178 * sysdeps/mips/memset.S: Likewise.
26179 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26180 Likewise.
26181 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26182 Likewise.
26183 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26184 Likewise.
26185
9be7530c
MF
261862017-10-25 Mike FABIAN <mfabian@redhat.com>
26187
26188 [BZ #15261]
26189 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26190 yesexpr and noexpr.
26191 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26192 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26193 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26194 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26195 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26196 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26197 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26198
6ccbf6ff
MF
261992017-10-25 Mike FABIAN <mfabian@redhat.com>
26200
26201 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26202 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26203 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26204 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26205 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26206 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26207 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26208 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26209 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26210 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26211 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26212 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26213
58b1a7ea
MF
262142017-10-25 Mike FABIAN <mfabian@redhat.com>
26215
26216 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26217 as possible for better readability of the source.
26218 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26219 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26220 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26221 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26222 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26223 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26224 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26225 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26226 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26227 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26228 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26229 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26230 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26231 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26232 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26233 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26234 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26235 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26236 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26237 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26238 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26239 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26240 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26241 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26242 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26243 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26244 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26245 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26246 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26247 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26248 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26249 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26250 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26251 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26252 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26253 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26254 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26255 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26256 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26257 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26258 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26259 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26260 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26261 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26262 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26263 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26264 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26265 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26266 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26267 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26268 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26269 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26270 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26271 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26272 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26273 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26274 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26275 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26276 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26277 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26278 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26279 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26280 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26281 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26282 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26283 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26284 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26285 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26286 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26287 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26288 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26289 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26290 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26291 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26292 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26293 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26294 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26295 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26296 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26297 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26298 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26299 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26300 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26301 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26302 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26303 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26304 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26305 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26306 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26307 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26308 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26309 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26310 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26311 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26312 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26313 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26314 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26315 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26316 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26317 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26318 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26319 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26320 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26321 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26322 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26323 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26324 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26325 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26326 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26327 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26328 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26329 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26330 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26331 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26332 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26333 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26334 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26335 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26336 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26337 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26338 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26339 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26340 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26341 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26342 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26343 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26344 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26345 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26346 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26347 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26348 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26349 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26350 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26351 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26352 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26353 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26354 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26355 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26356 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26357 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26358 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26359 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26360 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26361 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26362 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26363 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26364 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26365 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26366 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26367 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26368 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26369 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26370 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26371 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26372 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26373 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26374 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26375 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26376 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26377 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26378 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26379 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26380 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26381 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26382 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26383 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26384 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26385 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26386 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26387 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26388 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26389 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26390 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26391 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26392
17e78edb
MF
263932017-10-25 Mike FABIAN <mfabian@redhat.com>
26394
26395 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26396 (Use first letters of yesstr and nostr correctly instead of using
26397 full words).
26398
74e7284f
MF
263992017-10-25 Mike FABIAN <mfabian@redhat.com>
26400
26401 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26402 (Use first letters of yesstr and nostr correctly).
26403
b41a0ff1
MF
264042017-10-25 Mike FABIAN <mfabian@redhat.com>
26405
26406 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26407 also check for the first characters of yesstr and nostr.
26408 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26409 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26410
d971f380
MF
264112017-10-25 Mike FABIAN <mfabian@redhat.com>
26412
26413 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26414 also check for Chinese characters.
26415
effc9e1d
MF
264162017-10-25 Mike FABIAN <mfabian@redhat.com>
26417
26418 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26419 match also for the contents of yesstr and nostr. As the first letter
26420 of yesstr and nostr is equal, checking only for the first letter
26421 is not enough.
26422
10320881
MF
264232017-10-25 Mike FABIAN <mfabian@redhat.com>
26424
26425 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26426 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26427
d8682a15
MF
264282017-10-25 Mike FABIAN <mfabian@redhat.com>
26429
26430 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26431 of main contributor.
26432
1bfb86ae
MF
264332017-10-25 Mike FABIAN <mfabian@redhat.com>
26434
26435 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26436 instead of using English.
26437
da33d60b
MF
264382017-10-25 Mike FABIAN <mfabian@redhat.com>
26439
26440 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26441 by including the first letters of nostr and yesexpr in the regexp.
26442 Also make it more readable by using ASCII where possible.
26443
725bbb3e
MF
264442017-10-25 Mike FABIAN <mfabian@redhat.com>
26445
26446 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26447 the first letter of nostr in the regexp. It agrees with CLDR now.
26448 Also make it more readable by using ASCII where possible.
26449
fe043d8a
MF
264502017-10-24 Mike FABIAN <mfabian@redhat.com>
26451
26452 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26453 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26454 these strings contain a U+17D6 (which somewhat looks like a colon)
26455 instead of a real colon to separate the full words for “yes”
26456 and “no” from the single letter responses.
26457
360a8df3
MF
264582017-10-24 Mike FABIAN <mfabian@redhat.com>
26459
26460 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26461 it agree with CLDR (include the first letter of yesstr).
26462 Also make it more readable by using ASCII where possible.
26463
bab7b6b0
MF
264642017-10-24 Mike FABIAN <mfabian@redhat.com>
26465
26466 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26467 and improve yesexpr and noexpr. The yesstr and nostr apparently
26468 came from CLDR. And CLDR has a bug there: these strings contain
26469 a U+0903 (which looks like a colon) instead of a real colon
26470 to separate the full words for “yes” and “no” from the single
26471 letter responses.
26472
3e79f758
MF
264732017-10-24 Mike FABIAN <mfabian@redhat.com>
26474
26475 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26476 letters of the full yesstr and nostr in yesexpr and noexpr.
26477
4960c879
MF
264782017-10-24 Mike FABIAN <mfabian@redhat.com>
26479
26480 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26481 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26482 * localedata/locales/an_ES: Make source more readable by using ASCII
26483 where possible.
26484
b06a054f
MF
264852017-10-24 Mike FABIAN <mfabian@redhat.com>
26486
26487 [BZ #20952]
26488 * localedata/locales/yuw_PG: New file.
26489 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26490 * locale/iso-639.def: Add Yau (Uruwa).
26491
905a7725
WD
264922017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26493
26494 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26495
3f6bb8a3
WD
264962017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26497
26498 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26499 (__libc_realloc): Likewise.
26500 (_mid_memalign): Likewise.
26501 (__libc_calloc): Likewise.
26502
1d479c8c
MF
265032017-10-23 Mike FABIAN <mfabian@redhat.com>
26504
26505 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26506 by adding the generic +1 and -0 as in all other locales.
26507 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26508 day names and make it more readable by using ASCII where possible.
26509
91c3985c
JM
265102017-10-24 Joseph Myers <joseph@codesourcery.com>
26511
26512 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26513 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26514
aa95a241
AZ
265152017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26516
26517 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26518 WNOHANG in waitpid call.
26519
db9bab09
SP
265202017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26521
a2e0a7f1
SP
26522 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26523 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26524
db9bab09
SP
26525 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26526 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26527 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26528 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26529 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26530 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26531 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26532 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26533 variables.
26534
5062680c
MC
265352017-10-23 Michael Collison <michael.collison@arm.com>
26536
26537 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26538 with __builtin_sqrt.
26539 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26540 with __builtin_sqrtf.
26541 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26542 with __builtin_ceil.
26543 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26544 with __builtin_ceilf.
26545 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26546 with __builtin_floor.
26547 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26548 with __builtin_floorf.
26549 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26550 with __builtin_fma.
26551 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26552 with __builtin_fmaf.
26553 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26554 with __builtin_fmax.
26555 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26556 with __builtin_fmaxf.
26557 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26558 with __builtin_fmin.
26559 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26560 with __builtin_fminf.
26561 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26562 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26563 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26564 with builtin_rint and conversion to int.
26565 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26566 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26567 with builtin_llround.
26568 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26569 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26570 with builtin_rint and conversion to long int.
26571 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26572 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26573 with builtin_lround.
26574 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26575 with builtin_lroundf.
26576 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26577 statements with __builtin_nearbyint.
26578 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26579 statements with __builtin_nearbyintf.
26580 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26581 with __builtin_rint.
26582 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26583 with __builtin_rintf.
26584 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26585 with __builtin_round.
26586 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26587 with __builtin_roundf.
26588 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26589 with __builtin_trunc.
26590 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26591 with __builtin_truncf.
be080b6c
SN
26592 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26593 and s_l[l]round[f].c too.
5062680c 26594
174935af
AM
265952017-10-23 Alan Modra <amodra@gmail.com>
26596
26597 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26598 Adjust stack after restoring regs. Add missing LR cfi_restore.
26599
750a0e49
AM
266002017-10-23 Alan Modra <amodra@gmail.com>
26601
26602 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26603 Move LR save and frame setup/teardown and LR restore to
26604 immediately around memset call. Provide cfi.
26605
5313581c
L
266062017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26607
26608 * sysdeps/i386/fpu/e_powf.S: Removed.
26609 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26610 * sysdeps/i386/fpu/w_powf.c: Likewise.
26611 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26612 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26613 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26614 Add e_powf-sse2.
26615 (CFLAGS-e_powf-sse2.c): New.
26616 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26617 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26618
6089a3ee
L
266192017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26620
26621 * sysdeps/i386/fpu/e_log2f.S: Removed.
26622 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26623 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26624 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26625 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26626 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26627 Add e_log2f-sse2.
26628 (CFLAGS-e_log2f-sse2.c): New.
26629 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26630 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26631
80bb5935
L
266322017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26633
26634 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26635 Add e_powf-fma.
26636 (CFLAGS-e_powf-fma.c): New.
26637 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26638 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26639
5c7adbd8
L
266402017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26641
26642 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26643 Add e_log2f-fma.
26644 (CFLAGS-e_log2f-fma.c): New.
26645 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26646 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26647
0ccc7153
L
266482017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26649
26650 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26651 Add e_logf-fma.
26652 (CFLAGS-e_logf-fma.c): New.
26653 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26654 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26655
fe596486
L
266562017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 * sysdeps/i386/fpu/e_logf.S: Removed.
26659 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26660 * sysdeps/i386/fpu/w_logf.c: Likewise.
26661 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26662 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26663 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26664 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26665 Add e_logf-sse2.
26666 (CFLAGS-e_logf-sse2.c): New.
26667 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26668 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26669
7eda65f6
L
266702017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26671
26672 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26673 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26674 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26675 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26676 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26677 Add e_exp2f-sse2.
26678 (CFLAGS-e_exp2f-sse2.c): New.
26679 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26680 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26681
5d15c969
L
266822017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26685 Add e_exp2f-fma.
26686 (CFLAGS-e_exp2f-fma.c): New.
26687 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26688 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26689
b2f6137e
L
266902017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26691
26692 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26693 * sysdeps/i386/fpu/e_expf.S: Likewise.
26694 * sysdeps/i386/fpu/math_errf.c: Likewise.
26695 * sysdeps/i386/fpu/w_expf.c: Likewise.
26696 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26697 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26698 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26699 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26700 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26701 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26702 Remove e_expf-ia32.
26703 (CFLAGS-e_expf-sse2.c): New.
26704 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26705 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26706
e1f59beb
L
267072017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26708
26709 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26710 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26711 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26712 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26713 e_expf.c.
26714 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26715 New.
26716 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26717 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26718 Renamed to ...
26719 (__redirect_expf): This.
26720 (SYMBOL_NAME): Changed to expf.
26721 (__ieee754_expf): Renamed to ...
26722 (__expf): This.
26723 (__GI___expf): This.
26724 (__ieee754_expf): Add strong_alias.
26725 (__expf_finite): Likewise.
26726 (__expf): New.
26727 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26728
363e4519 267292017-10-22 Paul Eggert <eggert@cs.ucla.edu>
a159b53f
PE
26730
26731 [BZ #22332]
26732 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26733 unescaping.
26734
e80fc1fc
FW
267352017-10-21 Florian Weimer <fweimer@redhat.com>
26736
26737 * posix/Makefile (tests): Add tst-glob-tilde.
26738 (tests-special): Add tst-glob-tilde-mem.out
26739 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26740 (tst-glob-tilde-mem.out): Add mtrace check.
26741 * posix/tst-glob-tilde.c: New file.
26742
797ba44b
JM
267432017-10-20 Joseph Myers <joseph@codesourcery.com>
26744
26745 * bits/floatn-common.h: New file.
26746 * math/Makefile (headers): Add bits/floatn-common.h.
26747 * bits/floatn.h: Include <bits/floatn-common.h>.
26748 * sysdeps/ia64/bits/floatn.h: Likewise.
26749 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26750 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26751 * sysdeps/powerpc/bits/floatn.h: Likewise.
26752 * sysdeps/x86/bits/floatn.h: Likewise.
26753
fe05e1cb
AZ
267542017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26755
8f6f5362
AZ
26756 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26757 indicates whether compiler emits an warning for alias for
26758 functions with incompatible types.
26759
fe05e1cb
AZ
26760 [BZ #22273]
26761 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26762 the auxiliary process is terminated by a signal before calling _exit
26763 or execve.
26764
b52b0d79
L
267652017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26766
26767 [BZ #21265]
26768 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26769 New.
26770 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26771 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26772 and bit_arch_XSAVEC_Usable if needed.
26773 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26774 and bit_arch_Use_dl_runtime_resolve_opt.
26775 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26776 Removed.
26777 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26778 (bit_arch_Prefer_No_AVX512): Updated.
26779 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26780 (bit_arch_XSAVEC_Usable): New.
26781 (STATE_SAVE_OFFSET): Likewise.
26782 (STATE_SAVE_MASK): Likewise.
26783 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26784 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26785 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26786 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26787 (index_arch_XSAVEC_Usable): New.
26788 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26789 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26790 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26791 is enabled.
26792 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26793 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26794 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26795 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26796 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26797 _dl_runtime_resolve_xsavec.
26798 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26799 Removed.
26800 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26801 instead of VEC_SIZE.
26802 (REGISTER_SAVE_BND0): Removed.
26803 (REGISTER_SAVE_BND1): Likewise.
26804 (REGISTER_SAVE_BND3): Likewise.
26805 (REGISTER_SAVE_RAX): Always defined to 0.
26806 (VMOV): Removed.
26807 (_dl_runtime_resolve_avx): Likewise.
26808 (_dl_runtime_resolve_avx_slow): Likewise.
26809 (_dl_runtime_resolve_avx_opt): Likewise.
26810 (_dl_runtime_resolve_avx512): Likewise.
26811 (_dl_runtime_resolve_avx512_opt): Likewise.
26812 (_dl_runtime_resolve_sse): Likewise.
26813 (_dl_runtime_resolve_sse_vex): Likewise.
26814 (USE_FXSAVE): New.
26815 (_dl_runtime_resolve_fxsave): Likewise.
26816 (USE_XSAVE): Likewise.
26817 (_dl_runtime_resolve_xsave): Likewise.
26818 (USE_XSAVEC): Likewise.
26819 (_dl_runtime_resolve_xsavec): Likewise.
26820 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26821 Removed.
26822 (_dl_runtime_resolve_avx512_opt): Likewise.
26823 (_dl_runtime_resolve_avx): Likewise.
26824 (_dl_runtime_resolve_avx_opt): Likewise.
26825 (_dl_runtime_resolve_sse): Likewise.
26826 (_dl_runtime_resolve_sse_vex): Likewise.
26827 (_dl_runtime_resolve_fxsave): New.
26828 (_dl_runtime_resolve_xsave): Likewise.
26829 (_dl_runtime_resolve_xsavec): Likewise.
26830
363e4519 268312017-10-20 Paul Eggert <eggert@cs.ucla.edu>
c369d66e
PE
26832
26833 [BZ #22320]
26834 CVE-2017-15670
26835 * posix/glob.c (__glob): Fix one-byte overflow.
26836
6d43de4b
WD
268372017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26838
26839 * malloc/malloc.c (sysdep-cancel.h): Add include.
26840
a15d53e2
WD
268412017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26842
26843 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26844
b9a558e7
WH
268452017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26846
26847 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26848 (tests): Remove $(objpfx)ga_test depdendency.
26849 * resolv/ga_test.c: Remove file.
26850
b6b08b8e
MF
268512017-10-20 Mike FABIAN <mfabian@redhat.com>
26852
26853 [BZ #18812]
26854 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26855 * localedata/locales/kab_DZ: New file.
26856
9ba7e810
L
268572017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26858
26859 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26860 _dl_relocate_static_pie instead of _dl_start to compute load
26861 address in static PIE.
26862
4027a4fd
L
268632017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26864
26865 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26866
2f9314b4
MF
268672017-10-20 Mike FABIAN <mfabian@redhat.com>
26868
26869 [BZ #13605]
26870 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26871 * localedata/locales/shn_MM: New file.
26872
63b4baa4
FW
268732017-10-20 Florian Weimer <fweimer@redhat.com>
26874
26875 [BZ #22321]
26876 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26877 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26878 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26879 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26880 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26881 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26882
95ccb619
L
268832017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26884
26885 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26886
37bb78cb
JM
268872017-10-19 Joseph Myers <joseph@codesourcery.com>
26888
76f2ed92
JM
26889 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26890
37bb78cb
JM
26891 [BZ #22322]
26892 * sysdeps/mips/bits/long-double.h: Move to ....
26893 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26894
d74e6f6c
WD
268952017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26896
26897 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26898
363e4519 268992017-10-19 Valery Reznic <valery_reznic@yahoo.com>
4d916f0f
L
26900 H.J. Lu <hongjiu.lu@intel.com>
26901
26902 [BZ #22299]
26903 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26904 GLRO(dl_platform) to NULL.
26905 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26906 (modules-names): Add tst-platformmod-1 and
26907 x86_64/tst-platformmod-2.
26908 (CFLAGS-tst-platform-1.c): New.
26909 (CFLAGS-tst-platformmod-1.c): Likewise.
26910 (CFLAGS-tst-platformmod-2.c): Likewise.
26911 (LDFLAGS-tst-platformmod-2.so): Likewise.
26912 ($(objpfx)tst-platform-1): Likewise.
26913 ($(objpfx)tst-platform-1.out): Likewise.
26914 (tst-platform-1-ENV): Likewise.
26915 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26916 * sysdeps/x86_64/tst-platform-1.c: New file.
26917 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26918 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26919
4b0fa403
MF
269202017-10-19 Mike FABIAN <mfabian@redhat.com>
26921
26922 [BZ #13994]
26923 * locale/iso-639.def: Add Karbi.
26924 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26925 * localedata/locales/mjw_IN: New file.
26926
81325b12
JM
269272017-10-18 Joseph Myers <joseph@codesourcery.com>
26928
26929 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26930 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26931 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26932 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26933 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26934 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26935 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26936 <bits/floatn.h>.
26937 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26938 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26939 * manual/math.texi (Mathematics): Document additional architecture
26940 support for _Float128.
26941 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26942 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26943 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26944 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26945 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26946 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26947 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26948 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26949 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26950 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26951 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26952 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26953 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26954 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26955 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26956
a68ba2f3
SN
269572017-10-18 Renlin Li <renlin.li@arm.com>
26958
26959 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26960 _DYNAMIC symbol to calculate load address.
26961
346729f6
PC
269622017-10-18 Paul A. Clarke <pc@us.ibm.com>
26963
26964 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26965 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26966 summary bits.
26967 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26968 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26969
508b1e71
MF
269702017-10-18 Mike FABIAN <mfabian@redhat.com>
26971
26972 [BZ #16777]
26973 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26974 and improve readability by using more ASCII.
26975 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26976 and improve readability by using more ASCII.
26977
2c2245b9
WD
269782017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26979
26980 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26981 not all targets support atomics on bool.
26982
13c92696
JM
269832017-10-17 Joseph Myers <joseph@codesourcery.com>
26984
26985 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26986 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26987 __f128.
26988 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26989 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26990 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26991 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26992 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26993 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26994
71d85045
AZ
269952017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26996
26997 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26998 defines.
26999
3381be5c
WD
270002017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27001
27002 [BZ #22159]
27003 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27004 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27005 (do_check_remalloced_chunk): Fix build bug.
27006 (do_check_malloc_state): Add assert that checks arena->top.
27007 (malloc_consolidate): Remove initialization.
27008 (int_mallinfo): Remove call to malloc_consolidate.
6b5c8607 27009 (__libc_mallopt): Clarify why malloc_consolidate is needed.
3381be5c 27010
e956075a
WD
270112017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27012
27013 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27014 (have_fastchunks): Remove.
27015 (clear_fastchunks): Remove.
27016 (set_fastchunks): Remove.
27017 (malloc_state): Add have_fastchunks.
27018 (malloc_init_state): Use have_fastchunks.
27019 (do_check_malloc_state): Remove incorrect invariant checks.
27020 (_int_malloc): Use have_fastchunks.
27021 (_int_free): Likewise.
27022 (malloc_consolidate): Likewise.
27023
e4dd4ace
WD
270242017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27025
27026 * malloc/malloc.c (tcache_put): Inline.
27027 (tcache_get): Inline.
27028
5bf58bc7
AJ
270292017-10-17 Jordi Mallach <jordi@gnu.org>
27030
27031 Aurelien Jarno <aurelien@aurel32.net>
27032 [BZ #2522]
27033 * localedata/locales/ca_ES@valencia: New file.
27034 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27035
386e1c26
RN
270362017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27037
27038 [BZ #22296]
27039 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27040 < 6.x
27041
4e17c78e
AZ
270422017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27043
3d265601
AZ
27044 * scripts/build-many-glibcs.py (Context.add_all_configs):
27045 Add arm-linux-gnueabihf multiarch extra_glibcs.
27046
4e17c78e
AZ
27047 * sysdeps/generic/ifunc-init.h: New file.
27048 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27049
56a752ab
MF
270502017-10-17 Mike FABIAN <mfabian@redhat.com>
27051
27052 [BZ #22019]
27053 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27054 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27055 * stdlib/tst-strfmon_l.c: adapt test case.
27056
c38a4bfd
JM
270572017-10-16 Joseph Myers <joseph@codesourcery.com>
27058
27059 * sysdeps/generic/float128-abi.h: New file.
27060 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27061 non-__prefixed symbols to ....
27062 * math/Versions: ... here. Include <float128-abi.h>.
27063 * stdlib/Versions ... and here. Include <float128-abi.h>
27064
76009b26
FW
270652017-10-16 Florian Weimer <fweimer@redhat.com>
27066
27067 * version.h (VERSION): Switch to ".9000" as the development
27068 version suffix.
27069
7ece6cd5
FW
270702017-10-16 Florian Weimer <fweimer@redhat.com>
27071
27072 [BZ #22050]
27073 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27074 compat_symbol_reference to access non-default version.
27075
d8287b36
FW
270762017-10-16 Florian Weimer <fweimer@redhat.com>
27077
27078 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27079
3480ddc4
CD
270802017-10-16 Carlos O'Donell <carlos@redhat.com>
27081
27082 * include/shlib-compat.h (compat_symbol_reference): Update
27083 comment.
27084
02010e79
JM
270852017-10-16 Joseph Myers <joseph@codesourcery.com>
27086
596f7013
JM
27087 * math/Makefile (test-types): Add
27088 $(type-float128-$(float128-alias-fcts)).
27089 * math/test-float128.h (TYPE_STR): Define conditional on
27090 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27091 (ULP_IDX): Likewise.
27092 (ULP_I_IDX): Likewise.
27093
02010e79
JM
27094 * stdlib/strtold.c: Include <bits/floatn.h>
27095 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27096 and later undefine as macro. Define as weak alias if
27097 [!USE_WIDE_CHAR].
27098 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27099 and later undefine as macro. Define as weak alias if
27100 [USE_WIDE_CHAR].
27101 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27102 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27103 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27104 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27105 Define and later undefine as macro. Define as weak alias if
27106 [USE_WIDE_CHAR].
27107 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27108 <bits/floatn.h>.
27109 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27110 Define and later undefine as macro. Define as weak alias if
27111 [!USE_WIDE_CHAR].
27112 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27113 Define and later undefine as macro. Define as weak alias if
27114 [USE_WIDE_CHAR].
27115
ea91c315
CD
271162017-10-15 Carlos O'Donell <carlos@redhat.com>
27117
27118 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27119 record_verbose messages.
27120
8e57c943
L
271212017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27122
27123 [BZ #22052]
27124 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27125 to silence -O3 -Wall warning with GCC 7.
27126
a4777c46
L
271272017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27128
27129 * Makeconfig (+link-static-before-libc): Use the first of
27130 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27131 * gmon/Makefile (tests): Add tst-gmon-static.
27132 (tests-static): Likewise.
27133 (CFLAGS-tst-gmon-static.c): New.
27134 (CRT-tst-gmon-static): Likewise.
27135 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27136 (tst-gmon-static-ENV): Likewise.
27137 (tests-special): Likewise.
27138 ($(objpfx)tst-gmon-static.out): Likewise.
27139 (clean-tst-gmon-static-data): Likewise.
27140 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27141 * gmon/tst-gmon-static-gprof.sh: New file.
27142 * gmon/tst-gmon-static.c: Likewise.
27143
bc3821bb
CD
271442017-10-13 Carlos O'Donell <carlos@redhat.com>
27145
27146 [BZ #22295]
27147 * locale/programs/linereader.c (get_string): Don't warn on
27148 non-symbolic character.
27149
a3e23a2c
CD
27150 [BZ #22294]
27151 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27152 int_curr_symbol.
27153
f16491eb
CD
27154 [BZ #22292]
27155 * locale/programs/record-status.h: New file
27156 * locale/programs/locale.c: Add comment.
27157 * locale/programs/charmap-dir.c: Don't include error.h.
27158 (charmap_opendir): Use record_error.
27159 * locale/programs/charmap.c: Don't include error.h.
27160 (charmap_read): Use record_error, and record_warning.
27161 (parse_charmap): Likewise.
27162 * locale/programs/ld-address.c: Don't include error.h.
27163 (address_finish): Use record_error, and record_warning.
27164 * locale/programs/ld-collate.c: Don't include error.h.
27165 (collate_finish): Use record_error, and record_error_at_line.
27166 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27167 (ctype_class_new): Likewise.
27168 (ctype_map_new): Likewise.
27169 (set_one_default): Likewise.
27170 (set_class_defaults): Likewise.
27171 (translit_flatten): Likewise.
27172 (allocate_arrays): Use record_error, and record_verbose.
27173 * locale/programs/ld-identification.c: Don't include error.h.
27174 (indentation_finish): Use record_error and record_warning.
27175 * locale/programs/ld-measurement.c: Don't include error.h.
27176 (measurement_finish): Use record_error.
27177 * locale/programs/ld-messages.c
27178 (message_finish): Likewise.
27179 * locale/programs/ld-monetary.c
27180 (monetary_finish): Likewise.
27181 * locale/programs/ld-name.c (name_finish): Use record_error
27182 and record_warning.
27183 * locale/programs/ld-numeric.c
27184 (numeric_finish): Use record_error.
27185 * locale/programs/ld-paper.c: Don't include error.h.
27186 (paper_finish): Use record_error.
27187 * locale/programs/ld-telephone.c: Don't include error.h.
27188 (telephone_finish): Use record_error.
27189 * locale/programs/ld-time.c (time_finish): Likewise.
27190 * locale/programs/linereader.h (lr_error): Make inline func.
27191 * locale/programs/localedef.c: Define recorded_warning_count,
27192 and recorded_error_count.
27193 (main): Use record_error. Use recorded_error_count and
27194 recorded_warning_count to issue correct error returns.
27195 (add_to_readlist): Use record_error.
27196 (find_locale): Likewise.
27197 (load_locale): Likewise.
27198 * locale/programs/localedef.h: Remove be_quiet
27199 and WITH_CUR_LOCALE.
27200 * locale/programs/locarchive.c (compare_from_file): Use
27201 record_error.
27202 * locale/programs/locfile.c (write_locale_data): Use
27203 record_error.
27204 * locale/programs/repertoire.c: Dont include error.h.
27205 (repertoire_complain): Use record_error.
27206 * localedata/tst-fmon.sh: Expect failures from localedef.
27207 * localedata/tst-locale.sh: Likewise.
27208 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27209
8dc8be75
CD
27210 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27211 (REPORTS): Likewise.
27212 (check): Likewise.
27213 (i18n): Rename to...
27214 (i18n_ctype): ...this.
27215 (i18n-report): Rename to...
27216 (i18n_ctype-report): ...this.
27217 * localedata/locales/i18n_ctype: Regenerate.
27218 * localedata/locales/i18n: copy i18n_ctype.
27219
f8718a9e
JM
272202017-10-13 Joseph Myers <joseph@codesourcery.com>
27221
18c08b96
JM
27222 * stdlib/strfroml.c: Include <bits/floatn.h>.
27223 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27224 Define before include of <stdlib.h> and undefine afterwards, then
27225 define as weak alias.
27226
f8718a9e
JM
27227 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27228 Undefine and restore default definition. Use
27229 libm_alias_ldouble_other.
27230
e4f530da
PZ
272312017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27232
27233 [BZ #22153]
27234 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27235 in coredumps.
27236
86445888
JC
272372017-10-13 James Clarke <jrtc27@jrtc27.com>
27238
27239 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27240 Assign sym_map to be map for local symbols, as TLS relocations
27241 use sym_map to determine whether the symbol is defined and to
27242 extract the TLS information.
27243 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27244 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27245
179dcdb7
TMQMF
272462017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27247
e8dbd6a3
TMQMF
27248 [BZ #22189]
27249 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27250 (math_force_eval): Add powerpc version.
27251
179dcdb7
TMQMF
27252 [BZ #22142]
27253 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27254 -DBL_MAX.
27255 (do_test): Likewise.
27256 * stdio-common/tst-printf.sh: Likewise.
27257 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27258 ifdef clause in order to set the carry bit right. Replace r0 by
27259 0 without changing the behavior.
27260
7d25d410
JM
272612017-10-13 Joseph Myers <joseph@codesourcery.com>
27262
006e7664
JM
27263 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27264 <libm-alias-ldouble.h>.
27265 (fabsl): Define using libm_alias_ldouble.
27266 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27267 <libm-alias-ldouble.h>.
27268 (fabsl): Define using libm_alias_ldouble.
27269
1def91b3
JM
27270 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27271 Remove conditional code.
27272
7d25d410
JM
27273 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27274 Rename to __clog10_internal_l.
27275 (__clog10_internal_l): Define aliases using
27276 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27277 with __clog10.
27278
077ee129
RS
272792017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27280
27281 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27282 * benchtests/sincosf-inputs: New file.
27283 * benchtests/cosf-inputs: New file.
27284 * benchtests/sinf-inputs: New file.
27285
5ba41de9
SN
272862017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27287
27288 * posix/tst-spawn.c (do_test): Wait for both children.
27289
d165ca64
L
272902017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27291
27292 [BZ #22284]
27293 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27294 tests-pie): Add tst-gmon-pie.
27295 (CFLAGS-tst-gmon-pie.c): New.
27296 (CRT-tst-gmon-pie): Likewise.
27297 (tst-gmon-pie-ENV): Likewise.
27298 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27299 ($(objpfx)tst-gmon-pie.out): Likewise.
27300 (clean-tst-gmon-pie-data): Likewise.
27301 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27302 * gmon/gmon.c [PIC]: Include <link.h>.
27303 [PIC] (callback): New function.
27304 (write_hist): Add an argument for load address. Subtract load
27305 address from PCs.
27306 (write_call_graph): Likewise.
27307 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27308 it to write_hist and write_call_graph.
7bacdcfc 27309 * gmon/tst-gmon-pie.c: New file.
d165ca64 27310
bc9620d0
JM
273112017-10-11 Joseph Myers <joseph@codesourcery.com>
27312
27313 * math/Makefile (test-types-basic): New variable.
27314 (test-types): Likewise.
27315 (libm-test-support): Use $(test-types) instead of $(types).
27316 (libm-tests-base-normal): Likewise.
27317 (libm-tests-base-finite): Likewise.
27318 (libm-tests-base-inline): Likewise.
27319 (generated): Likewise.
27320 ($(objpfx)libm-test-support-$(t).c): Likewise.
27321 (libm-tests-for-type iterator): Likewise.
27322 (libm-test-support iterator): Likewise.
27323 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27324 (ulp_idx): Use ULP_IDX.
27325 * math/test-ldouble.h: Include <float.h>.
27326 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27327 (ULP_IDX): New macro.
27328 (ULP_I_IDX): Likewise.
27329 * math/test-double.h (ULP_IDX): Likewise.
27330 (ULP_I_IDX): Likewise.
27331 * math/test-float.h (ULP_IDX): Likewise.
27332 (ULP_I_IDX): Likewise.
27333 * math/test-float128.h (ULP_IDX): Likewise.
27334 (ULP_I_IDX): Likewise.
27335
09c76a74
AZ
273362017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27337
27338 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27339 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27340 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27341 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27342 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27343 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27344 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27345 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27346 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27347 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27348 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27349 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27350 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27351 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27352 (SINGLE_THREAD_BY_GLOBAL): Define.
27353 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27354 Likewise.
27355 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27356 Likewise.
27357 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27358 Likewise.
27359 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27360 Likewise.
27361 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27362 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27363 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27364 Likewise.
27365
2faa42da
AS
273662017-10-11 Andreas Schwab <schwab@suse.de>
27367
27368 * nis/Makefile (aux): Remove.
27369 * nscd/Makefile (aux): Add nscd_hash.
27370 (nscd-modules): Likewise.
27371 ($(objpfx)nscd): Don't depend on libnsl.
27372 * nscd/nscd_hash.c: New file.
27373 * nscd/nscd_hash.h: Likewise.
27374 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27375 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27376 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27377 instead of <nis/rpcsvc/nis.h>.
27378 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27379
d8425e11
FW
273802017-10-11 Florian Weimer <fweimer@redhat.com>
27381
27382 [BZ #22078]
27383 Avoid large NSS buffers with many addresses, aliases.
27384 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27385 using dynarrays and struct alloc_buffer.
27386 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27387 (tst-nss-files-hosts-multi): Link with -ldl.
27388 * nss/tst-nss-files-hosts-multi.c: New file.
27389
78e806fd
FW
273902017-10-11 Florian Weimer <fweimer@redhat.com>
27391
27392 [BZ #18023]
27393 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27394 scratch_buffer. Eliminate gotos.
27395
541f19ba
JM
273962017-10-11 Joseph Myers <joseph@codesourcery.com>
27397
0ff64d3a
JM
27398 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27399 libm_alias_ldouble_other.
27400 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27401 undefine and redefine.
27402 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27403 (exp10l): Do not define here.
27404 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27405 (weak_alias): Undefine and redefine.
27406 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27407 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27408 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27409 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27410
541f19ba
JM
27411 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27412 [!__fma] (fma): Define using libm_alias_double.
27413 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27414 [!__fmaf] (fmaf): Define using libm_alias_float.
27415 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27416 (fmal): Define using libm_alias_ldouble.
27417
24b6515d
JM
274182017-10-10 Joseph Myers <joseph@codesourcery.com>
27419
27420 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27421 New macro.
27422 (libm_alias_double_other): Likewise.
27423 (libm_alias_double_r): Use libm_alias_double_other_r.
27424 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27425 New macro.
27426 (libm_alias_float_other): Likewise.
27427 (libm_alias_float_r): Use libm_alias_float_other_r.
27428 * sysdeps/generic/libm-alias-float128.h
27429 (libm_alias_float128_other_r): New macro.
27430 (libm_alias_float128_other): Likewise.
27431 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27432 * sysdeps/generic/libm-alias-ldouble.h
27433 (libm_alias_ldouble_other_r): New macro.
27434 (libm_alias_ldouble_other): Likewise.
27435 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27436 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27437 (libm_alias_double_other_r): New macro.
27438 (libm_alias_double_other): Likewise.
27439 (libm_alias_double_r): Use libm_alias_double_other_r.
27440 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27441 (libm_alias_ldouble_other_r): New macro.
27442 (libm_alias_ldouble_other): Likewise.
27443 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27444 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27445 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27446 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27447 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27448 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27449 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27450 * math/w_exp2f.c: Use libm_alias_float_other.
27451 * math/w_expf.c: Likewise.
27452 * math/w_log2f.c: Likewise.
27453 * math/w_logf.c: Likewise.
27454 * math/w_powf.c: Likewise.
27455 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27456 [!__exp2f]: Use libm_alias_float_other.
27457 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27458 [!__expf]: Use libm_alias_float_other.
27459 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27460 [!__log2f]: Use libm_alias_float_other.
27461 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27462 [!__logf]: Use libm_alias_float_other.
27463 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27464 [!__powf]: Use libm_alias_float_other.
27465
8ed70de2
FW
274662017-10-10 Florian Weimer <fweimer@redhat.com>
27467
27468 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27469 function.
27470 (_nss_files_gethostbyname3_r): Call it.
27471
a8dce619
JM
274722017-10-09 Joseph Myers <joseph@codesourcery.com>
27473
27474 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27475 error. Remove default definition of declare_mgen_alias.
27476 [!declare_mgen_alias_r]: Likewise.
27477 * sysdeps/generic/math-type-macros-double.h
27478 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27479 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27480 (declare_mgen_alias_r): Likewise.
27481 * sysdeps/generic/math-type-macros-float128.h
27482 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27483 * sysdeps/generic/math-type-macros-ldouble.h
27484 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27485 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27486 macro.
27487 (declare_mgen_alias_r_s): Likewise.
27488 (declare_mgen_alias_r): Likewise.
27489 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27490 (lgamma_r): Define using libm_alias_double_r.
27491 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27492 (lgammaf_r): Define using libm_alias_float_r.
27493 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27494 (lgammal_r): Define using libm_alias_ldouble_r.
27495 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27496 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27497
bedac136
AZ
274982017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27499
27500 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27501 extern declaration.
27502
c7509db2
JM
275032017-10-09 Joseph Myers <joseph@codesourcery.com>
27504
27505 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27506
d6c064e9
JW
275072017-10-09 Jonathan Wakely <jwakely@redhat.com>
27508
27509 [BZ #21326]
27510 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27511 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27512 * math/Makefile (test-math-cxx11): New test.
27513 * math/test-math-cxx11.cc: New file.
27514
98e07420
CB
275152017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27516
27517 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27518
645ac9aa
CB
27519 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27520 call to allocate the slave pty file descriptor.
27521
fd3b4e7c
JM
275222017-10-06 Joseph Myers <joseph@codesourcery.com>
27523
f85a176f
JM
27524 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27525 [!__fma] (fma): Define using libm_alias_double.
27526 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27527 [!__fma] (fma): Define using libm_alias_double.
27528
fd3b4e7c
JM
27529 * sysdeps/ieee754/float128/float128_private.h: Include
27530 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27531 (libm_alias_ldouble_r): Undefine and redefine.
27532 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27533 <libm-alias-ldouble.h>.
27534 (asinhl): Define using libm_alias_ldouble.
27535 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27536 <libm-alias-ldouble.h>.
27537 (atanl): Define using libm_alias_ldouble.
27538 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27539 <libm-alias-ldouble.h>.
27540 (cbrtl): Define using libm_alias_ldouble.
27541 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27542 <libm-alias-ldouble.h>.
27543 (ceill): Define using libm_alias_ldouble.
27544 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27545 <libm-alias-ldouble.h>.
27546 (copysignl): Define using libm_alias_ldouble.
27547 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27548 <libm-alias-ldouble.h>.
27549 (cosl): Define using libm_alias_ldouble.
27550 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27551 <libm-alias-ldouble.h>.
27552 (erfl): Define using libm_alias_ldouble.
27553 (erfcl): Likewise.
27554 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27555 <libm-alias-ldouble.h>.
27556 (expm1l): Define using libm_alias_ldouble.
27557 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27558 <libm-alias-ldouble.h>.
27559 (fabsl): Define using libm_alias_ldouble.
27560 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27561 <libm-alias-ldouble.h>.
27562 (floorl): Define using libm_alias_ldouble.
27563 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27564 <libm-alias-ldouble.h>.
27565 (fmal): Define using libm_alias_ldouble.
27566 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27567 <libm-alias-ldouble.h>.
27568 (frexpl): Define using libm_alias_ldouble.
27569 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27570 libm_alias_ldouble.
27571 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27572 <libm-alias-ldouble.h>.
27573 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27574 libm_alias_ldouble.
27575 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27576 <libm-alias-ldouble.h>.
27577 (getpayloadl): Define using libm_alias_ldouble.
27578 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27579 <libm-alias-ldouble.h>.
27580 (llrintl): Define using libm_alias_ldouble.
27581 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27582 <libm-alias-ldouble.h>.
27583 (llroundl): Define using libm_alias_ldouble.
27584 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27585 <libm-alias-ldouble.h>.
27586 (logbl): Define using libm_alias_ldouble.
27587 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27588 <libm-alias-ldouble.h>.
27589 (lrintl): Define using libm_alias_ldouble.
27590 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27591 <libm-alias-ldouble.h>.
27592 (lroundl): Define using libm_alias_ldouble.
27593 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27594 <libm-alias-ldouble.h>.
27595 (modfl): Define using libm_alias_ldouble.
27596 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27597 <libm-alias-ldouble.h>.
27598 (nearbyintl): Define using libm_alias_ldouble.
27599 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27600 <libm-alias-ldouble.h>.
27601 (nextafterl): Define using libm_alias_ldouble.
27602 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27603 <libm-alias-ldouble.h>.
27604 (nextupl): Define using libm_alias_ldouble.
27605 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27606 <libm-alias-ldouble.h>.
27607 (remquol): Define using libm_alias_ldouble.
27608 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27609 <libm-alias-ldouble.h>.
27610 (rintl): Define using libm_alias_ldouble.
27611 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27612 <libm-alias-ldouble.h>.
27613 (roundevenl): Define using libm_alias_ldouble.
27614 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27615 <libm-alias-ldouble.h>.
27616 (roundl): Define using libm_alias_ldouble.
27617 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27618 using libm_alias_ldouble.
27619 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27620 <libm-alias-ldouble.h>.
27621 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27622 Define using libm_alias_ldouble.
27623 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27624 <libm-alias-ldouble.h>.
27625 (sincosl): Define using libm_alias_ldouble.
27626 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27627 <libm-alias-ldouble.h>.
27628 (sinl): Define using libm_alias_ldouble.
27629 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27630 <libm-alias-ldouble.h>.
27631 (tanhl): Define using libm_alias_ldouble.
27632 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27633 <libm-alias-ldouble.h>.
27634 (tanl): Define using libm_alias_ldouble.
27635 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27636 <libm-alias-ldouble.h>.
27637 (totalorderl): Define using libm_alias_ldouble.
27638 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27639 <libm-alias-ldouble.h>.
27640 (totalordermagl): Define using libm_alias_ldouble.
27641 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27642 <libm-alias-ldouble.h>.
27643 (truncl): Define using libm_alias_ldouble.
27644 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27645 libm_alias_ldouble.
27646 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27647 libm_alias_ldouble.
27648 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27649 <libm-alias-ldouble.h>.
27650 (weak_alias): Do not undefine and redefine.
27651 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27652 (copysignl): Define with long_double_symbol only if [IS_IN
27653 (libc)].
27654 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27655 <libm-alias-ldouble.h>.
27656 (weak_alias): Do not undefine and redefine.
27657 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27658 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27659 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27660 <libm-alias-ldouble.h>.
27661 (weak_alias): Do not undefine and redefine.
27662 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27663 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27664 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27665 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27666 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27667 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27668 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27669 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27670 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27671 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27672 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27673 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27674 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27675 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27676 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27677 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27678 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27679 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27680 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27681 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27682 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27683 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27684 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27685 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27686 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27687 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27688
1e26d351
CD
276892017-10-06 Carlos O'Donell <carlos@redhat.com>
27690
27691 [BZ #22111]
27692 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27693 (tcache_thread_freeres): Set tcache_shutting_down before
27694 freeing the tcache.
27695 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27696 * malloc/tst-malloc-tcache-leak.c: New file.
27697
d1386762
RS
276982017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27699
27700 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27701 back to powerpc32 file.
27702 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27703 (memrchr): Add __memrchr_power8 to ifunc list.
27704 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27705 extra bytes for unaligned inputs.
27706
6dff1983
JM
277072017-10-06 Joseph Myers <joseph@codesourcery.com>
27708
27709 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27710 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27711 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27712 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27713 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27714
86f9568a
JM
277152017-10-05 Joseph Myers <joseph@codesourcery.com>
27716
0db0b931
JM
27717 * sysdeps/arm/libm-test-ulps: Update.
27718
86f9568a
JM
27719 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27720 <libm-alias-ldouble.h>.
27721 (asinhl): Define using libm_alias_ldouble.
27722 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27723 <libm-alias-ldouble.h>.
27724 (cbrtl): Define using libm_alias_ldouble.
27725 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27726 <libm-alias-ldouble.h>.
27727 (copysignl): Define using libm_alias_ldouble.
27728 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27729 <libm-alias-ldouble.h>.
27730 (cosl): Define using libm_alias_ldouble.
27731 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27732 <libm-alias-ldouble.h>.
27733 (erfl): Define using libm_alias_ldouble.
27734 (erfcl): Likewise.
27735 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27736 <libm-alias-ldouble.h>.
27737 (fmal): Define using libm_alias_ldouble.
27738 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27739 <libm-alias-ldouble.h>.
27740 (frexpl): Define using libm_alias_ldouble.
27741 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27742 libm_alias_ldouble.
27743 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27744 <libm-alias-ldouble.h>.
27745 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27746 libm_alias_ldouble.
27747 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27748 <libm-alias-ldouble.h>.
27749 (getpayloadl): Define using libm_alias_ldouble.
27750 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27751 <libm-alias-ldouble.h>.
27752 (llrintl): Define using libm_alias_ldouble.
27753 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27754 <libm-alias-ldouble.h>.
27755 (llroundl): Define using libm_alias_ldouble.
27756 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27757 <libm-alias-ldouble.h>.
27758 (lrintl): Define using libm_alias_ldouble.
27759 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27760 <libm-alias-ldouble.h>.
27761 (lroundl): Define using libm_alias_ldouble.
27762 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27763 <libm-alias-ldouble.h>.
27764 (modfl): Define using libm_alias_ldouble.
27765 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27766 <libm-alias-ldouble.h>.
27767 (nextupl): Define using libm_alias_ldouble.
27768 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27769 <libm-alias-ldouble.h>.
27770 (remquol): Define using libm_alias_ldouble.
27771 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27772 <libm-alias-ldouble.h>.
27773 (roundevenl): Define using libm_alias_ldouble.
27774 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27775 <libm-alias-ldouble.h>.
27776 (roundl): Define using libm_alias_ldouble.
27777 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27778 using libm_alias_ldouble.
27779 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27780 <libm-alias-ldouble.h>.
27781 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27782 <libm-alias-ldouble.h>.
27783 (setpayloadsigl): Define using libm_alias_ldouble.
27784 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27785 <libm-alias-ldouble.h>.
27786 (sincosl): Define using libm_alias_ldouble.
27787 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27788 <libm-alias-ldouble.h>.
27789 (sinl): Define using libm_alias_ldouble.
27790 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27791 <libm-alias-ldouble.h>.
27792 (tanhl): Define using libm_alias_ldouble.
27793 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27794 <libm-alias-ldouble.h>.
27795 (tanl): Define using libm_alias_ldouble.
27796 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27797 <libm-alias-ldouble.h>.
27798 (totalorderl): Define using libm_alias_ldouble.
27799 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27800 <libm-alias-ldouble.h>.
27801 (totalordermagl): Define using libm_alias_ldouble.
27802 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27803 libm_alias_ldouble.
27804 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27805 libm_alias_ldouble.
27806
9ec87fd2
SP
278072017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27808
dd5bc7f1
SP
27809 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27810 memmove_falkor.
27811 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27812 (__libc_ifunc_impl_list): Likewise.
27813 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27814 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27815
5bfb0404
SP
27816 * benchtests/bench-memmove-walk.c: New file.
27817 * benchtests/Makefile (string-benchset): Add it.
27818
36bb8edf
SP
27819 * benchtests/bench-memset-walk.c: New file.
27820 * benchtests/Makefile (string-benchset): Add it.
27821
9ec87fd2
SP
27822 * benchtests/bench-memcpy-walk.c: New file.
27823 * benchtests/Makefile (string-benchset): Add it.
27824
1e9522c6
FW
278252017-10-05 Florian Weimer <fweimer@redhat.com>
27826
27827 nscd: Eliminate compilation time dependency in the build output.
27828 * nscd/nscd_stat.c (STATDATA_VERSION)
27829 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27830 (STATDATA_VERSION_FULL): New macro definitions.
27831 (compilation): Remove.
27832 (struct statdata): Adjust version member.
27833 (send_stats): Set version from STATDATA_VERSION_FULL.
27834 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27835
644d3857
JM
278362017-10-05 Joseph Myers <joseph@codesourcery.com>
27837
27838 * configure.ac (--enable-add-ons): Remove option.
27839 (machine): Do not mention add-ons in comment.
27840 (LIBC_PRECONFIGURE): Likewise.
27841 (add_ons): Remove variable and sanity checks and logic to locate
27842 add-ons.
27843 (add_ons_automatic): Remove variable.
27844 (configured_add_ons): Likewise.
27845 (add_ons_sfx): Likewise.
27846 (add_ons_pfx): Likewise.
27847 (add_on_subdirs): Likewise.
27848 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27849 consideration of add-ons in Implies handling.
27850 (sysdeps_add_ons): Likewise.
27851 * configure: Regenerated.
27852 * libidn/configure.ac: Remove.
27853 * libidn/configure: Likewise.
27854 * sysdeps/unix/inet/configure.ac: New file.
27855 * sysdeps/unix/inet/configure: New generated file.
27856 * sysdeps/unix/inet/Subdirs: Add libidn.
27857 * Makeconfig (sysdeps-srcdirs): Remove variable.
27858 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27859 ($(common-objpfx)config.status): Do not depend on add-on files.
27860 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27861 comment.
27862 (all-subdirs): Do not include $(add-on-subdirs).
27863 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27864 * config.make.in (add-ons): Remove variable.
27865 (add-on-subdirs): Likewise.
27866 (sysdeps-add-ons): Likewise.
27867 * manual/Makefile (add-chapters): Remove.
27868 ($(objpfx)texis): Do not depend on $(add-chapters).
27869 (nonexamples): Do not handle $(add-chapters).
27870 (examples): Do not handle $(add-ons).
27871 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27872 libc-texinfo.sh.
27873 * manual/install.texi (Installation): Do not mention add-ons.
27874 (--enable-add-ons): Do not document configure option.
27875 * INSTALL: Regenerated.
27876 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27877 * manual/maint.texi (Hierarchy Conventions): Do not mention
27878 add-ons.
27879 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27880 --enable-add-ons.
27881 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27882 add-ons.
27883 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27884 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27885
19f82f35
AS
278862017-10-05 Andreas Schwab <schwab@suse.de>
27887
27888 [BZ #15142]
27889 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27890 (_IO_flush_all_lockp): Always lock list_all_lock.
27891 (_IO_flush_all_linebuffered): Likewise.
27892 (_IO_unbuffer_all): Likewise.
27893
91e7cf98
FW
278942017-10-05 Florian Weimer <fweimer@redhat.com>
27895
27896 [BZ #15436]
27897 Do not flush stdio streams on abort.
27898 * stdlib/abort.c (fflush): Remove macro definition.
27899 (abort): Remove stages related to stdio flushing.
27900
0c251257
FW
279012017-10-05 Florian Weimer <fweimer@redhat.com>
27902
27903 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27904
7ea59e3e
SL
279052017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27906
27907 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27908
84d0e6f0
FW
279092017-10-05 Florian Weimer <fweimer@redhat.com>
27910
27911 * support/support_format_hostent.c (support_format_hostent): Add
27912 more error information for NETDB_INTERNAL.
27913
ee417882
L
279142017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27915
27916 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27917 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27918 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27919 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27920 AC_DEFINE if multi-arch is enabled.
27921 * sysdeps/i386/configure: Regenerated.
27922
a67029ff
L
279232017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27924
27925 * Makeconfig (+link-static-before-libc): Use
27926 $(DEFAULT-LDFLAGS-$(@F)).
27927 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27928 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27929 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27930
5dba84b3
L
279312017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27932
27933 * elf/Makefile (tests): Add tst-main1.
27934 (modules-names): Add tst-main1mod.
27935 ($(objpfx)tst-main1): New.
27936 (CRT-tst-main1): Likewise.
27937 (LDFLAGS-tst-main1): Likewise.
27938 (LDLIBS-tst-main1): Likewise.
27939 (tst-main1mod.so-no-z-defs): Likewise.
27940 * elf/tst-main1.c: New file.
27941 * elf/tst-main1mod.c: Likewise.
27942
758f1bfa
L
279432017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27944
27945 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27946
7e16a5d1
JM
279472017-10-04 Joseph Myers <joseph@codesourcery.com>
27948
27949 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27950 (fma): Define using libm_alias_double.
27951 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27952 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27953 <math_ldbl_opt.h>.
27954 (fmal): Do not define as compat symbol here.
27955 * sysdeps/alpha/fpu/s_fma.c: New file.
27956
db4f87ba
SN
279572017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27958
27959 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27960
72d13ed1
JM
279612017-10-04 Joseph Myers <joseph@codesourcery.com>
27962
32d372d5
JM
27963 [BZ #22229]
27964 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27965 <math_ldbl_opt.h>
27966 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27967 and libc.
27968 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27969 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27970 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27971 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27973 Include <math_ldbl_opt.h>
27974 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27975 and libc.
27976 (compat_symbol): Undefine and redefine.
27977 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27978 <math_ldbl_opt.h>
27979 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27980 (compat_symbol): Undefine and redefine.
27981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27982 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27983 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27984 GLIBC_2_1 for libm.
27985 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27986 GLIBC_2.0 copysignl symbol.
27987 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27988 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27989
72d13ed1
JM
27990 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27991
11c4f501
FW
279922017-10-04 Florian Weimer <fweimer@redhat.com>
27993
27994 * scripts/check-local-headers.sh: Ignore nspr4 header file
27995 directory in addition to nspr.
27996
57b4af19
GT
279972017-10-04 Guido Trentalancia <guido@trentalancia.net>
27998
27999 [BZ #17956]
28000 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28001 * configure: Regenerate.
28002 * crypt/Makefile (nss-cpp-flags): New variable.
28003 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28004 (CPPFLAGS-md5-crypt.c): Use it.
28005 * scripts/check-local-headers.sh: Ignore nspr header file
28006 directory.
28007
64d1e08e
AS
280082017-10-04 Andreas Schwab <schwab@suse.de>
28009
28010 * nis/Makefile (services): Remove compat.
28011 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28012 ($(objpfx)libnss_compat.so): Remove rule.
28013 * nis/Versions (libnss_compat): Remove.
28014 * nss/Makefile (services): Add compat.
28015 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28016 * nss/Versions (libnss_compat): Define.
28017 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28018 Don't include <rpc/types.h>. Replace bool_t by bool.
28019 * nss/nss_compat/compat-initgroups.c: Likewise.
28020 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28021 instead of <rpcsrv/ypclnt.h>.
28022 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28023 yp_get_default_domain.
28024 * nss/nss_compat/compat-pwd.c: Likewise.
28025 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28026 yp_get_default_domain.
28027 * nss/nss_compat/nisdomain.c: New file.
28028 * nss/nss_compat/nisdomain.h: Likewise.
28029
86c27ade
SN
280302017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28031
28032 [BZ #22244]
28033 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28034 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28035
8f8f8ef7
SN
280362017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28037
28038 [BZ #22243]
28039 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28040 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28041
95577475
L
280422017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28043
28044 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28045 "movl main@GOTOFF(%ebx), %eax".
28046
02d2d892
L
280472017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28048
28049 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28050 allow undefined _DYNAMIC in PIE libc.a.
28051 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28052 Likewse.
28053
0c609d19
L
280542017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28055
28056 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28057 check _DYNAMIC.
28058
c34a19ed
L
280592017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28060
28061 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28062 check _DYNAMIC.
28063
cdd4155d
L
280642017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28065
28066 * math/test-math-iscanonical.cc (error): Replace bool with int.
28067
4699cb8b
JM
280682017-10-03 Joseph Myers <joseph@codesourcery.com>
28069
d8f619b3
JM
28070 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28071 (modf): Define using libm_alias_double, only if [!__modf].
28072 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28073 <libm-alias-double.h>.
28074 (modf): Define using libm_alias_double, only if [!__modf].
28075 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28076 compat symbol here.
28077 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28078 (weak_alias): Do not undefine and redefine.
28079 (strong_alias): Likewise.
28080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28081 (weak_alias): Likewise.
28082 (strong_alias): Likewise.
28083
4699cb8b
JM
28084 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28085 (logb): Define using libm_alias_double, only if [!__logb].
28086 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28087 <libm-alias-double.h>.
28088 (logb): Define using libm_alias_double, only if [!__logb].
28089 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28090 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28091 (weak_alias): Do not undefine and redefine.
28092 (strong_alias): Likewise.
28093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28094 (weak_alias): Likewise.
28095 (strong_alias): Likewise.
28096
bcc4e4bb
L
280972017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28098
28099 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28100 Check SHARED instead PIC.
28101
39793865
JM
281022017-10-03 Joseph Myers <joseph@codesourcery.com>
28103
7f1cbdf8
JM
28104 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28105 [!__fmaf] (fmaf): Define using libm_alias_float.
28106
39793865
JM
28107 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28108 (frexp): Define using libm_alias_double.
28109 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28110 <libm-alias-double.h>.
28111 (frexp): Define using libm_alias_double.
28112 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28113 compat symbol here.
28114
aa0235df
GG
281152017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28116
28117 [BZ #22235]
28118 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28119 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28120 (CFLAGS-test-math-iscanonical.cc): New variable.
28121 * math/test-math-iscanonical.cc: New file.
28122 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28123 Provide a C++ implementation based on function overloading,
28124 rather than using __MATH_TG, which uses C-only builtins.
28125 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28126 Likewise.
28127 * sysdeps/powerpc/powerpc64le/Makefile
28128 (CFLAGS-test-math-iscanonical.cc): New variable.
28129
a1132b5e
JM
281302017-10-03 Joseph Myers <joseph@codesourcery.com>
28131
28132 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28133 (ceil): Define using libm_alias_double.
28134 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28135 (floor): Define using libm_alias_double.
28136 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28137 <libm-alias-double.h>.
28138 (llround): Define using libm_alias_double.
28139 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28140 <libm-alias-double.h>.
28141 (lround): Define using libm_alias_double.
28142 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28143 <libm-alias-double.h>.
28144 (nearbyint): Define using libm_alias_double.
28145 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28146 <libm-alias-double.h>.
28147 (remquo): Define using libm_alias_double.
28148 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28149 (rint): Define using libm_alias_double.
28150 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28151 (round): Define using libm_alias_double.
28152 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28153 (trunc): Define using libm_alias_double.
28154 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28155 <libm-alias-double.h>.
28156 (ceil): Define using libm_alias_double.
28157 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28158 <libm-alias-double.h>.
28159 (floor): Define using libm_alias_double.
28160 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28161 <libm-alias-double.h>.
28162 (llround): Define using libm_alias_double.
28163 [_LP64] (lround): Likewise.
28164 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28165 <libm-alias-double.h>.
28166 [!_LP64] (lround): Define using libm_alias_double.
28167 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28168 <libm-alias-double.h>.
28169 (nearbyint): Define using libm_alias_double.
28170 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28171 <libm-alias-double.h>.
28172 (remquo): Define using libm_alias_double.
28173 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28174 <libm-alias-double.h>.
28175 (rint): Define using libm_alias_double.
28176 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28177 <libm-alias-double.h>.
28178 (round): Define using libm_alias_double.
28179 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28180 <libm-alias-double.h>.
28181 (trunc): Define using libm_alias_double.
28182 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28183 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28184 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28185 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28186 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28187 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28188 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28189 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28190 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28191
f275f64e
SN
281922017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28193
28194 * math/w_remainder.c: New file.
28195 * math/w_remainderf.c: New file.
28196 * math/w_remainderl.c: New file.
28197
b8818ab5
L
281982017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28199
28200 * elf/rtld.c (BOOTSTRAP_MAP): New.
28201 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28202 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28203 Likewise.
28204 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28205 Likewise.
28206 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28207 Likewise.
28208
3d1870fa
ST
282092017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28210
28211 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28212 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28213 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28214 rtld_hidden_data_ver): Define to empty.
28215 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28216 __assert_perror_fail): Likewise.
28217 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28218 (__rewinddir): Likewise.
28219 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28220 (__profile_frequency): Likewise.
28221 * include/setjmp.h (__sigsetjmp): Likewise.
28222 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28223 __libc_sigaction): Likewise.
28224 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28225 not set hidden attribute.
28226 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28227 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28228 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28229 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28230 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28231 __fxstatat64): Likewise.
28232 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28233 (__uname): Likewise.
28234 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28235 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28236 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28237 (NO_RTLD_HIDDEN): Set.
28238 * sysdeps/mach/hurd/configure: Refresh.
28239 * config.h.in: Refresh.
28240
527cd19c
JM
282412017-10-02 Joseph Myers <joseph@codesourcery.com>
28242
38722448
JM
28243 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28244 (atan): Define using libm_alias_double.
28245 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28246 (tan): Define using libm_alias_double.
28247 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28248 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28249
527cd19c
JM
28250 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28251 define as weak alias of __atan. Do not define any aliases if
28252 [__atan].
28253 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28254 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28255 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28256 as weak alias of __tan. Do not define any aliases if [__tan].
28257 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28258 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28259 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28260 __atan.
28261 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28262 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28263 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28264 and define as weak alias of __atan.
28265 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28266 __atan.
28267 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28268 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28269 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28270 define as weak alias of __tan.
28271
bdc5c592
SN
282722017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28273
28274 * math/w_lgamma.c: New file.
28275 * math/w_lgammaf.c: New file.
28276 * math/w_lgammal.c: New file.
28277
bd4430c2
SN
282782017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28279
28280 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28281 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28282 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28283 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28284 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28285 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28286 * sysdeps/i386/fpu/w_log2f.c: New file.
28287 * sysdeps/i386/fpu/w_logf.c: New file.
28288 * sysdeps/i386/fpu/w_powf.c: New file.
28289 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28290 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28291 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28292
f7a0b063
SN
282932017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28294 H.J. Lu <hongjiu.lu@intel.com>
28295
28296 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28297 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28298 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28299 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28300 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28301 the new expf code.
28302 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28303 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28304 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28305 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28306 * sysdeps/i386/fpu/w_exp2f.c: New file.
28307 * sysdeps/i386/fpu/w_expf.c: New file.
28308 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28309 * sysdeps/x86_64/fpu/w_expf.c: New file.
28310
72d3d281
SN
283112017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28312
28313 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28314 (log2f): Likewise.
28315 (powf): Likewise.
28316 * math/w_log2f.c: New file.
28317 * math/w_logf.c: New file.
28318 * math/w_powf.c: New file.
28319 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28320 * math/w_logf_compat.c (__logf_compat): Likewise.
28321 * math/w_powf_compat.c (__powf_compat): Likewise.
28322 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28323 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28324 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28325 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28326 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28327 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28328 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28329 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28330 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28331 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28332 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28333 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28334 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28335 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28336 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28338 Likewise.
28339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28340 Likewise.
28341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28342 Likewise.
28343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28344 Likewise.
28345 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28346 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28347 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28348 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28349 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28350 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28351 Likewise.
28352 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28353 Likewise.
28354 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28355 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28356 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28357
59ba2d2b
RS
283582017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28359
28360 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28361 (sysdep_routines): Add memrchr_power8.
28362 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28363 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28364 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28365 New file.
28366 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28367 (memrchr): Add __memrchr_power8 to ifunc list.
28368 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28369
397286ea
L
283702017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28371
28372 [BZ #18822]
28373 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28374 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28375 libc_hidden_def.
28376 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28377 (__posix_fallocate64_l64): Likewise.
28378
d0a4512b
L
283792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28380
28381 [BZ #18822]
28382 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28383 (__sched_setaffinity_new): Add libc_hidden_proto and
28384 libc_hidden_def.
28385
c0769f70
L
283862017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28387
28388 [BZ #18822]
28389 * include/glob.h (__glob64): Add libc_hidden_proto.
28390 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28391 libc_hidden_def.
28392
0e7d5b6e
L
283932017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28394
28395 [BZ #18822]
28396 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28397 attribute_hidden.
28398
bde06c87
L
283992017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28400
28401 [BZ #18822]
28402 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28403
fa426590
L
284042017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28405
28406 [BZ #18822]
28407 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28408 libc_hidden_def.
28409
2f8a05d8
L
284102017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28411
28412 [BZ #18822]
28413 * csu/version.c (__libc_print_version): Add attribute_hidden.
28414
7bfd08ac
L
284152017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28416
28417 [BZ #18822]
28418 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28419
0e1fd06c
L
284202017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28421
28422 [BZ #18822]
28423 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28424
36e7ae1e
L
284252017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28426
28427 [BZ #18822]
28428 * nscd/nscd_helper.c (__nis_hash): New prototype.
28429
87078544
L
284302017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28431
28432 [BZ #18822]
28433 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28434 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28435 libc_hidden_def.
28436 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28437 * termios/tcgetattr.c (__tcgetattr): Likewise.
28438
dd3121df
L
284392017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28440
28441 [BZ #18822]
28442 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28443 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28444 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28445 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28446 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28447
047d1a81
L
284482017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28449
28450 [BZ #18822]
28451 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28452
fd331b11
L
284532017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28454
28455 [BZ #18822]
28456 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28457 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28458
57f859bd
L
284592017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28460
28461 [BZ #18822]
28462 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28463
d1903329
L
284642017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28465
28466 [BZ #18822]
28467 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28468 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28469
b4744101
L
284702017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28471
28472 [BZ #18822]
28473 * include/ifreq.h: New file.
28474 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28475 (__ifreq): Likewise.
28476 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28477 (__ifreq): Likewise.
28478
43b7dfd1
L
284792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28480
28481 [BZ #18822]
28482 * include/idna.h: New file.
28483 * inet/getnameinfo.c: Include <idna.h> instead of
28484 <libidn/idna.h>.
28485 (__idna_to_unicode_lzlz): Removed.
28486 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28487 <libidn/idna.h>.
28488 (__idna_to_ascii_lz): Removed.
28489 (__idna_to_unicode_lzlz): Likewise.
28490
2c0cd8f8
L
284912017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28492
28493 [BZ #18822]
28494 * include/plural-exp.h: New file.
28495 * intl/plural-exp.c: Include <plural-exp.h> instead of
28496 "plural-exp.h".
28497
8369d216
L
284982017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28499
28500 [BZ #18822]
28501 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28502 "getsourcefilter.h".
28503 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28504 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28505 "getsourcefilter.h".
28506 (__get_sol): Removed.
28507
a0aef783
L
285082017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28509
28510 [BZ #18822]
28511 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28512 to ...
28513 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28514
3ee8209b
L
285152017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28516
28517 [BZ #18822]
28518 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28519 attribute_hidden.
28520
6036fc38
L
285212017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28522
28523 [BZ #18822]
28524 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28525
fe84fed0
L
285262017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28527
28528 [BZ #18822]
28529 * include/search.h (__tdestroy): Add libc_hidden_proto.
28530 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28531
048dd681
L
285322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28533
28534 [BZ #18822]
28535 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28536
6e342af6
L
285372017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28538
28539 [BZ #18822]
28540 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28541 attribute_hidden.
28542
6a088436
L
285432017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28544
28545 [BZ #18822]
28546 * include/signal.h (__kill): Add libc_hidden_proto.
28547 (__sigblock): Likewise.
28548 (__sigprocmask): Likewise.
28549 (__sigaltstack): Likewise.
28550 * signal/kill.c (__kill): Add libc_hidden_def.
28551 * signal/sigblock.c (__sigblock): Likewise.
28552 * signal/sigprocmask.c (__sigprocmask): Likewise.
28553 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28554 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28555 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28556 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28557 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28558 Likewise.
28559 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28560 Likewise.
28561 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28562 (__sigprocmask): Likewise.
28563 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28564 Likewise.
28565 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28566 (__sigprocmask): Likewise.
28567 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28568 Likewise.
28569
78cf1d74
L
285702017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28571
28572 [BZ #18822]
28573 * include/string.h (__strsep): Add libc_hidden_proto.
28574 * string/strsep.c (__strsep): Add libc_hidden_def.
28575
85b35894
L
285762017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28577
28578 [BZ #18822]
28579 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28580 attribute_hidden.
28581 (__spawni): Likewise.
28582
225f7eec
L
285832017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28584
28585 [BZ #18822]
28586 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28587 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28588 libc_hidden_def.
28589
372fe247
L
285902017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28591
28592 [BZ #18822]
28593 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28594
9e5ee8b8
L
285952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28596
28597 [BZ #18822]
28598 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28599 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28600 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28601 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28602 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28603 Likewise.
28604 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28605 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28606
2ff16592
L
286072017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28608
28609 [BZ #18822]
28610 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28611 (__dcigettext): Likewise.
28612
b5648377
L
286132017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28614
28615 [BZ #18822]
28616 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28617 libc_hidden_proto.
28618 (__get_nprocs): Likewise.
28619 (__get_phys_pages): Likewise.
28620 (__get_avphys_pages): Likewise.
28621 (__get_child_max): Add attribute_hidden.
28622 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28623 (__get_nprocs): Likewise.
28624 (__get_phys_pages): Likewise.
28625 (__get_avphys_pages): Likewise.
28626 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28627 libc_hidden_def.
28628 (__get_nprocs): Likewise.
28629 (__get_phys_pages): Likewise.
28630 (__get_avphys_pages): Likewise.
28631 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28632 libc_hidden_def.
28633 (__get_nprocs_conf): Likewise.
28634 (__get_phys_pages): Likewise.
28635 (__get_avphys_pages): Likewise.
28636
0389a6aa
L
286372017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28638
28639 [BZ #18822]
28640 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28641 attribute_hidden.
28642 (__netlink_close): Likewise.
28643 (__netlink_free_handle): Likewise.
28644 (__netlink_request): Likewise.
28645
d48354d8
L
286462017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28647
28648 [BZ #18822]
28649 * include/rpc/rpc.h (__rpc_thread_variables): Add
28650 attribute_hidden.
28651 (__rpc_thread_svc_cleanup): Likewise.
28652 (__rpc_thread_clnt_cleanup): Likewise.
28653 (__rpc_thread_key_cleanup): Likewise.
28654
d6daff12
L
286552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28656
28657 [BZ #18822]
28658 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28659 (__writev): Likewise.
28660 * misc/readv.c (__readv): Add libc_hidden_def.
28661 * misc/writev.c (__writev): Likewise.
28662 * sysdeps/posix/readv.c (__readv): Likewise.
28663 * sysdeps/posix/writev.c (__writev): Likewise.
28664 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28665 (__readv): Likewise.
28666 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28667 (__writev): Likewise.
28668
b68f8620
L
286692017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28670
28671 [BZ #18822]
28672 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28673 (__regcomp): Add libc_hidden_proto.
28674 (__regexec): Likewise.
28675 (__regfree): Likewise.
28676 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28677 (__regfree): Likewise.
28678 * posix/regexec.c (__regexec): Likewise.
28679
59c04e67
L
286802017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28681
28682 [BZ #18822]
28683 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28684 (__getutent): Likewise.
28685 (__getutid): Likewise.
28686 (__getutline): Likewise.
28687 (__pututline): Likewise.
28688 (__getutent_r): Likewise.
28689 (__getutid_r): Likewise.
28690 (__getutline_r): Likewise.
28691 (__utmpname): Add attribute_hidden.
28692 (__setutent): Likewise.
28693 (__endutent): Likewise.
28694 * login/getutent.c (__getutent): Add libc_hidden_def.
28695 * login/getutent_r.c (__getutent_r): Likewise.
28696 (__pututline): Likewise.
28697 * login/getutid.c (__getutid): Likewise.
28698 * login/getutid_r.c (__getutid_r): Likewise.
28699 * login/getutline.c (__getutline): Likewise.
28700 * login/getutline_r.c (__getutline_r): Likewise.
28701 * login/updwtmp.c (__updwtmp): Likewise.
28702
4587a421
L
287032017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28704
28705 [BZ #18822]
28706 * include/dirent.h (__opendir): Always add attribute_hidden.
28707 (__fdopendir): Likewise.
28708 (__closedir): Likewise.
28709 (__readdir): Likewise.
28710 (__readdir64): Add libc_hidden_proto.
28711 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28712 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28713 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28714 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28715 New alias.
28716
9635ce69
L
287172017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28718
28719 [BZ #18822]
28720 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28721 * include/netdb.h (__gethostbyaddr_r): Likewise.
28722 (__gethostbyname_r): Likewise.
28723 (__gethostbyname2_r): Likewise.
28724 (__getnetbyaddr_r): Likewise.
28725 (__getnetbyname_r): Likewise.
28726 (__getservbyname_r): Likewise.
28727 (__getservbyport_r): Likewise.
28728 (__getprotobyname_r): Likewise.
28729 (__getprotobynumber_r): Likewise.
28730 (__getnetgrent_r): Likewise.
28731 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28732 (__getrpcbynumber_r): Likewise.
28733 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28734
2e0a6909
L
287352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28736
28737 [BZ #18822]
28738 * include/stdio.h (__fcloseall): Add attribute_hidden.
28739 (__getline): Likewise.
28740 (__path_search): Likewise.
28741 (__gen_tempname): Likewise.
28742 (__libc_message): Likewise.
28743 (__flockfile): Likewise.
28744 (__funlockfile): Likewise.
28745 (__fxprintf): Likewise.
28746 (__fxprintf_nocancel): Likewise.
28747
94fd682c
L
287482017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28749
28750 [BZ #18822]
28751 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28752 (__sgetsgent_r): Likewise.
28753
e1b33bba
L
287542017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28755
28756 [BZ #18822]
28757 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28758 (__statfs64): Likewise.
28759 (__fstatfs64): Likewise.
28760 * include/sys/statvfs.h (__statvfs64): Likewise.
28761 (__fstatvfs64): Likewise.
28762 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28763 (__statfs_filesize_max): Likewise.
28764 (__statfs_symlinks): Likewise.
28765 (__statfs_chown_restricted): Likewise.
28766
b0f56784
L
287672017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28768
28769 [BZ #18822]
28770 * include/time.h (__tzstring): Add attribute_hidden.
28771 (__tzfile_read): Likewise.
28772 (__tzfile_compute): Likewise.
28773 (__tzfile_default): Likewise.
28774 (__tzset_parse_tz): Likewise.
28775 (__offtime): Likewise.
28776 (__asctime_r): Likewise.
28777 (__tzset): Likewise.
28778 (__tz_convert): Likewise.
28779 (__getdate_r): Likewise.
28780 (__getclktck): Likewise.
28781
a4338d99
L
287822017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28783
28784 [BZ #18822]
28785 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28786 (__nscd_unmap): Likewise.
28787 (__nscd_cache_search): Likewise.
28788 (__nscd_get_nl_timestamp): Likewise.
28789 (__nscd_getpwnam_r): Likewise.
28790 (__nscd_getpwuid_r): Likewise.
28791 (__nscd_getgrnam_r): Likewise.
28792 (__nscd_getgrgid_r): Likewise.
28793 (__nscd_gethostbyname_r): Likewise.
28794 (__nscd_gethostbyname2_r): Likewise.
28795 (__nscd_gethostbyaddr_r): Likewise.
28796 (__nscd_getai): Likewise.
28797 (__nscd_getgrouplist): Likewise.
28798 (__nscd_getservbyname_r): Likewise.
28799 (__nscd_getservbyport_r): Likewise.
28800 (__nscd_innetgr): Likewise.
28801 (__nscd_setnetgrent): Likewise.
28802
a2ca1652
L
288032017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28804
28805 [BZ #18822]
28806 * include/gmp.h: Declare internal functions only if _ISOMAC is
28807 undefined.
28808 (__mpn_extract_double): Add attribute_hidden.
28809 (__mpn_extract_long_double): Likewise.
28810 (__mpn_extract_float128): Likewise.
28811 (__mpn_construct_float): Likewise.
28812 (__mpn_construct_double): Likewise.
28813 (__mpn_construct_long_double): Likewise.
28814 (__mpn_construct_float128): Likewise.
28815 (mpn_add_1): Likewise.
28816 (mpn_addmul_1): Likewise.
28817 (mpn_add_n): Likewise.
28818 (mpn_cmp): Likewise.
28819 (mpn_divrem): Likewise.
28820 (mpn_lshift): Likewise.
28821 (mpn_mul): Likewise.
28822 (mpn_mul_1): Likewise.
28823 (mpn_rshift): Likewise.
28824 (mpn_sub_1): Likewise.
28825 (mpn_submul_1): Likewise.
28826 (mpn_sub_n): Likewise.
28827
44af8a32
L
288282017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28829
28830 [BZ #18822]
28831 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28832 (__wcscat): Likewise.
28833 (__btowc): Likewise.
28834 (__wcrtomb): Likewise.
28835 (__mbsrtowcs): Likewise.
28836 (__wcsrtombs): Likewise.
28837 (__mbsnrtowcs): Likewise.
28838 (__wcsnrtombs): Likewise.
28839 (__wcsncpy): Likewise.
28840 (__wcpncpy): Likewise.
28841 (__wmemcpy): Likewise.
28842 (__wmempcpy): Likewise.
28843 (__wmemmove): Likewise.
28844 (__wcschrnul): Likewise.
28845 (__vfwscanf): Likewise.
28846 (__vswprintf): Likewise.
28847 (__fwprintf): Likewise.
28848 (__vfwprintf): Likewise.
28849
783cd767
L
288502017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28851
28852 [BZ #18822]
28853 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28854 (__getgrgid_r): Likewise.
28855 (__getgrnam_r): Likewise.
28856 * include/pwd.h (__getpwuid_r): Likewise.
28857 (__getpwnam_r): Likewise.
28858 (__fgetpwent_r): Likewise.
28859 * include/shadow.h (__getspnam_r): Likewise.
28860 (__sgetspent_r): Likewise.
28861 (__fgetspent_r): Likewise.
28862
7ec4b39a
L
288632017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28864
28865 [BZ #18822]
28866 * include/unistd.h (__access): Add attribute_hidden.
28867 (__lseek64): Likewise.
28868 (__libc_pread64): Likewise.
28869 (__pipe2): Likewise.
28870 (__sleep): Likewise.
28871 (__chdir): Likewise.
28872 (__fchdir): Likewise.
28873 (__getcwd): Likewise.
28874 (__rmdir): Likewise.
28875 (__execvpe): Likewise.
28876 (__execve): Likewise.
28877 (__setsid): Likewise.
28878 (__getuid): Likewise.
28879 (__geteuid): Likewise.
28880 (__getgid): Likewise.
28881 (__getegid): Likewise.
28882 (__getgroups): Likewise.
28883 (__group_member): Likewise.
28884 (__ttyname_r): Likewise.
28885 (__isatty): Likewise.
28886 (__readlink): Likewise.
28887 (__unlink): Likewise.
28888 (__gethostname): Likewise.
28889 (__profil): Likewise.
28890 (__getdtablesize): Likewise.
28891 (__brk): Likewise.
28892 (__ftruncate): Likewise.
28893 (__ftruncate64): Likewise.
28894
8345a760
L
288952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28896
28897 [BZ #18822]
28898 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28899 * argp/argp-fs-xinl.c: Likewise.
28900 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28901 * argp/argp-parse.c: Include <argp.h>.
28902 * argp/argp-xinl.c: Likewise.
28903 * include/argp-fmtstream.h: New file.
28904 * include/argp.h (__argp_error): Add attribute_hidden.
28905 (__argp_failure): Likewise.
28906 (__argp_input): Likewise.
28907 (__argp_state_help): Likewise.
28908
c26dd7c6
L
289092017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28910
28911 [BZ #18822]
28912 * include/wchar.h (____wcstof_l_internal): New prototype.
28913 (____wcstod_l_internal): Likewise.
28914 (____wcstold_l_internal): Likewise.
28915 (____wcstol_l_internal): Likewise.
28916 (____wcstoul_l_internal): Likewise.
28917 (____wcstoll_l_internal): Likewise.
28918 (____wcstoull_l_internal): Likewise.
28919 (____wcstof128_l_internal): Likewise.
28920 * sysdeps/ieee754/float128/wcstof128.c
28921 (____wcstof128_l_internal): Removed.
28922 * sysdeps/ieee754/float128/wcstof128_l.c
28923 (____wcstof128_l_internal): Likewise.
28924 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28925 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28926 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28927 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28928 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28929 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28930 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28931 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28932 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28933 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28934
3aff5644
L
289352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28936
28937 [BZ #18822]
28938 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28939 instead of <sys/statvfs.h>.
28940 (__internal_statvfs): Removed.
28941 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28942 instead of <sys/statvfs.h>.
28943 (__internal_statvfs64): Removed.
28944 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28945 "internal_statvfs.h" instead of <sys/statvfs.h>.
28946 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28947 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28948 instead of <sys/statvfs.h>.
28949 (__internal_statvfs): Removed.
28950 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28951 instead of <sys/statvfs.h>.
28952 (__internal_statvfs64): Removed.
28953
8bcdb7e0
L
289542017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28955
28956 [BZ #18822]
28957 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28958 (__gconv_close): Likewise.
28959 (__gconv): Likewise.
28960 (__gconv_find_transform): Likewise.
28961 (__gconv_lookup_cache): Likewise.
28962 (__gconv_compare_alias_cache): Likewise.
28963 (__gconv_load_cache): Likewise.
28964 (__gconv_get_path): Likewise.
28965 (__gconv_close_transform): Likewise.
28966 (__gconv_release_cache): Likewise.
28967 (__gconv_find_shlib): Likewise.
28968 (__gconv_release_shlib): Likewise.
28969 (__gconv_get_builtin_trans): Likewise.
28970 (__gconv_compare_alias): Likewise.
28971 * include/dlfcn.h (_dlerror_run): Likewise.
28972 * include/stdio.h (__fortify_fail_abort): Likewise.
28973 * include/time.h (__tz_compute): Likewise.
28974 (__strptime_internal): Likewise.
28975 * intl/gettextP.h (_nl_find_domain): Likewise.
28976 (_nl_load_domain): Likewise.
28977 (_nl_find_msg): Likewise.
28978 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28979 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28980 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28981 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28982 (__gai_find_request): Likewise.
28983 (__gai_remove_request): Likewise.
28984 (__gai_notify): Likewise.
28985 (__gai_notify_only): Likewise.
28986 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28987 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28988 (_dl_non_dynamic_init): Likewise.
28989 (_dl_aux_init): Likewise.
28990 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28991 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28992 Likewise.
28993 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28994 (__wcsmbs_clone_conv): Likewise.
28995 (__wcsmbs_named_conv): Likewise.
28996
8ed3b643
L
289972017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28998
28999 [BZ #18822]
29000 * include/stdlib.h (__random): Add attribute_hidden.
29001 (__random_r): Likewise.
29002 (__srandom_r): Likewise.
29003 (__initstate_r): Likewise.
29004 (__setstate_r): Likewise.
29005 (__erand48_r): Likewise.
29006 (__nrand48_r): Likewise.
29007 (__jrand48_r): Likewise.
29008 (__srand48_r): Likewise.
29009 (__seed48_r): Likewise.
29010 (__lcong48_r): Likewise.
29011 (__drand48_iterate): Likewise.
29012 (__setenv): Likewise.
29013 (__unsetenv): Likewise.
29014 (__clearenv): Likewise.
29015 (__ptsname_r): Likewise.
29016 (__posix_openpt): Likewise.
29017 (__add_to_environ): Likewise.
29018 (__realpath): Add libc_hidden_proto.
29019 (__ecvt_r): Likewise.
29020 (__fcvt_r): Likewise.
29021 (__qecvt_r): Likewise.
29022 (__qfcvt_r): Likewise.
29023 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29024 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29025
ef9b6f73
L
290262017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29027
29028 [BZ #18822]
29029 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29030 * include/time.h (__mktime_internal): Likewise.
29031 * libio/iolibio.h (__fopen_internal): Likewise.
29032
8da92e72
JDA
290332017-10-01 John David Anglin <danglin@gcc.gnu.org>
29034
29035 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29036 pointer in frame.
29037 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29038 Correct offset used to restore PIC register.
29039
388784cf
JDA
290402017-09-30 John David Anglin <danglin@gcc.gnu.org>
29041
29042 [BZ libc/22165]
29043 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29044 code to load address of __getcontext_ret when generating PIC code.
29045
2000067a
L
290462017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29047
29048 * elf/Makefile (tests-static-internal): Add
29049 tst-tls1-static-non-pie.
29050 (LDFLAGS-tst-tls1-static-non-pie): New.
29051 * elf/tst-tls1-static-non-pie.c: New file.
29052
1e2bffd0
JM
290532017-09-29 Joseph Myers <joseph@codesourcery.com>
29054
29055 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29056 (asinh): Define using libm_alias_double.
29057 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29058 (cbrt): Define using libm_alias_double.
29059 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29060 <libm-alias-double.h>.
29061 (copysign): Define using libm_alias_double.
29062 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29063 (erf): Define using libm_alias_double.
29064 (erfc): Likewise.
29065 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29066 (expm1): Define using libm_alias_double.
29067 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29068 (fabs): Define using libm_alias_double.
29069 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29070 libm_alias_double.
29071 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29072 <libm-alias-double.h>.
29073 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29074 libm_alias_double.
29075 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29076 <libm-alias-double.h>.
29077 (getpayload): Define using libm_alias_double.
29078 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29079 <libm-alias-double.h>.
29080 (llrint): Define using libm_alias_double.
29081 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29082 (lrint): Define using libm_alias_double.
29083 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29084 <libm-alias-double.h>.
29085 (nextup): Define using libm_alias_double.
29086 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29087 <libm-alias-double.h>.
29088 (roundeven): Define using libm_alias_double.
29089 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29090 libm_alias_double.
29091 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29092 <libm-alias-double.h>.
29093 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29094 using libm_alias_double.
29095 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29096 (cos): Define using libm_alias_double.
29097 (sin): Likewise.
29098 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29099 <libm-alias-double.h>.
29100 (sincos): Define using libm_alias_double.
29101 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29102 (tanh): Define using libm_alias_double.
29103 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29104 <libm-alias-double.h>.
29105 (totalorder): Define using libm_alias_double.
29106 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29107 <libm-alias-double.h>.
29108 (totalordermag): Define using libm_alias_double.
29109 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29110 libm_alias_double.
29111 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29112 libm_alias_double.
29113 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29114 <libm-alias-double.h>.
29115 (getpayload): Define using libm_alias_double.
29116 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29117 <libm-alias-double.h>.
29118 (roundeven): Define using libm_alias_double.
29119 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29120 <libm-alias-double.h>.
29121 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29122 <libm-alias-double.h>.
29123 (totalorder): Define using libm_alias_double.
29124 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29125 <libm-alias-double.h>.
29126 (totalordermag): Define using libm_alias_double.
29127 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29128 libc compat symbol here.
29129 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29130 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29131 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29132 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29133 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29134 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29135 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29136 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29137 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29138 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29139
8172aad9
L
291402017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29141
29142 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29143 _dl_relocate_static_pie instead of _dl_start to compute load
29144 address in static PIE. Return 0 if _DYNAMIC is undefined for
29145 static executable.
29146
54464e74
L
291472017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29148
29149 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29150 _DYNAMIC is undefined for static executable.
29151
f6c5e5bc
L
291522017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29153
29154 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29155
2f92505d
JM
291562017-09-29 Joseph Myers <joseph@codesourcery.com>
29157
29158 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29159
bd8d53bb
WD
291602017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29161
29162 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29163 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29164 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29165 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29166 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29167 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29168 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29169 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29170 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29171 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29172 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29173 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29174 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29175 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29176 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29177 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29178 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29179
fffb1507
WD
291802017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29181
29182 * math/bits/cmathcalls.h (cimag): Remove inline.
29183 (creal): Remove inline.
29184 (conj): Remove inline.
29185
4ea49f4c
SN
291862017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29187
29188 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29189 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29190 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29191 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29192 (issignalingf_inline): Likewise.
29193 (POWF_LOG2_TABLE_BITS): Likewise.
29194 (POWF_LOG2_POLY_ORDER): Likewise.
29195 (POWF_SCALE_BITS): Likewise.
29196 (POWF_SCALE): Likewise.
29197 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29198 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29199 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29200
875c76c7
SN
292012017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29202
29203 * math/Makefile (type-float-routines): Add e_log2f_data.
29204 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29205 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29206 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29207 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29208 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29209 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29210 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29211
90c42e40
SN
292122017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29213
29214 * math/Makefile (type-float-routines): Add e_logf_data.
29215 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29216 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29217 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29218 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29219 * sysdeps/i386/fpu/e_logf_data.c: New file.
29220 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29221 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29222
4088d8dd
L
292232017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29224
29225 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29226 undefined _DYNAMIC in PIE libc.a.
29227 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29228 Likewse.
29229
4d3693ec
WD
292302017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29231
29232 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29233 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29234 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29235 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29236 (__signbit): Remove.
29237 (__signbitl): Remove.
29238 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29239 (__signbit): Remove.
29240 (__signbitl): Remove.
29241 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29242 (__signbit): Remove.
29243 (__signbitl): Remove.
29244 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29245 (__signbit): Remove.
29246 (__signbitl): Remove.
29247 * sysdeps/tile/bits/mathinline.h: Delete file.
29248 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29249 (__signbit): Remove.
29250 (__signbitl): Remove.
29251
1e6d0723
WD
292522017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29253
29254 * math/math.h: Improve handling of C99 isgreater macros.
29255 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29256 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29257 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29258 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29259 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29260
b2f03cf3
SN
292612017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29262
29263 * sysdeps/aarch64/libm-test-ulps: Update.
29264
f124cb38
JM
292652017-09-28 Joseph Myers <joseph@codesourcery.com>
29266
29267 [BZ #22225]
29268 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29269 math_opt_barrier on argument when doing arithmetic on it.
29270 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29271 Likewise. Use math_force_eval not math_opt_barrier after
29272 arithmetic.
29273 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29274 math_opt_barrier on argument when doing arithmetic on it.
29275 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29276 Likewise.
29277
7edd0691
L
292782017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29279
29280 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29281 libc_hidden_def.
29282 (__freeifaddrs): Likewise.
29283
2c7bbfaf
ST
292842017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29285
29286 * include/dirent.h (__dirfd): New declaration.
29287 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29288 alias.
29289 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29290 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29291 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
52a1f181
ST
29292 * include/unistd.h (__revoke): New declaration.
29293 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29294 alias.
29295 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29296 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29297 revoke.
64a4af28
ST
29298 * include/dirent.h (__seekdir): New declaration.
29299 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29300 redefine as weak alias.
29301 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29302 of seekdir.
4009ddc6
ST
29303 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29304 and use libc_hidden_def on them.
29305 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29306 them.
29307 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29308 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29309 instead of getifaddrs and freeifaddrs.
2c7bbfaf 29310
825adeee
L
293112017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29312
29313 [BZ #18822]
29314 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29315 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29316 (__dso_handle): Remove declaration.
29317 * dlfcn/tstatexit.c (__dso_handle): Removed.
29318 (main): Don't check __dso_handle.
29319 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29320 (main): Don't check __dso_handle.
29321 * include/dso_handle.h: New file.
29322 * malloc/mtrace.c: Include <dso_handle.h>.
29323 (mtrace): Pass __dso_handle directly.
29324 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29325 (__dso_handle): Remove declaration.
29326 (__pthread_atfork): Pass __dso_handle directly.
29327 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29328 (__dso_handle): Removed.
29329 * posix/wordexp-test.c: Include <dso_handle.h>.
29330 (__dso_handle): Remove declaration.
29331 (__app_register_atfork): Pass __dso_handle directly.
29332 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29333 (__dso_handle): Remove declaration.
29334 (at_quick_exit): Pass __dso_handle directly.
29335 * stdlib/atexit.c: Include <dso_handle.h>.
29336 (__dso_handle): Remove declaration.
29337 (atexit): Pass __dso_handle directly.
29338 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29339 (__dso_handle): Removed.
29340
bfb0deb3
JM
293412017-09-26 Joseph Myers <joseph@codesourcery.com>
29342
29343 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29344 using VDSO.
29345
cebcb9f8
AM
293462017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29347
29348 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29349 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29350 values to correct default value for given type.
29351
592d5c75
L
293522017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29353
29354 [BZ #22101]
29355 * elf/Makefile (tests): Add tst-debug1.
29356 ($(objpfx)tst-debug1): New.
29357 ($(objpfx)tst-debug1.out): Likewise.
29358 ($(objpfx)tst-debug1mod1.so): Likewise.
29359 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29360 with p_filesz == 0.
29361 * elf/tst-debug1.c: New file.
29362
2d9193f2
JM
293632017-09-26 Joseph Myers <joseph@codesourcery.com>
29364
29365 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29366 Define using __ifunc.
29367
4c5a7a02
TMQMF
293682017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29369
29370 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29371 exp2f() values.
29372
12ef66c4
JM
293732017-09-26 Joseph Myers <joseph@codesourcery.com>
29374
29375 [BZ #22156]
29376 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29377
44dade71
FW
293782017-09-26 Florian Weimer <fweimer@redhat.com>
29379
29380 * resolv/Makefile (tests-internal): Fix typo in comment.
29381
eaca16f1
FW
293822017-09-26 Florian Weimer <fweimer@redhat.com>
29383
29384 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29385
ccf970c7
AZ
293862017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29387
5f9f31ad
AZ
29388 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29389 Use an union instead of a max_align_t array for __space,
29390 so that __space is the same size on all platforms.
29391 * malloc/scratch_buffer_grow_preserve.c
29392 (__libc_scratch_buffer_grow_preserve): Likewise.
29393
ccf970c7
AZ
29394 [BZ #22183]
29395 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29396 version to 2.
29397 * posix/Makefile (routines): Add glob-lstat-compat and
29398 glob64-lstat-compat.
29399 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29400 * posix/glob-lstat-compat.c: New file.
29401 * posix/glob64-lstat-compat.c: Likewise.
29402 * posix/tst-glob_lstat_compat.c: Likewise.
29403 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29404 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29405 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29406 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29407 Likewise.
29408 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29409 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29410 * posix/glob.c (glob_lstat): New function.
29411 (glob): Rename to __glob and add versioned symbol to 2.27.
29412 (glob_in_dir): Use glob_lstat.
29413 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29414 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29415 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29416 2.27.
29417 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29418 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29419 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29420 gl_lstat on glob call.
29421 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29422 and glob64 symbols.
29423 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29424 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29425 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29426 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29427 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29428 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29429 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29430 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29431 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29432 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29433 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29434 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29436 Likewise.
29437 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29439 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29440 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29441 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29442 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29443 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29444 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29445 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29446 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29447 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29448 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29449
b4396163
L
294502017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29451
29452 * configure.ac (AS): Require binutils 2.25 or later.
29453 * configure: Regenerated.
29454
8f834987
PP
294552017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29456
29457 [BZ #22207]
29458 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29459 VM size.
29460
3de93d19
DD
294612017-09-25 DJ Delorie <dj@redhat.com>
29462
29463 [BZ #22161]
29464 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29465 resetting timeout.
29466
9947638d
SL
294672017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29468
29469 * sysdeps/ieee754/dbl-64/sincos32.h
29470 [SINCCOS32_H]: Remove define.
29471 [SINCOS32_H]: Define.
29472
f5f0f526
SN
294732017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29474
29475 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29476 (exp2f): Likewise.
29477 * math/w_exp2f.c: New file.
29478 * math/w_expf.c: New file.
29479 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29480 * math/w_expf_compat.c (__expf_compat): Likewise.
29481 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29482 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29483 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29484 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29485 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29486 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29487 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29488 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29489 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29490 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29491 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29492 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29493 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29494 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29496 Likewise.
29497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29498 Likewise.
29499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29500 Likewise.
29501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29502 Likewise.
29503 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29504 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29505 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29506 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29507 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29508 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29509 Likewise.
29510 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29511 Likewise.
29512 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29513 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29514 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29515
72aa6233
SN
295162017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29517
29518 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29519 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29520 (roundtoint, converttoint): Likewise.
29521 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29522 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29523 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29524 * sysdeps/ieee754/flt-32/math_config.h: New file.
29525 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29526 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29527 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29528 * sysdeps/i386/fpu/math_errf.c: New file.
29529 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29530 * sysdeps/ia64/fpu/math_errf.c: New file.
29531 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29532 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29533
5e6f3253
ST
295342017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29535
29536 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29537 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29538 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29539 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29540 to make sure that these symbols are defined.
b38a42a0
ST
29541 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29542 of <limits.h>
29543 (__need_NULL): Do not define.
29544 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29545 alignment.
29546 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29547 CMGROUP_MAX, cmsgcred): Do not define.
29548 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29549 NULL.
29550 * bits/socket.h: Likewise.
fcafcd16
ST
29551 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29552 __gettimeofday instead of gettimeofday.
29553 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29554 instead of settimeofday.
5e6f3253 29555
2f49ce7d
JM
295562017-09-22 Joseph Myers <joseph@codesourcery.com>
29557
29558 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29559 (asinhf): Define using libm_alias_float.
29560 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29561 (atanf): Define using libm_alias_float.
29562 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29563 (cbrtf): Define using libm_alias_float.
29564 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29565 (ceilf): Define using libm_alias_float.
29566 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29567 <libm-alias-float.h>.
29568 (copysignf): Define using libm_alias_float.
29569 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29570 (cosf): Define using libm_alias_float.
29571 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29572 (erff): Define using libm_alias_float.
29573 (erfcf): Likewise.
29574 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29575 (expm1f): Define using libm_alias_float.
29576 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29577 (fabsf): Define using libm_alias_float.
29578 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29579 (floorf): Define using libm_alias_float.
29580 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29581 (frexpf): Define using libm_alias_float.
29582 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29583 libm_alias_float.
29584 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29585 <libm-alias-float.h>.
29586 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29587 libm_alias_float.
29588 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29589 <libm-alias-float.h>.
29590 (getpayloadf): Define using libm_alias_float.
29591 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29592 <libm-alias-float.h>.
29593 (llrintf): Define using libm_alias_float.
29594 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29595 <libm-alias-float.h>.
29596 (llroundf): Define using libm_alias_float.
29597 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29598 (logbf): Define using libm_alias_float.
29599 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29600 (lrintf): Define using libm_alias_float.
29601 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29602 (lroundf): Define using libm_alias_float.
29603 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29604 (modff): Define using libm_alias_float.
29605 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29606 <libm-alias-float.h>.
29607 (nearbyintf): Define using libm_alias_float.
29608 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29609 <libm-alias-float.h>.
29610 (nextafterf): Define using libm_alias_float.
29611 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29612 <libm-alias-float.h>.
29613 (nextupf): Define using libm_alias_float.
29614 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29615 <libm-alias-float.h>.
29616 (remquof): Define using libm_alias_float.
29617 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29618 (rintf): Define using libm_alias_float.
29619 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29620 <libm-alias-float.h>.
29621 (roundevenf): Define using libm_alias_float.
29622 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29623 (roundf): Define using libm_alias_float.
29624 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29625 using libm_alias_float.
29626 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29627 <libm-alias-float.h>.
29628 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29629 Define using libm_alias_float.
29630 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29631 <libm-alias-float.h>.
29632 (sincosf): Define using libm_alias_float.
29633 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29634 (sinf): Define using libm_alias_float.
29635 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29636 (tanf): Define using libm_alias_float.
29637 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29638 (tanhf): Define using libm_alias_float.
29639 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29640 <libm-alias-float.h>.
29641 (totalorderf): Define using libm_alias_float.
29642 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29643 <libm-alias-float.h>.
29644 (totalordermagf): Define using libm_alias_float.
29645 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29646 (truncf): Define using libm_alias_float.
29647 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29648 libm_alias_float.
29649 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29650 libm_alias_float.
29651
c5c4a626
GG
296522017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29653
29654 [BZ #22146]
29655 math/math.h: Let fpclassify use the builtin in C++ mode, even
29656 when optimazing for size.
29657
23947846
JM
296582017-09-22 Joseph Myers <joseph@codesourcery.com>
29659
29660 * csu/Makefile (generated): Do not add version-info.h.
29661 (before-compile): Likewise.
29662 (all-Banner-files): Remove variable.
29663 ($(objpfx)version-info.h): Remove rule.
29664 * csu/version.c (banner): Do not include "version-info.h".
29665 * libidn/Banner: Remove.
29666 * manual/contrib.texi (Simon Josefsson): New entry.
29667
9ac3c682
GG
296682017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29669
29670 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29671 Remove conditionals on LDBL_MANT_DIG.
29672 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29673 (__ieee754_lgammal_r): Likewise.
29674
d2f0ed09
GG
296752017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29676
29677 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29678 _Float128 and L().
29679 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29680 _Float128 and L(). Replace _Float128 with long double and L(x)
29681 with xL, throughout the file.
29682 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29683 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29684 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29685 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29686
c5c2e667
GG
296872017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29688
29689 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29690 sysdeps/ieee754/ldbl-128ibm.
29691 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29692 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29693 of including it. Keep _Float128 and L() intact. These will be
29694 reviewed by a separate patch.
29695 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29696 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29697 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29698 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29699
e010deb2
GG
297002017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29701
29702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29703 (__finitef128): Define to __redirect___finitef128.
29704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29705 (__isinff128): Define to __redirect___isinff128.
29706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29707 (__isnanf128): Define to __redirect___isnanf128.
29708
ffa44804
GG
297092017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29710
29711 * sysdeps/powerpc/powerpc64le/Makefile
29712 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29713 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29714
e5e4d7cc
PP
297152017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29716 Carlos O'Donell <carlos@redhat.com>
29717
29718 [BZ #22180]
29719 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29720 * stdlib/test-dlclose-exit-race.c: New file.
29721 * stdlib/test-dlclose-exit-race-helper.c: New file.
29722 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29723
c10c5267
JM
297242017-09-21 Joseph Myers <joseph@codesourcery.com>
29725
29726 * crypt/Banner: Remove file.
29727 * nptl/Banner: Likewise.
29728 * resolv/Banner: Likewise.
29729 * soft-fp/Banner: Likewise.
29730 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29731 ($(objpfx)version.d): Remove dependency on banner.h.
29732 ($(objpfx)version.os): Likewise.
29733 * nptl/version.c (banner): Do not include banner.h.
29734 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29735 Jelinek and BIND code.
29736
1cc9e59a
PP
297372017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29738 Carlos O'Donell <carlos@redhat.com>
29739
29740 * support/xdlfcn.h: New file.
29741 * support/xdlfcn.c: New file.
29742 * support/Makefile (libsupport-routines): Add xdlfcn.
29743 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29744
ae8372d7
JM
297452017-09-20 Joseph Myers <joseph@codesourcery.com>
29746
29747 [BZ #20142]
29748 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29749 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29750 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29751 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29752 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29753 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29754 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29755 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29756
26e70aec 297572017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
b39d961c
TS
29758 Ricky Zhou <rickyz@google.com>
29759 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26e70aec
PP
29760
29761 [BZ #14333]
29762 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29763 Remove atomics.
29764 (__new_exitfn): Fail registration when we finished at_exit processing.
29765 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29766 * stdlib/on_exit.c (__on_exit): Likewise.
29767 * stdlib/exit.c (__exit_funcs_done): New variable.
29768 (__run_exit_handlers): Use __exit_funcs_lock.
29769 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29770 declarations.
29771 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29772 (test-cxa_atexit-race, test-on_exit-race): New tests.
29773 * stdlib/test-atexit-race-common.c: New file.
29774 * stdlib/test-atexit-race.c: New file.
29775 * stdlib/test-at_quick_exit-race.c: New file.
29776 * stdlib/test-cxa_atexit-race.c: New file.
29777 * stdlib/test-on_exit-race.c: New file.
29778
0525ce48
SN
297792017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29780
29781 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29782 * benchtests/exp2f-inputs: Copy of expf-inputs.
29783 * benchtests/log2f-inputs: Copy of logf-inputs.
29784
d82468d1
JM
297852017-09-19 Joseph Myers <joseph@codesourcery.com>
29786
29787 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29788 Explicitly take address of first element of array arguments in
29789 call to INLINE_SYSCALL.
29790
43ffc53a
AS
297912017-09-19 Andreas Schwab <schwab@suse.de>
29792
29793 [BZ #22134]
29794 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29795 execveat first.
29796 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29797 unimplemented.
29798 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29799 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29800 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29801 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29802 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29803 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29804 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29805 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29806 * posix/Makefile (tests): Add tst-fexecve.
29807 * posix/tst-fexecve.c: New file.
29808
a5dcc87e
WD
298092017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29810
29811 * benchtests/Makefile: Add logf benchmark.
29812 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29813
7024d544
WD
298142017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29815
29816 * benchtests/Makefile: Add expf benchmark.
29817 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29818
ca3a382e
WD
298192017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29820
29821 * csu/Makefile: Add -funwind-tables to libc-start.c.
29822 * debug/Makefile: Add -funwind-tables to backtrace.c.
29823 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29824 * sysdeps/arm/Makefile: Likewise.
29825 * sysdeps/i386/Makefile: Likewise.
29826 * sysdeps/m68k/Makefile: Likewise.
29827 * sysdeps/mips/Makefile: Likewise.
29828 * sysdeps/nios2/Makefile: Likewise.
29829 * sysdeps/sh/Makefile: Likewise.
29830 * sysdeps/sparc/Makefile: Likewise.
29831
eb375def
JM
298322017-09-19 Joseph Myers <joseph@codesourcery.com>
29833
29834 * benchtests/Makefile (bench-math): Add trunc and truncf.
29835 (CFLAGS-bench-trunc.c): New variable.
29836 (CFLAGS-bench-truncf.c): Likewise.
29837 * benchtests/trunc-inputs: New file.
29838 * benchtests/truncf-inputs: Likewise.
29839
bd17ba29
RS
298402017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29841
29842 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29843
92892fdb
JM
298442017-09-18 Joseph Myers <joseph@codesourcery.com>
29845
6d9b0b5a
JM
29846 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29847 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29848 redefine.
29849 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29850 (exp10l): Define as weak alias.
29851 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29852 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29853 and redefine.
29854 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29855 (remainderl): Define as weak alias.
29856
92892fdb
JM
29857 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29858 (fmal): Define using libm_alias_ldouble.
29859 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29860 (acoshl): Define using libm_alias_ldouble.
29861 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29862 (acosl): Define using libm_alias_ldouble.
29863 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29864 (asinl): Define using libm_alias_ldouble.
29865 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29866 (atan2l): Define using libm_alias_ldouble.
29867 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29868 (atanhl): Define using libm_alias_ldouble.
29869 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29870 (coshl): Define using libm_alias_ldouble.
29871 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29872 (exp10l): Define using libm_alias_ldouble.
29873 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29874 (exp2l): Define using libm_alias_ldouble.
29875 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29876 (expl): Define using libm_alias_ldouble.
29877 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29878 (fmodl): Define using libm_alias_ldouble.
29879 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29880 (hypotl): Define using libm_alias_ldouble.
29881 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29882 (j0l): Define using libm_alias_ldouble.
29883 (y0l): Likewise.
29884 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29885 (j1l): Define using libm_alias_ldouble.
29886 (y1l): Likewise.
29887 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29888 (jnl): Define using libm_alias_ldouble.
29889 (ynl): Likewise.
29890 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29891 (log10l): Define using libm_alias_ldouble.
29892 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29893 (log2l): Define using libm_alias_ldouble.
29894 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29895 (logl): Define using libm_alias_ldouble.
29896 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29897 (powl): Define using libm_alias_ldouble.
29898 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29899 (remainderl): Define using libm_alias_ldouble.
29900 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29901 (sinhl): Define using libm_alias_ldouble.
29902 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29903 (sqrtl): Define using libm_alias_ldouble.
29904 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29905 (tgammal): Define using libm_alias_ldouble.
29906 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29907 (exp10l): Do not use long_double_symbol here.
29908 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29909 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29910 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29911 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29912 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29913 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29914 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29915 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29916 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29917 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29918 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29919 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29920 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29921 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29922 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29923 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29924 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29925 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29926 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29927 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29928 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29929 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29930
6cd380dd
WB
299312017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29932
29933 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29934 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29935
1c6d89e9
ST
299362017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29937
29938 * io/read.c (read): Add libc_hidden_weak.
29939 * sysdeps/mach/hurd/read.c (read): Likewise.
29940 * io/write.c (write): Likewise.
29941 * sysdeps/mach/hurd/write.c (write): Likewise.
29942 * io/pread64.c (__pread64): Likewise.
29943 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29944 * posix/pread64.c (__pread64): Add libc_hidden_def.
29945
06b1de23
SP
299462017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29947
140647ea
SP
29948 * benchtests/scripts/compare_strings.py: New option -g.
29949 (draw_graph): Print a message that a graph is being generated.
29950 (process_results): Generate graph only if -g is passed.
29951 (main): Process option -g.
29952
5a6547b7
SP
29953 * benchtests/scripts/compare_strings.py (process_results):
29954 Better spacing for output.
29955
06b1de23
SP
29956 * benchtests/scripts/compare_strings.py: Use argparse.
29957 * benchtests/README: Document existence of compare_strings.py.
29958
c67a2328
JM
299592017-09-15 Joseph Myers <joseph@codesourcery.com>
29960
9ac44708
JM
29961 * math/s_fma.c: Include <libm-alias-double.h>.
29962 (fma): Define using libm_alias_double.
29963 * math/s_nextafter.c: Include <libm-alias-double.h>.
29964 (nextafter): Define using libm_alias_double.
29965 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29966 (acos): Define using libm_alias_double.
29967 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29968 (aocsh): Define using libm_alias_double.
29969 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29970 (asin): Define using libm_alias_double.
29971 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29972 (atan2): Define using libm_alias_double.
29973 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29974 (atanh): Define using libm_alias_double.
29975 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29976 (cosh): Define using libm_alias_double.
29977 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29978 (exp10): Define using libm_alias_double.
29979 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29980 (exp2): Define using libm_alias_double.
29981 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29982 (exp): Define using libm_alias_double.
29983 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29984 (fmod): Define using libm_alias_double.
29985 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29986 (hypot): Define using libm_alias_double.
29987 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29988 (j0): Define using libm_alias_double.
29989 (y0): Likewise.
29990 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29991 (j1): Define using libm_alias_double.
29992 (y1): Likewise.
29993 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29994 (jn): Define using libm_alias_double.
29995 (yn): Likewise.
29996 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29997 (log10): Define using libm_alias_double.
29998 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29999 (log2): Define using libm_alias_double.
30000 * math/w_log_compat.c: Include <libm-alias-double.h>.
30001 (log): Define using libm_alias_double.
30002 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30003 (pow): Define using libm_alias_double.
30004 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30005 (remainder): Define using libm_alias_double.
30006 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30007 (sinh): Define using libm_alias_double.
30008 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30009 (sqrt): Define using libm_alias_double.
30010 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30011 (tgamma): Define using libm_alias_double.
30012 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30013 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30014 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30015 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30016 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30017 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30018 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30019 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30020 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30021 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30022 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30023 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30024 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30025 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30026 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30027 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30028 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30029 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30030 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30031 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30032 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30033 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30034 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30035 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30036 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30037
c67a2328
JM
30038 * math/e_acoshl.c: Remove.
30039 * math/e_acosl.c: Likewise.
30040 * math/e_asinl.c: Likewise.
30041 * math/e_atan2l.c: Likewise.
30042 * math/e_atanhl.c: Likewise.
30043 * math/e_coshl.c: Likewise.
30044 * math/e_expl.c: Likewise.
30045 * math/e_fmodl.c: Likewise.
30046 * math/e_gammal_r.c: Likewise.
30047 * math/e_hypotl.c: Likewise.
30048 * math/e_j0l.c: Likewise.
30049 * math/e_j1l.c: Likewise.
30050 * math/e_jnl.c: Likewise.
30051 * math/e_lgammal_r.c: Likewise.
30052 * math/e_log10l.c: Likewise.
30053 * math/e_log2l.c: Likewise.
30054 * math/e_logl.c: Likewise.
30055 * math/e_powl.c: Likewise.
30056 * math/e_rem_pio2l.c: Likewise.
30057 * math/e_sinhl.c: Likewise.
30058 * math/e_sqrtf128.c: Likewise.
30059 * math/e_sqrtl.c: Likewise.
30060 * math/k_cosl.c: Likewise.
30061 * math/k_sinl.c: Likewise.
30062 * math/k_tanl.c: Likewise.
30063 * math/s_asinhl.c: Likewise.
30064 * math/s_atanl.c: Likewise.
30065 * math/s_cbrtl.c: Likewise.
30066 * math/s_erfl.c: Likewise.
30067 * math/s_expm1l.c: Likewise.
30068 * math/s_log1pl.c: Likewise.
30069 * math/s_tanhl.c: Likewise.
30070
61c45f25
TMQMF
300712017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30072
30073 [BZ #21745]
30074 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30075 [$(subdir) = math] (sysdep_calls): New variable. Has the
30076 previous contents of sysdep_routines, but re-sorted..
30077 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30078 sysdep_calls.
30079 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30080 defined in sysdep_calls and replace by the respective m_* names.
30081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30082 (compat_symbol): Undefine to avoid duplicated compat symbols in
30083 libc.
30084
5bcdb315
JM
300852017-09-15 Joseph Myers <joseph@codesourcery.com>
30086
30087 * math/s_fmaf.c: Include <libm-alias-float.h>.
30088 (fmaf): Define using libm_alias_float.
30089 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30090 (acosf): Define using libm_alias_float.
30091 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30092 (acoshf): Define using libm_alias_float.
30093 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30094 (asinf): Define using libm_alias_float.
30095 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30096 (atan2f): Define using libm_alias_float.
30097 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30098 (atanhf): Define using libm_alias_float.
30099 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30100 (coshf): Define using libm_alias_float.
30101 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30102 (exp10f): Define using libm_alias_float.
30103 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30104 (fmodf): Define using libm_alias_float.
30105 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30106 (hypotf): Define using libm_alias_float.
30107 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30108 (j0f): Define using libm_alias_float.
30109 (y0f): Likewise.
30110 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30111 (j1f): Define using libm_alias_float.
30112 (y1f): Likewise.
30113 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30114 (jnf): Define using libm_alias_float.
30115 (ynf): Likewise.
30116 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30117 (log10f): Define using libm_alias_float.
30118 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30119 (log2f): Define using libm_alias_float.
30120 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30121 (logf): Define using libm_alias_float.
30122 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30123 (powf): Define using libm_alias_float.
30124 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30125 (remainderf): Define using libm_alias_float.
30126 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30127 (sinhf): Define using libm_alias_float.
30128 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30129 (sqrtf): Define using libm_alias_float.
30130 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30131 (tgammaf): Define using libm_alias_float.
30132
01f28812
JM
301332017-09-14 Joseph Myers <joseph@codesourcery.com>
30134
30135 * include/math.h (roundeven): Change hidden_proto call to
30136 __roundeven.
30137 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30138 alias.
30139 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30140 (y0): Rename to __y0 and define as weak alias.
30141 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30142 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30143 alias.
30144 (y0f): Rename to __y0f and define as weak alias.
30145 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30146 alias.
30147 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30148 (y1): Rename to __y1 and define as weak alias.
30149 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30150 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30151 alias.
30152 (y1f): Rename to __y1f and define as weak alias.
30153 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30154 alias.
30155 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30156 (yn): Rename to __yn and define as weak alias.
30157 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30158 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30159 alias.
30160 (ynf): Rename to __ynf and define as weak alias.
30161 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30162 (fromfp): Define as weak alias.
30163 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30164 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30165 (fromfpx): Define as weak alias.
30166 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30167 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30168 __getpayload and define as weak alias.
30169 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30170 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30171 __roundeven and define as weak alias.
30172 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30173 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30174 __setpayload.
30175 (setpayload): Define as weak alias.
30176 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30177 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30178 __setpayloadsig.
30179 (setpayloadsig): Define as weak alias.
30180 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30181 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30182 __totalorder and define as weak alias.
30183 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30184 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30185 to __totalordermag and define as weak alias.
30186 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30187 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30188 (ufromfp): Define as weak alias.
30189 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30190 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30191 __ufromfpx.
30192 (ufromfpx): Define as weak alias.
30193 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30194 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30195 Rename to __getpayload and define as weak alias.
30196 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30197 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30198 Rename to __roundeven and define as weak alias.
30199 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30200 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30201 Rename to __totalorder and define as weak alias.
30202 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30203 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30204 (totalordermag): Rename to __totalordermag and define as weak
30205 alias.
30206 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30207 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30208 macro.
30209 (__roundevenl): Likewise.
30210 (__totalorderl): Likewise.
30211 (__totalordermagl): Likewise
30212 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30213 __fromfpf128.
30214 (fromfpf128): Define as weak alias.
30215 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30216 __fromfpxf128.
30217 (fromfpxf128): Define as weak alias.
30218 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30219 __setpayloadf128.
30220 (setpayloadf128): Define as weak alias.
30221 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30222 __setpayloadsigf128.
30223 (setpayloadsigf128): Define as weak alias.
30224 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30225 __ufromfpf128.
30226 (ufromfpf128): Define as weak alias.
30227 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30228 __ufromfpxf128.
30229 (ufromfpxf128): Define as weak alias.
30230 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30231 (fromfpf): Define as weak alias.
30232 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30233 __fromfpxf.
30234 (fromfpxf): Define as weak alias.
30235 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30236 __getpayloadf and define as weak alias.
30237 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30238 __roundevenf and define as weak alias.
30239 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30240 __setpayloadf.
30241 (setpayloadf): Define as weak alias.
30242 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30243 __setpayloadsigf.
30244 (setpayloadsigf): Define as weak alias.
30245 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30246 __totalorderf and define as weak alias.
30247 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30248 Rename to __totalordermagf and define as weak alias.
30249 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30250 __ufromfpf.
30251 (ufromfpf): Define as weak alias.
30252 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30253 __ufromfpxf.
30254 (ufromfpxf): Define as weak alias.
30255 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30256 __fromfpl.
30257 (fromfpl): Define as weak alias.
30258 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30259 __fromfpxl.
30260 (fromfpxl): Define as weak alias.
30261 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30262 to __getpayloadl and define as weak alias.
30263 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30264 __roundevenl and define as weak alias.
30265 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30266 __setpayloadl.
30267 (setpayloadl): Define as weak alias.
30268 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30269 __setpayloadsigl.
30270 (setpayloadsigl): Define as weak alias.
30271 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30272 to __totalorderl and define as weak alias.
30273 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30274 Rename to __totalordermagl and define as weak alias.
30275 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30276 __ufromfpl.
30277 (ufromfpl): Define as weak alias.
30278 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30279 __ufromfpxl.
30280 (ufromfpxl): Define as weak alias.
30281 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30282 __fromfpl.
30283 (fromfpl): Define as weak alias.
30284 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30285 __fromfpxl.
30286 (fromfpxl): Define as weak alias.
30287 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30288 Rename to __getpayloadl and define as weak alias.
30289 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30290 to __roundevenl and define as weak alias. Call __roundeven
30291 instead of roundeven.
30292 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30293 __setpayloadl.
30294 (setpayloadl): Define as weak alias.
30295 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30296 __setpayloadsigl.
30297 (setpayloadsigl): Define as weak alias.
30298 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30299 Rename to __totalorderl and define as weak alias.
30300 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30301 Rename to __totalordermagl and define as weak alias.
30302 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30303 __ufromfpl.
30304 (ufromfpl): Define as weak alias.
30305 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30306 __ufromfpxl.
30307 (ufromfpxl): Define as weak alias.
30308 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30309 __fromfpl.
30310 (fromfpl): Define as weak alias.
30311 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30312 __fromfpxl.
30313 (fromfpxl): Define as weak alias.
30314 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30315 __getpayloadl and define as weak alias.
30316 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30317 __roundevenl and define as weak alias.
30318 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30319 __setpayloadl.
30320 (setpayloadl): Define as weak alias.
30321 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30322 __setpayloadsigl.
30323 (setpayloadsigl): Define as weak alias.
30324 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30325 __totalorderl and define as weak alias.
30326 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30327 Rename to __totalordermagl and define as weak alias.
30328 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30329 __ufromfpl.
30330 (ufromfpl): Define as weak alias.
30331 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30332 __ufromfpxl.
30333 (ufromfpxl): Define as weak alias.
30334
29c933fb
SP
303352017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30336
503c92c3
SP
30337 * benchtests/bench-string.h (realloc_bufs): New function.
30338 (test_init): Call it.
30339 * benchtests/bench-memset-large.c (do_test): Likewise.
30340 * benchtests/bench-memset.c (do_test): Likewise.
30341
29c933fb
SP
30342 * benchtests/bench-memset-large.c: Print output in JSON
30343 format.
30344 * benchtests/bench-memset.c: Likewise.
30345
799c8d69
MF
303462017-09-14 Mike FABIAN <mfabian@redhat.com>
30347
30348 [BZ #21084]
30349 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30350 * iconvdata/Makefile: Add IBM858.
30351 * iconvdata/gconv-modules: Likewise.
30352 * iconvdata/tst-tables.sh: Likewise.
30353 * iconvdata/ibm858.c: New file.
30354 * localedata/charmaps/IBM858: Likewise.
30355
c207f7ce 303562017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
fcc82c06
AK
30357
30358 [BZ #22023]
30359 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30360 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30361
f28a0926
AK
303622017-09-14 Mike FABIAN <mfabian@redhat.com>
30363
30364 [BZ #22112]
30365 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30366 and add tel_int_fmt.
30367
02093e62
JM
303682017-09-14 Joseph Myers <joseph@codesourcery.com>
30369
30370 * sysdeps/generic/libm-alias-float128.h: New file.
30371 * sysdeps/generic/math-type-macros-float128.h: Include
30372 <libm-alias-float128.h>.
30373 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30374
1aae75ef
JM
303752017-09-13 Joseph Myers <joseph@codesourcery.com>
30376
30377 * sysdeps/generic/libm-alias-ldouble.h: New file.
30378 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30379 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30380 * sysdeps/generic/math-type-macros-ldouble.h: Include
30381 <libm-alias-ldouble.h>.
30382 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30383 libm_alias_ldouble.
30384
bcea7ad6
SN
303852017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30386
30387 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30388 * math/w_exp_compat.c: ... here.
30389 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30390 * math/w_expf_compat.c: ... here.
30391 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30392 * math/w_expl_compat.c: ... here.
30393 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30394 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30395 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30396 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30397
0fc56478
JM
303982017-09-13 Joseph Myers <joseph@codesourcery.com>
30399
30400 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30401 redefine.
30402 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30403 macro.
30404 (ldexpl): Only define as compat symbol for libc, not libm.
30405 (scalbnl): Define as compat symbol for libc here.
30406 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30407 define for [IS_IN (libc)].
30408 (__ldexpl_2): Remove alias.
30409 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30410 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30411 name in long_double_symbol call.
30412 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30413 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30414 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30415 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30416 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30417 Remove macro.
30418 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30419 Define as compat symbol.
30420
3ca622e4
AZ
304212017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30422
30423 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30424 * sysdeps/unix/sysv/linux/alpha/Makefile
30425 [$(subdir) = csu] (sysdep_routines): Remove rule.
30426
620ff9ee
JM
304272017-09-13 Joseph Myers <joseph@codesourcery.com>
30428
30429 * sysdeps/generic/libm-alias-double.h: New file.
30430 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30431 * sysdeps/generic/math-type-macros-double.h: Include
30432 <libm-alias-double.h>.
30433 [declare_mgen_alias] (declare_mgen_alias): Define to use
30434 libm_alias_double.
30435 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30436 (M_LIBM_NEED_COMPAT): Remove macro.
30437 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30438 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30439 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30440 code.
30441 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30442 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30443 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30444 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30445 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30446 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30447 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30448 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30449 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30450 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30451 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30452 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30453 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30454 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30455 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30456 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30457 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30458 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30459 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30460 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30461 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30462 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30463 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30464 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30465 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30466 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30467 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30468 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30469 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30470 macro.
30471 (declare_mgen_alias): New macro.
30472 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30473 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30475 (M_LIBM_NEED_COMPAT): Remove macro.
30476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30477 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30478 <first-versions.h>.
30479 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30480 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30481
a891caff
JM
304822017-09-12 Joseph Myers <joseph@codesourcery.com>
30483
30484 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30485 (declare_mgen_alias_2): Remove.
30486 * sysdeps/generic/math-type-macros-double.h
30487 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30488 Likewise.
30489 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30490 alias.
30491 (ldexp): Define with declare_mgen_alias.
30492 (scalbn): Likewise.
30493
a1a78204
SE
304942017-09-12 Steve Ellcey <sellcey@cavium.com>
30495
30496 * grp/initgroups.c: Include config.h.
30497 (DEFAULT_CONFIG): New macro.
30498 (internal_getgrouplist): Use DEFAULT_CONFIG.
30499 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30500 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30501 (DEFAULT_DEFCONFIG): New macro.
30502 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30503 * nss/grp-lookup.c: Include config.h
30504 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30505 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30506 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30507 * manual/nss.texi: Update default values section.
30508
ef8adeb0
L
305092017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30510
30511 [BZ #21967]
30512 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30513 New.
30514 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30515 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30516 Handle MathVec_Prefer_No_AVX512.
30517 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30518 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30519 is set.
30520
a166531f
ST
305212017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30522
30523 * posix/sched_primax.c (__sched_get_priority_max): Add
30524 libc_hidden_def.
30525 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30526 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30527 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30528 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30529 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30530 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30531 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30532 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30533 Add aliases.
30534
4b7d1efb
JM
305352017-09-11 Joseph Myers <joseph@codesourcery.com>
30536
30537 * sysdeps/generic/libm-alias-float.h: New file.
30538 * sysdeps/generic/math-type-macros-float.h: Include
30539 <libm-alias-float.h>.
30540 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30541
45ff3463
L
305422017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30543
30544 [BZ #22093]
30545 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30546 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30547 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30548 (HWCAP_IMPORTANT): Likewise.
30549 (HWCAP_X86_64): New enum.
30550 (HWCAP_X86_AVX512_1): Updated.
30551 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30552 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30553 (modules-names): Add x86_64/tst-x86_64mod-1.
30554 (LDFLAGS-tst-x86_64mod-1.so): New.
30555 ($(objpfx)tst-x86_64-1): Likewise.
30556 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30557 (tst-x86_64-1-clean): Likewise.
30558 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30559 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30560
891abfd3
SP
305612017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30562
30563 * po/sv.po: Update translations.
30564 * po/fr.po: Likewise.
30565
00c3da43
ST
305662017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30567
30568 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30569 seconds.
3bdfd9fb
ST
30570 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30571 seconds.
65b22ebc 30572 * elf/rtld-Rules: Fix $(error) use.
00c3da43 30573
96480903
MF
305742017-09-09 Mike FABIAN <mfabian@redhat.com>
30575
30576 [BZ #14925]
30577 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30578 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30579 * localedata/locales/bn_BD: “Bengali” was still used in some
30580 comments. Change it to “Bangla”.
30581
4c03a696
MT
305822017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30583
30584 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30585
9c9ec581
SE
305862017-09-08 Steve Ellcey <sellcey@cavium.com>
30587
30588 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30589 thunderx2t99p1 to list of cpu names.
30590 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30591 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30592
f00bce74
SE
305932017-09-08 Steve Ellcey <sellcey@cavium.com>
30594
30595 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30596 Use strcmp instead of tunable_is_name.
30597
27342d17
JM
305982017-09-08 Joseph Myers <joseph@codesourcery.com>
30599
af1b7c8c
JM
30600 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30601 (F_GET_RW_HINT): New macro.
30602 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30603 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30604 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30605 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30606 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30607 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30608 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30609 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30610 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30611
27342d17
JM
30612 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30613 (F_ADD_SEALS): New macro.
30614 [__USE_GNU] (F_GET_SEALS): Likewise.
30615 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30616 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30617 [__USE_GNU] (F_SEAL_GROW): Likewise.
30618 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30619
c66c9082
AZ
306202017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30621
07b4f49d
AZ
30622 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30623 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30624 * posix/glob_internal.h (__glob_pattern_type):
30625 * posix/glob.c (glob):
30626 * posix/glob_pattern_p.c (__glob_pattern_p):
30627 Use them.
30628
116f1c64
AZ
30629 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30630 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30631 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30632 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30633 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30635 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30636 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30637 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30638 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30639 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30640 * sysdeps/wordsize-64/glob.c: Likewise.
30641 * sysdeps/wordsize-64/glob64.c: Likewise.
30642 * sysdeps/wordsize-64/globfree.c: Likewise.
30643 * sysdeps/wordsize-64/globfree64.c: Likewise.
30644 * sysdeps/unix/sysv/linux/glob.c: New file.
30645 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30646 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30647 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30648 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30649 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30650 adds !GLOB_NO_OLD_VERSION as an extra condition.
30651 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30652 using relative path instead of absolute one.
30653 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30654 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30655 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30656 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30657 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30658 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30659
ffca8901
AZ
30660 [BZ #1062]
30661 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30662 (glob): Use the same scratch buffer for both getlogin_r and
30663 getpwnam_r. Don’t require preallocation of the login name. This
30664 simplifies storage allocation, and corrects the handling of
30665 long login names.
30666
5a79f975
AZ
30667 [BZ #1062]
30668 * posix/glob.c (glob): Port recent patches to platforms
30669 lacking getpwnam_r.
30670 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30671 returns an error number rather than setting errno.
30672
e00f2425
AZ
30673 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30674 instead of GCC extension.
30675 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30676 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30677 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30678
5554304f
AZ
30679 [BZ #866]
30680 [BZ #1062]
30681 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30682 * posix/bug-glob1.c: Remove file.
30683 * posix/tst-glob_symlinks.c: New file.
30684 * posix/glob.c (__lstat64): New macro.
30685 (is_dir): New function.
30686 (glob, glob_in_dir): Match symlinks even if they are dangling.
30687 (link_stat, link_exists_p): Remove. All uses removed.
30688
686f2ea1
AZ
30689 [BZ #1062]
30690 [BZ #19971]
30691 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30692 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30693 All uses removed.
30694
c66c9082 30695 [BZ #1062]
914c9994 30696 CVE-2017-15671
c66c9082
AZ
30697 * posix/Makefile (routines): Add globfree, globfree64, and
30698 glob_pattern_p.
30699 * posix/flexmember.h: New file.
30700 * posix/glob_internal.h: Likewise.
30701 * posix/glob_pattern_p.c: Likewise.
30702 * posix/globfree.c: Likewise.
30703 * posix/globfree64.c: Likewise.
30704 * sysdeps/gnu/globfree64.c: Likewise.
30705 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30706 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30707 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30708 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30709 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30710 * sysdeps/wordsize-64/globfree.c: Likewise.
30711 * sysdeps/wordsize-64/globfree64.c: Likewise.
30712 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30713 [NDEBUG): Remove comments.
30714 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30715 (dirent_type): New type. Use uint_fast8_t not
30716 uint8_t, as C99 does not require uint8_t.
30717 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30718 (struct readdir_result): Use dirent_type. Do not define skip_entry
30719 unless it is needed; this saves a byte on platforms lacking d_ino.
30720 (readdir_result_type, readdir_result_skip_entry):
30721 New functions, replacing ...
30722 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6b5c8607 30723 these functions, which were removed. This makes the callers
c66c9082
AZ
30724 easier to read. All callers changed.
30725 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30726 (size_add_wrapv, glob_use_alloca): New static functions.
30727 (glob, glob_in_dir): Check for size_t overflow in several places,
30728 and fix some size_t checks that were not quite right.
30729 Remove old code using SHELL since Bash no longer
30730 uses this.
30731 (glob, prefix_array): Separate MS code better.
30732 (glob_in_dir): Remove old Amiga and VMS code.
30733 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30734 separate files.
30735 (glob_in_dir): Do not rely on undefined behavior in accessing
30736 struct members beyond their bounds. Use a flexible array member
30737 instead
30738 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30739 0/1. Caller changed.
30740 (glob): Fix memory leaks.
30741 * posix/glob64 (globfree64): Move to separate file.
30742 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30743 (globfree64): Remove hidden alias.
30744 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30745 oldglob.
30746 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30747 separate file.
30748 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30749 define.
30750 Move compat code to separate file.
30751 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30752 separate file.
30753
78bfa877
L
307542017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30755
30756 * resolv/tst-resolv-qtypes.c (domain): Changed to
30757 "const char domain[] =".
30758
05f0011f
JM
307592017-09-07 Joseph Myers <joseph@codesourcery.com>
30760
85bec0f2
JM
30761 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30762 version to 3.1.6.
30763
5c23ee6e
JM
30764 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30765 (TCP_MD5SIG_EXT): Likewise.
30766 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30767 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30768 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30769
05f0011f
JM
30770 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30771
7c9c5be9
MF
307722017-09-07 Mike FABIAN <mfabian@redhat.com>
30773
30774 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30775
c207f7ce 307762017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
ae214523
AK
30777
30778 [BZ #22100]
30779 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30780
507fe027
ST
307812017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30782
30783 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30784 before assuming that the file is empty. Avoid testing buffer content
30785 when nread == 0.
30786
65687ac7
AZ
307872017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30788
7bbbb4b9 30789 [BZ #18858]
65687ac7
AZ
30790 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30791 Remove define.
30792 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30793 Likewise.
30794 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30795 Likewise.
30796 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30797 Likewise.
30798 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30799 Likewise.
30800 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30801 Likewise.
30802 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30803 Likewise.
30804
ab5ac271
FW
308052017-09-06 Florian Weimer <fweimer@redhat.com>
30806
30807 * malloc/dynarray_emplace_enlarge.c
30808 (__libc_dynarray_emplace_enlarge): Add missing else.
30809
a8304730
FW
308102017-09-06 Florian Weimer <fweimer@redhat.com>
30811
30812 [BZ #22096]
30813 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30814 case of failure to obtain the global conf object.
30815
5670c4ab
FW
308162017-09-06 Florian Weimer <fweimer@redhat.com>
30817
30818 [BZ #22095]
30819 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30820 dynarray allocation failure.
30821
c77eb969
FW
308222017-09-06 Florian Weimer <fweimer@redhat.com>
30823
30824 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30825 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30826 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30827 New functions.
30828 (response): Call them. Add 'p', '6' flag processing.
30829 (test_reverse): New function.
30830 (test_get2_any): Call it.
30831 (test_no_inet6): Add 'p' test.
30832 (test_inet6): Likewise.
30833
5e9c4d17
FW
308342017-09-06 Florian Weimer <fweimer@redhat.com>
30835
30836 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30837 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30838 the QNAME.
30839 (test_gai): Adjust query names. Add additional tests.
30840 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30841 test_get2. Adjust query names. Add additional tests.
30842 (test_no_inet6): New function, extracted from threadfunc.
30843 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30844 Add additional tests.
30845
2ae5be04
MF
308462017-09-06 Mike FABIAN <mfabian@redhat.com>
30847
30848 [BZ #22070]
30849 * localedata/unicode-gen/utf8_gen.py: Set the width for
30850 characters with Prepended_Concatenation_Mark property to 1
30851 * localedata/charmaps/UTF-8: Updated using the improved script.
30852
af83ed5c
MF
308532017-09-06 Mike FABIAN <mfabian@redhat.com>
30854
30855 [BZ #21750]
30856 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30857 use the range notation for all ranges of neighbouring characters
30858 with the same width.
30859
4f3647e4
JM
308602017-09-05 Joseph Myers <joseph@codesourcery.com>
30861
30862 * sysdeps/generic/math-type-macros-double.h: Include
30863 <math-svid-compat.h>.
30864 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30865 * sysdeps/generic/math-type-macros-float.h: Include
30866 <math-svid-compat.h>.
30867 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30868 * sysdeps/generic/math-type-macros-ldouble.h: Include
30869 <math-svid-compat.h>.
30870 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30871 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30872 condition.
30873 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30874 * math/w_acosf_compat.c: Likewise.
30875 * math/w_acosh_compat.c: Likewise.
30876 * math/w_acoshf_compat.c: Likewise.
30877 * math/w_acoshl_compat.c: Likewise.
30878 * math/w_acosl_compat.c: Likewise.
30879 * math/w_asin_compat.c: Likewise.
30880 * math/w_asinf_compat.c: Likewise.
30881 * math/w_asinl_compat.c: Likewise.
30882 * math/w_atan2_compat.c: Likewise.
30883 * math/w_atan2f_compat.c: Likewise.
30884 * math/w_atan2l_compat.c: Likewise.
30885 * math/w_atanh_compat.c: Likewise.
30886 * math/w_atanhf_compat.c: Likewise.
30887 * math/w_atanhl_compat.c: Likewise.
30888 * math/w_cosh_compat.c: Likewise.
30889 * math/w_coshf_compat.c: Likewise.
30890 * math/w_coshl_compat.c: Likewise.
30891 * math/w_exp10_compat.c: Likewise.
30892 * math/w_exp10f_compat.c: Likewise.
30893 * math/w_exp10l_compat.c: Likewise.
30894 * math/w_exp2_compat.c: Likewise.
30895 * math/w_exp2f_compat.c: Likewise.
30896 * math/w_exp2l_compat.c: Likewise.
30897 * math/w_fmod_compat.c: Likewise.
30898 * math/w_fmodf_compat.c: Likewise.
30899 * math/w_fmodl_compat.c: Likewise.
30900 * math/w_hypot_compat.c: Likewise.
30901 * math/w_hypotf_compat.c: Likewise.
30902 * math/w_hypotl_compat.c: Likewise.
30903 * math/w_j0_compat.c: Likewise.
30904 * math/w_j0f_compat.c: Likewise.
30905 * math/w_j0l_compat.c: Likewise.
30906 * math/w_j1_compat.c: Likewise.
30907 * math/w_j1f_compat.c: Likewise.
30908 * math/w_j1l_compat.c: Likewise.
30909 * math/w_jn_compat.c: Likewise.
30910 * math/w_jnf_compat.c: Likewise.
30911 * math/w_jnl_compat.c: Likewise.
30912 * math/w_lgamma_r_compat.c: Likewise.
30913 * math/w_lgammaf_r_compat.c: Likewise.
30914 * math/w_lgammal_r_compat.c: Likewise.
30915 * math/w_log10_compat.c: Likewise.
30916 * math/w_log10f_compat.c: Likewise.
30917 * math/w_log10l_compat.c: Likewise.
30918 * math/w_log2_compat.c: Likewise.
30919 * math/w_log2f_compat.c: Likewise.
30920 * math/w_log2l_compat.c: Likewise.
30921 * math/w_log_compat.c: Likewise.
30922 * math/w_logf_compat.c: Likewise.
30923 * math/w_logl_compat.c: Likewise.
30924 * math/w_pow_compat.c: Likewise.
30925 * math/w_powf_compat.c: Likewise.
30926 * math/w_powl_compat.c: Likewise.
30927 * math/w_remainder_compat.c: Likewise.
30928 * math/w_remainderf_compat.c: Likewise.
30929 * math/w_remainderl_compat.c: Likewise.
30930 * math/w_sinh_compat.c: Likewise.
30931 * math/w_sinhf_compat.c: Likewise.
30932 * math/w_sinhl_compat.c: Likewise.
30933 * math/w_sqrt_compat.c: Likewise.
30934 * math/w_sqrtf_compat.c: Likewise.
30935 * math/w_sqrtl_compat.c: Likewise.
30936 * math/w_tgamma_compat.c: Likewise.
30937 * math/w_tgammaf_compat.c: Likewise.
30938 * math/w_tgammal_compat.c: Likewise.
30939 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30940 [LIBM_SVID_COMPAT].
30941 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30942 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30943 [LIBM_SVID_COMPAT].
30944 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30945 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30946 [LIBM_SVID_COMPAT].
30947 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30948 * sysdeps/i386/fpu/w_sqrt.c: New file.
30949 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30950 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30951 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30952 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30953 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30954 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30955 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30956 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30957 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30958 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30959 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30960 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30961 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30962 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30963 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30964 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30965 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30966 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30967 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30968 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30969 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30970 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30971 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30972 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30973 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30974 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30975 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30976 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30977 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30978 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30979 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30980 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30981 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30982 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30983 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30984 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30985 * sysdeps/ia64/fpu/w_log.c: Likewise.
30986 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30987 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30988 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30989 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30990 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30991 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30992 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30993 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30994 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30995 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30996 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30997 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30998 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30999 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31000 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31001 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31002 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31003 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31004 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31005 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31006 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31007 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31008 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31009 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31010 [LIBM_SVID_COMPAT].
31011 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31012 * sysdeps/ieee754/k_standard.c: Likewise.
31013 * sysdeps/ieee754/k_standardf.c: Likewise.
31014 * sysdeps/ieee754/k_standardl.c: Likewise.
31015 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31016 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31017 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31018 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31019 long_double_symbol call on [LIBM_SVID_COMPAT].
31020 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31021 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31022 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31023 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31024 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31025 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31026 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31027 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31028 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31029 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31030 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31031 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31032 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31033 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31034 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31035 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31036 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31037 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31038 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31039 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31040 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31041 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31042
05b38d64
SE
310432017-09-05 Steve Ellcey <sellcey@cavium.com>
31044
31045 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31046 * malloc/tst-mallocstate.c: Convert from test-skeleton
31047 to test-driver. Ifdef code using TEST_COMPAT macro.
31048 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31049 * math/test-matherr.c: Likewise.
31050
99d67918
JM
310512017-09-05 Joseph Myers <joseph@codesourcery.com>
31052
31053 [BZ #22086]
31054 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31055 comparing word with byte-swapped constant.
31056
c207f7ce 310572017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
3f802aeb
MF
31058
31059 [BZ #20498]
31060 * locale/iso-639.def: add Miskito.
31061 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31062 * localedata/locales/miq_NI: New file.
31063
0a587a8a
L
310642017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31065
31066 [BZ #18822]
31067 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31068 (__mkdir): Likewise.
31069 * io/chmod.c (__chmod): Add libc_hidden_def.
31070 * io/mkdir.c (__mkdir): Likewise.
31071 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31072 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31073 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31074 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31075
f3a129b8
JM
310762017-09-04 Joseph Myers <joseph@codesourcery.com>
31077
1650e192
JM
31078 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31079 version to 4.13.
31080
f3a129b8
JM
31081 [BZ #22082]
31082 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31083 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31084
b38042f5
FW
310852017-09-04 Florian Weimer <fweimer@redhat.com>
31086
31087 * math/math.h: Issue warning if log is defined.
31088
059b6404
JM
310892017-09-04 Joseph Myers <joseph@codesourcery.com>
31090
31091 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31092 kernel version to 4.13.
31093
b794e16b
ST
310942017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31095
31096 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
31097 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31098 parameter.
01969395
ST
31099 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31100 just <bits/types.h>.
dd2b31de 31101 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 31102 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 31103 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 31104 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
31105 * misc/preadv2.c: Include <errno.h>.
31106 * misc/preadv64v2.c: Include <errno.h>.
31107 * misc/pwritev2.c: Include <errno.h>.
31108 * misc/pwritev64v2.c: Include <errno.h>.
31109 * sysdeps/posix/preadv2.c: Include <errno.h>.
31110 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31111 Fix <unistd.h> inclusion.
31112 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31113 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
31114 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31115 __strtoul_internal): New functions.
127e7773
ST
31116 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31117 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
31118 * sysdeps/mach/hurd/i386/Makefile
31119 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31120 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31121 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
31122 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31123 __feraiseexcept_renamed to feraiseexcept instead of
31124 __GI_feraiseexcept.
56bf5497 31125 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 31126 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
31127 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31128 RWF_NOWAIT): Define to 0 if undefined already.
31129 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31130 boils down to 0.
6547ec0a
ST
31131 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31132 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 31133
5a80d39d
JM
311342017-09-01 Joseph Myers <joseph@codesourcery.com>
31135
31136 * manual/math.texi (pow10): Do not document.
31137 (pow10f): Likewise.
31138 (pow10l): Likewise.
31139 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31140 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31141 * math/libm-test-exp10.inc (pow10_test): Remove.
31142 (do_test): Do not call pow10.
31143 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31144 [NO_LONG_DOUBLE] (pow10l): Likewise.
31145 * math/w_exp10f_compat.c (pow10f): Likewise.
31146 * math/w_exp10l_compat.c (pow10l): Likewise.
31147 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31148 (pow10): Make into compat symbol.
31149 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31150 (pow10f): Make into compat symbol.
31151 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31152 (pow10l): Make into compat symbol.
31153 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31154 pow10.
31155 (CFLAGS-nldbl-pow10.c): Remove variable..
31156 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31157 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31158 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31159 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31160 Undefine and redefine.
31161 (pow10l): Make into compat symbol.
31162 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31163 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31164 * sysdeps/arm/libm-test-ulps: Likewise.
31165 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31166 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31167 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31168 * sysdeps/microblaze/libm-test-ulps: Likewise.
31169 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31170 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31171 * sysdeps/nios2/libm-test-ulps: Likewise.
31172 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31173 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31174 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31175 * sysdeps/sh/libm-test-ulps: Likewise.
31176 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31177 * sysdeps/tile/libm-test-ulps: Likewise.
31178 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31179
3824fc38
PP
311802017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31181
31182 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31183
b3008279
L
311842017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31185
31186 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31187 "../ChangeLog.old/ChangeLog.8".
31188 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31189 "../ChangeLog.old/ChangeLog.14".
31190
136fa185
L
311912017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31192
31193 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31194 Threads Library.
31195
c18d50a2
JM
311962017-09-01 Joseph Myers <joseph@codesourcery.com>
31197
31198 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31199
bedbd859
L
312002017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31201
31202 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31203 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31204
50c66c7a
PP
312052017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31206
31207 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31208 32 atexit handlers.
31209
a617bd11
ZW
312102017-09-01 Zack Weinberg <zackw@panix.com>
31211
31212 * math/math.h (HUGE_VAL): Improve commentary.
31213
e0d2eb5a
AZ
312142017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31215 Andreas Schwab <schwab@suse.de>
31216
31217 [BZ #21530]
31218 * include/stdio.h (__gen_tempfd): New function.
31219 * stdio-common/Makefile (routines): Add gentempfd.
31220 * stdio-common/gentempfd.c: New file.
31221 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31222 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31223 unnamed file first.
31224
f4a6be25
FW
312252017-09-01 Florian Weimer <fweimer@redhat.com>
31226
31227 [BZ #21915]
31228 [BZ #21922]
31229 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31230 result to determine success or failure, not the errno value.
31231 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31232 (tst-nss-files-hosts-erange): Link with -ldl.
31233 * nss/tst-nss-files-hosts-erange.c: New file.
31234 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31235 (do_test): Add NO_DATA tests.
31236 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31237 (do_test): Call it.
31238
5f8340f5
FW
312392017-09-01 Florian Weimer <fweimer@redhat.com>
31240
31241 [BZ #21922]
31242 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31243 coming from gethostbyname2_r.
31244
65329bd2
FW
312452017-09-01 Florian Weimer <fweimer@redhat.com>
31246
31247 * support/namespace.h (struct support_chroot_configuration): Add
31248 hosts, host_conf.
31249 (struct support_chroot): Add path_hosts, path_host_conf.
31250 * support/support_chroot.c (write_file): New function.
31251 (support_chroot_create): Call it to process /etc/resolv.conf,
31252 /etc/hosts, /etc/host.conf.
31253 (support_chroot_free): Update.
31254
a2881ef0
FW
312552017-09-01 Florian Weimer <fweimer@redhat.com>
31256
31257 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31258 status indicates it is set.
31259
ad816a5e
FW
312602017-09-01 Florian Weimer <fweimer@redhat.com>
31261
63b52889 31262 [BZ #20532]
ad816a5e
FW
31263 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31264 function lookup failures more reliable.
31265
53250a21
FW
312662017-09-01 Florian Weimer <fweimer@redhat.com>
31267
31268 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31269 (getcanonname): Likewise.
31270 (gaih_inet): Likewise.
31271
924b121c
FW
312722017-09-01 Florian Weimer <fweimer@redhat.com>
31273
31274 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31275 (getcanonname): Likewise.
31276 (gaih_inet): Likewise.
31277
d9ff799a 312782017-08-31 Steve Ellcey <sellcey@cavium.com>
6b5c8607 31279 Richard Henderson <rth@twiddle.net>
d9ff799a
SE
31280
31281 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31282 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31283 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31284 (IREG_SIZE, OREG_SIZE): New macros.
31285 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31286 (IREG_SIZE, OREG_SIZE): New macros.
31287 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31288 (IREG_SIZE): New macro.
31289 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31290 (IREG_SIZE): New macro.
31291 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31292 New includes.
31293 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31294 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31295 (__CONCATX): Handle exceptions correctly on large values that may
31296 set FE_INVALID.
31297 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31298 Initialize if not already set.
b39d961c 31299 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
d9ff799a 31300
102dde84
AZ
313012017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31302
31303 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31304 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31305 Likewise.
31306 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31307 Likewise.
31308 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31309 Likewise.
31310 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31311 Likewise.
31312 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31313 Likewise.
31314 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31315 Likewise.
31316 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31317 Likewise.
31318 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31319 (NO_CANCELLATION): Likewise.
31320 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31321 Likewise.
31322 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31323 Likewise.
31324 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31325 Likewise.
31326 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31327 (NO_CANCELLATION): Likewise.
31328 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31329 (NO_CANCELLATION): Likewise.
31330 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31331 Likewise
31332 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31333 Likewise.
31334 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31335 Likewise.
31336 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31337 Likewise.
31338 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31339 hidden prototype.
31340 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31341 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31342
9eee633b
SE
313432017-08-31 Steve Ellcey <sellcey@cavium.com>
31344
31345 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31346 in resolver call.
31347
65284eb7
FW
313482017-08-31 Florian Weimer <fweimer@redhat.com>
31349
31350 * include/libc-symbols.h (internal_function): Remove.
31351
41ad5ca6
FW
313522017-08-31 Florian Weimer <fweimer@redhat.com>
31353
31354 * stdlib/fmtmsg.c (internal_addseverity): Remove
31355 internal_function.
31356
2fa6d086
FW
313572017-08-31 Florian Weimer <fweimer@redhat.com>
31358
31359 * stdio-common/printf_fp.c (group_number): Remove
31360 internal_function.
31361 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31362
b41bd5bc
FW
313632017-08-31 Florian Weimer <fweimer@redhat.com>
31364
31365 * posix/fnmatch.c (internal_function): Remove definition.
31366 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31367 * posix/regcomp.c (peek_token, init_word_char)
31368 (duplicate_node_closure, fetch_token, peek_token)
31369 (peek_token_bracket, build_range_exp, build_collating_symbol):
31370 Likewise.
31371 * posix/regex_internal.c (re_string_construct_common)
31372 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31373 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31374 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31375 (re_string_translate_buffer, re_string_reconstruct)
31376 (re_string_peek_byte_case, re_string_fetch_byte_case)
31377 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31378 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31379 (re_node_set_add_intersect, re_node_set_init_union)
31380 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31381 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31382 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31383 (re_acquire_state_context): Likewise.
31384 * posix/regex_internal.h (internal_function): Remove definition.
31385 (re_string_realloc_buffers, build_wcs_buffer)
31386 (build_wcs_upper_buffer, build_upper_buffer)
31387 (re_string_translate_buffer, re_string_context_at)
31388 (re_string_char_size_at, re_string_wchar_at)
31389 (re_string_elem_size_at): Likewise.
31390 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31391 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31392 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31393 (re_search_internal, re_search_2_stub, re_search_stub)
31394 (re_copy_regs, prune_impossible_nodes, check_matching)
31395 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31396 (free_fail_stack_return, sift_states_iter_mb)
31397 (sift_states_backward, build_sifted_states)
31398 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31399 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31400 (check_subexp_limits, sift_states_bkref, merge_state_array)
31401 (find_recover_state, transit_state, merge_state_with_log)
31402 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31403 (transit_state_mb, transit_state_bkref, get_subexp)
31404 (get_subexp_sub, find_subexp_node, check_arrival)
31405 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31406 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31407 (check_node_accept_bytes, find_collation_sequence_value)
31408 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31409 (acquire_init_state_context, check_halt_node_context)
31410 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31411 (sub_epsilon_src_nodes): Likewise.
31412 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31413 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31414 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31415 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31416 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31417 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31418 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31419 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31420 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31421 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31422 (PREADV): Likewise.
31423 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31424 (PREADV): Likewise.
31425 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31426 (PWRITEV): Likewise.
31427 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31428 (PWRITEV): Likewise.
31429 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31430 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31431
83b09837
FW
314322017-08-31 Florian Weimer <fweimer@redhat.com>
31433
31434 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31435 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31436 Remove internal_function.
31437 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31438 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31439 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31440 (__deallocate_stack, __libc_pthread_init)
31441 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31442 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31443 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31444 Likewise.
31445 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31446 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31447 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31448 Likewise.
31449 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31450 (__pthread_mutex_unlock_usercnt): Likewise.
31451
116ac301
FW
314522017-08-31 Florian Weimer <fweimer@redhat.com>
31453
31454 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31455 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31456 (fts_safe_changedir): Remove internal_function.
31457 * io/ftw.c (internal_function): Remove definition.
31458 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31459
9da93bd7
FW
314602017-08-31 Florian Weimer <fweimer@redhat.com>
31461
31462 * inet/deadline.c (__deadline_current_time)
31463 (__deadline_from_timeval, __deadline_to_ms): Remove
31464 internal_function.
31465 * inet/getnameinfo.c (nrl_domainname): Likewise.
31466 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31467 * inet/inet6_option.c (add_pad): Likewise.
31468 * inet/net-internal.h (__deadline_current_time)
31469 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31470 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31471 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31472 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31473
a60eca2e
JM
314742017-08-31 Joseph Myers <joseph@codesourcery.com>
31475
c0c49d60
JM
31476 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31477 include <bits/nan.h>.
31478 * math/Makefile (headers): Remove bits/nan.h.
31479 * bits/nan.h: Remove.
31480 * sysdeps/ieee754/bits/nan.h: Likewise.
31481 * sysdeps/mips/bits/nan.h: Likewise.
31482
5ef1b213
JM
31483 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31484 not include <bits/inf.h>.
31485 * math/Makefile (headers): Remove bits/inf.h.
31486 * bits/inf.h: Remove.
31487 * sysdeps/ieee754/bits/inf.h: Likewise.
31488
a60eca2e
JM
31489 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31490 bits/huge_vall.h or bits/huge_val_flt128.h.
31491 (HUGE_VAL): Define directly here.
31492 [__USE_ISOC99] (HUGE_VALF): Likewise.
31493 [__USE_ISOC99] (HUGE_VALL): Likewise.
31494 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31495 (HUGE_VAL_F128): Likewise.
31496 * math/Makefile (headers): Remove bits/huge_val.h,
31497 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31498 * bits/huge_val.h: Remove.
31499 * bits/huge_val_flt128.h: Likewise.
31500 * bits/huge_valf.h: Likewise.
31501 * bits/huge_vall.h: Likewise.
31502 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31503 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31504 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31505 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31506 * sysdeps/sh/bits/huge_val.h: Likewise.
31507 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31508 * sysdeps/x86/bits/huge_vall.h: Likewise.
31509
17e00cc6
FW
315102017-08-31 Florian Weimer <fweimer@redhat.com>
31511
31512 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31513 internal_function.
31514 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31515 Likewise.
31516 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31517 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31518 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31519 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31520 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31521 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31522 * elf/dl-libc.c (dlerror_run): Likewise.
31523 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31524 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31525 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31526 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31527 Likewise.
31528 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31529 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31530 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31531 * elf/dl-profile.c (_dl_start_profile): Likewise.
31532 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31533 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31534 Likewise.
31535 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31536 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31537 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31538 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31539 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31540 (_dl_allocate_tls_storage): Likewise.
31541 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31542 (_dl_check_all_versions): Likewise.
31543 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31544 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31545 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31546 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31547 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31548 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31549 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31550 internal_function from __dl_start.
31551 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31552 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31553 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31554 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31555 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31556 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31557 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31558 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31559 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31560 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31561 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31562 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31563 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31564 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31565 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31566 Likewise.
31567 (struct rtld_global_ro): Remove internal_function from the
31568 _dl_lookup_symbol_x member.
31569 (_dl_symbol_value): Remove. No longer defined anywhere.
31570 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31571 internal_function.
31572 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31573 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31574 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31575 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31576 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31577 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31578 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31579 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31580 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31581 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31582 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31583 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31584
8d2f9410
FW
315852017-08-31 Florian Weimer <fweimer@redhat.com>
31586
31587 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31588 Remove internal_function.
31589 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31590 Likewise.
31591 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31592 Likewise.
31593
86e4919f
FW
315942017-08-31 Florian Weimer <fweimer@redhat.com>
31595
31596 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31597 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31598 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31599
59bd52b0
FW
316002017-08-31 Florian Weimer <fweimer@redhat.com>
31601
31602 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31603 (__gai_enqueue_request): Remove internal_function.
31604 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31605 (__gai_remove_request, __gai_notify, __gai_notify_only)
31606 (__gai_sigqueue): Likewise.
31607 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31608 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31609 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31610 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31611 Likewise.
31612
fc3d9497
FW
316132017-08-31 Florian Weimer <fweimer@redhat.com>
31614
31615 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31616 * include/dirent.h (__opendirat, __getdents, __getdents64)
31617 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31618 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31619 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31620 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31621 Likewise.
31622 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31623
18c54fac
FW
316242017-08-31 Florian Weimer <fweimer@redhat.com>
31625
31626 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31627 internal_function.
31628 (GETCWD_RETURN_TYPE): Likewise.
31629
7e01f080
FW
316302017-08-31 Florian Weimer <fweimer@redhat.com>
31631
31632 * include/time.h (__tz_compute, __strptime_internal): Remove
31633 internal_function.
31634 * time/strptime_l.c (__strptime_internal): Likewise.
31635 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31636
d7ccc6c9
FW
316372017-08-31 Florian Weimer <fweimer@redhat.com>
31638
31639 * iconv/gconv.c (__gconv): Remove internal_function.
31640 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31641 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31642 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31643 (__gconv_release_cache): Likewise.
31644 * iconv/gconv_close.c (__gconv_close): Likewise.
31645 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31646 (read_conf_file, __gconv_get_path): Likewise.
31647 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31648 (__gconv_release_step, gen_steps, increment_counter)
31649 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31650 (__gconv_close_transform, free_modules_db): Likewise.
31651 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31652 Likewise.
31653 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31654 (__gconv_find_transform, __gconv_lookup_cache)
31655 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31656 (__gconv_close_transform, __gconv_release_cache)
31657 (__gconv_loaded_object, __gconv_release_shlib)
31658 (__gconv_compare_alias): Likewise.
31659 * iconv/gconv_open.c (__gconv_open): Likewise.
31660 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31661 * iconv/iconvconfig.c (add_module): Likewise.
31662 * intl/dcigettext.c (plural_lookup, guess_category_value)
31663 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31664 * intl/eval-plural.h (plural_eval): Likewise.
31665 * intl/finddomain.c (_nl_find_domain): Likewise.
31666 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31667 (_nl_load_domain, _nl_find_msg): Likewise.
31668 (internal_function): Remove definition.
31669 * intl/loadinfo.h (internal_function): Likewise.
31670 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31671 internal_function.
31672 * intl/localealias.c (internal_function): Remove definition.
31673 (read_alias_file): Remove internal_function.
31674 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31675 * intl/plural-exp.h (internal_function): Remove definition.
31676 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31677 internal_function.
31678 * intl/plural.c: Regenerate.
31679 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31680 * locale/coll-lookup.c (__collidx_table_lookup)
31681 (__collseq_table_lookup): Likewise.
31682 * locale/coll-lookup.h (__collidx_table_lookup)
31683 (__collseq_table_lookup): Likewise.
31684 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31685 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31686 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31687 (_nl_unload_locale): Likewise.
31688 * locale/localeinfo.h (struct __locale_data): Remove
31689 internal_function from cleanup member.
31690 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31691 (_nl_remove_locale, _nl_load_locale_from_archive)
31692 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31693 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31694 (_nl_cleanup_time): Remove internal_function.
31695 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31696 (_nl_parse_alt_digit): Likewise.
31697 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31698 (_nl_select_era_entry): Likewise.
31699 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31700 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31701 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
31702 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31703 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 31704
dab0eece
FW
317052017-08-31 Florian Weimer <fweimer@redhat.com>
31706
31707 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31708 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31709 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31710 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31711 Likewise.
31712 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31713 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31714 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31715 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31716 Likewise.
31717 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31718
ab5bf7cf
FW
317192017-08-31 Florian Weimer <fweimer@redhat.com>
31720
31721 * misc/getttyent.c (skip, value): Remove internal_function.
31722 * misc/syslog.c (openlog_internal): Likewise.
31723 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31724
75b3047e
FW
317252017-08-31 Florian Weimer <fweimer@redhat.com>
31726
31727 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31728 (__nss_rewrite_field): Remove internal_function.
31729 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31730 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31731 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31732 * nss/nsswitch.c (nss_parse_file, nss_getline)
31733 (nss_parse_service_list, nss_new_service): Likewise.
31734 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31735 * nss/valid_field.c (__nss_valid_field): Likewise.
31736 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31737
0c71122c
FW
317382017-08-31 Florian Weimer <fweimer@redhat.com>
31739
31740 * malloc/arena.c (__malloc_fork_lock_parent)
31741 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31742 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31743 internal_function from defintions.
31744 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31745 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31746 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31747 internal_function from declarations.
31748 * malloc/malloc.c (internal_function): Do not define.
31749 (mem2mem_check): Remove internal_function from declaration.
31750 (munmap_chunk, mremap_chunk): Remove internal_function.
31751 * malloc/mtrace.c (tr_where): Likewise.
31752
ca4ec803
FW
317532017-08-31 Florian Weimer <fweimer@redhat.com>
31754
31755 * include/rpc/pmap_clnt.h (__get_socket): Remove
31756 internal_function.
31757 * sunrpc/auth_des.c (synchronize): Likewise.
31758 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31759 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31760 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31761 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31762 (key_call): Likewise.
31763 * sunrpc/pm_getport.c (__get_socket): Likewise.
31764 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31765 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31766 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31767 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31768 (invalidate): Likewise.
31769 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31770 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31771 (set_input_fragment, get_input_bytes): Likewise.
31772
24cffce7
FW
317732017-08-31 Florian Weimer <fweimer@redhat.com>
31774
31775 * malloc/malloc.c (_int_free): Remove locked variable and related
31776 asserts.
31777
ecd0747d
L
317782017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31779
31780 [BZ #22051]
31781 * Makerules (build-module-helper-objlist): Filter out
31782 $(elf-objpfx)sofini.os.
31783 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31784 needed.
31785
5f0704b6
FW
317862017-08-31 Florian Weimer <fweimer@redhat.com>
31787
31788 * libio/fcloseall.c: Assume weak_alias is defined.
31789 * libio/feof.c: Likewise.
31790 * libio/fileno.c: Likewise.
31791 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31792 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31793 definitions.
31794 (_IO_file_open): Call __open directly.
31795 (_IO_new_file_sync): Assume ESPIPE is defined.
31796 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31797 (_IO_new_file_write): Call __write directly.
31798 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31799 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31800 * libio/genops.c: Assume _LIBC is defined.
31801 (save_for_backup): Remove internal_function.
31802 * libio/getc.c: Assume weak_alias is defined.
31803 * libio/getwc.c: Likewise.
31804 * libio/iofclose.c: Assume _LIBC is defined.
31805 * libio/iofdopen.c: Likewise.
31806 (_IO_fcntl): Remove macro definition.
31807 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31808 Call __fcntl directly.
31809 * libio/iofflush.c: Assume weak_alias is defined.
31810 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31811 defined.
31812 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31813 * libio/iofgets.c: Likewise.
31814 * libio/iofopen.c: Assume _LIBC is defined.
31815 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31816 * libio/iofputs.c: Assume weak_alias is defined.
31817 * libio/iofread.c: Likewise.
31818 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31819 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31820 * libio/ioftell.c: Assume weak_alias is defined.
31821 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31822 * libio/iofwide.c: Assume _LIBC is defined.
31823 (_IO_fwide): Drop SHARED conditional because it is implied by
31824 SHLIB_COMPAT.
31825 * libio/iofwrite.c: Assume weak_alias is defined.
31826 * libio/iogetdelim.c: Likewise.
31827 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31828 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31829 (_IO_getwline): Call __wmemcpy directly.
31830 * libio/iopopen.c: Assume _LIBC is defined.
31831 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31832 (_IO_close): Remove macro definitions.
31833 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31834 _exit directly.
31835 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31836 directly.
31837 * libio/ioputs.c: Assume weak_alias is defined.
31838 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31839 * libio/iosetbuffer.c: Assume weak_alias is defined.
31840 * libio/iosetvbuf.c: Likewise.
31841 * libio/ioungetc.c: Likewise.
31842 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31843 libc_hidden_def, libc_hidden_weak, NULL are defined.
31844 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31845 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31846 defined.
31847 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31848 definitions.
31849 (_IO_old_file_init_internal): Drop SHARED conditional because it
31850 is implied by SHLIB_COMPAT.
31851 (_IO_old_file_fopen): Call __open directly.
31852 (_IO_old_file_sync): Assume ESPIPE is defined.
31853 (_IO_old_file_write): Call __write directly.
31854 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31855 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31856 Call __fcntl directly.
31857 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31858 (_IO_old_fgetpos): Assume EIO is defined.
31859 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31860 (_IO_old_fgetpos64): Assume EIO is defined.
31861 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31862 (_IO_old_fsetpos): Assume EIO is defined.
31863 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31864 (_IO_old_fsetpos64): Assume EIO is defined.
31865 * libio/oldiopopen.c: Assume _LIBC is defined.
31866 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31867 (_IO_close): Remove macro definitions.
31868 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31869 directly.
31870 (_IO_old_proc_close): Call __close, __waitpid directly.
31871 * libio/put.c: Assume weak_alias is defined.
31872 * libio/stdfiles.c: Assume _LIBC is defined.
31873 * libio/stdio.c: Likewise.
31874 * libio/wfileops.c: Likewise.
31875 (_IO_wfile_sync): Assume ESPIPE is defined.
31876 * libio/wgenops.c: Assume _LIBC is defined.
31877 (save_for_wbackup): Remove internal_function.
31878
5129873a
FW
318792017-08-31 Florian Weimer <fweimer@redhat.com>
31880
31881 * malloc/malloc.c (top_check): Change return type to void. Remove
31882 internal_function.
31883 * malloc/hooks.c (top_check): Likewise.
31884 (malloc_check, realloc_check, memalign_check): Adjust.
31885
4fa9b3bf
JM
318862017-08-30 Joseph Myers <joseph@codesourcery.com>
31887
31888 [BZ #21457]
31889 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31890 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31891 sigcontext and namespace requirements.
31892 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31893 * sysdeps/m68k/sys/ucontext.h: Likewise.
31894 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31895 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31896 <bits/sigcontext.h>.
31897 (__ctx): Define earlier.
31898 (mcontext_t): Define structure contents rather than using struct
31899 sigcontext.
31900 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31901 __glibc_reserved1 instead of __reserved.
31902 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31903 <bits/sigcontext.h>.
31904 (__ctx): Define earlier.
31905 (mcontext_t): Define structure contents rather than using struct
31906 sigcontext.
31907 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31908 mcontext_t instead of struct sigcontext.
31909 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31910 <bits/sigcontext.h>.
31911 (__ctx): Define earlier.
31912 (mcontext_t): Define structure contents rather than using struct
31913 sigcontext.
31914 * sysdeps/unix/sysv/linux/hppa/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/ia64/makecontext.c (__makecontext): Use
31920 mcontext_t instead of struct sigcontext.
31921 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31922 mcontext_t instead of struct sigcontext.
31923 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31924 <bits/sigcontext.h>.
31925 (__ctx): New macro.
31926 (struct __ia64_fpreg_mcontext): New type.
31927 (mcontext_t): Define structure contents rather than using struct
31928 sigcontext.
31929 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31930 (uc_sigmask): Define using __ctx.
31931 (uc_stack): Likewise.
31932 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31933 <bits/sigcontext.h>.
31934 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31935 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31936 <bits/sigcontext.h>.
31937 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31938 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31939 <bits/sigcontext.h>.
31940 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31941 <bits/sigcontext.h>.
31942 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31943 <bits/sigcontext.h>.
31944 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31945 <bits/sigcontext.h>.
31946 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31947 <bits/sigcontext.h>.
31948 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31949 <bits/sigcontext.h>.
31950 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31951 <bits/sigcontext.h>.
31952 (__ctx): Define earlier.
31953 (mcontext_t): Define structure contents rather than using struct
31954 sigcontext.
31955 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31956 <bits/sigcontext.h>. Include <bits/types.h>.
31957 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31958 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31959 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31960 (test-xfail-UNIX98/signal.h/conform): Likewise.
31961 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31962 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31963 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31964 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31965 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31966 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31967 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31968 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31969 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31970
5898f454
FW
319712017-08-30 Florian Weimer <fweimer@redhat.com>
31972
31973 * malloc/dynarray_emplace_enlarge.c
31974 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31975 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31976 * malloc/tst-dynarray.c (test_long_overflow): New function.
31977 (do_test): Call it.
31978
a9da0bb2
FW
319792017-08-30 Florian Weimer <fweimer@redhat.com>
31980
31981 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31982 (set_arena_corrupt): Remove definitions.
31983 (mtrim): Do not check for corrupt arena.
31984 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31985 Likewise.
31986
ac3ed168
FW
319872017-08-30 Florian Weimer <fweimer@redhat.com>
31988
31989 [BZ #21754]
31990 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31991 check_action.
31992 (ptmalloc_init): Do not set or use check_action.
31993 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31994 call to malloc_printerr. Remove return statement.
31995 (free_check): Likewise. Remove arena unlock.
31996 (top_check): Update comment. Adjust call to malloc_printerr.
31997 Remove heap repair code.
31998 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31999 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32000 (sysmalloc): Adjust call to malloc_printerr.
32001 (munmap_chunk, __libc_realloc): Likewise. Remove return
32002 statement.
32003 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32004 Remove errout label and corresponding gotos.
32005 (_int_free): Likewise. Remove arena unlock.
32006 (do_set_mallopt_check): Do not set check_action.
32007 (malloc_printerr): Adjust parameter list. Do not mark arena as
32008 corrupt.
32009 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32010 comment.
32011 * manual/probes.texi (Memory Allocation Probes): Remove
32012 memory_mallopt_check_action.
32013
44bcba80
SE
320142017-08-30 Steve Ellcey <sellcey@cavium.com>
32015
32016 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32017 Use pointer to uint64_t instead of long int for sp.
32018
ec2c1fce
FW
320192017-08-30 Florian Weimer <fweimer@redhat.com>
32020
32021 [BZ #21754]
32022 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32023 without printing a backtrace. Do not leak any information in the
32024 error message.
32025 * manual/memory.texi (Heap Consistency Checking): Update.
32026 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32027
9ce673b6
FW
320282017-08-30 Florian Weimer <fweimer@redhat.com>
32029
32030 Do not scale NPTL tests with available number of CPUs.
32031 * nptl/tst-cond16.c (count): Set to constant value of 8.
32032 * nptl/tst-cond18.c (count): Likewise.
32033
2f1aef19
JM
320342017-08-29 Joseph Myers <joseph@codesourcery.com>
32035
32036 [BZ #22035]
32037 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32038 Define to take a second argument that is a macro that
32039 concatentates a suffix, not the suffix itself.
32040 (__CONCAT_d): New macro.
32041 (__CONCAT_f): Likewise.
32042 (__CONCAT_l): Likewise.
32043
8325b477
PP
320442017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32045
32046 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32047 by child.
32048
319cbbf6
AZ
320492017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32050 Aurelien Jarno <aurelien@aurel32.net>
32051 Maciej W. Rozycki <macro@imgtec.com>
32052
32053 [BZ #21956]
32054 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32055 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32056 `mips16-syscall6' and `mips16-syscall7'.
32057 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32058 (CFLAGS-mips16-syscall7.c): Remove.
32059 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32060 Remove `__mips16_syscall5', `__mips16_syscall6' and
32061 `__mips16_syscall7'.
32062 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32063 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32064 `__mips_syscall_return'.
32065 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32066 (__mips16_syscall1): Likewise.
32067 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32068 (__mips16_syscall2): Likewise.
32069 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32070 (__mips16_syscall3): Likewise.
32071 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32072 (__mips16_syscall4): Likewise.
32073 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32074 Remove.
32075 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32076 Remove.
32077 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32078 Remove.
32079 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32080 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32081 `__mips16_syscall5'. Remove prototype.
32082 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32083 `__mips16_syscall6'. Remove prototype.
32084 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32085 `__mips16_syscall7'. Remove prototype.
32086 (__nomips16, __mips16_syscall_return): Move to...
32087 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32088 (__nomips16, __mips_syscall_return): ... here.
32089 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32090 `__mips16_syscall_return' to `__mips_syscall_return'.
32091 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32092 `internal_syscall##nr'.
32093 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32094 `internal_syscall##nr'.
32095 (FORCE_FRAME_POINTER): Remove.
32096 (__mips_syscall5): New prototype.
32097 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32098 (__mips_syscall6): New prototype.
32099 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32100 (__mips_syscall7): New prototype.
32101 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32102 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32103 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32104 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32105 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32106 (sysdep_routines): Add libc-do-syscall.
32107 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32108 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32109
01b87c65
AZ
321102017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32111
32112 [BZ #21672]
32113 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32114 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32115 (advise_stack_range): New function.
32116 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32117 stack non required to advise_stack_range at allocatestack.c
32118
16f138a4
SN
321192017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32120
32121 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32122
251bccfa
FW
321232017-08-29 Florian Weimer <fweimer@redhat.com>
32124
32125 [BZ #22026]
32126 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32127 __end_fct. Mangle __end_fct after setting it to NULL.
32128 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32129 (modules-names, modules-names-tests): Add
32130 tst-gconv-init-failure-mod.
32131 (gconv-modules): New target.
32132 (tst-gconv-init-failure-mod.so): Link against libsupport.
32133 (tst-gconv-init-failure): Depend on gconv-modules,
32134 tst-gconv-init-failure-mod.so.
32135 * iconv/tst-gconv-init-failure-mod.c: New file.
32136 * iconv/tst-gconv-init-failure.c: Likewise.
32137 * iconv/test-gconv-modules: Likewise.
32138
e7c18b9d
FW
321392017-08-29 Florian Weimer <fweimer@redhat.com>
32140
32141 [BZ #22025]
32142 * iconv/gconv_db.c (free_derivation): Remove redundant
32143 parentheses.
32144 (gen_steps): Unconditionally mangle __btowc_fct after
32145 initialization.
32146 (increment_counter): Likewise. Do not call init_fct for internal
32147 modules.
32148
7daada03
JM
321492017-08-29 Joseph Myers <joseph@codesourcery.com>
32150
32151 [BZ #22028]
32152 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32153 (_MSUF_): Remove macro.
32154 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32155 Likewise.
32156 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32157 (__REDIRFROM_X): New macro.
32158 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32159 Likewise.
32160 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32161 (__REDIRTO_X): Likewise.
32162 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32163 arguments.
32164 (__MATH_REDIRCALL_2): Likewise.
32165 (__MATH_REDIRCALL_INTERNAL): Likewise.
32166 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32167 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32168 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32169 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32170 * math/test-finite-macros.c: New file.
32171 * math/Makefile (tests): Add test-finite-macros.
32172 (CFLAGS-test-finite-macros.c): New variable.
32173
1cf1232c
PF
321742017-08-29 Patsy Franklin <pfrankli@redhat.com>
32175 Jeff Law <law@redhat.com>
32176
32177 [BZ #22025]
32178 Mangle NULL pointers in iconv/gconv.
32179 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32180 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32181 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32182 is non-NULL before demangling the end_fct. Check for NULL
32183 end_fct after demangling.
32184 (__gconv_release_step): Demangle the end_fct before checking
32185 it for NULL. Remove assert on __shlibc_handle != NULL.
32186 (gen_steps): Don't check btowc_fct for NULL before mangling.
32187 Demangle init_fct before checking for NULL.
32188 (increment_counter): Likewise.
32189 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32190 end_fct for NULL before mangling.
32191 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32192 for NULL.
32193
c207f7ce 321942017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
f8de9568
AK
32195
32196 [BZ #21971]
32197 * locale/iso-639.def: add Morisyen.
32198
42496114
GG
321992017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32200
32201 [BZ #21930]
32202 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32203 (iszero): New C++ implementation that does not use
32204 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32205 signaling nans are enabled, since __builtin_types_compatible_p
32206 is a C-only feature.
32207 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32208 defined, include ieee754_float128.h for access to the union and
32209 member ieee854_float128.ieee.
32210 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32211 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32212 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32213 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32214 options of test-math-zero on powerpc64le.
32215
5e2bc4ff
L
322162017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32217
32218 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32219 Change double to float.
32220
a48c0fb4
JM
322212017-08-28 Joseph Myers <joseph@codesourcery.com>
32222
32223 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32224 unconditional.
32225 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32226 conditional code; define contents only for [LIBM_SVID_COMPAT].
32227
ee17d4e9
FW
322282017-08-28 Florian Weimer <fweimer@redhat.com>
32229
32230 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32231 (abi-lp64_be-options): Remove.
32232 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32233 (abi-hard-options): Likewise.
32234 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32235 (abi-o32_hard-options, abi-o32_soft_2008-options)
32236 (abi-o32_hard_2008-options, abi-n32_soft-options)
32237 (abi-n32_hard-options, abi-n32_soft_2008-options)
32238 (abi-n32_hard_2008-options, abi-n64_soft-options)
32239 (abi-n64_hard-options, abi-n64_soft_2008-options)
32240 (abi-n64_hard_2008-options): Likewise.
32241 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32242 (abi-64-v1-options, abi-64-v2-options): Likewise.
32243 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32244 (abi-64-options): Likewise.
32245 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32246 (abi-64-options): Likewise.
32247 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32248 (abi-64-options): Likewise.
32249 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32250 (abi-64-options, abi-x32-options): Likewise.
32251
2dba5ce7
FW
322522017-08-28 Florian Weimer <fweimer@redhat.com>
32253
32254 Store supported list of SYS_* system calls in the source tree.
32255 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32256 (bits/syscall.h): Generate from list file.
32257 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32258 [$(subdir) = misc] (tests): Add tst-syscall-list.
32259 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32260 [$(subdir) = misc] (tst-syscall-list-macros.list)
32261 [$(subdir) = misc] (tst-syscall-list-nr.list)
32262 (tst-syscall-list-sys.list): Helper targets for new
32263 tst-syscall-list test.
32264 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32265 tst-syscall-list.sh.
32266 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32267 target. Do not include bits/syscall.d.
32268 [$(subdir) = misc] (generated): Do not update.
32269 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32270 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32271 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32272 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32273
5f3b183d
PP
322742017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32275
32276 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32277 (tst-cxa_atexit, tst-on_exit): Likewise.
32278 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32279 tst-cxa_atexit, and tst-on_exit.
32280 * stdlib/tst-atexit-common.c: New file.
32281 * stdlib/tst-atexit.c: New file.
32282 * stdlib/tst-at_quick_exit.c: New file.
32283 * stdlib/tst-cxa_atexit.c: New file.
32284 * stdlib/tst-on_exit.c: New file.
32285
2ef8d469
ST
322862017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32287
32288 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
32289 * mach/stack_chk_fail_local.c: New file.
32290 * hurd/stack_chk_fail_local.c: New file.
32291 * mach/Machrules ($(interface-library)-routines): Add
32292 stack_chk_fail_local.
99ee4d26
ST
32293 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32294 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32295 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32296 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32297 * hurd/Makefile (CFLAGS-hurdstartup.o,
32298 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 32299
7ab70c98
L
323002017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32301
32302 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32303 (index_cpu_*, index_arch_*): Removed.
32304
39e7a5a6
SN
323052017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32306
32307 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32308 Use uint64_t instead of unsigned long.
32309
bba5c930
JM
323102017-08-25 Joseph Myers <joseph@codesourcery.com>
32311
a6ccdb08
JM
32312 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32313 [__HAVE_DISTINCT_FLOAT128].
32314
23761119
JM
32315 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32316 of <bits/math-finite.h>.
32317 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32318 inclusion of <bits/math-finite.h>.
32319 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32320 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32321 __NO_LONG_DOUBLE_MATH].
32322 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32323 (__MATH_REDIRCALL_2): Likewise.
32324 (__MATH_REDIRCALL_INTERNAL): Likewise.
32325 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32326 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32327 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32328
bba5c930
JM
32329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32330 Remove file.
32331 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32332 Likewise.
32333 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32334 Likewise.
32335 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32336 Likewise.
32337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32338 Likewise.
32339 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32340 Likewise.
32341 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32342 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32343 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32344 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32346 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32347 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32348 w_sqrtf_compat-ppc32.
32349
3d7b66f6
GG
323502017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32351
32352 * math/math.h [defined __cplusplus] (issignaling): In the long
32353 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32354 is not defined. Call __issignaling, otherwise.
32355
ebd6f007
AZ
323562017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32357
32358 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32359 syscall definitions and replace __builtin_expect with __glibc_likely.
32360 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32361 syscall.
6b5c8607 32362 (SYSCALL_CANCELLABLE): Removedefinition
ebd6f007
AZ
32363 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32364 definition.
32365 (PSEUDO_END): Likewise.
32366 [IS_IN (libpthread)] (CENABLE): Likewise.
32367 [IS_IN (libpthread)] (CDISABLE): Likewise.
32368 [IS_IN (libc)] (CENABLE): Likewise.
32369 [IS_IN (libc)] (CENABLE): Likewise.
32370 [IS_IN (librt)] (CDISABLE): Likewise.
32371 [IS_IN (librt)] (CDISABLE): Likewise.
32372 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32373 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32374 definition.
32375 (PSEUDO_END): Likewise.
32376 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32377 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32378 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32379 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32380 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32381 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32382 (CENABLE): Likewise.
32383 (CDISABLE): Likewise.
32384 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32385 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32386 defintion.
32387 (PSEUDO_END): Likewise.
32388 [IS_IN (libpthread)] (CENABLE): Likewise.
32389 [IS_IN (libpthread)] (CDISABLE): Likewise.
32390 [IS_IN (libc)] (CENABLE): Likewise.
32391 [IS_IN (libc)] (CENABLE): Likewise.
32392 [IS_IN (librt)] (CDISABLE): Likewise.
32393 [IS_IN (librt)] (CDISABLE): Likewise.
32394 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32395 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32396 definition.
32397 (PSEUDO_END): Likewise.
32398 [IS_IN (libpthread)] (CENABLE): Likewise.
32399 [IS_IN (libpthread)] (CDISABLE): Likewise.
32400 [IS_IN (libc)] (CENABLE): Likewise.
32401 [IS_IN (libc)] (CENABLE): Likewise.
32402 [IS_IN (librt)] (CDISABLE): Likewise.
32403 [IS_IN (librt)] (CDISABLE): Likewise.
32404 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32405 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32406 definition.
32407 (PSEUDO_END): Likewise.
32408 [IS_IN (libpthread)] (CENABLE): Likewise.
32409 [IS_IN (libpthread)] (CDISABLE): Likewise.
32410 [IS_IN (libc)] (CENABLE): Likewise.
32411 [IS_IN (libc)] (CENABLE): Likewise.
32412 [IS_IN (librt)] (CDISABLE): Likewise.
32413 [IS_IN (librt)] (CDISABLE): Likewise.
32414 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32415 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32416 definition.
32417 (PSEUDO_END): Likewise.
32418 [IS_IN (libpthread)] (CENABLE): Likewise.
32419 [IS_IN (libpthread)] (CDISABLE): Likewise.
32420 [IS_IN (libc)] (CENABLE): Likewise.
32421 [IS_IN (libc)] (CENABLE): Likewise.
32422 [IS_IN (librt)] (CDISABLE): Likewise.
32423 [IS_IN (librt)] (CDISABLE): Likewise.
32424 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32425 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32426 definition.
32427 (PSEUDO_END): Likewise.
32428 [IS_IN (libpthread)] (CENABLE): Likewise.
32429 [IS_IN (libpthread)] (CDISABLE): Likewise.
32430 [IS_IN (libc)] (CENABLE): Likewise.
32431 [IS_IN (libc)] (CENABLE): Likewise.
32432 [IS_IN (librt)] (CDISABLE): Likewise.
32433 [IS_IN (librt)] (CDISABLE): Likewise.
32434 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32435 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32436 definition.
32437 (PSEUDO_END): Likewise.
32438 [IS_IN (libpthread)] (CENABLE): Likewise.
32439 [IS_IN (libpthread)] (CDISABLE): Likewise.
32440 [IS_IN (libc)] (CENABLE): Likewise.
32441 [IS_IN (libc)] (CENABLE): Likewise.
32442 [IS_IN (librt)] (CDISABLE): Likewise.
32443 [IS_IN (librt)] (CDISABLE): Likewise.
32444 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32445 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32446 Remove definition.
32447 (PSEUDO_END): Likewise.
32448 [IS_IN (libpthread)] (CENABLE): Likewise.
32449 [IS_IN (libpthread)] (CDISABLE): Likewise.
32450 [IS_IN (libc)] (CENABLE): Likewise.
32451 [IS_IN (libc)] (CENABLE): Likewise.
32452 [IS_IN (librt)] (CDISABLE): Likewise.
32453 [IS_IN (librt)] (CDISABLE): Likewise.
32454 (SINGLE_THREAD_P): Likewise.
32455 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32456 definition.
32457 (PSEUDO_END): Likewise.
32458 [IS_IN (libpthread)] (CENABLE): Likewise.
32459 [IS_IN (libpthread)] (CDISABLE): Likewise.
32460 [IS_IN (libc)] (CENABLE): Likewise.
32461 [IS_IN (libc)] (CENABLE): Likewise.
32462 [IS_IN (librt)] (CDISABLE): Likewise.
32463 [IS_IN (librt)] (CDISABLE): Likewise.
32464 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32465 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32466 definition.
32467 (PSEUDO_END): Likewise.
32468 [IS_IN (libpthread)] (CENABLE): Likewise.
32469 [IS_IN (libpthread)] (CDISABLE): Likewise.
32470 [IS_IN (libc)] (CENABLE): Likewise.
32471 [IS_IN (libc)] (CENABLE): Likewise.
32472 [IS_IN (librt)] (CDISABLE): Likewise.
32473 [IS_IN (librt)] (CDISABLE): Likewise.
32474 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32475 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32476 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32477 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32478 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32479 definition.
32480 (PSEUDO_END): Likewise.
32481 [IS_IN (libpthread)] (CENABLE): Likewise.
32482 [IS_IN (libpthread)] (CDISABLE): Likewise.
32483 [IS_IN (libc)] (CENABLE): Likewise.
32484 [IS_IN (libc)] (CENABLE): Likewise.
32485 [IS_IN (librt)] (CDISABLE): Likewise.
32486 [IS_IN (librt)] (CDISABLE): Likewise.
32487 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32488 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32489 definition.
32490 (PSEUDO_END): Likewise.
32491 [IS_IN (libpthread)] (CENABLE): Likewise.
32492 [IS_IN (libpthread)] (CDISABLE): Likewise.
32493 [IS_IN (libc)] (CENABLE): Likewise.
32494 [IS_IN (libc)] (CENABLE): Likewise.
32495 [IS_IN (librt)] (CDISABLE): Likewise.
32496 [IS_IN (librt)] (CDISABLE): Likewise.
32497 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32498 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32499 definition.
32500 (PSEUDO_END): Likewise.
32501 [IS_IN (libpthread)] (CENABLE): Likewise.
32502 [IS_IN (libpthread)] (CDISABLE): Likewise.
32503 [IS_IN (libc)] (CENABLE): Likewise.
32504 [IS_IN (libc)] (CENABLE): Likewise.
32505 [IS_IN (librt)] (CDISABLE): Likewise.
32506 [IS_IN (librt)] (CDISABLE): Likewise.
32507 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32508 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32509 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32510 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32511 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32512 definition.
32513 (PSEUDO_END): Likewise.
32514 [IS_IN (libpthread)] (CENABLE): Likewise.
32515 [IS_IN (libpthread)] (CDISABLE): Likewise.
32516 [IS_IN (libc)] (CENABLE): Likewise.
32517 [IS_IN (libc)] (CENABLE): Likewise.
32518 [IS_IN (librt)] (CDISABLE): Likewise.
32519 [IS_IN (librt)] (CDISABLE): Likewise.
32520 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32521 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32522 definition.
32523 (PSEUDO_END): Likewise.
32524 [IS_IN (libpthread)] (CENABLE): Likewise.
32525 [IS_IN (libpthread)] (CDISABLE): Likewise.
32526 [IS_IN (libc)] (CENABLE): Likewise.
32527 [IS_IN (libc)] (CENABLE): Likewise.
32528 [IS_IN (librt)] (CDISABLE): Likewise.
32529 [IS_IN (librt)] (CDISABLE): Likewise.
32530 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32531
8aa48656
SN
325322017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32533
32534 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32535
fcaaca41
L
325362017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32537
32538 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32539
376b40a2
L
325402017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32541
32542 [BZ #21982]
32543 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32544 middle and outer with size_t instead of int. Repleace %d and
32545 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32546 "MAX (outer, nchars - 64)" to support unsigned outer and
32547 nchars. Also exit loop when outer == 0.
32548
2b0b9a1c
AZ
325492017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32550
32551 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32552 * include/signal.h (__sigsuspend_nocancel): Likewise.
32553 * include/time.h (__nanosleep_nocancel): Likewise.
32554 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32555 * login/utmp_file.c: Include non cancellable syscall header.
32556 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32557 prototype.
32558
b9eaca8f
L
325592017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32560
32561 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32562 .byte sequences with AVX512F instructions.
32563 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32564 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32565 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32566 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32567 Likewise.
32568 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32569 Likewise.
32570
5a706f64
SE
325712017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32572 Steve Ellcey <sellcey@cavium.com>
32573
32574 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32575 Use PTR_REG macro in cmp instruction.
32576
b513da7e
GG
325772017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32578
32579 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32580 Change the return type of the ifunc resolver to match the return
32581 type of the target function.
32582
78ca091c
AZ
325832017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32584
b70b6026
AZ
32585 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32586 (preadv64): Likewise.
32587 (pwrite64(: Likewise.
32588 (pwritev64): Likewise.
32589
78ca091c
AZ
32590 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32591 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32592 (LOAD_ARGS_0): Likewise.
32593 (LOAD_ARGS_1): Likewise.
32594 (LOAD_ARGS_2): Likewise.
32595 (LOAD_ARGS_3): Likewise.
32596 (LOAD_ARGS_4): Likewise.
32597 (LOAD_ARGS_5): Likewise.
32598 (LOAD_ARGS_6): Likewise.
32599 (LOAD_REGS_0): Likewise.
32600 (LOAD_REGS_1): Likewise.
32601 (LOAD_REGS_2): Likewise.
32602 (LOAD_REGS_3): Likewise.
32603 (LOAD_REGS_4): Likewise.
32604 (LOAD_REGS_5): Likewise.
32605 (LOAD_REGS_6): Likewise.
32606 (ASM_ARGS_0): Likewise.
32607 (ASM_ARGS_1): Likewise.
32608 (ASM_ARGS_2): Likewise.
32609 (ASM_ARGS_3): Likewise.
32610 (ASM_ARGS_4): Likewise.
32611 (ASM_ARGS_5): Likewise.
32612 (ASM_ARGS_6): Likewise.
32613 (LOAD_ARGS_TYPES_1): Likewise.
32614 (LOAD_ARGS_TYPES_2): Likewise.
32615 (LOAD_ARGS_TYPES_3): Likewise.
32616 (LOAD_ARGS_TYPES_4): Likewise.
32617 (LOAD_ARGS_TYPES_5): Likewise.
32618 (LOAD_ARGS_TYPES_6): Likewise.
32619 (LOAD_REGS_TYPES_1): Likewise.
32620 (LOAD_REGS_TYPES_2): Likewise.
32621 (LOAD_REGS_TYPES_3): Likewise.
32622 (LOAD_REGS_TYPES_4): Likewise.
32623 (LOAD_REGS_TYPES_5): Likewise.
32624 (LOAD_REGS_TYPES_6): Likewise.
32625 (TYPEFY): New define.
32626 (ARGIFY): Likewise.
32627 (internal_syscall0): Likewise.
32628 (internal_syscall1): Likewise.
32629 (internal_syscall2): Likewise.
32630 (internal_syscall3): Likewise.
32631 (internal_syscall4): Likewise.
32632 (internal_syscall5): Likewise.
32633 (internal_syscall6): Likewise.
32634 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32635 (INTERNAL_SYSCALL_NCS): Remove define.
32636 (internal_syscall1): Add define.
32637
453a493d
GG
326382017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32639
32640 * math/w_remainder_compat.c: Remove duplicate inclusion of
32641 math-svid-compat.h.
32642 * math/w_remainderf_compat.c: Likewise.
32643 * math/w_remainderl_compat.c: Likewise.
32644
f2f048a5
GG
326452017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32646
32647 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32648
d9bef9c0
JM
326492017-08-22 Joseph Myers <joseph@codesourcery.com>
32650
32651 [BZ #21684]
32652 * math/tgmath.h (__floating_type): Simplify definitions.
32653 (__real_integer_type): New macro.
32654 (__complex_integer_type): Likewise.
32655 (__expr_is_real): Likewise.
32656 (__tgmath_real_type_sub): Update comment to describe handling of
32657 complex types.
32658 (__tgmath_complex_type_sub): New macro.
32659 (__tgmath_complex_type): Likewise.
32660 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32661 (__TGMATH_CF128): Use __expr_is_real.
32662 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32663 __expr_is_real.
32664 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32665 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32666 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32667 integer types.
32668
08d6eb46
AZ
326692017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32670
988f991b
AZ
32671 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32672 macro.
32673 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32674 alias.
32675 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32676 Likewise.
32677
6f33fd04
AZ
32678 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32679 nanosleep_not_cancel with __nanosleep_nocancel.
32680 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32681 (__nanosleep_nocancel): New macro.
32682 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32683 function.
32684 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32685 macro.
32686 (__nanosleep_nocancel): New prototype.
32687
08d6eb46
AZ
32688 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32689 pause_not_cancel with __pause_nocancel.
32690 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32691 (__pause_nocancel): New macro.
32692 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32693 macro.
32694 (__pause_nocancel): New prototype.
32695 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32696
ee4e992e
MS
326972017-08-22 Martin Sebor <msebor@redhat.com>
32698
32699 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32700 to return a pointer to the same type as the target function.
32701
20962acb
L
327022017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32703
32704 [BZ #18822]
32705 [BZ #21986]
32706 * include/printf.h (__printf_fphex): Add attribute_hidden.
32707 (__guess_grouping): New prototype.
32708 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32709 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32710 libc_hidden_proto and libc_hidden_def.
32711 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32712 (__vstrfmon_l): Remove the third argument passed to
32713 __guess_grouping.
32714
a16e8bc0
GG
327152017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32716
32717 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32718 definition for issignaling that does not rely on __MATH_TG,
32719 since __MATH_TG uses __builtin_types_compatible_p, which is only
32720 available in C mode.
32721 (CFLAGS-test-math-issignaling.cc): New variable.
32722 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32723 * math/test-math-issignaling.cc: New test for C++ implementation
32724 of type-generic issignaling.
32725 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32726 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32727 options of test-math-issignaling on powerpc64le.
32728
8d2ec553
L
327292017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32730
32731 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32732 building libc.a.
32733 (hidden_proto): Likewise.
32734 (hidden_tls_proto): Likewise.
32735 (__hidden_proto): Likewise.
32736
a4d57b79
FW
327372017-08-22 Florian Weimer <fweimer@redhat.com>
32738
32739 math: Statically link tests of internal functionality.
32740 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32741 atest-exp2.
32742 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32743 (gmp-objs): Remove assignment.
32744 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32745
75dfe623
JM
327462017-08-22 Joseph Myers <joseph@codesourcery.com>
32747
80f91666
JM
32748 [BZ #21987]
32749 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32750 and copy to ...
32751 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32752 ... here.
32753 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32754 ... and here.
32755
75dfe623
JM
32756 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32757 variable definitions above inclusion of ../Rules.
32758
ea99fcd0
JM
327592017-08-21 Joseph Myers <joseph@codesourcery.com>
32760
32761 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32762 case calling __builtin_unreachable.
32763
19926de9
AZ
327642017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32765
a8410a5f
AZ
32766 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32767 __waitpid_nocancel.
32768 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32769 (__waitpid_nocancel): New macro.
32770 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32771 macro.
32772 (__waitpid_nocancel): Replace macro with a function.
32773 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32774 function.
32775
7369800c
AZ
32776 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32777 __fcntl_nocancel.
32778 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32779 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32780
19926de9
AZ
32781 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32782 __writev_nocancel_nostatus.
32783 (write_call_graph): Likewise.
32784 (write_bb_counts): Likewise.
32785 * resolv/herror.c (herror): Likewise.
32786 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32787 macro.
32788 (__writev_nocancel_nostatus): New macro.
32789 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32790 Remove macro.
32791 (__writev_nocancel_nostatus): New function.
32792
813378e9
JM
327932017-08-21 Joseph Myers <joseph@codesourcery.com>
32794
df1deda6
JM
32795 Revert:
32796 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32797
32798 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32799 building libc.a.
32800 (hidden_proto): Likewise.
32801 (hidden_tls_proto): Likewise.
32802 (__hidden_proto): Likewise.
32803
831bbd55
JM
32804 [BZ #21973]
32805 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32806 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32807 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32808 Likewise.
32809 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32810 Likewise.
32811 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32812 Likewise.
32813 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32814 Likewise.
32815 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32816 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32817 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32818 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32819 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32820 GLIBC_2.0 sqrtl symbol.
32821
813378e9
JM
32822 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32823 [__USE_MISC] (_LIB_VERSION): Likewise.
32824 [__USE_MISC] (struct exception): Likewise.
32825 [__USE_MISC] (matherr): Likewise.
32826 [__USE_MISC] (DOMAIN): Likewise.
32827 [__USE_MISC] (SING): Likewise.
32828 [__USE_MISC] (OVERFLOW): Likewise.
32829 [__USE_MISC] (UNDERFLOW): Likewise.
32830 [__USE_MISC] (TLOSS): Likewise.
32831 [__USE_MISC] (PLOSS): Likewise.
32832 [__USE_MISC] (HUGE): Likewise.
32833 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32834 * math/math-svid-compat.h: New file.
32835 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32836 and matherrl.
32837 * include/math.h [!_ISOMAC] (__matherr): Remove.
32838 * manual/arith.texi (FP Exceptions): Do not document matherr.
32839 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32840 (tests-internal): New variable.
32841 (install-lib): Do not add libieee.a.
32842 (non-lib.a): Likewise.
32843 (extra-objs): Do not add libieee.a and ieee-math.o.
32844 (CPPFLAGS-s_lib_version.c): Remove variable.
32845 ($(objpfx)libieee.a): Remove rule.
32846 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32847 * math/ieee-math.c: Remove.
32848 * math/libm-test-support.c (matherr): Remove.
32849 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32850 and license notices. Include <math-svid-compat.h> and
32851 <shlib-compat.h>.
32852 (matherr): Undefine as macro. Use compat_symbol_reference.
32853 (_LIB_VERSION): Likewise.
32854 * math/test-matherr-2.c: New file.
32855 * math/test-matherr-3.c: Likewise.
32856 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32857 declaration.
32858 (__kernel_standard_f): Likewise.
32859 (__kernel_standard_l): Likewise.
32860 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32861 <math_private.h>. Include <math-svid-compat.h>.
32862 (_LIB_VERSION): Undefine as macro.
32863 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32864 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32865 [LIBM_SVID_COMPAT], use compat_symbol.
32866 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32867 <math_private.h>. Include <math-svid-compat.h>.
32868 (matherr): Undefine as macro.
32869 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32870 compat_symbol.
32871 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32872 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32873 compat_symbol_reference.
32874 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32875 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32876 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32877 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32878 (MATHERR_D): Remove declaration.
32879 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32880 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32881 [LIBM_BUILD] (pmatherrf): Likewise.
32882 [LIBM_BUILD] (pmatherr): Likewise.
32883 [LIBM_BUILD] (pmatherrl): Likewise.
32884 (DOMAIN): Likewise.
32885 (SING): Likewise.
32886 (OVERFLOW): Likewise.
32887 (UNDERFLOW): Likewise.
32888 (TLOSS): Likewise.
32889 (PLOSS): Likewise.
32890 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32891 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32892 compat_symbol.
32893 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32894 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32895 compat_symbol.
32896 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32897 * math/w_acos_compat.c: Likewise.
32898 * math/w_acosf_compat.c: Likewise.
32899 * math/w_acosh_compat.c: Likewise.
32900 * math/w_acoshf_compat.c: Likewise.
32901 * math/w_acoshl_compat.c: Likewise.
32902 * math/w_acosl_compat.c: Likewise.
32903 * math/w_asin_compat.c: Likewise.
32904 * math/w_asinf_compat.c: Likewise.
32905 * math/w_asinl_compat.c: Likewise.
32906 * math/w_atan2_compat.c: Likewise.
32907 * math/w_atan2f_compat.c: Likewise.
32908 * math/w_atan2l_compat.c: Likewise.
32909 * math/w_atanh_compat.c: Likewise.
32910 * math/w_atanhf_compat.c: Likewise.
32911 * math/w_atanhl_compat.c: Likewise.
32912 * math/w_cosh_compat.c: Likewise.
32913 * math/w_coshf_compat.c: Likewise.
32914 * math/w_coshl_compat.c: Likewise.
32915 * math/w_exp10_compat.c: Likewise.
32916 * math/w_exp10f_compat.c: Likewise.
32917 * math/w_exp10l_compat.c: Likewise.
32918 * math/w_exp2_compat.c: Likewise.
32919 * math/w_exp2f_compat.c: Likewise.
32920 * math/w_exp2l_compat.c: Likewise.
32921 * math/w_fmod_compat.c: Likewise.
32922 * math/w_fmodf_compat.c: Likewise.
32923 * math/w_fmodl_compat.c: Likewise.
32924 * math/w_hypot_compat.c: Likewise.
32925 * math/w_hypotf_compat.c: Likewise.
32926 * math/w_hypotl_compat.c: Likewise.
32927 * math/w_j0_compat.c: Likewise.
32928 * math/w_j0f_compat.c: Likewise.
32929 * math/w_j0l_compat.c: Likewise.
32930 * math/w_j1_compat.c: Likewise.
32931 * math/w_j1f_compat.c: Likewise.
32932 * math/w_j1l_compat.c: Likewise.
32933 * math/w_jn_compat.c: Likewise.
32934 * math/w_jnf_compat.c: Likewise.
32935 * math/w_jnl_compat.c: Likewise.
32936 * math/w_lgamma_main.c: Likewise.
32937 * math/w_lgamma_r_compat.c: Likewise.
32938 * math/w_lgammaf_main.c: Likewise.
32939 * math/w_lgammaf_r_compat.c: Likewise.
32940 * math/w_lgammal_main.c: Likewise.
32941 * math/w_lgammal_r_compat.c: Likewise.
32942 * math/w_log10_compat.c: Likewise.
32943 * math/w_log10f_compat.c: Likewise.
32944 * math/w_log10l_compat.c: Likewise.
32945 * math/w_log2_compat.c: Likewise.
32946 * math/w_log2f_compat.c: Likewise.
32947 * math/w_log2l_compat.c: Likewise.
32948 * math/w_log_compat.c: Likewise.
32949 * math/w_logf_compat.c: Likewise.
32950 * math/w_logl_compat.c: Likewise.
32951 * math/w_pow_compat.c: Likewise.
32952 * math/w_powf_compat.c: Likewise.
32953 * math/w_powl_compat.c: Likewise.
32954 * math/w_remainder_compat.c: Likewise.
32955 * math/w_remainderf_compat.c: Likewise.
32956 * math/w_remainderl_compat.c: Likewise.
32957 * math/w_scalb_compat.c: Likewise.
32958 * math/w_scalbf_compat.c: Likewise.
32959 * math/w_scalbl_compat.c: Likewise.
32960 * math/w_sinh_compat.c: Likewise.
32961 * math/w_sinhf_compat.c: Likewise.
32962 * math/w_sinhl_compat.c: Likewise.
32963 * math/w_sqrt_compat.c: Likewise.
32964 * math/w_sqrtf_compat.c: Likewise.
32965 * math/w_sqrtl_compat.c: Likewise.
32966 * math/w_tgamma_compat.c: Likewise.
32967 * math/w_tgammaf_compat.c: Likewise.
32968 * math/w_tgammal_compat.c: Likewise.
32969 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32970 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32971 * sysdeps/ieee754/k_standard.c: Likewise.
32972 * sysdeps/ieee754/k_standardf.c: Likewise.
32973 * sysdeps/ieee754/k_standardl.c: Likewise.
32974 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32975 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32976 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32977 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32978 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32979 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32980 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32981 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32982 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32984 Likewise.
32985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32986 Likewise.
32987 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32988 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32989 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32990 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32991
4504783c
FW
329922017-08-21 Florian Weimer <fweimer@redhat.com>
32993
32994 [BZ #21864]
32995 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32996 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32997 Move before inclusion of ../Rules.
32998
b5889d25
FW
329992017-08-21 Florian Weimer <fweimer@redhat.com>
33000
33001 [BZ #21972]
33002 * assert/assert.h (assert): Use static_cast (bool) for C++.
33003 Use the ternary operator in the warning branch for GNU C.
33004 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33005 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33006 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33007 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33008 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33009
41e673c1
L
330102017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33011
33012 [BZ #18822]
33013 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33014 (__syscall_clock_gettime): Add attribute_hidden.
33015 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33016 (__start_context): Likewise.
33017
568ff429
L
330182017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33019
33020 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33021 building libc.a.
33022 (hidden_proto): Likewise.
33023 (hidden_tls_proto): Likewise.
33024 (__hidden_proto): Likewise.
33025
7c41b4a1
L
330262017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33027
33028 * include/libc-symbols.h (attribute_hidden): Enable hidden
33029 visibility in libc.a compiled with PIE.
33030
483d7068
L
330312017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33032
33033 [BZ #18822]
33034 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33035 Add attribute_hidden.
33036
330372017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33038
33039 [BZ #21864]
33040 * Makerules (all-nonlib): Add $(others-extras).
33041 * catgets/Makefile (others-extras): New.
33042 * elf/Makefile (others-extras): Likewise.
33043 * nss/Makefile (others-extras): Likewise.
33044
54e4b8f2
L
330452017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33046
33047 [BZ #18822]
33048 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33049 * elf/dl-open.c: Include <libc-internal.h>.
33050 (__libc_multiple_libcs): Removed.
33051 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33052 <hp-timing.h>.
33053 * include/libc-internal.h (__libc_multiple_libcs): New.
33054 * misc/sbrk.c: Include <libc-internal.h>.
33055 (__libc_multiple_libcs): Removed.
33056
1dbbb1ec
L
330572017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33058
33059 [BZ #18822]
33060 * grp/initgroups.c (__nss_group_database): Removed.
33061 (__nss_initgroups_database): Likewise.
33062 * nscd/gai.c (__nss_hosts_database): Likewise.
33063 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33064 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33065 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33066 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33067 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33068 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33069 attribute_hidden.
33070 * nss/nsswitch.c (__nss_database_custom): Define only if
33071 USE_NSCD is defined.
33072 (__nss_configure_lookup): Use __nss_database_custom only if
33073 USE_NSCD is defined.
33074 * nss/nsswitch.h (__nss_database_custom): Declare only if
33075 USE_NSCD is defined. Add attribute_hidden.
33076 (__nss_setent): Add attribute_hidden.
33077 (__nss_endent): Likewise.
33078 (__nss_getent_r): Likewise.
33079 (__nss_getent): Likewise.
33080 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33081
2585d7b8
L
330822017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33083
33084 [BZ #18822]
33085 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33086 libc_hidden_proto and libc_hidden_def.
33087
c8dfa99c
L
330882017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33089
33090 [BZ #18822]
33091 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33092 Add libc_hidden_proto.
33093 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33094 Add libc_hidden_def.
33095
7ed87317
L
330962017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33097
33098 [BZ #21974]
33099 * gmon/Makefile (routines): Remove bb_init_func and
33100 bb_exit_func.
33101 (elide-routines.os): Removed.
9476b904
L
33102 * gmon/bb_exit_func.c: Likewise.
33103 * gmon/bb_init_func.c: Likewise.
7ed87317
L
33104 * include/sys/gmon.h (__bb): Likewise.
33105 (__bb_init_func): Likewise.
33106 (__bb_exit_func): Likewise.
91695eb1 33107 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 33108
94e6ba15
L
331092017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33110
33111 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33112 * include/setjmp.h (____longjmp_chk): Here. Add
33113 attribute_hidden.
33114
7550717e
L
331152017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33116
33117 [BZ #18822]
33118 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33119 attribute_hidden.
33120 (__strspn_sse2): Likewise.
33121
0bb2fabc
AZ
331222017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33123
c181840c
AZ
33124 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33125 (close_not_cancel_no_status): Likewise.
33126 (__close_nocancel): New macro.
33127 (__close_nocancel_nostatus): Likewise.
33128 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33129 macro.
33130 (close_not_cancel): Likewise.
33131 (close_not_cancel_no_status): Likewise.
33132 (__close_nocancel): New prototype.
33133 (__close_nocancel_nostatus): New function.
33134 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33135 * catgets/open_catalog.c (__open_catalog): Replace
33136 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33137 * gmon/gmon.c (write_gmon): Likewise.
33138 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33139 * intl/loadmsgcat.c (close): Likewise.
33140 * io/ftw.c (open_dir_stream): Likewise.
33141 (ftw_startup): Likewise.
33142 * libio/fileops.c (_IO_file_open): Likewise.
33143 (_IO_file_close_mmap): Likewise.
33144 (_IO_file_close): Likewise.
33145 * libio/iopopen.c (_IO_dup2): Likewise.
33146 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33147 * locale/loadlocale.c (_nl_load_locale): Likewise.
33148 * login/utmp_file.c (pututline_file): Likewise.
33149 (endutent_file): Likewise.
33150 * misc/daemon.c (daemon): Likewise.
33151 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33152 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33153 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33154 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33155 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33156 * nscd/nscd_helper.c (open_socket): Likewise.
33157 (__nscd_open_socket): Likewise.
33158 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33159 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33160 (__nscd_innetgr): Likewise.
33161 * nss/nss_db/db-open.c (internal_setent): Likewise.
33162 * resolv/res-close.c (__res_iclose): Likewise.
33163 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33164 * sysdeps/posix/closedir.c (__closedir): Likewise.
33165 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33166 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33167 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33168 (opendir_tail): Likewise.
33169 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33170 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33171 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33172 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33173 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33174 (gethostid): Likewise.
33175 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33176 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33177 Likewise.
33178 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33179 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33180 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33181 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33182 Likewise.
33183 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33184 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33185 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33186 Likewise.
33187 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33188 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33189 Likewise.
33190 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33191 Likewise.
33192 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33193 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33194 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33195 __close_nocancel.
33196
0bb2fabc
AZ
33197 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33198 (openat_not_cancel_3): Likewise.
33199 (openat64_not_cancel_3): Likewise).
33200 (openat_not_cancel_3): Likewise).
33201 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33202 macro.
33203 (openat_not_cancel_3): Likewise.
33204 (openat64_not_cancel): Likewise.
33205 (openat64_not_cancel_3): Likewise.
33206 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33207 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33208 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33209 __open{64}_nocancel.
33210 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33211 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33212 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33213
65a086db
L
332142017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33215
33216 [BZ #18822]
33217 * include/argz.h (__argz_create_sep): New function prototype.
33218 (__argz_append): Likewise.
33219 (__argz_add): Likewise.
33220 (__argz_add_sep): Likewise.
33221 (__argz_delete): Likewise.
33222 (__argz_insert): Likewise.
33223 (__argz_replace): Likewise.
33224 * string/argz.h (__argz_create_sep): Removed.
33225 (__argz_append): Likewise.
33226 (__argz_add): Likewise.
33227 (__argz_add_sep): Likewise.
33228 (__argz_delete): Likewise.
33229 (__argz_insert): Likewise.
33230 (__argz_replace): Likewise.
33231
62753d2c
L
332322017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33233
33234 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33235 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33236 (GNU_PROPERTY_STACK_SIZE): Likewie.
33237 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33238 (GNU_PROPERTY_LOPROC): Likewise.
33239 (GNU_PROPERTY_HIPROC): Likewise.
33240 (GNU_PROPERTY_LOUSER): Likewise.
33241 (GNU_PROPERTY_HIUSER): Likewise.
33242 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33243 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33244 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33245 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33246 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33247 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33248 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33249 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33250 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33251 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33252 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33253 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33254 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33255 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33256 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33257 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33258 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33259 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33260 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33261 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33262 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33263 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33264 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33265
6913ad65
GG
332662017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33267
33268 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33269 in C++ mode.
33270
47a67213
GG
332712017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33272
33273 [BZ #21930]
33274 * math/math.h (isinf): Check if in C or C++ mode before using
33275 __builtin_types_compatible_p, since this is a C mode feature.
33276
a748eb31
AZ
332772017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33278
c647fb88
AZ
33279 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33280 (__write_nocancel): New macro.
33281 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33282 Rewrite as a function prototype.
33283 (write_not_cancel): Remove macro.
33284 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33285 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33286 (write_gmon): Likewise.
33287 * libio/fileops.c (_IO_new_file_write): Likewise.
33288 * login/utmp_file.c (pututline_file): Likewise.
33289 (updwtmp_file): Likewise.
33290 * stdio-common/psiginfo.c (psiginfo): Likewise.
33291 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33292 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33293 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33294 Likewise.
33295 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33296 Likewise.
33297
a748eb31
AZ
33298 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33299 (__read_nocancel): New macro.
33300 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33301 __read_nocancel.
33302 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33303 macro.
33304 (__read_nocancel): New prototype.
33305 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33306 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33307 with __read_nocancel.
33308 * intl/loadmsgcat.c (read): Likewise.
33309 * libio/fileops.c (_IO_file_read): Likewise.
33310 * locale/loadlocale.c (_nl_load_locale): Likewise.
33311 * login/utmp_file.c (getutent_r_file): Likewise.
33312 (internal_getut_r): Likewise.
33313 (getutline_r_file): Likewise.
33314 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33315 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33316 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33317 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33318 Likewise.
33319 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33320 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33321 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33322 Likewise.
33323 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33324 Likewise.
33325 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33326 Likewise.
33327 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33328 Likewise.
33329 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33330
098b9dd4
L
333312017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33332
33333 [BZ #21966]
33334 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33335 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33336 usable.
33337
a3fe6a20
DD
333382017-08-17 DJ Delorie <dj@redhat.com>
33339
33340 * bug17079.c: Update to new test harness.
33341 * test-digits-dots.c: Likewise.
33342 * test-netdb.c: Likewise.
33343 * tst-field.c: Likewise.
33344 * tst-nss-getpwent.c: Likewise.
33345 * tst-nss-static.c: Likewise.
33346 * tst-nss-test1.c: Likewise.
33347 * tst-nss-test2.c: Likewise.
33348 * tst-nss-test3.c: Likewise.
33349 * tst-nss-test4.c: Likewise.
33350 * tst-nss-test5.c: Likewise.
33351
c2284574
AZ
333522017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33353
33354 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33355 (open_not_cancel_2): Likewise.
33356 (open_nocancel): New macro.
33357 (open64_nocancel): Likewise.
33358 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33359 (open_not_cancel_2): Likewise.
33360 (__open_nocancel): New prototype.
33361 (__open64_nocancel): Likewise.
33362 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33363 __open_nocancel.
33364 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33365 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33366 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33367 with __open_nocancel.
33368 * csu/check_fds.c (check_one_fd): Likewise.
33369 * gmon/gmon.c (write_gmon): Likewise.
33370 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33371 * intl/loadmsgcat.c (open): Likewise.
33372 * libio/fileops.c (_IO_file_open): Likewise.
33373 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33374 * locale/loadlocale.c (_nl_load_locale): Likewise.
33375 * login/utmp_file.c (setutent_file): Likewise.
33376 * misc/daemon.c (daemon): Likewise.
33377 * nss/nss_db/db-open.c (internal_setent): Likewise.
33378 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33379 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33380 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33381 (__opendir): Likewise.
33382 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33383 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33384 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33385 (gethostid): Likewise.
33386 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33387 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33388 Likewise.
33389 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33390 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33391 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33392 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33393 Likewise.
33394 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33395 Likewise.
33396 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33397 Likewise.
33398 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33399 Likewise.
33400 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33401 Likewise.
33402 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33403 Likewise.
33404 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33405 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33406
d4505b89
WD
334072017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33408
33409 * benchtests/bench-skeleton.c (main): Add support for
33410 latency benchmarking.
33411 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33412
34d6a3cb
L
334132017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33414
33415 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33416 the startup object.
33417
038d1caf
FW
334182017-08-17 Florian Weimer <fweimer@redhat.com>
33419
33420 * include/sys/socket.h (__opensock): Remove internal_function.
33421 * socket/opensock.c (__opensock): Likewise.
33422 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33423
67f0aff0
JM
334242017-08-16 Joseph Myers <joseph@codesourcery.com>
33425
33426 [BZ #21944]
33427 * signal/bits/types/__sigval_t.h: New file.
33428 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33429 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33430 and define sigval_t using __sigval_t.
33431 * include/bits/types/__sigval_t.h: New file.
33432 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33433 instead of <bits/types/__sigval_t.h>.
33434 (struct sigevent): Use __sigval_t instead of sigval_t.
33435 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33436 instead of <bits/types/__sigval_t.h>.
33437 (siginfo_t): Use __sigval_t instead of sigval_t.
33438 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33439 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33440 (struct sigevent): Use __sigval_t instead of sigval_t.
33441 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33442 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33443 (siginfo_t): Use __sigval_t instead of sigval_t.
33444 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33445
87e7bf4d
L
334462017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33447
33448 * NEWS: Remove "[Add new features here]" for 2.27.
33449
5047057f
JM
334502017-08-16 Joseph Myers <joseph@codesourcery.com>
33451
33452 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33453 libc.so.
33454
20c7b195
L
334552017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33456
33457 * NEWS: Mention x86-64 FMA optimization.
33458
24a2e658
L
334592017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33460
33461 [BZ #21912]
33462 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33463 Add e_expf-fma.
33464 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33465 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33466 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33467
eedca977
AS
334682017-08-16 Andreas Schwab <schwab@suse.de>
33469
403143e1
FW
33470 [BZ #16750]
33471 CVE-2009-5064
eedca977
AS
33472 * elf/ldd.bash.in: Never run file directly.
33473
f59f7adb
L
334742017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33475
33476 [BZ #21955]
33477 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33478 (L(SP_INF_0)): Likewise.
33479
6b11a6ad
FW
334802017-08-15 Florian Weimer <fweimer@redhat.com>
33481
33482 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33483 run-built-tests.
33484
bbf5c438
FW
334852017-08-15 Florian Weimer <fweimer@redhat.com>
33486
33487 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33488 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33489 BROKEN_THREAD_SIGNALS code.
33490 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33491 request_list): Remove caller_pid member used for
33492 BROKEN_THREAD_SIGNALS.
33493 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33494 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33495 Remove BROKEN_THREAD_SIGNALS support.
33496 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33497 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33498
6014c65d
FW
334992017-08-15 Florian Weimer <fweimer@redhat.com>
33500
33501 * gmon/Makefile (tests): Add tst-gmon.
33502 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33503 Set.
33504 (tests-special): Add tst-gmon-prof.out.
33505 (tst-gmon.out): Depend on clean-tst-gmon-data.
33506 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33507 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33508 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33509 startup object.
33510 * aclocal.m4 (GPROF): Set and substitute.
33511 * config.amke.in (GPROF): Set.
33512 * configure: Regenerate.
33513
ee72219a
GR
335142017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33515
33516 * elf/elf.h A (NT_PPC_TAR): New macro.
33517 (NT_PPC_PPR): Likewise.
33518 (NT_PPC_DSCR): Likewise.
33519 (NT_PPC_EBB): Likewise.
33520 (NT_PPC_PMU): Likewise.
33521 (NT_PPC_TM_CGPR): Likewise.
33522 (NT_PPC_TM_CFPR): Likewise.
33523 (NT_PPC_TM_CVMX): Likewise.
33524 (NT_PPC_TM_CVSX): Likewise.
33525 (NT_PPC_TM_SPR): Likewise.
33526 (NT_PPC_TM_CTAR): Likewise.
33527 (NT_PPC_TM_CPPR): Likewise.
33528 (NT_PPC_TM_CDSCR): Likewise.
33529
4ebf934e
FW
335302017-08-15 Florian Weimer <fweimer@redhat.com>
33531
33532 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33533 regparm (2) instead of internal_function.
33534 (_MCOUNT_DECL): Adjust.
33535
e9f57484
SL
335362017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33537
33538 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33539 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33540
88ff4d55
JM
335412017-08-14 Joseph Myers <joseph@codesourcery.com>
33542
33543 * conform/data/sys/wait.h-data (si_value): Do not expect for
33544 XPG42.
33545
c88ffc23
FW
335462017-08-14 Florian Weimer <fweimer@redhat.com>
33547
33548 [BZ #21962]
33549 NSS: Create stubs for accidentally exported lookup functions.
33550 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33551 Remove declaration.
33552 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33553 (ether_hostton): Call __nss_ethers_lookup2 instead.
33554 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33555 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33556 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33557 (setup): Call __nss_netgroup_lookup2 instead.
33558 * nss/Makefile (routines): Add compat-lookup.
33559 * nss/Versions (GLIBC_2.27): Add symbol version.
33560 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33561 (DB_COMPAT_FCT): Remove.
33562 * nss/compat-lookup.c: New file.
33563 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33564 from databases.def.
33565 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33566 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33567 (netname2user): Call __nss_publickey_lookup2 instead.
33568 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33569 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33570 instead.
33571
35a29136 335722017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1f14d0c3
AZ
33573 Sergei Trofimovich <slyfox@inbox.ru>
33574
33575 [BZ #21908]
33576 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33577 Rename to MMAP2_PAGE_UNIT.
33578 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33579 __OFF_T_MATCHES_OFF64_T is not defined.
33580 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33581 uint64_t.
33582 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33583 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33584
fbdc1e3e
FW
335852017-08-14 Florian Weimer <fweimer@redhat.com>
33586
33587 i386: Do not set internal_function.
33588 * config.h.in (USE_REGPARMS, internal_function): Remove.
33589 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33590 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33591
b3f85fd2
FW
335922017-08-14 Florian Weimer <fweimer@redhat.com>
33593
33594 * elf/dl-init.c (_dl_init): Remove internal_function.
33595 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33596 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33597
630bf491
FW
335982017-08-14 Florian Weimer <fweimer@redhat.com>
33599
33600 * elf/rtld.c (_dl_start): Remove internal_function.
33601 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33602 _dl_start.
33603
9fa7449b
FW
336042017-08-14 Florian Weimer <fweimer@redhat.com>
33605
33606 * elf/dl-fini.c (_dl_fini): Remove internal_function
33607 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33608
73322d5f
L
336092017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33610
d863cd71 33611 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
73322d5f
L
33612 (bit_cpu_SHSTK): Likewise.
33613 (index_cpu_IBT): Likewise.
33614 (index_cpu_SHSTK): Likewise.
33615 (reg_IBT): Likewise.
33616 (reg_SHSTK): Likewise.
33617 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33618 Handle index_cpu_IBT and index_cpu_SHSTK.
33619
dbc303ef
MF
336202017-08-14 Mike FABIAN <mfabian@redhat.com>
33621
33622 [BZ #19982]
33623 * po/fr.po: Fix spelling mistake.
33624
3012cfb0
FW
336252017-08-13 Florian Weimer <fweimer@redhat.com>
33626
33627 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33628 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33629 (_dl_catch_error, _dl_receive_error): Likewise.
33630 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33631 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33632 (_dl_deallocate_tls): Likewise.
33633 * include/dlfcn.h (_dl_addr): Likewise.
33634 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33635 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33636 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33637 Likewise.
33638
52bcdf26
FW
336392017-08-13 Florian Weimer <fweimer@redhat.com>
33640
33641 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33642 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33643 internal_function.
33644 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33645
e1d2ae8d
FW
336462017-08-13 Florian Weimer <fweimer@redhat.com>
33647
33648 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33649 internal_function.
33650 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33651 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33652 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33653 internal_function from _dl_make_stack_executable_hook member.
33654 (_dl_make_stack_executable): Remove internal_function.
33655 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33656 Likewise.
33657 * sysdeps/unix/sysv/linux/dl-execstack.c
33658 (_dl_make_stack_executable): Likewise.
33659
c4ce0382
FW
336602017-08-13 Florian Weimer <fweimer@redhat.com>
33661
33662 * sysdeps/unix/sysv/linux/netlinkaccess.h
33663 (__netlink_assert_response): Remove internal_function.
33664 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33665 (__netlink_assert_response): Likewise.
33666
c4d767f7
FW
336672017-08-13 Florian Weimer <fweimer@redhat.com>
33668
33669 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33670 internal_function.
33671 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33672
b2297409
FW
336732017-08-13 Florian Weimer <fweimer@redhat.com>
33674
33675 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33676 internal_function.
33677 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33678 * inet/netgroup.h (__internal_setnetgrent)
33679 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33680 * inet/getnetgrent_r.c (__internal_setnetgrent)
33681 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33682 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33683 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33684 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33685 * nss/nsswitch.h (db_lookup_function): Likewise.
33686
1b0bfc69
FW
336872017-08-13 Florian Weimer <fweimer@redhat.com>
33688
33689 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33690 Remove internal_function.
33691 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33692 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33693 message argument on the stack.
33694 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33695 Likeweise.
33696
a6bd8722
MF
336972017-08-12 Mike FABIAN <mfabian@redhat.com>
33698
33699 Adapt test case data to the changes in the thousands
33700 separators.
33701
33702 [BZ #20756]
33703 * localedata/tst-langinfo.sh: Adapt test case data.
33704 * stdlib/tst-strfmon_l.c: Likewise.
33705 * stdlib/tst-strtod4.c: Likewise.
33706 * stdlib/tst-strtod5i.c: Likewise.
33707
8b2c63e4
FW
337082017-08-11 Florian Weimer <fweimer@redhat.com>
33709
33710 [BZ #21242]
33711 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33712 Suppress pedantic warning resulting from statement expression.
33713 (__ASSERT_FUNCTION): Add missing __extension__.
33714
61c98291
SP
337152017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33716
86c6519e
SP
33717 * benchtests/bench-memmove-large.c: Print output in JSON
33718 format.
33719 * benchtests/bench-memmove.c: Likewise.
33720
61c98291
SP
33721 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33722 * benchtests/bench-memchr.c (do_one_test): Likewise.
33723 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33724 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33725 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33726 * benchtests/bench-memmove.c (do_one_test): Likewise.
33727 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33728 * benchtests/bench-memset.c (do_one_test): Likewise.
33729 * benchtests/bench-string.h (test_init): Remove memsets.
33730
925733a9
RJ
337312017-08-10 Rical Jasan <ricaljasan@pacific.net>
33732
33733 * manual/lang.texi
33734 (Computing the Width of an Integer Data Type): Rename section to
33735 "Width of an Integer Type". Remove inaccurate statement regarding
33736 lack of C language facilities for determining width of integer
33737 types, and reorder content to improve flow and context of
33738 discussion.
33739
4fcdfbfc
RJ
337402017-08-10 Rical Jasan <ricaljasan@pacific.net>
33741
33742 * lang.texi (va_copy): Change standard from ISO to C99.
33743 (__va_copy): Add standard and header annotation.
33744 Update description for clarity of origins and current use.
33745
4d98ace9
GG
337462017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33747
33748 [BZ #21941]
33749 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33750 xssqrtqp requires operands to be in Vector Registers
33751 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33752 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33753 (__ieee754_sqrtf128): Likewise.
33754
92236903
WD
337552017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33756
33757 * sysdeps/aarch64/memcmp.S (memcmp):
33758 Rewrite of optimized memcmp.
33759
2449ae7b
FW
337602017-08-10 Florian Weimer <fweimer@redhat.com>
33761
33762 Introduce ld.so exceptions.
33763 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33764 (_dl_exception_create, _dl_exception_create_format)
33765 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33766 (_dl_catch_exception): Declare.
33767 (_dl_catch_error): Update comment.
33768 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33769 errstring, malloced members with exception member.
33770 (_dl_out_of_memory): Remove.
33771 (fatal_error): New function, extracted from _dl_signal_error.
33772 (_dl_signal_exception, _dl_signal_cexception): New functions.
33773 (_dl_signal_error): Call _dl_exception_create to allocate an
33774 exception object.
33775 (_dl_catch_exception): New function, based on _dl_catch_error.
33776 (_dl_catch_error): Implement using _dl_catch_exception.
33777 * elf/dl-exception.c: New file.
33778 * elf/Makefile (dl-routines): Add dl-exception.
33779 (elide-routines.os): Likewise.
33780 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33781 _dl_exception_create_format, _dl_exception_free.
33782 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33783 _dl_signal_exception.
33784 * elf/dl-lookup.c (make_string): Remove.
33785 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33786 _dl_signal_cexception, _dl_exception_free.
33787 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33788 _dl_signal_exception.
33789 * elf/dl-sym.c (do_sym): Likewise.
33790 * elf/dl-version.c (make_string): Remove.
33791 (match_symbol): Use _dl_exception_create_format,
33792 _dl_signal_cexception, _dl_exception_free.
33793 (_dl_check_map_versions): Likewise.
33794 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33795 _dl_catch_exception.
33796 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33797 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33798 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33799 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33800 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33801 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33802 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33803 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33804 Likewise.
33805 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33807 (ld.so): Likewise.
33808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33809 (ld.so): Likewise.
33810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33811 Likewise.
33812 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33813 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33814 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33815 Likewise.
33816 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33817 Likewise.
33818 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33819
f87cc2bf
FW
338202017-08-10 Florian Weimer <fweimer@redhat.com>
33821
33822 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33823 attribute_hidden, internal_function.
33824 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33825 internal_function.
33826
eac43cbb
FW
338272017-08-10 Florian Weimer <fweimer@redhat.com>
33828
33829 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33830 function which calls __builtin_unreachable.
33831
bd80111e
MF
338322017-08-10 Mike FABIAN <mfabian@redhat.com>
33833
33834 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33835 Indian monetary formatting
33836 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33837 test cases.
33838
60e2846e
DL
338392017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33840
68dc02d1
DL
33841 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33842 Fix typo in comment.
33843
60e2846e
DL
33844 [BZ #21928]
33845 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33846 PTRACE_SEIZE_DEVEL): Remove.
33847 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33848 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33849 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33850 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33851 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33852
3d452dab
JM
338532017-08-09 Joseph Myers <joseph@codesourcery.com>
33854
24d9f53a
JM
33855 * posix/bits/types.h (__qaddr_t): Remove.
33856
3d452dab
JM
33857 [BZ #21457]
33858 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33859 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33860 __glibc_reserved1.
33861 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33862 (ucontext_t): Use __ctx with uc_flags.
33863 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33864 (__ctxt): Likewise.
33865 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33866 __glibc_reserved1.
33867 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33868 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33869 __glibc_reserved1.
33870 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33871 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33872 __glibc_reserved1.
33873 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33874 macro.
33875 (ucontext_t): Use __ctx with uc_flags.
33876 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33877 (ucontext_t): Use __ctx with uc_flags.
33878 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33879 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33880 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33881 (ucontext_t): Use __ctx with uc_flags.
33882 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33883 undefine further down.
33884 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33885 __glibc_reserved1.
33886 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33887 undefine further down.
33888 (ucontext_t): Use __ctx with uc_flags.
33889 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33890 undefine further down.
33891 (ucontext_t): Use __ctx with uc_flags.
33892 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33893 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33894 Rename uc_pad to __glibc_reserved1.
33895 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33896 undefine further down.
33897 (ucontext_t): Use __ctx with uc_flags.
33898 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33899 further down.
33900 (ucontext_t): Use __ctx with uc_flags.
33901 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33902 __ctx with uc_flags.
33903 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33904 (ucontext_t): Use __ctx with uc_flags.
33905 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33906 __ctx with uc_flags.
33907
30161498
FW
339082017-08-09 Florian Weimer <fweimer@redhat.com>
33909
33910 [BZ #21932]
33911 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33912 before early return.
33913
5797b410
AS
339142017-08-09 Andreas Schwab <schwab@suse.de>
33915
139237a4 33916 [BZ #21041]
5797b410
AS
33917 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33918 renamed alias.
33919
139237a4 33920 [BZ #21041]
40c06a3d
AS
33921 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33922 tst-compat-forwarder.
33923 (modules-names): Add tst-compat-forwarder-mod.
33924 ($(objpfx)tst-compat-forwarder): Depend on
33925 $(objpfx)tst-compat-forwarder-mod.so.
33926 * nptl/tst-compat-forwarder.c: New file.
33927 * nptl/tst-compat-forwarder-mod.c: New file.
33928
36ada5f6
SP
339292017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33930
0e02b510
SP
33931 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33932 comments.
33933
36ada5f6
SP
33934 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33935 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33936 memcpy_falkor.
33937 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33938 Bump.
33939 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33940 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33941 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33942 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33943 Add falkor.
33944 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33945 New macro.
33946
9995c839
AZ
339472017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33948
33949 [BZ #759]
33950 * manual/setjmp.texi (getcontex): Document uc_stack value
33951 compatibility differences.
33952
f17a4233
JM
339532017-08-08 Joseph Myers <joseph@codesourcery.com>
33954
33955 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33956 (old_malloc_hook): Likewise.
33957 (old_memalign_hook): Likewise.
33958 (old_realloc_hook): Likewise.
33959 (struct hdr): Likewise.
33960 (flood): Likewise.
33961 (freehook): Likewise.
33962 (mallochook): Likewise.
33963 (memalignhook): Likewise.
33964 (reallochook): Likewise.
33965 (mprobe): Likewise.
33966 * malloc/mtrace.c (mallwatch): Likewise.
33967 (tr_old_free_hook): Likewise.
33968 (tr_old_malloc_hook): Likewise.
33969 (tr_old_realloc_hook): Likewise.
33970 (tr_old_memalign_hook): Likewise.
33971 (tr_where): Likewise.
33972 (lock_and_info): Likewise.
33973 (tr_freehook): Likewise.
33974 (tr_mallochook): Likewise.
33975 (tr_reallochook): Likewise.
33976 (tr_memalignhook): Likewise.
33977 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33978 * misc/mmap.c (__mmap): Likewise.
33979 * misc/mmap64.c (__mmap64): Likewise.
33980 * misc/mprotect.c (__mprotect): Likewise.
33981 * misc/msync.c (msync): Likewise.
33982 * misc/munmap.c (__munmap): Likewise.
33983 * posix/posix_madvise.c (posix_madvise): Likewise.
33984 * socket/send.c (__send): Likewise.
33985 * socket/sendto.c (__sendto): Likewise.
33986 * socket/setsockopt.c (__setsockopt): Likewise.
33987 * string/memcmp.c (__ptr_t): Remove macro.
33988 (MEMCMP): Use void * instead of ptr_t.
33989 * string/memrchr.c (__ptr_t): Remove macro.
33990 (__memrchr): Use void * instead of ptr_t.
33991 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33992 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33993 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33994 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33995 * sysdeps/mach/msync.c (msync): Likewise.
33996 * sysdeps/mach/munmap.c (__munmap): Likewise.
33997 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33998 Likewise.
33999 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34000 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34001 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34002 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34003 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34004 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34005 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34006 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34007 Likewise.
34008 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34009 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34010 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34011 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34012 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34013 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34014 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34015 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34016 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34017 Likewise.
34018 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34019 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34020 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34021 (MEMCMP): Use void * instead of ptr_t.
34022 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34023 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34024
0df595b2
FW
340252017-08-08 Florian Weimer <fweimer@redhat.com>
34026
34027 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34028 return statement.
34029
086df229
L
340302017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34031
34032 [BZ #21913]
34033 * csu/libc-tls.c: Include <startup.h> first.
34034 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34035 * elf/dl-tunables.c: Include <startup.h> first.
34036 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34037 * sysdeps/generic/startup.h: New file.
34038 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34039 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34040 (I386_USE_SYSENTER): New. Defined to 0.
34041
fc5ad702
AS
340422017-08-08 Andreas Schwab <schwab@suse.de>
34043
34044 [BZ #21041]
34045 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34046 * nptl/pt-system.c (system): Likewise.
34047
852d6312
AZ
340482017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34049
34050 [BZ #21780]
34051 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34052 EOPNOTSUPP.
34053 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34054 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34055 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34056 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34057 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34058 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34059 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34060
8b164787
JM
340612017-08-07 Joseph Myers <joseph@codesourcery.com>
34062
cd65836b
JM
34063 [BZ #21899]
34064 * bits/sigaction.h (struct sigaction): Define sa_handler and
34065 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34066 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34067 [__USE_XOPEN_EXTENDED].
34068 (SA_RESTART): Likewise.
34069 (SA_NODEFER): Likewise.
34070 (SA_RESETHAND): Likewise.
34071 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34072 (struct sigaction): Define sa_handler and sa_sigaction using union
34073 also for [__USE_XOPEN_EXTENDED].
34074 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34075 [__USE_XOPEN_EXTENDED].
34076 (SA_RESTART): Likewise.
34077 (SA_NODEFER): Likewise.
34078 (SA_RESETHAND): Likewise.
34079 * sysdeps/unix/sysv/linux/bits/sigaction.h
34080 (struct sigaction): Define sa_handler and sa_sigaction using union
34081 also for [__USE_XOPEN_EXTENDED].
34082 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34083 [__USE_XOPEN_EXTENDED].
34084 (SA_RESTART): Likewise.
34085 (SA_NODEFER): Likewise.
34086 (SA_RESETHAND): Likewise.
34087 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34088 (struct sigaction): Define sa_handler and sa_sigaction using union
34089 also for [__USE_XOPEN_EXTENDED].
34090 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34091 [__USE_XOPEN_EXTENDED].
34092 (SA_RESTART): Likewise.
34093 (SA_NODEFER): Likewise.
34094 (SA_RESETHAND): Likewise.
34095 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34096 (struct sigaction): Define sa_handler and sa_sigaction using union
34097 also for [__USE_XOPEN_EXTENDED].
34098 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34099 [__USE_XOPEN_EXTENDED].
34100 (SA_RESTART): Likewise.
34101 (SA_NODEFER): Likewise.
34102 (SA_RESETHAND): Likewise.
34103 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34104 (struct sigaction): Define sa_handler and sa_sigaction using union
34105 also for [__USE_XOPEN_EXTENDED].
34106 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34107 [__USE_XOPEN_EXTENDED].
34108 (SA_RESTART): Likewise.
34109 (SA_NODEFER): Likewise.
34110 (SA_RESETHAND): Likewise.
34111 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34112 (struct sigaction): Define sa_handler and sa_sigaction using union
34113 also for [__USE_XOPEN_EXTENDED].
34114 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34115 [__USE_XOPEN_EXTENDED].
34116 (SA_RESTART): Likewise.
34117 (SA_NODEFER): Likewise.
34118 (SA_RESETHAND): Likewise.
34119 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34120 (struct sigaction): Define sa_handler and sa_sigaction using union
34121 also for [__USE_XOPEN_EXTENDED].
34122 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34123 [__USE_XOPEN_EXTENDED].
34124 (SA_RESTART): Likewise.
34125 (SA_NODEFER): Likewise. Define directly rather than as alias.
34126 (SA_RESETHAND): Likewise.
34127 (SA_INTERRUPT): Define only for [__USE_MISC].
34128 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34129 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34130 [__USE_MISC].
34131 (SA_STACK): Define only for [__USE_MISC].
34132 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34133 (struct sigaction): Define sa_handler and sa_sigaction using union
34134 also for [__USE_XOPEN_EXTENDED].
34135 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34136 [__USE_XOPEN_EXTENDED].
34137 (SA_RESTART): Likewise.
34138 (SA_NODEFER): Likewise.
34139 (SA_RESETHAND): Likewise.
34140 (SA_NOPTRACE): Define only for [__USE_MISC].
34141
d9fee042
JM
34142 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34143 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34144 (struct catalog_info): Likewise.
34145 * inet/htontest.c (lo): Likewise.
34146 (foo): Likewise.
34147 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34148 * inet/inet_net.c (inet_network): Likewise.
34149 * inet/inet_netof.c (inet_netof): Likewise.
34150 * inet/rcmd.c (__ivaliduser): Likewise.
34151 (iruserok): Likewise.
34152 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34153 * locale/programs/locale-spec.c (locale_special): Likewise.
34154 * nis/nis_findserv.c (struct findserv_req): Likewise.
34155 (__nis_findfastest_with_timeout): Likewise.
34156 * nss/test-netdb.c (test_network): Likewise.
34157 * resolv/inet_neta.c (inet_neta): Likewise.
34158 * resolv/ns_date.c (ns_datetosecs): Likewise.
34159 (SECS_PER_DAY): Likewise.
34160 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34161 Likewise.
34162 * resolv/res_comp.c (__putlong): Likewise.
34163 (__putshort): Likewise.
34164 (_getlong): Likewise.
34165 (_getshort): Likewise.
34166 * resolv/res_debug.c (p_time): Likewise.
34167 (precsize_ntoa): Likewise.
34168 (precsize_aton): Likewise.
34169 (latlon2ul): Likewise.
34170 (loc_aton): Likewise.
34171 (loc_ntoa): Likewise.
34172 * resolv/res_hconf.c (struct netaddr): Likewise.
34173 (_res_hconf_reorder_addrs): Likewise.
34174 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34175 (clnttcp_control): Likewise.
34176 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34177 (clntudp_control): Likewise.
34178 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34179 (clntunix_control): Likewise.
34180 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34181 * sunrpc/rpc/auth.h (union des_block): Likewise.
34182 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34183 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34184 (xdrrec_create): Likewise.
34185 (xdrrec_endofrecord): Likewise.
34186 (flush_out): Likewise.
34187 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34188 (xdrstdio_putlong): Likewise.
34189 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34190 Likewise.
34191
8b164787
JM
34192 * misc/sys/cdefs.h (__long_double_t): Remove.
34193 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34194 instead of __long_double_t,
34195 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34196
7ee38e60
SP
341972017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34198
dd3e86ad
SP
34199 * benchtests/scripts/compare_strings.py: Avoid display error when
34200 running on a text terminal.
34201
b115e819
SP
34202 * benchtests/scripts/compare_strings.py (main): Add an
34203 optional -base option.
34204 (process_results): New argument base_func.
34205
7ee38e60
SP
34206 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34207 hardcoding memcpy.
34208 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34209 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34210
d5afb385
AS
342112017-08-07 Andreas Schwab <schwab@suse.de>
34212
34213 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34214 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34215 * intl/Makefile ($(objpfx)tst-gettext.out)
34216 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34217 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34218 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34219 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34220 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34221 * posix/Makefile ($(objpfx)globtest.out)
34222 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34223 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34224 ($(objpfx)tst-printf.out): Likewise.
34225 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34226 ($(objpfx)tst-setcontext3.out): Likewise.
34227
57a72fa3
L
342282017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34229
34230 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34231 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34232 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34233 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34234 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34235 and mptan-fma.
34236 (CFLAGS-doasin-fma.c): New.
34237 (CFLAGS-dosincos-fma.c): Likewise.
34238 (CFLAGS-e_asin-fma.c): Likewise.
34239 (CFLAGS-e_atan2-fma.c): Likewise.
34240 (CFLAGS-e_exp-fma.c): Likewise.
34241 (CFLAGS-e_log-fma.c): Likewise.
34242 (CFLAGS-e_pow-fma.c): Likewise.
34243 (CFLAGS-halfulp-fma.c): Likewise.
34244 (CFLAGS-mpa-fma.c): Likewise.
34245 (CFLAGS-mpatan-fma.c): Likewise.
34246 (CFLAGS-mpatan2-fma.c): Likewise.
34247 (CFLAGS-mpexp-fma.c): Likewise.
34248 (CFLAGS-mplog-fma.c): Likewise.
34249 (CFLAGS-mpsqrt-fma.c): Likewise.
34250 (CFLAGS-mptan-fma.c): Likewise.
34251 (CFLAGS-s_atan-fma.c): Likewise.
34252 (CFLAGS-sincos32-fma.c): Likewise.
34253 (CFLAGS-slowexp-fma.c): Likewise.
34254 (CFLAGS-slowpow-fma.c): Likewise.
34255 (CFLAGS-s_sin-fma.c): Likewise.
34256 (CFLAGS-s_tan-fma.c): Likewise.
34257 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34258 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34259 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34260 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34261 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34262 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34263 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34264 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34265 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34266 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34267 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34268 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34269 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34270 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34271 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34272 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34273 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34274 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34275 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34276 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34277 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34278 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34279 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34280 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34281 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34282 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34283 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34284 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34285 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34286 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34287 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34288
219dd320
JM
342892017-08-04 Joseph Myers <joseph@codesourcery.com>
34290
34291 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34292 (min_of_type_f): New macro.
34293 (min_of_type_): Likewise.
34294 (min_of_type_l): Likewise.
34295 (min_of_type_f128): Likewise.
34296 (min_of_type): Define using __MATH_TG and taking an expression
34297 argument.
34298 (math_check_force_underflow): Pass expression instead of type to
34299 min_of_type.
34300 (math_check_force_underflow_nonneg): Likewise.
34301
64d4dea6
L
343022017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34303
34304 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34305 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34306 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34307
973da22a
L
343082017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34309
34310 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34311 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34312 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34313 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34314 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34315 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34316 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34317 memmove_chk-nonshared and memset_chk-nonshared
34318 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34319 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34320 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34321 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34322 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34323 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34324 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34325 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34326 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34327 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34328 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34329 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34330 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34331 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34332 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34333 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34334 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34335 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34336 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34337 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34338 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34339 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34340 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34341 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34342 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34343 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34344 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34345 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34346 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34347 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34348 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34349 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34350 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34351 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34352 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34353 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34354 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34355 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34356 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34357 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34358 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34359 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34360 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34361 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34362 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34363 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34364 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34365 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34366 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34367 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34368 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34369 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34370 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34371 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34372 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34373 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34374 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34375 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34376 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34377 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34378 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34379 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34380 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34381 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34382 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34383 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34384 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34385 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34386 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34387 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34388 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34389 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34390 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34391 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34392 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34393 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34394 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34395 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34396 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34397 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34398 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34399 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34400 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34401 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34402 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34403 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34404 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34405 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34406 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34407 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34408 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34409 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34410 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34411 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34412 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34413 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34414 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34415 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34416 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34417 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34418 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34419 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34420 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34421 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34422 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34423 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34424 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34425 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34426
8537e0f6
L
344272017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34428
34429 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34430 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34431 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34432 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34433 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34434 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34435 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34436 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34437 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34438 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34439 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34440 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34441 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34442 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34443 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34444 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34445 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34446 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34447 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34448 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34449 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34450 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34451 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34452 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34453 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34454 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34455 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34456 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34457 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34458 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34459 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34460 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34461 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34462 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34463 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34464 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34465 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34466 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34467 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34468 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34469 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34470 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34471 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34472 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34473 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34474 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34475 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34476 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34477 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34478 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34479 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34480 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34481 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34482 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34483 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34484 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34485 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34486 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34487 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34488 ...
34489 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34490 Don't include <sysdep.h> nor <init-arch.h>.
34491 (_ZGVbN2v_cos): Removed.
34492 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34493 ...
34494 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34495 Don't include <sysdep.h> nor <init-arch.h>.
34496 (_ZGVdN4v_cos): Removed.
34497 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34498 ...
34499 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34500 Don't include <sysdep.h> nor <init-arch.h>.
34501 (_ZGVeN8v_cos): Removed.
34502 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34503 ...
34504 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34505 Don't include <sysdep.h> nor <init-arch.h>.
34506 (_ZGVbN2v_exp): Removed.
34507 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34508 ...
34509 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34510 Don't include <sysdep.h> nor <init-arch.h>.
34511 (_ZGVdN4v_exp): Removed.
34512 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34513 ...
34514 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34515 Don't include <sysdep.h> nor <init-arch.h>.
34516 (_ZGVeN8v_exp): Removed.
34517 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34518 ...
34519 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34520 Don't include <sysdep.h> nor <init-arch.h>.
34521 (_ZGVbN2v_log): Removed.
34522 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34523 ...
34524 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34525 Don't include <sysdep.h> nor <init-arch.h>.
34526 (_ZGVdN4v_log): Removed.
34527 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34528 ...
34529 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34530 Don't include <sysdep.h> nor <init-arch.h>.
34531 (_ZGVeN8v_log): Removed.
34532 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34533 ...
34534 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34535 Don't include <sysdep.h> nor <init-arch.h>.
34536 (_ZGVbN2vv_pow): Removed.
34537 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34538 ...
34539 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34540 Don't include <sysdep.h> nor <init-arch.h>.
34541 (_ZGVdN4vv_pow): Removed.
34542 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34543 ...
34544 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34545 Don't include <sysdep.h> nor <init-arch.h>.
34546 (_ZGVeN8vv_pow): Removed.
34547 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34548 ...
34549 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34550 Don't include <sysdep.h> nor <init-arch.h>.
34551 (_ZGVbN2v_sin): Removed.
34552 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34553 ...
34554 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34555 Don't include <sysdep.h> nor <init-arch.h>.
34556 (_ZGVbN4v_sin): Removed.
34557 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34558 ...
34559 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34560 Don't include <sysdep.h> nor <init-arch.h>.
34561 (_ZGVbN8v_sin): Removed.
34562 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34563 ...
34564 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34565 Don't include <sysdep.h> nor <init-arch.h>.
34566 (_ZGVbN2vvv_sincos): Removed.
34567 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34568 ...
34569 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34570 Don't include <sysdep.h> nor <init-arch.h>.
34571 (_ZGVdN4vvv_sincos): Removed.
34572 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34573 ...
34574 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34575 Don't include <sysdep.h> nor <init-arch.h>.
34576 (_ZGVeN8vvv_sincos): Removed.
34577 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34578 ...
34579 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34580 Don't include <sysdep.h> nor <init-arch.h>.
34581 (_ZGVeN16v_cosf): Removed.
34582 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34583 ...
34584 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34585 Don't include <sysdep.h> nor <init-arch.h>.
34586 (_ZGVbN4v_cosf): Removed.
34587 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34588 ...
34589 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34590 Don't include <sysdep.h> nor <init-arch.h>.
34591 (_ZGVdN8v_cosf): Removed.
34592 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34593 ...
34594 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34595 Don't include <sysdep.h> nor <init-arch.h>.
34596 (_ZGVeN16v_expf): Removed.
34597 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34598 ...
34599 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34600 Don't include <sysdep.h> nor <init-arch.h>.
34601 (_ZGVbN4v_expf): Removed.
34602 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34603 ...
34604 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34605 Don't include <sysdep.h> nor <init-arch.h>.
34606 (_ZGVdN8v_expf): Removed.
34607 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34608 ...
34609 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34610 Don't include <sysdep.h> nor <init-arch.h>.
34611 (_ZGVeN16v_logf): Removed.
34612 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34613 ...
34614 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34615 Don't include <sysdep.h> nor <init-arch.h>.
34616 (_ZGVbN4v_logf): Removed.
34617 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34618 ...
34619 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34620 Don't include <sysdep.h> nor <init-arch.h>.
34621 (_ZGVdN8v_logf): Removed.
34622 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34623 ...
34624 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34625 Don't include <sysdep.h> nor <init-arch.h>.
34626 (_ZGVeN16vv_powf): Removed.
34627 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34628 ...
34629 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34630 Don't include <sysdep.h> nor <init-arch.h>.
34631 (_ZGVbN4vv_powf): Removed.
34632 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34633 ...
34634 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34635 Don't include <sysdep.h> nor <init-arch.h>.
34636 (_ZGVdN8vv_powf): Removed.
34637 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34638 ...
34639 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34640 Don't include <sysdep.h> nor <init-arch.h>.
34641 (_ZGVeN16vvv_sincosf): Removed.
34642 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34643 ...
34644 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34645 Don't include <sysdep.h> nor <init-arch.h>.
34646 (_ZGVbN4vvv_sincosf): Removed.
34647 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34648 ...
34649 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34650 Don't include <sysdep.h> nor <init-arch.h>.
34651 (_ZGVdN8vvv_sincosf): Removed.
34652 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34653 ...
34654 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34655 Don't include <sysdep.h> nor <init-arch.h>.
34656 (_ZGVeN16v_sinf): Removed.
34657 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34658 ...
34659 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34660 Don't include <sysdep.h> nor <init-arch.h>.
34661 (_ZGVbN4v_sinf): Removed.
34662 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34663 ...
34664 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34665 Don't include <sysdep.h> nor <init-arch.h>.
34666 (_ZGVdN8v_sinf): Removed.
34667
10a87ca4
L
346682017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34669
34670 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34671 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34672 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34673 s_rint-sse4_1 and s_rintf-sse4_1.
34674 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34675 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34676 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34677 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34678 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34679 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34680 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34681 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34682 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34683 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34684 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34685 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34686 (__ceil): Removed.
34687 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34688 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34689 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34690 (__ceilf): Removed.
34691 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34692 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34693 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34694 (__floor): Removed.
34695 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34696 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34697 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34698 (__floorf): Removed.
34699 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34700 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34701 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34702 (__nearbyint): Removed.
34703 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34704 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34705 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34706 (__nearbyintf): Removed.
34707 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34708 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34709 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34710 (__rint): Removed.
34711 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34712 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34713 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34714 (__rintf): Removed.
34715
1e8e527d
L
347162017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34717
34718 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34719 SHARED. Avoid dynamic relocation against main in static PIE.
34720
e13daad7
L
347212017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34722
34723 [BZ #21815]
34724 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34725 (LDFLAGS-tst-prelink): Likewise.
34726
627c69c8
L
347272017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34728
34729 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34730 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34731 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34732 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34733 (INTERNAL_SYSCALL_NCS): Likewise.
34734 (LOADARGS_1): Likewise.
34735 (LOADARGS_5): Likewise.
34736 (RESTOREARGS_1): Likewise.
34737 (RESTOREARGS_5): Likewise.
34738
fc11ff8d
L
347392017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34740
34741 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34742 (MEMPCPY_SYMBOL): Likewise.
34743 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34744 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34745 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34746 in libc.a.
34747 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34748 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34749 Likewise.
34750 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34751 (__hidden_ver1): Don't use in libc.a.
34752 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34753 (__mempcpy): Don't create a weak alias in libc.a.
34754 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34755 libc.a.
34756 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34757 (__hidden_ver1): Don't use in libc.a.
34758
19f1a11e
L
347592017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34760
34761 * config.make.in (have-insert): New.
34762 * configure.ac (libc_cv_insert): New. Set to yes if linker
34763 supports INSERT in linker script.
34764 (AC_SUBST(libc_cv_insert): New.
34765 * configure: Regenerated.
34766 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34767 if $(have-insert) == yes.
34768
3093fd5e
L
347692017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34770
34771 * elf/Makefile (tests): Add vismain only if
34772 $(have-protected-data) == yes.
34773 (tests-pie): Likewise.
34774
d2cf37c0
L
347752017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34776
34777 [BZ #21871]
34778 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34779 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34780
c8a0e6ec
L
347812017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34782
34783 [BZ #21790]
34784 * sysdeps/i386/i586/memset.S
34785 (__memset_zero_constant_len_parameter): Removed.
34786 * sysdeps/i386/i686/memset.S
34787 (__memset_zero_constant_len_parameter): Likewise.
34788 * sysdeps/i386/i686/multiarch/memset_chk.S
34789 (__memset_zero_constant_len_parameter): Likewise.
34790 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34791 Likewise.
34792
2b34e271
AJ
347932017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34794
34795 * stdlib/getentropy.c (getentropy): Change return type to int.
34796
144bdab0
AJ
347972017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34798
34799 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34800
24ab7723
JM
348012017-08-03 Joseph Myers <joseph@codesourcery.com>
34802
34803 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34804 u_intN_t.
34805 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34806 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34807 Likewise.
34808 (ieee_float_shape_type): Likewise.
34809 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34810 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34811 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34812 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34813 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34814 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34815 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34816 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34817 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34818 Likewise.
34819 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34820 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34821 (__ieee754_yn): Likewise.
34822 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34823 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34824 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34825 Likewise.
34826 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34827 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34828 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34829 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34830 (__erfc): Likewise.
34831 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34832 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34833 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34834 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34835 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34836 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34837 Likewise.
34838 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34839 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34840 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34841 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34842 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34843 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34844 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34845 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34846 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34847 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34848 (__issignaling): Likewise.
34849 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34850 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34851 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34852 Likewise.
34853 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34854 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34855 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34856 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34857 Likewise.
34858 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34859 Likewise.
34860 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34861 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34862 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34863 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34864 (__erfcf): Likewise.
34865 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34866 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34867 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34868 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34869 Likewise.
34870 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34871 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34872 Likewise.
34873 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34874 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34875 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34876 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34877 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34878 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34879 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34880 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34881 Likewise.
34882 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34883 Likewise.
34884 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34885 Likewise.
34886 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34887 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34888 Likewise.
34889 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34890 Likewise.
34891 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34892 (__ieee754_ynl): Likewise.
34893 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34894 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34895 Likewise.
34896 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34897 Likewise.
34898 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34899 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34900 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34901 Likewise.
34902 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34903 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34904 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34905 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34906 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34907 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34908 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34909 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34910 Likewise.
34911 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34912 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34913 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34914 Likewise.
34915 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34916 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34917 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34918 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34919 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34920 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34921 Likewise.
34922 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34923 Likewise.
34924 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34925 Likewise.
34926 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34927 Likewise.
34928 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34929 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34930 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34931 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34932 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34933 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34934 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34935 Likewise.
34936 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34937 Likewise.
34938 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34939 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34940 Likewise.
34941 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34942 (__ieee754_remainderl): Likewise.
34943 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34944 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34945 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34946 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34947 Likewise.
34948 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34949 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34950 Likewise.
34951 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34952 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34953 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34954 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34955 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34956 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34957 Likewise.
34958 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34959 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34960 (__ieee754_y0l): Likewise.
34961 (pzero): Likewise.
34962 (qzero): Likewise.
34963 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34964 (__ieee754_y1l): Likewise.
34965 (pone): Likewise.
34966 (qone): Likewise.
34967 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34968 (__ieee754_ynl): Likewise.
34969 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34970 (__ieee754_lgammal_r): Likewise.
34971 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34972 Likewise.
34973 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34974 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34975 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34976 (__erfcl): Likewise.
34977 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34978 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34979 Likewise.
34980 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34981 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34982 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34983 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34984 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34985 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34986 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34987 Likewise.
34988 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34989 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34990 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34991 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34992 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34993 Likewise.
34994 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34995 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34996 Likewise.
34997 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34998 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34999 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35000 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35001 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35002
964263bb
FW
350032017-08-03 Florian Weimer <fweimer@redhat.com>
35004
35005 [BZ #21885]
35006 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35007 on memory allocation failure.
35008
e98c925f
AM
350092017-08-03 Alan Modra <amodra@gmail.com>
35010
35011 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35012 tst-tlsopt-powerpc.c with function name change and no test harness.
35013 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35014 Call tls_get_addr_opt_test.
35015 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35016 (modules-names): Add mod-tlsopt-powerpc.
35017 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35018 (tst-tlsopt-powerpc): Depend on .so.
35019 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35020 define. Expand use in TLS_GD and TLS_LD.
35021
8ee1abdb
ST
350222017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35023
35024 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35025 function.
3da5756e 35026 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 35027
42df8d59
JM
350282017-08-02 Joseph Myers <joseph@codesourcery.com>
35029
35030 [BZ #21686]
35031 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35032 comparing size with that of double.
35033 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35034 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35035 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35036 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35037 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35038 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35039 unsigned __int128 types.
35040
b7f95f49
SE
350412017-08-02 Steve Ellcey <sellcey@cavium.com>
35042
35043 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35044 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35045 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35046 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35047 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35048
5b736bc9
L
350492017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35050
35051 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35052
dfc93c41
L
350532017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35054
35055 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35056 of SHARED.
35057 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35058 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35059 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35060 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35061 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35062 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35063 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35064
2fee621d
JM
350652017-08-02 Joseph Myers <joseph@codesourcery.com>
35066
35067 [BZ #21685]
35068 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35069 bit-field expressions passed to sizeof or typeof.
35070 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35071 (__TGMATH_F128): Likewise.
35072 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35073 (__TGMATH_CF128): Likewise.
35074 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35075 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35076 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35077 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35078 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35079 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35080 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35081 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35082 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35083 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35084 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35085 (__TGMATH_UNARY_IMAG): Likewise.
35086 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35087 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35088 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35089 type.
35090 (define_vars_for_type): Handle bit_field type specially.
35091 (Tests.__init__): Declare structure with bit-field element.
35092
b358255f
L
350932017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35094
35095 [BZ #21791]
35096 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35097 (MEMCPY_CHK): Define only if SHARED is defined.
35098 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35099 Likewise.
35100 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35101 Likewise.
edf66db1
SP
35102
35103See ChangeLog.18 for earlier changes.