]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Remove PREPARE_VERSION and PREPARE_VERSION_KNOW
[thirdparty/glibc.git] / ChangeLog
1 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
4 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
5 Use get_vdso_symbol instead of _dl_vdso_vsym.
6 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
7 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
8 (__lookup_riscv_flush_icache): Likewise.
9 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10 Likewise.
11 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
12 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
14 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
15 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
16 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
17 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
20 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
21 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
22 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
23 Define.
24 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
25 Likewise.
26 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
27 Likewise.
28 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
29 Likewise.
30 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
31 Likewise.
32 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
33 Likewise.
34 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
36 definition.
37 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
38 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
39 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
40 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
41 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
42 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
43 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
44 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
45 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
46 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
47 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
48 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
49 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
50 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
51 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
52 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
53 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
54 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
55 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
56 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
57 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
58 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
59 (get_vdso_symbol): New function.
60
61 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
62
63 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
64 position of string null termination.
65
66 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
67
68 [BZ #24986]
69 * sysdeps/unix/alpha/getegid.S: Move to ...
70 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
71 * sysdeps/unix/alpha/geteuid.S: Move to ...
72 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
73 * sysdeps/unix/alpha/getppid.S: Move to ...
74 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
75
76 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
77
78 Fix http: URL in 'configure'
79 * configure.ac: Add URL to AC_INIT so that it generates an
80 https: URL instead of an http: URL.
81 * configure: Regenerate.
82
83 Regenerate charmap-kw.h, locfile-kw.h
84 This propagates the recent http->https URL changes.
85 Since I used gperf 3.1 to regenerate, this is also a minor
86 internal-to-localedef API change.
87 URL problem reported by Joseph Myers in:
88 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
89 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
90 Regenerate with gperf 3.1.
91 * locale/programs/linereader.h (kw_hash_fct_t):
92 * locale/programs/repertoire.c (repertoiremap_hash):
93 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
94
95 2019-09-05 Florian Weimer <fweimer@redhat.com>
96
97 [BZ #24962]
98 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
99 (_nl_category_names_get): New function.
100 * intl/dcigettext.c (category_to_name): Call it.
101 * locale/findlocale.c (_nl_find_locale): Likewise.
102 * intl/loadlocale.c (_nl_load_locale): Likewise.
103 * locale/newlocale.c (__newlocale): Likewise.
104 * locale/setlocale.c (_nl_category_names): Adjust definition.
105 (_nl_category_name_idxs): Likewise.
106 (new_composite_name): Call _nl_category_names_get.
107 (setlocale): Likewise.
108
109 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
110
111 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
112 const attribute with pure attribute.
113
114 2019-09-04 Lukasz Majewski <lukma@denx.de>
115
116 * sysdeps/unix/sysv/linux/kernel-features.h
117 (__ASSUME_TIME64_SYSCALLS): New macro.
118
119 2019-09-04 Zack Weinberg <zackw@panix.com>
120
121 [BZ #24959]
122 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
123 * rt/clock_getres.c: Move to time/clock_getres.c.
124 * rt/clock_gettime.c: Move to time/clock_gettime.c.
125 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
126 * rt/clock_settime.c: Move to time/clock_settime.c.
127 * rt/tst-clock.c: Move to time/tst-clock.c.
128 * rt/tst-clock2.c: Move to time/tst-clock2.c.
129 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
130 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
131 * rt/clock-compat.c: Delete file.
132
133 * time/clock_getcpuclockid.c
134 * time/clock_getres.c
135 * time/clock_gettime.c
136 * time/clock_nanosleep.c
137 * time/clock_settime.c
138 * sysdeps/posix/clock_getres.c
139 * sysdeps/unix/clock_gettime.c
140 * sysdeps/unix/clock_nanosleep.c
141 * sysdeps/unix/clock_settime.c
142 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
143 * sysdeps/unix/sysv/linux/clock_getres.c
144 * sysdeps/unix/sysv/linux/clock_gettime.c
145 * sysdeps/unix/sysv/linux/clock_nanosleep.c
146 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
147 defined by this file with default symbol version GLIBC_2_17,
148 and optionally a compatibility alias at symbol version GLIBC_2_2.
149 * include/time.h: Remove internal prototypes for clock_getres,
150 clock_nanosleep, and clock_getcpuclockid.
151
152 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
153 Remove unused function realtime_gettime.
154
155 * rt/Makefile (clock-routines, routines): Remove variable.
156 (librt-routines): Remove clock-compat.
157 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
158 and tst-cpuclock1.
159 * time/Makefile (routines): Add clock_getres, clock_gettime,
160 clock_settime, clock_getcpuclockid, and clock_nanosleep.
161 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
162 and tst-cpuclock1.
163
164 * rt/Versions (libc): Remove entire stanza.
165 (librt GLIBC_2.2): Remove all clock_* functions.
166 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
167 Add clock_getres, clock_gettime, clock_settime,
168 clock_getcpuclockid, and clock_nanosleep.
169 (libc GLIBC_PRIVATE): Add __clock_gettime.
170
171 * sysdeps/mach/hurd/i386/librt.abilist
172 * sysdeps/unix/sysv/linux/alpha/librt.abilist
173 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
174 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
175 * sysdeps/unix/sysv/linux/hppa/librt.abilist
176 * sysdeps/unix/sysv/linux/i386/librt.abilist
177 * sysdeps/unix/sysv/linux/ia64/librt.abilist
178 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
179 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
180 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
181 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
182 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
183 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
186 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
187 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
188 * sysdeps/unix/sysv/linux/sh/librt.abilist
189 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
190 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
191 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
192 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
193 Remove entries for clock_getres, clock_gettime, clock_settime,
194 clock_getcpuclockid, and clock_nanosleep.
195
196 * sysdeps/mach/hurd/i386/libc.abilist
197 * sysdeps/unix/sysv/linux/alpha/libc.abilist
198 * sysdeps/unix/sysv/linux/arm/libc.abilist
199 * sysdeps/unix/sysv/linux/hppa/libc.abilist
200 * sysdeps/unix/sysv/linux/i386/libc.abilist
201 * sysdeps/unix/sysv/linux/ia64/libc.abilist
202 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
203 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
204 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
205 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
206 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
207 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
211 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
212 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
213 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
214 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
215 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
216 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
217 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
218 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
219 Add another set of entries for clock_getres, clock_gettime,
220 clock_settime, clock_getcpuclockid, and clock_nanosleep at
221 whatever version GLIBC_2.2 maps to.
222
223 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
224
225 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
226
227 2019-09-03 Florian Weimer <fweimer@redhat.com>
228
229 [BZ #24950]
230 * locale/programs/charmap.h (struct charseq): Turn bytes into a
231 flexible array member.
232 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
233 replace.
234
235 2019-09-02 Florian Weimer <fweimer@redhat.com>
236
237 * misc/tst-mntent-autofs.c: New file.
238 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
239
240 2019-09-02 Ian Kent <ikent@redhat.com>
241
242 Use autofs "ignore" mount hint in getmntent_r/getmntent.
243 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
244 getmntent_r.
245 (__getmntent_r): Call it. Filter out autofs entries with an
246 "ignore" mount option.
247
248 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
249
250 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
251 (generic_memcpy): Include generic C memcpy.
252 * benchtests/bench-memmove.c (simple_memmove): Remove.
253 (generic_memmove): Include generic C memmove.
254 * benchtests/bench-memset.c (simple_memset): Remove.
255 (generic_memset): Include generic C memset.
256 * benchtests/bench-memset-large.c (simple_memset): Remove.
257 (generic_memset): Include generic C memset.
258 * benchtests/bench-memset-walk.c (simple_memset): Remove.
259 (generic_memset): Include generic C memset.
260 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
261 * string/memset.c (MEMSET): Likewise.
262 * sysdeps/x86_64/memcopy.h: Remove empty file.
263
264 2019-08-30 Florian Weimer <fweimer@redhat.com>
265
266 nptl: Move pthread_attr_getinheritsched implementation into libc.
267 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
268 (libpthread-routines): Remove pthread_attr_getinheritsched.
269 * nptl/Versions (libpthread GLIBC_2.0): Remove
270 pthread_attr_getinheritsched.
271 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
272 * nptl/nptl-init.c (pthread_functions): Remove initializer for
273 ptr_pthread_attr_getinheritsched.
274 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
275 Remove ptr_pthread_attr_getinheritsched member.
276 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
277 Remove pthread_attr_getinheritsched.
278 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
279 Likewise.
280 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
281 Likewise.
282 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
283 Likewise.
284 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
285 Likewise.
286 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
287 Likewise.
288 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
289 Likewise.
290 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
291 Likewise.
292 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
293 (GLIBC_2.4): Likewise.
294 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
295 (GLIBC_2.0): Likewise.
296 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
297 (GLIBC_2.18): Likewise.
298 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
299 (GLIBC_2.18): Likewise.
300 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
301 (GLIBC_2.0): Likewise.
302 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
303 (GLIBC_2.0): Likewise.
304 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
305 Likewise.
306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
307 (GLIBC_2.0): Likewise.
308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
309 (GLIBC_2.3): Likewise.
310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
311 (GLIBC_2.17): Likewise.
312 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
313 (GLIBC_2.27): Likewise.
314 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
315 (GLIBC_2.0): Likewise.
316 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
317 (GLIBC_2.2): Likewise.
318 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
319 Likewise.
320 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
321 Likewise.
322 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
323 (GLIBC_2.0): Likewise.
324 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
325 (GLIBC_2.2): Likewise.
326 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
327 (GLIBC_2.2.5): Likewise.
328 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
329 (GLIBC_2.16): Likewise.
330
331 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
332
333 * sysdeps/mach/hurd/getcwd.c
334 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
335 slash if we got an unknown root directory. (__getcwd): Do not fail with
336 EGRATUITOUS if we got an unknown root directory.
337 * hurd/hurdselect.c (SELECT_ERROR): New macro.
338 (_hurd_select):
339 - Add `error' field to `d' structures array.
340 - If a poll descriptor is bogus, set EBADF, but continue with a zero
341 timeout.
342 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
343 EBADF there is any bit set above _hurd_dtablesize.
344 - Do not request io_select on bogus descriptors (SELECT_ERROR).
345 - On io_select request error, record the error.
346 - On io_select bogus reply, use EIO error code.
347 - On io_select bogus or error reply, record the error.
348 - Do not destroy reply port for bogus FDs.
349 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
350 EBADF case, or else POLLERR.
351 - On error, make select simulated readiness.
352
353 [BZ #19903]
354 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
355 as __vm_allocate.
356
357 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
358 unlocks SS and returns to the saved PC.
359 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
360 thread stack instead of the saved PC.
361
362 2019-08-30 Richard Braun <rbraun@sceen.net>
363
364 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
365 timeout.
366 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
367 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
368 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
369 <limits.h>.
370 (_hurd_select): Replace the call to __io_select with either
371 __io_select_request or __io_select_timeout_request, depending on the
372 timeout. Count the number of ready descriptors (replies for which at
373 least one type bit is set). Implement the timeout locally when there is
374 no file descriptor.
375
376 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
377
378 * elf/dl-addr.c (determine_info): Calculate the symbol index
379 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
380 * elf/dl-lookup.c (do_lookup_x): Ditto.
381 (_dl_setup_hash): Initialize MIPS xhash translation table.
382 * elf/elf.h (SHT_MIPS_XHASH): New define.
383 (DT_MIPS_XHASH): New define.
384 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
385 define.
386 (ELF_MACHINE_HASH_SYMIDX): Ditto.
387 (ELF_MACHINE_XHASH_SETUP): Ditto.
388 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
389 define.
390 (ELF_MACHINE_HASH_SYMIDX): Ditto.
391 (ELF_MACHINE_XHASH_SETUP): Ditto.
392 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
393 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
394 version.
395 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
396
397 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
398
399 * sysdeps/sh/preconfigure.ac: New file.
400 * sysdeps/sh/preconfigure: Regenerate.
401 * sysdeps/sh/be/sh3/Implies: New file.
402 * sysdeps/sh/be/sh4/Implies: Likewise.
403 * sysdeps/sh/le/sh3/Implies: Likewise.
404 * sysdeps/sh/le/sh4/Implies: Likewise.
405 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
406 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
407 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
408 sysdeps/unix/sysv/linux/sh/le/*.abilist.
409 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
410
411 * sysdeps/microblaze/preconfigure.ac: New file.
412 * sysdeps/microblaze/preconfigure: Regenerate.
413 * sysdeps/microblaze/be/implies: New file.
414 * sysdeps/microblaze/le/implies: Likewise.
415 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
416 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
417 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
418 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
419 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
420
421 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
422 * sysdeps/arm/preconfigure: Regenerate.
423 * sysdeps/arm/be/Implies: New file.
424 * sysdeps/arm/be/armv6/Implies: Likewise.
425 * sysdeps/arm/be/armv6t2/Implies: Likewise.
426 * sysdeps/arm/be/armv7/Implies: Likewise.
427 * sysdeps/arm/le/Implies: Likewise.
428 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
429 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
430 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
431 sysdeps/unix/sysv/linux/arm/le/*.abilist.
432 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
433
434 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
435
436 Fix posix/tst-regex by using UTF-8 and own test input
437 Problem reported by Stefan Liebler in:
438 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
439 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
440 (do_test, test_expr): Adjust to the fact that this source file,
441 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
442 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
443 so that it is now UTF-8.
444
445 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
446
447 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
448 (fegetenv_status): Generate 'mffsl' unconditionally.
449
450 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
451
452 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
453 FPSCR read.
454 (_FPU_MASK_ALL): Delete.
455
456 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
457
458 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
459 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
460 if possible.
461 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
462 with simpler required steps, set fewer FPSCR bits if possible.
463
464 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
465
466 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
467 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
468 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
469 weight access to FPSCR; remove unnecessary second FPSCR read and
470 validate.
471 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
472 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
473 access to FPSCR; Use macros in fenv_libc.h in favor of local.
474
475 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
476
477 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
478 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
479 (fenv_exceptions_to_reg): New.
480 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
481 operation with call to fenv_exceptions_to_reg().
482 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
483
484 2019-08-28 Florian Weimer <fweimer@redhat.com>
485
486 * misc/mntent.c (struct mntent_buffer): Define.
487 (mntent_buffer): Adjust type to void *.
488 (allocate): Adjust for allocate_once.
489 (deallocate): New function.
490 (getmntent): Call allocate_once.
491
492 2019-08-28 Florian Weimer <fweimer@redhat.com>
493
494 nptl: Move pthread_attr_setdetachstate implementation into libc.
495 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
496 (libpthread-routines): Remove pthread_attr_setdetachstate.
497 * nptl/Versions (libpthread GLIBC_2.0): Remove
498 pthread_attr_setdetachstate.
499 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
500 * nptl/nptl-init.c (pthread_functions): Remove initializer for
501 ptr_pthread_attr_setdetachstate.
502 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
503 Remove ptr_pthread_attr_setdetachstate member.
504 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
505 Remove pthread_attr_setdetachstate.
506 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
507 Likewise.
508 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
509 Likewise.
510 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
511 Likewise.
512 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
513 Likewise.
514 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
515 Likewise.
516 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
517 Likewise.
518 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
519 (GLIBC_2.4): Likewise.
520 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
521 (GLIBC_2.0): Likewise.
522 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
523 (GLIBC_2.18): Likewise.
524 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
525 (GLIBC_2.0): Likewise.
526 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
527 (GLIBC_2.0): Likewise.
528 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
529 Likewise.
530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
531 (GLIBC_2.0): Likewise.
532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
533 (GLIBC_2.3): Likewise.
534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
535 (GLIBC_2.17): Likewise.
536 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
537 (GLIBC_2.27): Likewise.
538 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
539 (GLIBC_2.0): Likewise.
540 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
541 (GLIBC_2.2): Likewise.
542 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
543 Likewise.
544 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
545 (GLIBC_2.0): Likewise.
546 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
547 (GLIBC_2.2): Likewise.
548 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
549 (GLIBC_2.2.5): Likewise.
550 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
551 (GLIBC_2.16): Likewise.
552
553 2019-08-28 Florian Weimer <fweimer@redhat.com>
554
555 [BZ #24902]
556 * login/Makefile (tests): Add tst-pututxline-lockfail.
557 (tst-pututxline-lockfail): Link with -lpthread.
558 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
559 (__libc_getutid_r): Adjust.
560 (__libc_pututline): Likewise. Check for file_offset == -1.
561 * login/tst-pututxline-lockfail.c: New file.
562
563 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
564
565 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
566 * posix/tst-regex.input: New file.
567
568 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
569
570 [BZ #24916]
571 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
572 tst-undefined-weak.
573 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
574 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
575 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
576 * sysdeps/mips/tst-undefined-weak.c: Likewise.
577 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
578 Increment highest valid ABIVERSION value.
579
580 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
581
582 * sysdeps/unix/sysv/linux/mips/Makefile
583 (test-xfail-check-execstack):
584 Move under mips-has-gnustack != yes.
585 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
586 Apply -Wa,-execstack if mips-force-execstack == yes.
587 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
588 * sysdeps/unix/sysv/linux/mips/configure.ac
589 (mips-force-execstack): New var.
590 Set to yes for hard-float builds with minimum_kernel < 4.8.0
591 or minimum_kernel not set at all.
592 (mips-has-gnustack): New var.
593 Use value of libc_cv_as_noexecstack
594 if mips-force-execstack != yes, otherwise set to no.
595
596 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
597 Florian Weimer <fweimer@redhat.com>
598
599 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
600 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
601 Make a compat_symbol.
602 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
603 (__profil_counter_global): Likewise.
604
605 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
606 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
607 uintptr_t.
608 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
609 sigcontext_get_pc and return aligned cast to uintptr_t.
610 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
611 * sysdeps/posix/profil.c (profil_count): Change PC argument to
612 uintptr_t.
613 (__profil): Use SA_SIGINFO.
614 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
615 uintptr_t.
616 (__sprofil): Use SA_SIGINFO.
617 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
618 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
619 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
620 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
621 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
622 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
623 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
624 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
625 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
626 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
627 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
628 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
629 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
630 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
631 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
632 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
633 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
634 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
635 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
636 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
637 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
638 GET_PC, __sigaction, sigaction): Remove defines.
639 (sigcontext_get_pc): New function.
640 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
641 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
642 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
643 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
644 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
645 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
646 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
647 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
648 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
649 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
650 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
651 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
652 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
653 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
654 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
655 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
656 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
657 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
658 Handle CTX argument as ucontext_t.
659 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
660 Likewise.
661 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
662 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
663 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
664 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
665 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
666 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
667 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
668 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
669 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
670 tst-sigcontextinfo-get_pc.
671 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
672 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
673
674 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
675
676 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
677 definition.
678
679 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
680
681 [BZ #24682]
682 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
683 * localedata/locales/ug_CN (first_weekday): Likewise.
684 * localedata/locales/zh_CN (first_weekday): Likewise.
685
686 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
687
688 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
689 field name in mcontext_t struct.
690
691 2019-08-22 Joseph Myers <joseph@codesourcery.com>
692
693 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
694 unsupported with libidn2 before 2.0.5.
695 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
696
697 * manual/time.texi (strftime): Document %Ob and %OB as C2X
698 features.
699
700 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
701
702 Remove dead regex code
703 * posix/regex_internal.c (re_node_set_insert):
704 Remove unnecessary assignment. Reported by Tim Rühsen in:
705 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
706
707 Fix bad pointer / leak in regex code
708 This was found by Coverity (CID 1484201). [BZ#24844]
709 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
710 pointer and/or memory leak when storage is exhausted.
711
712 2019-08-21 Zack Weinberg <zackw@panix.com>
713
714 * misc/syslog.c (__vsyslog_internal)
715 * time/getdate.c (__getdate_r)
716 * time/tst_wcsftime.c (main):
717 Use return value of time, not its argument.
718
719 * string/strfry.c (strfry)
720 * sysdeps/mach/sleep.c (__sleep):
721 Remove unnecessary casts of NULL in calls to time.
722
723 2019-08-21 Joseph Myers <joseph@codesourcery.com>
724
725 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
726 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
727 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
728 (__TGMATH_2_NARROW_F): Likewise.
729 (__TGMATH_2_NARROW_D): New macro.
730 (__TGMATH_2_NARROW_F16): Likewise.
731 (__TGMATH_2_NARROW_F32): Likewise.
732 (__TGMATH_2_NARROW_F64): Likewise.
733 (__TGMATH_2_NARROW_F32X): Likewise.
734 (__TGMATH_2_NARROW_F64X): Likewise.
735 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
736 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
737 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
738 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
739 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
740 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
741 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
742 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
743 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
744 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
745 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
746 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
747 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
748 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
749 Likewise.
750 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
751 Likewise.
752 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
753 Likewise.
754 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
755 Likewise.
756 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
757 Likewise.
758 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
759 Likewise.
760 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
761 Likewise.
762 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
763 Likewise.
764 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
765 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
766 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
767 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
768 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
769 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
770 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
771 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
772 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
773 Likewise.
774 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
775 Likewise.
776 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
777 Likewise.
778 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
779 Likewise.
780 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
781 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
782 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
783 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
784 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
785 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
786 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
787 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
788 * math/gen-tgmath-tests.py (Type): Add members
789 non_standard_real_argument_types_list, long_double_type,
790 complex_float64_type and float32x_ext_type.
791 (Type.__init__): Set the new members.
792 (Type.floating_type): Add new argument floatn.
793 (Type.real_floating_type): Likewise.
794 (Type.can_combine_types): Likewise.
795 (Type.combine_types): Likewise.
796 (Type.init_types): Create internal Float32x_ext type.
797 (Tests.__init__): Define Float32x_ext in generated C code.
798 (Tests.add_tests): Handle narrowing functions.
799 (Tests.add_all_tests): Likewise.
800 (Tests.tests_text): Allow variation in mant_dig for narrowing
801 functions with compilers before GCC 8.
802 * math/Makefile (tgmath3-narrow-types): New variable.
803 (tgmath3-narrow-macros): Likewise.
804 (tgmath3-macros): Add $(tgmath3-narrow-macros).
805
806 2019-08-20 Andreas Schwab <schwab@suse.de>
807
808 * sysdeps/i386/fpu/libm-test-ulps: Update.
809
810 2019-08-19 Carlos O'Donell <carlos@redhat.com>
811
812 * nscd/nscd.conf: Add warning and comment about shared option.
813
814 2019-08-19 Carlos O'Donell <carlos@redhat.com>
815
816 * nss/nsswitch.conf: Expand comments, and simplify defaults.
817 * manual/nss.texi (NSS Basics): List all known databases.
818 (Services in the NSS configuration): Mention automount.
819
820 2019-08-19 Florian Weimer <fweimer@redhat.com>
821
822 Do not print backtraces on fatal errors.
823 * debug/fortify_fail.c (__libc_argv): Remove declaration.
824 (__fortify_fail_abort): Remove definition.
825 (__fortify_fail): Call __libc_message directly.
826 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
827 (__stack_chk_fail): Call __fortify_fail instead of
828 __fortify_fail_abort.
829 * include/stdio.h (__fortify_fail_abort): Remove declaration.
830 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
831 definitions.
832 (__libc_message): Do not handle do_backtrace. Do not call
833 BEFORE_ABORT.
834 (__libc_fatal): Do not pass do_backtrace to __libc_message.
835 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
836 (before_abort): Remove definitions.
837
838 2019-08-16 Florian Weimer <fweimer@redhat.com>
839
840 nptl: Move pthread_attr_getdetachstate implementation into libc.
841 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
842 (libpthread-routines): Remove pthread_attr_getdetachstate.
843 * nptl/Versions (libpthread GLIBC_2.0): Remove
844 pthread_attr_getdetachstate.
845 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
846 * nptl/nptl-init.c (pthread_functions): Remove initializer for
847 ptr_pthread_attr_getdetachstate.
848 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
849 Remove ptr_pthread_attr_getdetachstate member.
850 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
851 Remove pthread_attr_getdetachstate.
852 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
853 Likewise.
854 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
855 Likewise.
856 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
857 Likewise.
858 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
859 Likewise.
860 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
861 Likewise.
862 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
863 Likewise.
864 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
865 (GLIBC_2.4): Likewise.
866 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
867 (GLIBC_2.0): Likewise.
868 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
869 (GLIBC_2.18): Likewise.
870 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
871 (GLIBC_2.0): Likewise.
872 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
873 (GLIBC_2.0): Likewise.
874 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
875 Likewise.
876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
877 (GLIBC_2.0): Likewise.
878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
879 (GLIBC_2.3): Likewise.
880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
881 (GLIBC_2.17): Likewise.
882 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
883 (GLIBC_2.27): Likewise.
884 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
885 (GLIBC_2.0): Likewise.
886 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
887 (GLIBC_2.2): Likewise.
888 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
889 Likewise.
890 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
891 (GLIBC_2.0): Likewise.
892 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
893 (GLIBC_2.2): Likewise.
894 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
895 (GLIBC_2.2.5): Likewise.
896 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
897 (GLIBC_2.16): Likewise.
898
899 2019-08-16 Joseph Myers <joseph@codesourcery.com>
900
901 * math/libm-test-compat_totalorder.inc (do_test)
902 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
903 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
904 * math/libm-test-compat_totalordermag.inc (do_test)
905 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
906
907 2019-08-15 Florian Weimer <fweimer@redhat.com>
908
909 nptl: Move pthread_attr_init implementation into libc.
910 * nptl/Makefile (routines): Add pthread_attr_init.
911 (libpthread-routines): Remove pthread_attr_init.
912 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
913 (libpthread GLIBC_2.0): Likewise.
914 * nptl/pthread_attr_init.c: Check for libc compat version instead
915 of libpthread compat version.
916 * nptl/forward.c (__pthread_attr_init_2_0)
917 (__pthread_attr_init_2_1): Remove definitions.
918 * nptl/nptl-init.c (pthread_functions): Remove initializers for
919 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
920 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
921 Remove members ptr___pthread_attr_init_2_0,
922 ptr___pthread_attr_init_2_1.
923 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
924 Remove pthread_attr_init.
925 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
926 Likewise.
927 (GLIBC_2.1): Likewise.
928 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
929 Likewise.
930 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
931 Likewise.
932 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
933 Likewise.
934 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
935 Likewise.
936 (GLIBC_2.1): Likewise.
937 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
938 Likewise.
939 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
940 (GLIBC_2.4): Likewise.
941 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
942 (GLIBC_2.0): Likewise.
943 (GLIBC_2.1): Likewise.
944 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
945 (GLIBC_2.18): Likewise.
946 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
947 (GLIBC_2.0): Likewise.
948 (GLIBC_2.1): Likewise.
949 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
950 (GLIBC_2.0): Likewise.
951 (GLIBC_2.1): Likewise.
952 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
953 Likewise.
954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
955 (GLIBC_2.0): Likewise.
956 (GLIBC_2.1): Likewise.
957 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
958 (GLIBC_2.3): Likewise.
959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
960 (GLIBC_2.17): Likewise.
961 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
962 (GLIBC_2.27): Likewise.
963 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
964 (GLIBC_2.0): Likewise.
965 (GLIBC_2.1): Likewise.
966 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
967 (GLIBC_2.2): Likewise.
968 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
969 Likewise.
970 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
971 (GLIBC_2.0): Likewise.
972 (GLIBC_2.1): Likewise.
973 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
974 (GLIBC_2.2): Likewise.
975 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
976 (GLIBC_2.2.5): Likewise.
977 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
978 (GLIBC_2.16): Likewise.
979
980 2019-08-15 Florian Weimer <fweimer@redhat.com>
981
982 [BZ #24900]
983 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
984 new object in __RTLD_OPENEXEC mode (except for the origin).
985 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
986 check for the error message.
987 (do_test): Call it. Add check using relative path.
988 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
989 (tst-dlopen-aout-container): Link with libpthread.
990 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
991
992 2019-08-15 Joseph Myers <joseph@codesourcery.com>
993
994 * math/bits/mathcalls.h
995 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
996 (totalorder): Take pointer arguments.
997 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
998 (totalordermag): Likewise.
999 * manual/arith.texi (totalorder): Likewise.
1000 (totalorderf): Likewise.
1001 (totalorderl): Likewise.
1002 (totalorderfN): Likewise.
1003 (totalorderfNx): Likewise.
1004 (totalordermag): Likewise.
1005 (totalordermagf): Likewise.
1006 (totalordermagl): Likewise.
1007 (totalordermagfN): Likewise.
1008 (totalordermagfNx): Likewise.
1009 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1010 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1011 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1012 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1013 totalorderl, totalordermag, totalordermagf, totalordermagl,
1014 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1015 totalordermagf64, totalordermagf32x, totalorderf64x,
1016 totalordermagf64x, totalorderf128 and totalordermagf128.
1017 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1018 and compat_totalordermag.
1019 (libm-test-funcs-compat): New variable.
1020 (libm-tests-compat): Likewise.
1021 (tests): Do not include compat tests.
1022 (tests-internal): Add compat tests.
1023 ($(foreach t,$(libm-tests-base),
1024 $(objpfx)$(t)-compat_totalorder.o)): Depend
1025 on $(objpfx)libm-test-totalorder.c.
1026 ($(foreach t,$(libm-tests-base),
1027 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1028 $(objpfx)libm-test-totalordermag.c.
1029 (tgmath3-macros): Remove totalorder and totalordermag.
1030 * math/libm-test-compat_totalorder.inc: New file.
1031 * math/libm-test-compat_totalordermag.inc: Likewise.
1032 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1033 (RUN_TEST_fpfp_b): New macro.
1034 (RUN_TEST_LOOP_fpfp_b): Likewise.
1035 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1036 TEST_fpfp_b.
1037 (totalorder_test): Condition on [!COMPAT_TEST].
1038 (do_test): Likewise.
1039 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1040 TEST_fpfp_b.
1041 (totalordermag_test): Condition on [!COMPAT_TEST].
1042 (do_test): Likewise.
1043 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1044 totalorder and totalordermag.
1045 * math/test-tgmath.c (NCALLS): Change to 132.
1046 (F(compile_test)): Do not call totalorder or totalordermag.
1047 (F(totalorder)): Remove.
1048 (F(totalordermag)): Likewise.
1049 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1050 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1051 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1052 SJSTR_HELPER.
1053 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1054 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1055 [!_ISOMAC] (TEST_ALIGN): Likewise.
1056 [!_ISOMAC] (TEST_OFFSET): Likewise.
1057 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1058 and <first-versions.h>.
1059 (__totalorder): Take pointer arguments. Add symbol versions and
1060 compat symbols.
1061 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1062 <shlib-compat.h> and <first-versions.h>.
1063 (__totalordermag): Take pointer arguments. Add symbol versions
1064 and compat symbols.
1065 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1066 <shlib-compat.h> and <first-versions.h>.
1067 (__totalorder): Take pointer arguments. Add symbol versions and
1068 compat symbols.
1069 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1070 <shlib-compat.h> and <first-versions.h>.
1071 (__totalordermag): Take pointer arguments. Add symbol versions
1072 and compat symbols.
1073 * sysdeps/ieee754/float128/float128_private.h
1074 (__totalorder_compatl): New macro.
1075 (__totalordermag_compatl): Likewise.
1076 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1077 and <first-versions.h>.
1078 (__totalorderf): Take pointer arguments. Add symbol versions and
1079 compat symbols.
1080 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1081 <shlib-compat.h> and <first-versions.h>.
1082 (__totalordermagf): Take pointer arguments. Add symbol versions
1083 and compat symbols.
1084 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1085 <shlib-compat.h> and <first-versions.h>.
1086 (__totalorderl): Take pointer arguments. Add symbol versions and
1087 compat symbols.
1088 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1089 <shlib-compat.h> and <first-versions.h>.
1090 (__totalordermagl): Take pointer arguments. Add symbol versions
1091 and compat symbols.
1092 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1093 <shlib-compat.h>.
1094 (__totalorderl): Take pointer arguments. Add symbol versions and
1095 compat symbols.
1096 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1097 <shlib-compat.h>.
1098 (__totalordermagl): Take pointer arguments. Add symbol versions
1099 and compat symbols.
1100 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1101 <shlib-compat.h> and <first-versions.h>.
1102 (__totalorderl): Take pointer arguments. Add symbol versions and
1103 compat symbols.
1104 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1105 <shlib-compat.h> and <first-versions.h>.
1106 (__totalordermagl): Take pointer arguments. Add symbol versions
1107 and compat symbols.
1108 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1109 pointer arguments.
1110 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1111 Likewise.
1112 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1113 (do_test): Update calls to totalorderl and totalordermagl.
1114 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1115 Update calls to totalorderl and totalordermagl.
1116 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1117 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1118 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1119 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1120 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1121 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1122 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1123 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1124 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1125 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1126 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1127 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1128 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1129 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1131 Likewise.
1132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1133 Likewise.
1134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1135 Likewise.
1136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1137 Likewise.
1138 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1139 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1140 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1141 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1142 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1143 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1144 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1145 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1146
1147 2019-08-15 Florian Weimer <fweimer@redhat.com>
1148
1149 [BZ #24899]
1150 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1151 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1152 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1153 Likewise.
1154 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1155 __attribute_nonstring__ to ut_id.
1156 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1157 Likewise.
1158
1159 2019-08-15 Florian Weimer <fweimer@redhat.com>
1160
1161 [BZ #24880]
1162 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1163 (file_locking_unlock): Likewise.
1164
1165 2019-08-15 Florian Weimer <fweimer@redhat.com>
1166
1167 [BZ #24879]
1168 login: Disarm timer after utmp lock acquisition.
1169 * login/utmp_file.c (struct file_locking): Remove.
1170 (try_file_lock): Adjust.
1171 (file_lock_restore): Remove function.
1172 (__libc_getutent_r): .
1173 (internal_getut_r): Likewise.
1174 (__libc_getutline_r): Likewise.
1175 (__libc_pututline): Likewise.
1176 (__libc_updwtmp): Likewise.
1177
1178 2019-08-15 Florian Weimer <fweimer@redhat.com>
1179
1180 nptl: Remove pthread_self compatibility symbol from libpthread.
1181 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1182 pthread_equal.
1183 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1184 * nptl/compat-pthread_self.c: Remove file.
1185 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1186 Remove pthread_self.
1187 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1188 Likewise.
1189 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1190 Likewise.
1191 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1192 Likewise.
1193 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1194 Likewise.
1195 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1196 Likewise.
1197 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1198 (GLIBC_2.4): Likewise.
1199 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1200 (GLIBC_2.0): Likewise.
1201 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1202 (GLIBC_2.18): Likewise.
1203 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1204 (GLIBC_2.0): Likewise.
1205 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1206 (GLIBC_2.0): Likewise.
1207 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1208 Likewise.
1209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1210 (GLIBC_2.0): Likewise.
1211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1212 (GLIBC_2.3): Likewise.
1213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1214 (GLIBC_2.17): Likewise.
1215 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1216 (GLIBC_2.0): Likewise.
1217 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1218 (GLIBC_2.2): Likewise.
1219 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1220 Likewise.
1221 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1222 (GLIBC_2.0): Likewise.
1223 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1224 (GLIBC_2.2): Likewise.
1225 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1226 (GLIBC_2.2.5): Likewise.
1227 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1228 (GLIBC_2.16): Likewise.
1229
1230 2019-08-15 Florian Weimer <fweimer@redhat.com>
1231
1232 nptl: Move pthread_attr_destroy implementation into libc.
1233 * nptl/Makefile (routines): Add pthread_attr_destroy.
1234 (libpthread-routines): Remove pthread_attr_destroy.
1235 * nptl/Versions (libpthread GLIBC_2.0): Remove
1236 pthread_attr_destroy.
1237 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1238 libc compat version instead of libpthread compat version.
1239 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1240 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1241 ptr_pthread_attr_destroy.
1242 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1243 Remove ptr_pthread_attr_destroy member.
1244 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1245 Remove pthread_attr_destroy.
1246 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1247 Likewise.
1248 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1249 Likewise.
1250 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1251 Likewise.
1252 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1253 Likewise.
1254 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1255 Likewise.
1256 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1257 Likewise.
1258 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1259 (GLIBC_2.4): Likewise.
1260 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1261 (GLIBC_2.0): Likewise.
1262 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1263 (GLIBC_2.18): Likewise.
1264 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1265 (GLIBC_2.0): Likewise.
1266 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1267 (GLIBC_2.0): Likewise.
1268 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1269 Likewise.
1270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1271 (GLIBC_2.0): Likewise.
1272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1273 (GLIBC_2.3): Likewise.
1274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1275 (GLIBC_2.17): Likewise.
1276 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1277 (GLIBC_2.27): Likewise.
1278 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1279 (GLIBC_2.0): Likewise.
1280 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1281 (GLIBC_2.2): Likewise.
1282 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1283 Likewise.
1284 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1285 (GLIBC_2.0): Likewise.
1286 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1287 (GLIBC_2.2): Likewise.
1288 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1289 (GLIBC_2.2.5): Likewise.
1290 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1291 (GLIBC_2.16): Likewise.
1292
1293 2019-08-15 Andreas Schwab <schwab@suse.de>
1294
1295 * sysdeps/i386/fpu/libm-test-ulps: Update.
1296
1297 2019-08-15 Florian Weimer <fweimer@redhat.com>
1298
1299 * malloc/Makefile (tests): Only add tst-mxfast for
1300 $(have-tunables).
1301 * malloc/tst-mxfast.c: Fix copyright year.
1302 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1303 assert for checks.
1304
1305 2019-08-15 Florian Weimer <fweimer@redhat.com>
1306
1307 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1308 descriptor.
1309 * login/Makefile (tests): Add tst-updwtmpx.
1310 * login/tst-updwtmpx.c: New file.
1311
1312 2019-08-15 Florian Weimer <fweimer@redhat.com>
1313
1314 nptl: Move pthread_equal implementation into libc.
1315 * nptl/Makefile (routines): Add pthread_equal.
1316 * nptl/forward.c (pthread_equal): Remove definition.
1317 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1318 ptr_pthread_equal.
1319 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1320 Remove ptr_pthread_equal member.
1321 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1322 Remove pthread_equal.
1323 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1324 Likewise.
1325 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1326 Likewise.
1327 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1328 Likewise.
1329 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1330 Likewise.
1331 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1332 Likewise.
1333 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1334 Likewise.
1335 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1336 (GLIBC_2.4): Likewise.
1337 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1338 (GLIBC_2.0): Likewise.
1339 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1340 (GLIBC_2.18): Likewise.
1341 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1342 (GLIBC_2.0): Likewise.
1343 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1344 (GLIBC_2.0): Likewise.
1345 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1346 Likewise.
1347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1348 (GLIBC_2.0): Likewise.
1349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1350 (GLIBC_2.3): Likewise.
1351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1352 (GLIBC_2.17): Likewise.
1353 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1354 (GLIBC_2.27): Likewise.
1355 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1356 (GLIBC_2.0): Likewise.
1357 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1358 (GLIBC_2.2): Likewise.
1359 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1360 Likewise.
1361 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1362 (GLIBC_2.0): Likewise.
1363 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1364 (GLIBC_2.2): Likewise.
1365 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1366 (GLIBC_2.2.5): Likewise.
1367 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1368 (GLIBC_2.16): Likewise.
1369
1370 2019-08-14 Florian Weimer <fweimer@redhat.com>
1371
1372 * support/support_descriptors.c: Include <support/descriptors.h>.
1373
1374 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1375
1376 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1377 Disable DC ZVA code if this macro is defined as zero.
1378 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1379 Change to zero to disable using DC ZVA.
1380
1381 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1382
1383 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1384 Update comment.
1385 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1386 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1387 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1388 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1389 Likewise.
1390
1391 2019-08-13 Florian Weimer <fweimer@redhat.com>
1392
1393 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1394 Remove macros.
1395 (struct file_locking): New.
1396 (try_file_lock, file_unlock, file_lock_restore): New functions.
1397 (__libc_getutent_r): Use the new functions.
1398 (internal_getut_r): Likewise.
1399 (__libc_getutline_r): Likewise.
1400 (__libc_pututline): Likewise.
1401 (__libc_updwtmp): Likewise.
1402
1403 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1404
1405 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1406 comment.
1407 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1408 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1409 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1410 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1411 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1412 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1413 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1414 Likewise.
1415 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1416 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1417 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1418 Likewise.
1419 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1420 Likewise.
1421 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1422 Likewise.
1423 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1424 Likewise.
1425 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1426 Likewise.
1427 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1428 Likewise.
1429 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1430 Likewise.
1431 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1432 (IEC_60559_BFP_EXT)]: Likewise.
1433 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1434 Likewise.
1435 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1436 Likewise.
1437 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1438 Likewise.
1439 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1440 Likewise.
1441 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1442 Likewise.
1443 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1444 Likewise.
1445 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1446 Likewise.
1447 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1448 Likewise.
1449 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1450 Likewise, except for totalorder, totalordermag, getpayload,
1451 setpayload and setpayloadsig.
1452 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1453 except for totalorder and totalordermag.
1454
1455 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1456 (strdup): Likewise.
1457 (strndup): Likewise.
1458
1459 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1460 Undefine and define to 1 if [_GNU_SOURCE].
1461 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1462 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1463 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1464 (__USE_ISOC99): Likewise.
1465 (__USE_ISOC95): Likewise.
1466 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1467
1468 2019-08-13 Florian Weimer <fweimer@redhat.com>
1469
1470 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1471 are always true.
1472 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1473 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1474 * login/getutmpx.c (getutmpx): Likewise.
1475 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1476 true.
1477 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1478 _HAVE_UT_TV are always true.
1479 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1480 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1481 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1482 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1483 are always true.
1484 (internal_getut_r): _HAVE_UT_TYPE is always true.
1485 (__libc_pututline): Likewise.
1486 * login/programs/utmpdump.c (print_entry): Assume that
1487 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1488 _HAVE_UT_TV are always true.
1489 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1490 _HAVE_UT_ID are always true.
1491 * sysdeps/gnu/bits/utmp.h: Move to ...
1492 * bits/utmp.h: ... here, replacing the old file.
1493
1494 2019-08-12 Florian Weimer <fweimer@redhat.com>
1495
1496 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1497 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1498 not set.
1499 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1500 (do_test): Open the executable using an absolute path. Print
1501 error message to standard output.
1502
1503 2019-08-09 DJ Delorie <dj@redhat.com>
1504
1505 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1506 * manual/tunables.texi: Document it.
1507 * malloc/malloc.c (do_set_mxfast): New.
1508 (__libc_mallopt): Call it.
1509 * malloc/arena.c: Add mxfast tunable.
1510 * malloc/tst-mxfast.c: New.
1511 * malloc/Makefile: Add it.
1512
1513 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1514 Carlos O'Donell <carlos@redhat.com>
1515
1516 [BZ #24026]
1517 * malloc/malloc.c (__malloc_info): Account for top chunk.
1518
1519 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1520
1521 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1522 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1523
1524 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1525
1526 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1527
1528 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1529
1530 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1531
1532 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1533
1534 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1535 New macro.
1536
1537 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1538
1539 [BZ #19767]
1540 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1541 Remove definition.
1542 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1543 Likewise.
1544 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1545 Likewise.
1546 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1547 Likewise.
1548 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1549 (ALWAYS_USE_VSYSCALL): Likewise.
1550 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1551 (ALWAYS_USE_VSYSCALL): Likewise.
1552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1553 (ALWAYS_USE_VSYSCALL): Likewise.
1554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1555 (ALWAYS_USE_VSYSCALL): Likewise.
1556 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1557 Likewise.
1558 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1559 (ALWAYS_USE_VSYSCALL): Likewise.
1560 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1561 (ALWAYS_USE_VSYSCALL): Likewise.
1562 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1563 Likewise.
1564 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1565 Likewise.
1566 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1567 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1568 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1569 USE_VSYSCALL): Remove defitions.
1570
1571 [BZ #19767]
1572 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1573 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1574 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1575 Define.
1576
1577 [BZ #19767]
1578 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1579 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1580 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1581 (ALWAYS_USE_VSYSCALL): Define.
1582 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1583 (ALWAYS_USE_VSYSCALL): Likewise.
1584
1585 [BZ #19767]
1586 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1587 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1588 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1589 Define.
1590
1591 * sysdeps/sh/libm-test-ulps: Update.
1592
1593 2019-08-05 Florian Weimer <fweimer@redhat.com>
1594
1595 [BZ #23518]
1596 * login/uptmp-private.h (struct ufuncs): Remove definition.
1597 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1598 (__libc_utmp_jump_table): Remove declarations.
1599 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1600 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1601 (__libc_updwtmp): Declare.
1602 * login/getutent_r.c (__libc_utmp_unknown_functions)
1603 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1604 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1605 (endutent_unknown): Remove definitions.
1606 (__setutent): Call __libc_setutent.
1607 (__getutent_r): Call __libc_getutent_r.
1608 (__pututline): Call __libc_pututline.
1609 (__endutent): Call __libc_endutent.
1610 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1611 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1612 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1613 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1614 (__libc_setutent): Rename from stetutent_file. Drop static.
1615 (maybe_setutent): New function.
1616 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1617 Check for initialization.
1618 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1619 Check for initialization.
1620 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1621 Check for initialization.
1622 (__libc_pututline): Rename from pututline_file. Drop static.
1623 Check for initialization.
1624 (__libc_endutent): Rename from endutent_file. Drop static. Check
1625 for initialization.
1626 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1627 * login/utmpname.c (__utmpname): Call __libc_endutent.
1628 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1629 __libc_getutlien_r, __libc_endutent.
1630 * manual/users.texi (Who Logged In, Manipulating the Database):
1631 Adjust.
1632
1633 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1634
1635 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1636
1637 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1638
1639 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1640
1641 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1642 kernel version number to 5.2.
1643
1644 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1645
1646 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1647 mnemonics and set .machine power8.
1648 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1649 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1650 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1651 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1652 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1653 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1654 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1655 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1656 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1657 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1658
1659 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1660
1661 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1662
1663 2019-08-01 Florian Weimer <fweimer@redhat.com>
1664
1665 [BZ #24867]
1666 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1667 whitespace.
1668
1669 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1670
1671 [BZ #15813]
1672 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1673 attempt.
1674
1675 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1676
1677 * version.h (RELEASE): Set to "stable".
1678 (VERSION): Set to "2.30".
1679 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1680
1681 * manual/install.texi: Update component versions.
1682 * INSTALL: Regenerate.
1683 * NEWS: Update.
1684
1685 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1686
1687 * po/be.po: Update translations.
1688 * po/bg.po: Likewise.
1689 * po/ca.po: Likewise.
1690 * po/cs.po: Likewise.
1691 * po/da.po: Likewise.
1692 * po/de.po: Likewise.
1693 * po/el.po: Likewise.
1694 * po/eo.po: Likewise.
1695 * po/es.po: Likewise.
1696 * po/fi.po: Likewise.
1697 * po/fr.po: Likewise.
1698 * po/gl.po: Likewise.
1699 * po/hr.po: Likewise.
1700 * po/hu.po: Likewise.
1701 * po/ia.po: Likewise.
1702 * po/id.po: Likewise.
1703 * po/it.po: Likewise.
1704 * po/ja.po: Likewise.
1705 * po/ko.po: Likewise.
1706 * po/lt.po: Likewise.
1707 * po/nb.po: Likewise.
1708 * po/nl.po: Likewise.
1709 * po/pl.po: Likewise.
1710 * po/pt_BR.po: Likewise.
1711 * po/ru.po: Likewise.
1712 * po/rw.po: Likewise.
1713 * po/sk.po: Likewise.
1714 * po/sl.po: Likewise.
1715 * po/sv.po: Likewise.
1716 * po/tr.po: Likewise.
1717 * po/uk.po: Likewise.
1718 * po/vi.po: Likewise.
1719 * po/zh_CN.po: Likewise.
1720 * po/zh_TW.po: Likewise.
1721
1722 2019-07-31 Florian Weimer <fweimer@redhat.com>
1723
1724 [BZ #24583]
1725 [BZ #24677]
1726 iconv, libio: Revert reference counting changes.
1727 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1728 free the steps array.
1729 * libio/Makefile (tests): Remove tst-wfile-gconv.
1730 (tests-container): Do not add tst-wfile-ascii.
1731 (tst-wfile-gconv-ENV): Do not set.
1732 (generated): Do not add tst-wfile-gconv.mtrace,
1733 tst-wfile-gconv.check.
1734 [($run-built-tests)] (tests-special): Do not add
1735 tst-wfile-gconv-mem.out.
1736 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1737 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1738 instead of __wcsmbs_clone_conv.
1739 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1740 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1741
1742 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1743
1744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1745 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1746
1747 2019-07-30 Florian Weimer <fweimer@redhat.com>
1748
1749 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1750 type to uintptr_t. Update comment.
1751 (check_stack_top): Adjust.
1752
1753 2019-07-29 Florian Weimer <fweimer@redhat.com>
1754
1755 Linux: Move declaration of getdents64 to <dirent.h>.
1756 * bits/dirent_ext.h: New file.
1757 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1758 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1759 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1760 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1761 declaration.
1762 * manual/filesys.texi (Low-level Directory Access): Update header
1763 to dirent.h.
1764
1765 2019-07-29 DJ Delorie <dj@redhat.com>
1766 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1767
1768 [BZ #24794]
1769 * Makeconfig (all-subdirs): Improved source comments.
1770 * Makefile (testroot.pristine/install.stamp): Pass
1771 subdirs='$(sorted-subdirs)' to make install.
1772
1773 2019-07-25 Florian Weimer <fweimer@redhat.com>
1774
1775 [BZ #24677]
1776 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1777 counter before freeing array.
1778
1779 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 [BZ #24603]
1782 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1783 works.
1784 * sysdeps/x86_64/configure: Regenerated.
1785 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1786 to -mprefer-vector-width=128 if supported.
1787
1788 2019-07-24 Florian Weimer <fweimer@redhat.com>
1789
1790 * scripts/build-many-glibcs.py (Context.checkout): Default to
1791 Linux 5.2.
1792
1793 2019-07-24 Florian Weimer <fweimer@redhat.com>
1794
1795 [BZ #24532]
1796 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1797 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1798 (sysdep_headers): Add bits/socket-constants.h.
1799 (tests-special): Add tst-socket-consts.out.
1800 (tst-socket-consts.out): New target.
1801 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1802 around <asm/unistd.h>.
1803 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1804 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1805 <asm/socket.h>.
1806 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1807 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1808 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1809 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1810 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1811 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1812 Likewise.
1813 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1814
1815 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1816
1817 [BZ #24794]
1818 * Makefile (testroot.pristine/install.stamp): Pass
1819 subdirs='$(all-subdirs)' to make install.
1820
1821 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1822 the same arguments used in all tests.
1823
1824 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1825
1826 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1827
1828 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1829
1830 [BZ #2872]
1831 * locale/C-translit.h.in: Add Cyrillic transliteration.
1832
1833 2019-07-19 Florian Weimer <fweimer@redhat.com>
1834
1835 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1836 from Linux 5.2.
1837 (fsconfig): Add system call name.
1838 (fsmount): Likewise.
1839 (fsopen): Likewise.
1840 (fspick): Likewise.
1841 (move_mount): Likewise.
1842 (open_tree): Likewise.
1843
1844 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1845
1846 * po/libc.pot: Regenerate.
1847
1848 2019-07-18 Mike Crowe <mac@mcrowe.com>
1849
1850 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1851 functions recently added to sysdeps/nptl/pthread.h:
1852 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1853 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1854
1855 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1856 pthread_cond_clockwait forwarding functions. There are no internal
1857 users, so it is unnecessary to expose these functions in libc.so.
1858 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1859 unnecessary ptr___pthread_cond_clockwait member.
1860 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1861 removed member.
1862
1863 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1864
1865 [BZ #21897]
1866 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1867 begin with an uppercase letter now.
1868 (abmon): Likewise.
1869 (mon): Update from CLDR, reword February from "Kudo" to
1870 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1871 and August from "Liiqen" to "Leqeeni".
1872 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1873 April from "Agda Baxisso" to "Agda Baxis" and August from
1874 "Leqeeni" to "Liiqen".
1875 * localedata/locales/aa_ER@saaho (mon): Likewise.
1876 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1877 abbreviated February from "Kud" to "Nah".
1878 (mon): Update from CLDR, reword February from "Kudo" to
1879 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1880
1881 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1882
1883 [BZ #23996]
1884 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1885
1886 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1887
1888 [BZ #23996]
1889 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1890 name_mrs, name_miss, and name_ms.
1891 * localedata/locales/nl_NL (LC_NAME): Likewise.
1892
1893 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1894
1895 [BZ #24200]
1896 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1897 * localedata/locales/en_IE (first_weekday): Likewise.
1898
1899 2019-07-12 Mike Crowe <mac@mcrowe.com>
1900
1901 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1902 that is only useful if futex_supports_exact_relative_timeouts ()
1903 returns false.
1904 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1905 Likewise.
1906 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1907 timeouts potentially being imprecise since it's no longer true.
1908 Remove declaration of futex_supports_exact_relative_timeouts.
1909 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1910 of futex_supports_exact_relative_timeouts.
1911
1912 * NEWS: Mention recently-added pthread_cond_clockwait,
1913 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1914 sem_clockwait functions.
1915
1916 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1917 works like pthread_mutex_timedlock but takes a clockid parameter to
1918 measure the abstime parameter against.
1919 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1920 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1921 * nptl/pthread_mutex_timedlock.c
1922 (__pthread_mutex_clocklock_common): Rename from
1923 __pthread_mutex_timedlock and add clockid parameter. Pass this
1924 parameter to lll_clocklock and lll_clocklock_elision in place of
1925 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1926 LIBC_PROBE and validate clockid parameter before calling
1927 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1928 implementation to add LIBC_PROBE and calls
1929 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1930 clockid.
1931 * nptl/Makefile: Add tst-mutex11.c.
1932 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1933 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1934 clockid parameters to pthread_mutex_clocklock.
1935 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1936 clockid parameter to indicate which clock to be used. Call
1937 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1938 (do_test): Call do_test_clock to separately test
1939 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1940 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1941 * nptl/tst-mutex9.c: Likewise.
1942 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1943 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1944 Likewise.
1945 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1946 Likewise.
1947 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1948 Likewise.
1949 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1950 Likewise.
1951 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1952 Likewise.
1953 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1954 Likewise.
1955 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1956 Likewise.
1957 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1958 (GLIBC_2.30): Likewise.
1959 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1960 (GLIBC_2.30): Likewise.
1961 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1962 (GLIBC_2.30): Likewise.
1963 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1964 (GLIBC_2.30): Likewise.
1965 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1966 (GLIBC_2.30): Likewise.
1967 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1968 Likewise.
1969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1970 (GLIBC_2.30): Likewise.
1971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1972 (GLIBC_2.30): Likewise.
1973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1974 (GLIBC_2.30): Likewise.
1975 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1976 (GLIBC_2.30): Likewise.
1977 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1978 (GLIBC_2.30): Likewise.
1979 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1980 (GLIBC_2.30): Likewise.
1981 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1982 Likewise.
1983 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1984 (GLIBC_2.30): Likewise.
1985 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1986 (GLIBC_2.30): Likewise.
1987 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1988 (GLIBC_2.30): Likewise.
1989 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1990 (GLIBC_2.30): Likewise.
1991
1992 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1993 parameter to indicate the clock that the abstime parameter should
1994 be measured against in preparation for adding
1995 pthread_mutex_clocklock.
1996 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1997 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1998 from __lll_timedlock and add clockid parameter.
1999 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2000 Likewise.
2001 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2002 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2003 rather than __gettimeofday so that clockid can be used. This means
2004 that conversion from struct timeval is no longer required.
2005 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2006 Likewise.
2007 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2008 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2009 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2010 from lll_timedlock_elision, add clockid parameter and use
2011 meaningful names for other parameters. (__pthread_mutex_timedlock):
2012 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2013 lll_clocklock_elision.
2014 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2015 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2016 clockid parameter. (__lll_clocklock_elision): Rename from
2017 __lll_timedlock_elision and add clockid parameter.
2018 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2019 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2020 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2021 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2022 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2023 (LLL_LOCK): Likewise.
2024 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2025 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2026
2027 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2028 pthread_rwlock_clockwrlock which behave like
2029 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2030 respectively, except they always measure abstime against the
2031 supplied clockid. The functions currently support CLOCK_REALTIME
2032 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2033 specified.
2034 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2035 pthread_wrlock_clockwrlock.
2036 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2037 pthread_rwlock_clockwrlock.c.
2038 * nptl/pthread_rwlock_clockrdlock.c: Implement
2039 pthread_rwlock_clockrdlock.
2040 * nptl/pthread_rwlock_clockwrlock.c: Implement
2041 pthread_rwlock_clockwrlock.
2042 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2043 clockid parameter and verify that it indicates a supported clock on
2044 entry so that we fail even if it doesn't end up being used. Pass
2045 that clock on to futex_abstimed_wait when necessary.
2046 (__pthread_rwlock_wrlock_full): Likewise.
2047 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2048 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2049 be used because there's no timeout.
2050 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2051 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2052 be used because there is no timeout.
2053 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2054 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2055 uses that clock.
2056 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2057 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2058 uses that clock.
2059 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2060 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2061 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2062 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2063 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2064 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2065 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2066 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2067 (GLIBC_2.30): Likewise.
2068 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2069 (GLIBC_2.30): Likewise.
2070 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2071 (GLIBC_2.30): Likewise.
2072 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2073 (GLIBC_2.30): Likewise.
2074 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2075 (GLIBC_2.30): Likewise.
2076 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2078 (GLIBC_2.30): Likewise.
2079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2080 (GLIBC_2.30): Likewise.
2081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2082 (GLIBC_2.30): Likewise.
2083 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2084 (GLIBC_2.30): Likewise.
2085 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2086 (GLIBC_2.30): Likewise.
2087 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2088 (GLIBC_2.30): Likewise.
2089 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2090 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2091 (GLIBC_2.30): Likewise.
2092 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2093 (GLIBC_2.30): Likewise.
2094 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2095 (GLIBC_2.30): Likewise.
2096 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2097 (GLIBC_2.30): Likewise.
2098 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2099 pthread_rwlock_clockwrlock timeout tests to match the existing
2100 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2101 * nptl/tst-rwlock14.c (do_test): Likewise.
2102 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2103 ancillary output throughout. (tf): Accept thread_args structure so
2104 that rwlock, a clockid and function name can be passed to the
2105 thread. (do_test_clock): Rename from do_test. Accept clockid
2106 parameter to specify test clock. Use the magic clockid value of
2107 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2108 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2109 specified clockid to pthread_rwlock_clockrdlock and
2110 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2111 (do_test): Call do_test_clock to test each clockid in turn.
2112 * nptl/tst-rwlock7.c: Likewise.
2113 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2114 thread_args structure so that the (now int) thread number, the
2115 clockid and the function name can be passed to the thread.
2116 (do_test_clock): Renamed from do_test. Pass the necessary
2117 thread_args when creating the reader and writer threads. Use
2118 xpthread_create and xpthread_join.
2119 (do_test): Call do_test_clock to test each clockid in turn.
2120 * manual/threads.texi: Add documentation for
2121 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2122
2123 nptl: pthread_rwlock: Move timeout validation into _full functions
2124 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2125 Check validity of abstime parameter.
2126 (__pthread_rwlock_rwlock_full): Likewise.
2127 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2128 Remove check for validity of abstime parameter.
2129 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2130 Likewise.
2131
2132 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2133 like pthread_cond_timedwait except it always measures abstime
2134 against the supplied clockid.
2135 * nptl/Makefile: Add tst-cond26 and tst-cond27
2136 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2137 * sysdeps/nptl/pthread.h: Likewise
2138 * nptl/forward.c: Add __pthread_cond_clockwait
2139 * nptl/forward.c: Likewise
2140 * nptl/pthreadP.h: Likewise
2141 * sysdeps/nptl/pthread-functions.h: Likewise
2142 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2143 clockid parameter and comment describing why we don't need to check
2144 its value. Use that value when calling
2145 futex_abstimed_wait_cancelable rather than reading the clock from
2146 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2147 (__pthread_cond_timedwait): Read clock from flags and pass it to
2148 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2149 function with weak alias from pthread_cond_clockwait.
2150 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2151 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2152 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2153 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2154 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2155 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2156 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2157 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2158 (GLIBC_2.30): Likewise.
2159 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2160 (GLIBC_2.30): Likewise.
2161 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2162 (GLIBC_2.30): Likewise.
2163 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2164 (GLIBC_2.30): Likewise.
2165 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2166 (GLIBC_2.30): Likewise.
2167 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2169 (GLIBC_2.30): Likewise.
2170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2171 (GLIBC_2.30): Likewise.
2172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2173 (GLIBC_2.30): Likewise.
2174 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2175 (GLIBC_2.30): Likewise.
2176 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2177 (GLIBC_2.30): Likewise.
2178 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2179 (GLIBC_2.30): Likewise.
2180 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2181 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2182 (GLIBC_2.30): Likewise.
2183 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2184 (GLIBC_2.30): Likewise.
2185 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2186 (GLIBC_2.30): Likewise.
2187 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2188 (GLIBC_2.30): Likewise.
2189 * nptl/tst-cond11.c (run_test): Support testing
2190 pthread_cond_clockwait too by using a special magic
2191 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2192 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2193 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2194 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2195 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2196 clocks to pthread_cond_clockwait.
2197 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2198 struct timespec and pthread_cond_clockwait.
2199 * manual/threads.texi: Document pthread_cond_clockwait.
2200
2201 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2202 sem_timedwait, but measures abstime against the specified clock.
2203 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2204 clockid parameters to indicate the clock which abstime should be
2205 measured against.
2206 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2207 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2208 __new_sem_wait_slow.
2209 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2210 on sem_timedwait.c.
2211 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2212 sem_clockwait.c to match those used for sem_timedwait.c.
2213 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2214 * nptl/Versions (GLIBC_2.30): Likewise.
2215 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2216 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2217 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2218 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2219 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2220 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2221 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2222 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2223 (GLIBC_2.30): Likewise.
2224 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2225 (GLIBC_2.30): Likewise.
2226 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2227 (GLIBC_2.30): Likewise.
2228 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2229 (GLIBC_2.30): Likewise.
2230 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2231 (GLIBC_2.30): Likewise.
2232 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2234 (GLIBC_2.30): Likewise.
2235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2236 (GLIBC_2.30): Likewise.
2237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2238 (GLIBC_2.30): Likewise.
2239 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2240 (GLIBC_2.30): Likewise.
2241 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2242 (GLIBC_2.30): Likewise.
2243 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2244 (GLIBC_2.30): Likewise.
2245 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2246 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2247 (GLIBC_2.30): Likewise.
2248 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2249 (GLIBC_2.30): Likewise.
2250 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2251 (GLIBC_2.30): Likewise.
2252 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2253 (GLIBC_2.30): Likewise.
2254 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2255 sem_clockwait.
2256 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2257 tests to also test sem_clockwait.
2258 * manual/threads.texi: Document sem_clockwait.
2259
2260 nptl: Add clockid parameter to futex timed wait calls
2261 * sysdeps/nptl/lowlevellock-futex.h,
2262 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2263 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2264 takes a clockid rather than a special clockbit.
2265 * sysdeps/nptl/lowlevellock-futex.h: Add
2266 lll_futex_supported_clockid so that client functions can check
2267 whether their clockid parameter is valid even if they don't
2268 ultimately end up calling lll_futex_clock_wait_bitset.
2269 * sysdeps/nptl/futex-internal.h,
2270 sysdeps/unix/sysv/linux/futex-internal.h
2271 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2272 clockid_t parameter to indicate which clock the absolute time
2273 passed should be measured against. Pass that clockid onto
2274 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2275 returning -EINVAL.
2276 * sysdeps/nptl/futex-internal.h,
2277 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2278 futex_abstimed_supported_clockid so that client functions can check
2279 whether their clockid parameter is valid even if they don't
2280 ultimately end up calling futex_abstimed_wait.
2281 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2282 code to calculate relative timeout for
2283 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2284 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2285 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2286 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2287 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2288 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2289 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2290
2291 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2292
2293 [BZ #24699]
2294 * posix/tst-mmap-offset.c: Mention BZ #24699.
2295 (do_test_bz21270): Rename to do_test_large_offset and use
2296 mmap64_maximum_offset to check for maximum expected offset value.
2297 * sysdeps/generic/mmap_info.h: New file.
2298 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2299 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2300 __NR_mmap2 is used.
2301
2302 2019-07-10 DJ Delorie <dj@redhat.com>
2303 Sergei Trofimovich <slyfox@inbox.ru>
2304
2305 [BZ #24696]
2306 [BZ #24695]
2307 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2308 mappings.
2309 * nss/tst-nss-db-endgrent.c: New.
2310 * nss/tst-nss-db-endgrent.root: New.
2311 * nss/tst-nss-db-endpwent.c: New.
2312 * nss/tst-nss-db-endpwent.root: New.
2313 * nss/Makefile: Add new tests.
2314 * support/links-dso-program-c.c: Add selinux dependency.
2315 * support/links-dso-program.cc: Add selinux dependency.
2316 * support/Makefile: Build those with -lselinux if enabled.
2317
2318 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2319
2320 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2321 DT_AARCH64_VARIANT_PCS check.
2322 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2323 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2324 variant_pcs.
2325
2326 2019-07-10 Andreas Schwab <schwab@suse.de>
2327
2328 [BZ #23352]
2329 * malloc/malloc.h (__malloc_check_init): Don't declare.
2330 * include/malloc.h (__malloc_check_init): Likewise.
2331 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2332 * manual/memory.texi (__malloc_check_init): Don't mention it.
2333
2334 2019-07-10 Mao Han <han_mao@c-sky.com>
2335
2336 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2337
2338 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2339
2340 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2341 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2342
2343 2019-07-08 DJ Delorie <dj@redhat.com>
2344
2345 [BZ #23501]
2346 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2347 * io/tst-ftw-lnk.c: New test.
2348 * io/Makefile: Run it.
2349
2350 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2351
2352 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2353 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2354 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2355 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2356 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2357 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2359 Adjust implementation path.
2360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2361 Adjust implementation path.
2362 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2363 Adjust implementation path.
2364 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2365 (libm-sysdep_routines): Add s_log* objects.
2366 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2367 CFLAGS-s_logb-power7.c): New fule.
2368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2369 to ...
2370 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2371 ... here.
2372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2373 to ...
2374 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2375 ... here.
2376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2377 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2379 to ...
2380 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2381 ... here.
2382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2383 to ...
2384 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2385 ... here.
2386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2387 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2389 to ...
2390 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2391 ... here.
2392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2393 to ...
2394 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2395 ... here.
2396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2397 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2398 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2399 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2400 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2401 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2402
2403 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2404 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2405 powerpc32 integer 0 converting to -0.
2406
2407 * benchtests/Makefile (bench-math): Add logb.
2408 * benchtests/logb-inputs: New file.
2409 * benchtests/logbf-inputs: New file.
2410
2411 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2412 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2413 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2414 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2415 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2416 Adjust include.
2417 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2418 Likewise.
2419 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2420 sysdep_routines): Add s_modf* objects.
2421 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2422 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2424 to ...
2425 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2426 ... here.
2427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2428 to ...
2429 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2430 ... here.
2431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2432 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2434 to ...
2435 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2436 ... here.
2437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2438 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2439 ... here.
2440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2441 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2442
2443 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2444 twoM500, twoM600, two60factor, pdnum): Remove.
2445 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2446 (__ieee754_hypot): Replace static variables with inline definition,
2447 remove ununsed branches.
2448 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2449 (libm-sysdep_routines): Remove e_hypot-* objects.
2450 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2451 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2452 file.
2453 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2454 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2455 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2456 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2457 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2458
2459 * benchtests/Makefile (bench-math): Add hypot.
2460 * benchtests/hypot-inputs: New file.
2461
2462 2019-07-08 Vincent Chen <vincentc@andestech.com>
2463
2464 * sysdeps/unix/sysv/linux/dl-vdso.h
2465 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2466
2467 2019-07-04 Andreas Schwab <schwab@suse.de>
2468
2469 [BZ #24484]
2470 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2471
2472 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2473
2474 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2475 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2476 * sysdeps/aarch64/sys/ifunc.h: New file.
2477 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2478 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2479
2480 2019-07-01 Florian Weimer <fweimer@redhat.com>
2481
2482 [BZ #20188]
2483 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2484 Replace __vfork with __libpthread_version_placeholder for
2485 GLIBC_2.1.2.
2486 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2487 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2488 libpthread-compat.
2489 * nptl/pt-vfork.c: Remove file.
2490 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2491 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2492 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2493 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2494 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2495 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2496 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2497 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2498 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2499 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2500 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2501 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2502 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2503 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2504 Remove vfork, __vfork.
2505 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2506 Remove vfork.
2507 (GLIBC_2.1.2): Replace __vfork with
2508 __libpthread_version_placeholder.
2509 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2510 Remove vfork, __vfork.
2511 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2512 Likewise.
2513 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2514 Remove vfork.
2515 (GLIBC_2.1.2): Replace __vfork with
2516 __libpthread_version_placeholder.
2517 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2518 Remove vfork.
2519 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2520 (GLIBC_2.4): Remove vfork, __vfork.
2521 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2522 (GLIBC_2.0): Remove vfork.
2523 (GLIBC_2.1.2): Replace __vfork with
2524 __libpthread_version_placeholder.
2525 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2526 (GLIBC_2.18): Remove vfork, __vfork.
2527 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2528 (GLIBC_2.0): Remove vfork.
2529 (GLIBC_2.2): Remove __vfork.
2530 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2531 (GLIBC_2.2): Remove vfork, __vfork.
2532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2533 (GLIBC_2.0): Remove vfork.
2534 (GLIBC_2.1.2): Replace __vfork with
2535 __libpthread_version_placeholder.
2536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2537 (GLIBC_2.3): Remove vfork, __vfork.
2538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2539 (GLIBC_2.17): Likewise.
2540 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2541 (GLIBC_2.0): Remove vfork.
2542 (GLIBC_2.1.2): Replace __vfork with
2543 __libpthread_version_placeholder.
2544 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2545 (GLIBC_2.2): Remove vfork, __vfork.
2546 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2547 Likewise.
2548 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2549 (GLIBC_2.0): Remove vfork.
2550 (GLIBC_2.1.2): Replace __vfork with
2551 __libpthread_version_placeholder.
2552 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2553 (GLIBC_2.2): Remove vfork, __vfork.
2554 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2555 (GLIBC_2.2.5): Likewise.
2556 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2557 (GLIBC_2.16): Likewise.
2558 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2559 Remove __errno_location.
2560
2561 2019-07-02 Florian Weimer <fweimer@redhat.com>
2562
2563 [BZ #24757]
2564 * malloc/Depend: Add nptl and htl, due to potential indirect
2565 libpthread dependency of memusagestat.
2566
2567 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2568
2569 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2570 warning.
2571
2572 2019-07-01 Florian Weimer <fweimer@redhat.com>
2573
2574 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2575 variant for arm-linux-gnueabi.
2576
2577 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2578
2579 [BZ #24259]
2580 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2581 relocation.
2582 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2583 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2584 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2585 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2586 and tst-cet-legacy-mod-6c.
2587 (CFLAGS-tst-cet-legacy-5a.c): New.
2588 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2589 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2590 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2591 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2592 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2593 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2594 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2595 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2596 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2597 ($(objpfx)tst-cet-legacy-5a): Likewise.
2598 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2599 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2600 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2601 ($(objpfx)tst-cet-legacy-5b): Likewise.
2602 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2603 (tst-cet-legacy-5b-ENV): Likewise.
2604 ($(objpfx)tst-cet-legacy-6a): Likewise.
2605 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2606 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2607 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2608 ($(objpfx)tst-cet-legacy-6b): Likewise.
2609 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2610 (tst-cet-legacy-6b-ENV): Likewise.
2611 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2612 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2613 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2614 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2615 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2616 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2617 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2618 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2619 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2620 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2621 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2622 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2623 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2624 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2625
2626 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2627
2628 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2629 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2630 (__fegetround_ISA300) New.
2631 (__fegetround_ISA2) New.
2632 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2633 (_FPU_MFFS): Move implementation...
2634 (_FPU_GETCW): Here.
2635 (_FPU_MFFSL): Move implementation....
2636 (_FPU_GET_RC_ISA300): Here. New.
2637 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2638 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2639 (fegetenv_status): New.
2640 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2641 instead of fegetenv_register().
2642 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2643
2644 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2645
2646 * benchtests/bench-math-inlines.c: Increase iterations.
2647 * benchtests/bench-memcmp.c: Likewise.
2648 * benchtests/bench-rawmemchr.c: Likewise.
2649 * benchtests/bench-strcmp.c: Likewise.
2650 * benchtests/bench-strcpy_chk.c: Likewise.
2651 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2652 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2653 (INNER_LOOP_ITERS_SMALL): Likewise.
2654 * benchtests/bench-strncat.c: Increase iterations.
2655 * benchtests/bench-strncmp.c: Increase iterations.
2656 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2657 * benchtests/bench-strrchr.c: Increase iterations.
2658 * benchtests/bench-strstr.c: Keep iterations unchanged.
2659 * benchtests/bench-strtod.c: Increase iterations.
2660
2661 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2662
2663 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2664 with INNER_LOOP_ITERS_LARGE.
2665 * benchtests/bench-memchr.c: Likewise.
2666 * benchtests/bench-rawmemchr.c: Likewise.
2667 * benchtests/bench-strcat.c: Likewise.
2668 * benchtests/bench-strchr.c: Likewise.
2669 * benchtests/bench-string.h: Likewise.
2670 * benchtests/bench-strlen.c: Likewise.
2671 * benchtests/bench-strncpy.c: Likewise.
2672 * benchtests/bench-strnlen.c: Likewise.
2673
2674 2019-06-28 Florian Weimer <fweimer@redhat.com>
2675
2676 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2677 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2678 entire allocated memory range.
2679
2680 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2681
2682 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2683 (prepare_version_base): New helper inline function.
2684 (prepare_version): New macro replacing PREPARE_VERSION.
2685 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2686
2687 2019-06-28 Florian Weimer <fweimer@redhat.com>
2688
2689 [BZ #24741]
2690 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2691 mismatch in a versioned symbol reference.
2692 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2693 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2694 tst-sonamemove-dlopen.
2695 (module-names): Add tst-sonamemove-linkmod1,
2696 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2697 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2698 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2699 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2700 (tst-sonamemove-runmod1.so): Link against
2701 tst-sonamemove-runmod2.so.
2702 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2703 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2704 tst-sonamemove-runmod2.so.
2705 (tst-sonamemove-dlopen): Link with -ldl.
2706 (tst-sonamemove-dlopen.out): Likewise.
2707 * elf/tst-sonamemove-link.c: New file.
2708 * elf/tst-sonamemove-dlopen.c: Likewise.
2709 * elf/tst-sonamemove-linkmod1.c: Likewise.
2710 * elf/tst-sonamemove-linkmod1.map: Likewise.
2711 * elf/tst-sonamemove-runmod1.c: Likewise.
2712 * elf/tst-sonamemove-runmod1.map: Likewise.
2713 * elf/tst-sonamemove-runmod2.c: Likewise.
2714 * elf/tst-sonamemove-runmod2.map: Likewise.
2715
2716 2019-06-28 Florian Weimer <fweimer@redhat.com>
2717
2718 * support/xdlfcn.h (xdlvsym): Declare function.
2719 * support/xdlfcn.c (xdlvsym): Define funciton.
2720
2721 2019-06-28 Florian Weimer <fweimer@redhat.com>
2722
2723 [BZ #24744]
2724 io: Remove the copy_file_range emulation.
2725 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2726 not define and call copy_file_range_compat.
2727 * io/Makefile (tests-static, tests-internal): Do not add
2728 tst-copy_file_range-compat.
2729 * io/copy_file_range-compat.c: Remove file.
2730 * io/copy_file_range.c (copy_file_range): Define as stub.
2731 * io/tst-copy_file_range-compat.c: Remove file.
2732 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2733 (typical_sizes): Update comment. Remove 16K sizes.
2734 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2735 Remove variables.
2736 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2737 (delayed_write_failure_beginning, delayed_write_failure_end)
2738 (cross_device_failure, enospc_failure_1, enospc_failure)
2739 (oappend_failure): Remove functions.
2740 (tests): Adjust test case list.
2741 (do_test): Remove file system search code. Check for ENOSYS from
2742 copy_file_range. Do not free xdevfile.
2743 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2744 copy_file_range. Do not document the EXDEV error, which future
2745 kernels may not report. Update the wording to reflect that
2746 further errors are possible.
2747 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2748 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2749 not undefine.
2750 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2751 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2752 Likewise.
2753 * sysdeps/unix/sysv/linux/kernel-features.h
2754 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2755 Remove definition.
2756 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2757 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2758 not undefine.
2759 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2760 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2761 Likewise.
2762
2763 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2764
2765 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2766 used as a mask for the mode argument of __vfprintf_internal.
2767 * stdio-common/printf-parse.h (printf_arg): New union member:
2768 pa_float128.
2769 * stdio-common/vfprintf-internal.c
2770 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2771 (PARSE_FLOAT_VA_ARG): Likewise.
2772 (SETUP_FLOAT128_INFO): Likewise.
2773 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2774 SETUP_FLOAT128_INFO.
2775 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2776 floating-point value to the new union member, pa_float128.
2777 (printf_positional): Zero-initialize args_value[cnt] with memset.
2778
2779 2019-06-27 Florian Weimer <fweimer@redhat.com>
2780
2781 [BZ #24740]
2782 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2783 buffer size if necessary.
2784 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2785 Likewise.
2786 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2787 New function.
2788 (large_buffer_checks): Likewise.
2789 (do_test): Call large_buffer_checks.
2790
2791 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2792
2793 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2794 * sysdeps/x86/dl-lookupcfg.h: Here.
2795 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2796
2797 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2798
2799 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2800 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2801 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2802 file.
2803 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2804 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2805 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2806 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2807 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2808
2809 * sysdeps/powerpc/powerpc32/fpu/Makefile
2810 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2811 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2812 and fctidz optimization.
2813 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2814 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2816 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2817 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2818 CFLAGS-s_lround-power5+.c): New rule.
2819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2820 New file.
2821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2822 Likewise.
2823 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2824 Likewise.
2825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2826 Likewise.
2827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2828 Likewise.
2829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2830 Remove file.
2831 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2832 Likewise.
2833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2834 Likewise.
2835 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2836 Likewise.
2837 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2838 Likewise.
2839 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2840 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2841 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2842 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2843 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2844 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2845 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2846
2847 2019-06-26 Vincent Chen <vincentc@andestech.com>
2848
2849 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2850 specific system calls, fp_udfiex_crtl and udftrap.
2851
2852 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2853
2854 * nptl/tst-eintr1.c (tf1): Add return statement.
2855 (do_test): Remove unused th variable.
2856
2857 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2858
2859 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2860 Return error if get_character fails.
2861
2862 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2863
2864 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2865
2866 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2867
2868 [BZ #24652]
2869 * localedata/locales/szl_PL (day): Use the correct Unicode
2870 sequences instead of non-ASCII characters.
2871
2872 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2873
2874 [BZ #24652]
2875 * localedata/locales/szl_PL (abday): Spelling corrections.
2876 (day): Likewise.
2877 (abmon): Likewise.
2878 (mon): Rename to...
2879 (alt_mon): This, then apply spelling corrections.
2880 (mon): New entry, month names in the genitive case.
2881
2882 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2883
2884 [BZ #23831]
2885 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2886 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2887 (thousands_sep): Likewise.
2888 (grouping): Set to 3;3.
2889
2890 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2891
2892 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2893 PREPARE_VERSION_KNOWN.
2894 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2895 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2896 define.
2897 (VDSO_HASH_LINUX_2_6_39): Likewise.
2898 (VDSO_NAME_LINUX_4_9): Likewise.
2899 (VDSO_HASH_LINUX_4_9): Likewise.
2900 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2901 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2902 (_libc_vdso_platform_setup): Likewise.
2903 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2904 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2905 Likewise.
2906 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2907 Likewise.
2908
2909 2019-06-20 Mike Crowe <mac@mcrowe.com>
2910
2911 * nptl/eintr.c: Use libsupport.
2912 * nptl/tst-eintr1.c: Likewise.
2913 * nptl/tst-eintr2.c: Likewise.
2914 * nptl/tst-eintr3.c: Likewise.
2915 * nptl/tst-eintr4.c: Likewise.
2916 * nptl/tst-eintr5.c: Likewise.
2917 * nptl/tst-mutex-errorcheck.c: Likewise.
2918 * nptl/tst-mutex5.c: Likewise.
2919
2920 * support/test-driver.h: Add verbose_printf macro.
2921
2922 * support/xtime.h: Add xclock_now() helper function.
2923
2924 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2925 Florian Weimer <fweimer@redhat.com>
2926
2927 [BZ #24228]
2928 * libio/genops.c (_IO_unbuffer_all)
2929 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2930 buffers and access _IO_FILE_complete members of legacy libio streams.
2931 * libio/tst-bz24228.c: New file.
2932 * libio/tst-bz24228.map: Likewise.
2933 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2934 [build-shared] (generated): Add tst-bz24228.mtrace and
2935 tst-bz24228.check.
2936 [run-built-tests && build-shared] (tests-special): Add
2937 $(objpfx)tst-bz24228-mem.out.
2938 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2939 ($(objpfx)tst-bz24228-mem.out): New rule.
2940
2941 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2942
2943 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2944 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2945 (__FPU_MFFSL): Likewise.
2946 (_FPU_SETCW): Likewise.
2947
2948 2019-06-19 Stan Shebs <stanshebs@google.com>
2949 Raoni Fassina Firmino <raoni@linux.ibm.com>
2950
2951 [BZ #24640]
2952 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2953 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2954 static-linking version.
2955 * sysdeps/unix/sysv/linux/powerpc/Makefile
2956 (tests-static): Add test-gettimebasefreq-static.
2957 (tests): Likewise.
2958 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2959 New file.
2960
2961 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
2962
2963 [BZ #24614]
2964 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2965 between the currency symbol and the minus sign).
2966 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2967
2968 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
2969
2970 [BZ #24556]
2971 * string/test-strcasestr.c (check_result): Add NULL check.
2972 * nss/tst-field.c (check_rewrite): Likewise.
2973 * benchtests/bench-strstr.c (do_one_test): Likewise.
2974 * string/test-strstr.c (check_result): Likewise.
2975 * argp/argp-test.c (popt): Increase size of buf to 12.
2976 * benchtests/bench-malloc-simple.c (bench):
2977 Do not initialize tests array out of bounds.
2978
2979 2019-06-19 Florian Weimer <fweimer@redhat.com>
2980
2981 [BZ #24166]
2982 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2983 dls_serpath field.
2984
2985 2019-06-18 Florian Weimer <fweimer@redhat.com>
2986
2987 [BZ #24323]
2988 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2989 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2990 fail when called from dlopen.
2991 * elf/Makefile [have-fpie && build-shared] (tests): Add
2992 tst-dlopen-pie.
2993 (tst-dlopen-pie): Link with -ldl.
2994 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2995 * elf/tst-dlopen-pie.c (do_test): New file.
2996
2997 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2998
2999 [BZ #24614]
3000 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3001 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3002 between the currency symbol and the minus sign).
3003 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3004 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3005
3006 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3007
3008 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3009 sysdep-rtld-routines): Remove rules.
3010 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3011 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3012 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3013 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3014 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3015 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3016 vDSO path for SHARED.
3017 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3018 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3019 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3020 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3021 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3022 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3023
3024 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3025 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3026 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3027 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3028 CFLAGS-s_llround-power5+.c): New rule.
3029 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3030 New file.
3031 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3032 Likewise.
3033 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3034 Likewise.
3035 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3036 Likewise.
3037 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3038 Likewise.
3039 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3040 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3042 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3044 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3045 * sysdeps/powerpc/powerpc64/fpu/Makefile
3046 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3047 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3048 (libm-sysdep_routines): Remove s_llround-* objects.
3049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3050 file.
3051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3052 Likewise.
3053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3054 Likewise.
3055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3056 Likewise.
3057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3058 Likewise.
3059 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3060 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3061 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3062 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3063 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3064 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3065 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3066 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3067 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3068 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3069 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3070 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3071 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3072 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3073
3074 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3075 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3076 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3077 * sysdeps/powerpc/powerpc32/fpu/Makefile
3078 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3079 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3080 optimization.
3081 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3082 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3083 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3084 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3085 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3086 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3087 CFLAGS-s_lrint-ppc32.c): New rule.
3088 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3089 Remove file.
3090 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3091 Likewise.
3092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3093 Likewise.
3094 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3095 Likewise.
3096 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3097 Likewise.
3098 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3099 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3100 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3101 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3102 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3103 New file.
3104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3105 Likewise.
3106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3107 Likewise.
3108 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3109 Likewise.
3110 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3111 Likewise.
3112
3113 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3114 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3115 s_llrint-ppc64.
3116 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3117 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3118 file.
3119 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3120 Likewise.
3121 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3122 Likewise.
3123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3124 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3126 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3128 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3129 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3130 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3131 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3132 (libm-sysdep_routines): Remove s_llrint-* objects.
3133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3134 file.
3135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3136 Likewise.
3137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3138 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3139 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3140 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3141 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3142 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3143 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3144 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3145 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3146 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3147
3148 2019-06-14 Florian Weimer <fweimer@redhat.com>
3149
3150 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3151 argument to __glibc_has_include to inhibit macro expansion.
3152
3153 2019-06-14 Florian Weimer <fweimer@redhat.com>
3154
3155 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3156 function-like macro, so that __has_include can inhibit expansion
3157 of its argument.
3158
3159 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3160
3161 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3162 New macro.
3163
3164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3165 Allow memset in libc.so.
3166
3167 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3168
3169 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3170 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3171 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3172 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3173 symbols at load time.
3174 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3175
3176 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3177
3178 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3179 (DT_AARCH64_VARIANT_PCS): Define.
3180
3181 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3182
3183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3184 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3185 objects.
3186 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3187 Remove file.
3188 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3189 Likewise.
3190 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3192 Likewise.
3193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3194 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3195 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3196 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3197 Remove s_finite* objects.
3198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3204 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3205 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3206 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3207 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3208
3209 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3210 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3211
3212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3213 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3214 objects.
3215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3216 Remove file.
3217 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3218 Likewise.
3219 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3220 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3221 Likewise.
3222 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3223 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3224 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3225 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3226 Remove s_isinf* and s_isinf* objects.
3227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3230 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3233 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3234 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3235 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3236 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3237
3238 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3239 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3240
3241 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3242 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3243 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3244 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3245 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3246 s_isnanf-* objects.
3247 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3248 Remove file
3249 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3250 Likewise.
3251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3252 Likewise.
3253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3254 Likewise.
3255 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3256 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3257 Likewise.
3258 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3259 Likewise.
3260 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3261 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3262 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3263 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3264 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3265 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3266 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3267 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3268 Remove s_isnan-* and s_isnanf-* objects.
3269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3272 Likewise.
3273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3278 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3279 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3280 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3281 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3282 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3283 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3284 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3285 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3286
3287 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3288 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3289
3290 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3291 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3292 CFLAGS-bench-isfinite.c): New rule.
3293 * benchtests/isnan-input: New file.
3294 * benchtests/isinf-input: New file.
3295 * benchtests/isfinite-input: New file.
3296
3297 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3298 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3299 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3300 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3302 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3303 s_copysign-ppc32.
3304 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3305 Remove file.
3306 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3307 Likewise.
3308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3309 Likewise.
3310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3311 Likewise.
3312 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3313 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3314 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3315 Remove s_copysign-power6 s_copysign-ppc64.
3316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3317 Remove file.
3318 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3319 Likewise.
3320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3322 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3323 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3324 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3325 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3326
3327 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3328 round_to_integer_float, round_mode): Add RINT handling.
3329 (reset_fenv_mode): New symbol.
3330 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3331 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3332 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3333 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3334 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3335 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3336
3337 2019-06-12 Florian Weimer <fweimer@redhat.com>
3338
3339 [BZ #24632]
3340 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3341 * libio/freopen.c (freopen): Use it.
3342
3343 2019-06-12 Florian Weimer <fweimer@redhat.com>
3344
3345 Linux: Deprecate sysctl.
3346 * include/sysctl.h (__sysctl): Remove declaration.
3347 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3348 check.
3349 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3350 (sysctl): Add deprecation attribute.
3351 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3352 directly, to avoid the deprecation warning. Do not include
3353 <string.h>.
3354 (__sysctl): Remove hidden alias.
3355
3356 2019-06-12 Florian Weimer <fweimer@redhat.com>
3357
3358 Linux: Use kernel headers for statx definitions if available.
3359 * include/bits/statx-generic.h: New file.
3360 * include/bits/types/struct_statx.h: Likewise.
3361 * include/bits/types/struct_statx_timestamp.h: Likewise.
3362 * io/Makefile (headers): Add bits/statx-generic.h.
3363 * io/bits/statx-generic.h: New file. Partly copied from
3364 io/bits/statx.h.
3365 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3366 define original_statx.
3367 * io/bits/types/struct_statx.h: Likewise.
3368 * io/bits/types/struct_statx_timestamp.h: Likewise.
3369 (statx_generic): Use original_statx.
3370 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3371 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3372
3373 2019-06-12 Florian Weimer <fweimer@redhat.com>
3374
3375 * misc/sys/cdefs.h (__glibc_has_include): Define.
3376
3377 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3378
3379 * string/memmem.c (__memmem): Rewrite to improve performance.
3380
3381 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3382
3383 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3384 warning.
3385 (two_way_long_needle): Block inlining.
3386 * string/strstr.c (strstr2): Add new function.
3387 (strstr3): Likewise.
3388 (STRSTR): Completely rewrite strstr to improve performance.
3389
3390 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3391
3392 * benchtests/bench-strstr.c (test_hard_needle): New function.
3393
3394 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3395
3396 * malloc/tst-calloc.c: Include <libc-diag.h>.
3397 (null_test): Ignore -Wunused-result around calls to calloc.
3398 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3399 (do_test): Ignore -Wunused-result around call to malloc.
3400
3401 2019-06-07 Florian Weimer <fweimer@redhat.com>
3402
3403 Linux: Add getdents64 system call.
3404 * include/dirnent.h (getdents): Add comment and change buffer
3405 argument type to void *.
3406 (getdents64): Likewise. Add hidden prototype.
3407 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3408 getdents64.
3409 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3410 Add tst-getdents64.
3411 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3412 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3413 argument type to void *.
3414 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3415 Add hidden definition and getdents64 alias.
3416 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3417 Likewise.
3418 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3419 * manual/filesys.texi (Accessing Directories): Add Low-level
3420 Directory Access node reference.
3421 (Opening a Directory): Cross-reference it.
3422 (Low-level Directory Access): New node.
3423 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3424 getdents64.
3425 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3426 Likewise.
3427 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3428 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3429 Likewise.
3430 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3431 Likewise.
3432 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3433 Likewise.
3434 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3435 Likewise.
3436 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3437 Likewise.
3438 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3439 Likewise.
3440 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3441 Likewise.
3442 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3443 (GLIBC_2.30): Likewise.
3444 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3445 (GLIBC_2.30): Likewise.
3446 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3447 (GLIBC_2.30): Likewise.
3448 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3449 (GLIBC_2.30): Likewise.
3450 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3451 Likewise.
3452 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3453 (GLIBC_2.30): Likewise.
3454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3455 (GLIBC_2.30): Likewise.
3456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3457 (GLIBC_2.30): Likewise.
3458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3459 (GLIBC_2.30): Likewise.
3460 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3461 Likewise.
3462 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3463 Likewise.
3464 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3465 Likewise.
3466 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3467 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3468 Likewise.
3469 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3470 Likewise.
3471 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3472 Likewise.
3473 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3474 Likewise.
3475
3476 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3477
3478 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3479 (__FPU_MFFS): New.
3480 (__FPU_MFFSL): New.
3481 (_FPU_GET_RC): New.
3482 (_FPU_GETCW): Use __FPU_MFFS().
3483 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3484
3485 2019-06-06 Florian Weimer <fweimer@redhat.com>
3486
3487 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3488 internal GCC preprocessor identifier __has_include__.
3489
3490 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3491
3492 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3493 with call to equivalent function.
3494
3495 2019-06-04 Florian Weimer <fweimer@redhat.com>
3496
3497 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3498 (do_release_shlib): Adjust for __twalk_r.
3499 (__gconv_release_shlib): Call __twalk_r.
3500
3501 2019-06-04 Andreas Schwab <schwab@suse.de>
3502
3503 [BZ #18830]
3504 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3505 no irreversible characters occurred.
3506 * iconv/gconv_simple.c (internal_ucs4_loop)
3507 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3508 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3509 (ucs4_internal_loop_single, internal_ucs4le_loop)
3510 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3511 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3512 (ucs4le_internal_loop_single): Add const to outend.
3513 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3514 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3515 * iconv/Makefile (tests): Add tst-iconv7.
3516 * iconv/tst-iconv7.c: New file.
3517
3518 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3519
3520 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3521
3522 2019-06-01 Florian Weimer <fweimer@redhat.com>
3523
3524 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3525 * sysdeps/unix/sysv/linux/arm/Makefile
3526 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3527 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3528 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3529 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3530 compatibility symbols.
3531
3532 2019-05-31 Florian Weimer <fweimer@redhat.com>
3533
3534 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3535 system calls for the arm architecture: breakpoint, get_tls,
3536 set_tls, usr26, usr32.
3537
3538 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3539
3540 * sysdeps/powerpc/Makefile
3541 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3542 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3543 Declare '.machine power7' to get support for ldbrx.
3544 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3545 directive based on the directory of the file.
3546 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3547 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3548 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3549 '.machine' directive.
3550 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3551 (VADDUQM_V7_V8): Remove.
3552 (__STRCASECMP): Replace macros with actual instructions.
3553 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3554 '.machine' directive.
3555 (VCLZD_V8_v7): Remove.
3556 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3557
3558 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3559
3560 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3561 Remove file.
3562 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3563
3564 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3565
3566 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3567 NEARBYINT handling.
3568 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3569 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3570 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3571 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3572 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3573 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3574
3575 2019-05-28 mansayk <6688000@gmail.com>
3576
3577 [BZ #24370]
3578 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3579
3580 2019-05-28 mansayk <6688000@gmail.com>
3581
3582 [BZ #24369]
3583 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3584 (abmon): Likewise, but remove the trailing dots.
3585
3586 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3587
3588 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3589
3590 2019-05-27 Florian Weimer <fweimer@redhat.com>
3591
3592 * nptl/nptl-init.c: Add comment.
3593
3594 2019-05-24 Florian Weimer <fweimer@redhat.com>
3595
3596 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3597 struct in_addr/struct in6_addr alignment.
3598
3599 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3600
3601 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3602 (F_SEAL_FUTURE_WRITE): New macro.
3603
3604 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3605
3606 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3607 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3608 * elf/tst-ldconfig_aux-cache.root: New directory.
3609 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3610 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3611 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3612
3613 2019-05-22 Zack Weinberg <zackw@panix.com>
3614
3615 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3616 host type.
3617 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3618 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3619
3620 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3623 Delete.
3624
3625 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3626 Issue an #error if used with a compiler in SPE-float mode.
3627 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3628 * sysdeps/powerpc/powerpc32/setjmp_common.S
3629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3635 Remove code to preserve SPE register state.
3636
3637 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3638 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3639 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3640 Remove __SPE__ ifndefs.
3641
3642 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3643
3644 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3645 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3646 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3647 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3648 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3649 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3650 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3651 (INNER_LOOP_ITERS_MEDIUM): New define.
3652 (INNER_LOOP_ITERS_SMALL): New define.
3653 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3654 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3655 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3656 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3657 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3658
3659 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3660
3661 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3662 New define.
3663 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3664 (SEMTIMEDOP_IPC_ARGS): Likewise.
3665
3666 2019-05-21 Florian Weimer <fweimer@redhat.com>
3667
3668 [BZ #24584]
3669 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3670 before updating __counter field and release it afterwards. Add
3671 overflow check.
3672 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3673 requirement for __counter member.
3674
3675 2019-05-21 Florian Weimer <fweimer@redhat.com>
3676
3677 [BZ #24583]
3678 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3679 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3680 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3681 instead of __gconv_release_step.
3682 * libio/Makefile (tests): Add tst-wfile-gconv.
3683 (tests-container): Add tst-wfile-ascii.
3684 (tst-wfile-gconv-ENV): Enable mtrace.
3685 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3686 (tests-special): Add tst-wfile-gconv-mem.out.
3687 (tst-wfile-gconv.out): Depend on locales.
3688 (tst-wfile-gconv-mem.out): Add mtrace rule.
3689 * libio/tst-wfile-ascii.c: New file.
3690 * libio/tst-wfile-gconv.c: Likewise.
3691
3692 2019-05-20 Florian Weimer <fweimer@redhat.com>
3693
3694 [BZ #24588]
3695 libio: Remove codecvt vtable.
3696 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3697 __libio_codecvt.
3698 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3699 __libio_codecvt_encoding.
3700 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3701 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3702 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3703 * libio/iofwide.c (__libio_codecvt): Remove variable.
3704 (_IO_fwide): Do not copy __libio_codecvt.
3705 (__libio_codecvt_out): Rename from do_out and export.
3706 (do_unshift): Remove function.
3707 (__libio_codecvt_in): Rename from do_in and export.
3708 (__libio_codecvt_encoding): Rename from do_encoding and export.
3709 (do_always_noconv): Remove function.
3710 (__libio_codecvt_length): Rename from do_length and export.
3711 (do_max_length): Remove function.
3712 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3713 to libioP.h.
3714 (struct _IO_codecvt): Remove fields __codecvt_destr,
3715 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3716 __codecvt_do_encoding, __codecvt_do_always_noconv,
3717 __codecvt_do_length, __codecvt_do_max_length.
3718 * libio/libioP.h (enum __codecvt_result): Define; moved from
3719 libio.h.
3720 (__libio_codecvt_out, __libio_codecvt_in)
3721 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3722 functions.
3723 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3724 (_IO_wfile_underflow): Call __libio_codecvt_in.
3725 (_IO_wfile_underflow): Likewise.
3726 (_IO_wfile_underflow_mmap): Likewise.
3727 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3728 __libio_codecvt_length.
3729 (adjust_wide_data): Call __libio_codecvt_encoding,
3730 __libio_codecvt_in.
3731 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3732 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3733 __libio_codecvt_length.
3734
3735 2019-05-20 Florian Weimer <fweimer@redhat.com>
3736
3737 * support/support.h (support_sbindir_prefix): Declare.
3738 (support_install_rootsbindir): Update comment.
3739 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3740 * support/support_paths.c (support_sbindir_prefix): Define.
3741
3742 2019-05-20 Mike Crowe <mac@mcrowe.com>
3743
3744 * support/timespec.c: Add backslash to correct newline in failure
3745 message.
3746
3747 * support/timespec.h: Correct confusing comment.
3748
3749 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3750
3751 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3752 define.
3753 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3754 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3755 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3756 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3757
3758 [BZ #24570]
3759 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3760 usage.
3761
3762 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3763
3764 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3765 (NT_ARM_PACG_KEYS): Likewise.
3766
3767 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3768
3769 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3770 (tcache_put): Remove redundant assert.
3771 (tcache_get): Remove redundant asserts.
3772 (__libc_malloc): Check tcache count is not zero.
3773 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3774
3775 2019-05-17 Florian Weimer <fweimer@redhat.com>
3776
3777 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3778
3779 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3780
3781 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3782 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3783 0x050100].
3784 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3785 Likewise.
3786 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3787 (__ASSUME_STATX): Likewise.
3788
3789 2019-05-16 Florian Weimer <fweimer@redhat.com>
3790
3791 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3792 flags argument.
3793 (LINE_PARSER): Do not map IPv4 addresses.
3794 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3795 to parse_line.
3796 (_nss_nis_gethostent_r): Always pass AF_INET to
3797 internal_nis_gethostent_r.
3798 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3799 to parse_line.
3800 (_nss_nis_gethostbyname2_r): Adjust call to
3801 internal_nis_gethostent_r.
3802 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3803 call to internal_nis_gethostent_r.
3804 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3805 from parse_line.
3806 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3807 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3808 Remove flags argument. Do not map IPv4 addresses.
3809 (internal_nisplus_gethostent_r): Adjust call to
3810 _nss_nisplus_parse_hostent.
3811 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3812 to _nss_nisplus_parse_hostent.
3813 (_nss_nisplus_gethostbyname2_r): Adjust call to
3814 internal_gethostbyname2_r.
3815 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3816 Adjust call to internal_gethostbyname2_r.
3817 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3818 _nss_nisplus_parse_hostent.
3819 (_nss_nisplus_gethostbyname4_r): Adjust call to
3820 internal_gethostbyname2_r.
3821
3822 2019-05-16 Florian Weimer <fweimer@redhat.com>
3823
3824 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3825 Remove flags.
3826 (LINE_PARSER): Remove address mapping.
3827 (EXTRA_ARGS_VALUE): Remove flags argument.
3828 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3829 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3830 gethostbyname3_multi.
3831 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3832 _nss_files_gethostbyname3_r.
3833 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3834
3835 2019-05-16 Florian Weimer <fweimer@redhat.com>
3836
3837 * support/support_test_compare_blob.c (report_blob): Report
3838 incorrect NULL blobs.
3839
3840 2019-05-15 Mark Wielaard <mark@klomp.org>
3841
3842 [BZ# 24476]
3843 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3844 __libc_once_get (once) and static_buf == NULL.
3845 (__dlerror): Check we have a valid key, set result to static_buf
3846 otherwise.
3847
3848 2019-05-15 Andreas Schwab <schwab@suse.de>
3849
3850 [BZ #20568]
3851 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3852 __codecvt_do_length.
3853 * libio/Makefile (tests): Add tst-wfile-sync.
3854 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3855 * libio/tst-wfile-sync.c: New file.
3856 * libio/tst-wfile-sync.input: New file.
3857
3858 2019-05-15 Florian Weimer <fweimer@redhat.com>
3859
3860 nss: Turn __nss_database_lookup into a compatibility symbol.
3861 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3862 __nss_database_lookup.
3863 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3864 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3865 __nss_database_lookup.
3866 (__nss_next): Move to …
3867 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3868 unconditionally.
3869 (__nss_database_lookup): New function.
3870 * nss/Versions (GLIBC_2.0): Update comment.
3871 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3872 * grp/initgroups.c (internal_getgrouplist): Call
3873 __nss_database_lookup2 instead of __nss_database_lookup.
3874 * nscd/aicache.c (addhstaiX): Likewise.
3875 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3876 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3877 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3878 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3879 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3880 Likewise.
3881 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3882 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3883 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3884
3885 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3886
3887 * support/support.h (support_install_rootsbindir): New variable.
3888 * support/support_paths.c: Likewise.
3889 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3890
3891 2019-05-15 Florian Weimer <fweimer@redhat.com>
3892
3893 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3894 * iconv/gconv_int.h (__gconv_transliterate): … here.
3895 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3896 * iconv/skeleton.c: Likewise.
3897
3898 2019-05-14 Florian Weimer <fweimer@redhat.com>
3899
3900 Linux: Add the tgkill function.
3901 * bits/signal_ext.h: New file.
3902 * manual/signal.texi (Signaling Another Process): Document tgkill.
3903 * signal/Makefile (headers): Add bits/signal_ext.h.
3904 * signal/signal.h: Include <bits/signal_ext.h>.
3905 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3906 (tst-tgkill): Link with libpthread.
3907 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3908 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3909 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3910 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3911 tgkill.
3912 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3913 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3914 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3915 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3916 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3917 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3918 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3919 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3920 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3921 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3922 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3923 Likewise.
3924 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3925 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3926 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3928 Likewise.
3929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3930 Likewise.
3931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3932 Likewise.
3933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3934 Likewise.
3935 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3936 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3937 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3938 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3939 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3940 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3941 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3942 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3943
3944 2019-05-14 Carlos O'Donell <carlos@redhat.com>
3945
3946 * manual/search.texi (Tree Search Function): Adjust twalk_r
3947 documentation.
3948
3949 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3950
3951 [BZ #24544]
3952 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3953 pre-defined value.
3954
3955 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3956 * support/support.h (support_bindir_prefix): New variable.
3957 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3958
3959 * config.make.in (bindir): New variable.
3960
3961 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3962 (lll_trylock): Call __lll_trylock.
3963 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3964 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3965 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3966 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3967 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3968 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3969 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3970 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3971 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3972 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3973 lowlevellock-futex.h.
3974
3975 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3976 initialization for LLL_LOCK_INITIALIZER different than 0.
3977 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3978 Assume LLL_LOCK_INITIALIZER being 0.
3979 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3980 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3981 Likewise.
3982 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3983 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3984
3985 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3986 Optimize futex call and add systemtap probe.
3987
3988 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3989 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3990 __libc_disable_asynccancel, __librt_enable_asynccancel,
3991 __libc_disable_asynccancel, __librt_enable_asynccancel,
3992 __librt_disable_asynccancel): Move to ...
3993 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3994 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3995 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3996 * sysdeps/generic/single-thread.h: New file.
3997 * sysdeps/unix/sysdep.h: Include single-thread.h.
3998 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3999 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4000
4001 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4002
4003 [BZ #24535]
4004 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4005 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4006 Unicode 12.1.0.
4007 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4008 * localedata/unicode-gen/PropList.txt: Likewise.
4009 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4010 * localedata/charmaps/UTF-8: Regenerate.
4011 * localedata/locales/i18n_ctype: Likewise.
4012 * localedata/locales/tr_TR: Likewise.
4013 * localedata/locales/translit_circle: Likewise.
4014 * localedata/locales/translit_cjk_compat: Likewise.
4015 * localedata/locales/translit_combining: Likewise.
4016 * localedata/locales/translit_compat: Likewise.
4017 * localedata/locales/translit_font: Likewise.
4018 * localedata/locales/translit_fraction: Likewise.
4019
4020 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4021
4022 [BZ #24531]
4023 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4024 (do_set_tcache_count): Only update if count is small enough.
4025 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4026
4027 2019-05-10 Florian Weimer <fweimer@redhat.com>
4028
4029 * nptl/sem_close.c (struct walk_closure): Define.
4030 (walker): Adjust for __twalk_r.
4031 (sem_close): Call __twalk_r.
4032
4033 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4034
4035 * support/timespec.c (test_timespec_before_impl,
4036 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4037 insted of long int.
4038
4039 2019-05-09 Mike Crowe <mac@mcrowe.com>
4040
4041 * nptl/tst-abstime.c: Use libsupport.
4042
4043 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4044 small bug where only tv.tv_usec was checked which could cause an
4045 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4046 than a second.
4047
4048 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4049 libsupport.
4050
4051 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4052 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4053
4054 * nptl/tst-cond11.c: Use libsupport.
4055
4056 * support/timespec.h: New file. Provide timespec helper functions
4057 along with macros in the style of those in check.h.
4058 * support/timespec.c: New file. Implement check functions declared
4059 in support/timespec.h.
4060 * support/timespec-add.c: New file from gnulib containing
4061 timespec_add implementation that handles overflow.
4062 * support/timespec-sub.c: New file from gnulib containing
4063 timespec_sub implementation that handles overflow.
4064 * support/README: Mention timespec.h.
4065
4066 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4067
4068 [BZ #24537]
4069 * nptl/Makefile: Move tst-eintr1 to xtests.
4070
4071 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4072
4073 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4074 TRUNC handling.
4075 (round_mode): Add definition for TRUNC.
4076 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4077 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4078 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4079 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4080 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4081 Likewise.
4082 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4083 Likewise.
4084 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4085 Likewise.
4086 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4087 Likewise.
4088 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4089 file.
4090 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4091 Likewise.
4092 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4093 Likewise.
4094 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4095 Likewise.
4096 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4097 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4098 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4099 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4100 s_truncf-power5+, and s_truncf-ppc64.
4101 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4102 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4103 file.
4104 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4106 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4107 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4108 file.
4109 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4110 Likewise.
4111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4112 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4113 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4114 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4115 s_truncf-power5+, and s_truncf-ppc64.
4116 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4117 file.
4118 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4119 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4120 Likewise.
4121 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4122 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4123 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4124 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4125 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4126
4127 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4128 ROUND handling.
4129 (round_mode): Add definition for ROUND.
4130 (round_to_integer_float): Likewise.
4131 * sysdeps/powerpc/fpu/s_round.c: New file.
4132 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4133 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4134 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4135 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4136 Likewise.
4137 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4138 Likewise.
4139 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4140 Likewise.
4141 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4142 Likewise.
4143 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4144 file.
4145 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4146 Likewise.
4147 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4148 Likewise.
4149 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4150 Likewise.
4151 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4152 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4153 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4154 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4155 s_roundf-power5+, and s_roundf-ppc64.
4156 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4157 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4158 file.
4159 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4161 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4162 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4163 file.
4164 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4165 Likewise.
4166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4167 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4168 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4169 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4170 s_roundf-power5+, and s_roundf-ppc64.
4171 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4172 file.
4173 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4174 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4175 Likewise.
4176 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4177 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4178 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4179 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4180 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4181
4182 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4183 Add FLOOR option.
4184 (round_mode): Add definition for FLOOR.
4185 * sysdeps/powerpc/fpu/s_floor.c: New file.
4186 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4187 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4188 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4190 Remove file.
4191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4192 Likewise
4193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4194 Likewise.
4195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4196 Likewise.
4197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4198 New file.
4199 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4200 Likewise.
4201 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4202 Likewise.
4203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4204 Likewise.
4205 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4206 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4207 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4208 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4209 s_floorf-power5+, and s_floorf-ppc64.
4210 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4211 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4212 file.
4213 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4215 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4216 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4217 file.
4218 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4219 Likewise.
4220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4221 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4222 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4223 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4224 s_floorf-power5+, and s_floorf-ppc64.
4225 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4226 file.
4227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4228 file.
4229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4230 Likewise.
4231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4232 Likewise.
4233 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4234 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4235 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4236 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4237
4238 2019-05-08 Mike Crowe <mac@mcrowe.com>
4239
4240 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4241 clock_gettime wrapper for use in tests that fails the test rather
4242 than returning failure.
4243
4244 * support/xtime.h: New file to declare xclock_gettime.
4245
4246 * support/Makefile: Add xclock_gettime.c.
4247
4248 * support/README: Mention xtime.h.
4249
4250 2019-05-08 Florian Weimer <fweimer@redhat.com>
4251
4252 malloc/tst-mallocfork2: Use process-shared barriers.
4253 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4254 (signal_count, sigusr1_sender_pid): Remove.
4255 (iterations): Define constant.
4256 (shared): New variable.
4257 (sigusr1_received): Update comment.
4258 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4259 (signal_sender): Optional use barriers to avoid sending signals
4260 during irrelevant times.
4261 (do_it): Initialize variable shared. Use xfork for error
4262 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4263 the iteration count, independent of signal delivery. Check for
4264 deadlocks in fork. Introduce barriers for reducing signal
4265 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4266 replaced by the barriers. Count signals during fork/free/malloc
4267 and report them.
4268 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4269
4270 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4271
4272 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4273 version to 5.1.
4274 (clock_adjtime64) New syscall.
4275 (clock_getres_time64) Likewise.
4276 (clock_gettime64) Likewise.
4277 (clock_nanosleep_time64) Likewise.
4278 (clock_settime64) Likewise.
4279 (futex_time64) Likewise.
4280 (io_pgetevents_time64) Likewise.
4281 (io_uring_enter) Likewise.
4282 (io_uring_register) Likewise.
4283 (io_uring_setup) Likewise.
4284 (mq_timedreceive_time64) Likewise.
4285 (mq_timedsend_time64) Likewise.
4286 (pidfd_send_signal) Likewise.
4287 (ppoll_time64) Likewise.
4288 (pselect6_time64) Likewise.
4289 (recvmmsg_time64) Likewise.
4290 (rt_sigtimedwait_time64) Likewise.
4291 (sched_rr_get_interval_time64) Likewise.
4292 (semtimedop_time64) Likewise.
4293 (timer_gettime64) Likewise.
4294 (timer_settime64) Likewise.
4295 (timerfd_gettime64) Likewise.
4296 (timerfd_settime64) Likewise.
4297 (utimensat_time64) Likewise.
4298
4299 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4300 version to 9 branch.
4301
4302 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4303
4304 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4305 __memmove_thunderx2 to the list of implementations
4306 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4307 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4308 (__memmove_thunderx2): Rewritten using SIMD ld/st
4309 (__memcpy_thunderx2): Fixed handling overlapping cases.
4310 Used ldp/stp instead of ldr/str if possible. Made loops
4311 tails branchless.
4312
4313 2019-05-03 Florian Weimer <fweimer@redhat.com>
4314
4315 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4316
4317 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4318
4319 [BZ #24506]
4320 * elf/tst-pldd.c (in_str_list): New function.
4321 (do_test): Add default names for ld and libc as one option.
4322
4323 2019-05-02 Florian Weimer <fweimer@redhat.com>
4324
4325 misc: Add twalk_r function.
4326 * include/search.h (__twalk_r): Declare.
4327 * manual/examples/twalk.c: New file.
4328 * manual/search.texi (Tree Search Function): Document twalk_r.
4329 * misc/Versions (2.30): Export twalk_r.
4330 (GLIBC_PRIVATE): Export __twalk_r.
4331 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4332 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4333 (twalk_r): Add weak alias.
4334 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4335 (walk_trace): New variable.
4336 (struct twalk_with_twalk_r_closure): Define.
4337 (twalk_with_twalk_r_action): New function.
4338 (twalk_with_twalk_r): Likewise.
4339 (walk_action): Call walk_trace_add.
4340 (walk_tree_with): Rename from walk_tree. Add walk argument.
4341 (walk_tree): New function.
4342 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4343 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4344 Likewise.
4345 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4346 Likewise.
4347 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4348 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4349 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4350 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4351 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4352 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4353 Likewise.
4354 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4355 Likewise.
4356 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4357 Likewise.
4358 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4359 (GLIBC_2.30): Likewise.
4360 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4361 (GLIBC_2.30): Likewise.
4362 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4363 (GLIBC_2.30): Likewise.
4364 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4365 (GLIBC_2.30): Likewise.
4366 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4367 Likewise.
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4369 (GLIBC_2.30): Likewise.
4370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4371 (GLIBC_2.30): Likewise.
4372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4373 (GLIBC_2.30): Likewise.
4374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4375 (GLIBC_2.30): Likewise.
4376 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4377 Likewise.
4378 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4379 Likewise.
4380 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4381 Likewise.
4382 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4383 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4384 Likewise.
4385 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4386 Likewise.
4387 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4388 Likewise.
4389 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4390 Likewise.
4391
4392 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4393
4394 Make mktime etc. compatible with __time64_t
4395 Keep these functions compatible with Gnulib while adding
4396 __time64_t support. The basic idea is to move private API
4397 declarations from include/time.h to time/mktime-internal.h, since
4398 the former file cannot easily be shared with Gnulib whereas the
4399 latter can.
4400 Also, do some other minor cleanup while in the neighborhood.
4401 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4402 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4403 since Gnulib needs it.
4404 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4405 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4406 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4407 (in_time_t_range): New static function.
4408 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4409 so that glibc users are not tempted to use __time64_t.
4410 * time/mktime-internal.h: Rewrite so that it does both glibc
4411 and Gnulib work. Include time.h if not _LIBC.
4412 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4413 (__time64_t): New type or macro, moved here from
4414 posix/bits/types.h.
4415 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4416 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4417 from include/time.h.
4418 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4419 New macros, taken from GNulib.
4420 (__mktime_internal): New prototype, moved here from include/time.h.
4421 * time/mktime.c (mktime_min, mktime_max, convert_time)
4422 (ranged_convert, __mktime_internal, __mktime64):
4423 * time/timegm.c (__timegm64):
4424 Use __time64_t, not time_t.
4425 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4426 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4427 Rename from mktime.
4428 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4429 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4430 for libc_hidden_def.
4431 Include errno.h.
4432 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4433 Rename from timegm.
4434 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4435
4436 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4437
4438 [BZ #19444]
4439 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4440 from `-Wmaybe-uninitialized'.
4441 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4442
4443 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4444
4445 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4446 function.
4447 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4448 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4449 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4450 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4451 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4452 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4453 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4454 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4455 Remove file.
4456 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4457 Likewise.
4458 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4459 Likewise.
4460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4461 Likewise.
4462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4463 New file.
4464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4465 Likewise.
4466 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4467 Likewise.
4468 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4469 Likewise.
4470 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4471 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4472 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4473 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4474 Likewise.
4475 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4476 Likewise.
4477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4478 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4479 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4480 file.
4481 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4482 Likewise.
4483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4484 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4485 * here.
4486 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4487 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4488 s_ceilf-power5+, and s_ceilf-ppc64.
4489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4490 file.
4491 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4492 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4493 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4494 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4495 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4496 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4497 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4498
4499 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4500 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4501 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4502
4503 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4504
4505 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4506 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4507 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4508 (sem_getvalue): Likewise.
4509
4510 2019-04-26 Florian Weimer <fweimer@redhat.com>
4511
4512 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4513 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4514
4515 2019-04-26 Florian Weimer <fweimer@redhat.com>
4516
4517 Makeconfig: Move -Wl,-rpath-link options before library references.
4518 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4519 (link-libc): Remove $(link-libc-rpath-link).
4520
4521 2019-04-25 Florian Weimer <fweimer@redhat.com>
4522
4523 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4524 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4525 (+link-static-before-libc): Remove $(CC).
4526 (+link-static, +link-static-tests): Add $(CC).
4527 (+link-before-libc): Remove $(CC).
4528 (+link, +link-pie, +link-pie-printers): Add $(CC).
4529
4530 2019-04-26 Florian Weimer <fweimer@redhat.com>
4531
4532 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4533 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4534 (+link-static-before-libc): Remove $(CC).
4535 (+link-static, +link-static-tests): Add $(CC).
4536 (+link-before-libc): Remove $(CC).
4537 (+link, +link-pie, +link-pie-printers): Add $(CC).
4538
4539 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4540
4541 [BZ#24484]
4542 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4543
4544 2019-04-25 Florian Weimer <fweimer@redhat.com>
4545
4546 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4547 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4548 (bench-link-targets): New variable.
4549 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4550
4551 2019-04-25 Florian Weimer <fweimer@redhat.com>
4552
4553 Also enable BIND_NOW for programs if --enable-bind-now.
4554 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4555 (+link-pie): Use $(link-extra-flags).
4556 (+link-static): Likewise.
4557 [! $(build-pie-default)] (+link): Likewise.
4558 * manual/install.texi (Configuring and compiling): Update
4559 --enable-bind-now description.
4560 * INSTALL: Regenerated.
4561
4562 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4563
4564 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4565 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4566
4567 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4568
4569 [BZ #18465]
4570 * malloc/Makefile (others): Add memusagestat.
4571 ($(objpfx)memusagestat): Delete rule.
4572 (LDLIBS-memusagestat): New variable.
4573
4574 2019-04-24 Florian Weimer <fweimer@redhat.com>
4575
4576 * locale/Makefile (tests-special): Guard setting by
4577 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4578 to run while cross-compiling.
4579
4580 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4581
4582 [BZ #18035]
4583 * elf/Makefile (tests-container): Add tst-pldd.
4584 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4585 (E(find_maps)): Avoid use alloca, use default read file operations
4586 instead of explicit LFS names, and fix infinite loop.
4587 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4588 (get_process_info): Use _Static_assert instead of assert, use default
4589 directory operations instead of explicit LFS names, and free some
4590 leadek pointers.
4591 * elf/tst-pldd.c: New file.
4592
4593 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 * malloc/arena.c (do_set_mallopt_check): Removed.
4596
4597 2019-04-23 Florian Weimer <fweimer@redhat.com>
4598
4599 locale: Add LOCPATH diagnostics to the locale program.
4600 * locale/programs/locale.c (setlocale_failed): New variable.
4601 (try_setlocale): New function.
4602 (quote_string): Likewise.
4603 (setlocale_diagnostics): Likewise.
4604 (main): Call try_setlocale instead of setlocale. Call
4605 setlocale_diagnostics.
4606 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4607 (tst-locale-locpath.out): New target.
4608 * locale/tst-locale-locpath.sh: New file.
4609
4610 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4611
4612 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4613 to 2.30 notes.
4614
4615 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4616
4617 [BZ #23741]
4618 * malloc/hooks.c (malloc_check, realloc_check): Use
4619 __builtin_add_overflow on overflow check and adapt to
4620 checked_request2size change.
4621 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4622 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4623 allocation size to PTRDIFF_MAX.
4624 (REQUEST_OUT_OF_RANGE): Remove macro.
4625 (checked_request2size): Change to inline function and limit maximum
4626 requested size to PTRDIFF_MAX.
4627 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4628 maximum allocation size to PTRDIFF_MAX.
4629 (_mid_memalign): Use _int_memalign call for overflow check.
4630 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4631 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4632 limit maximum requested size to PTRDIFF_MAX.
4633 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4634 valloc, pvalloc): Add __attribute_alloc_size__.
4635 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4636 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4637 larger than PTRDIFF_MAX.
4638 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4639 around tests of malloc with negative sizes.
4640 * malloc/tst-posix_memalign.c (do_test): Likewise.
4641 * malloc/tst-pvalloc.c (do_test): Likewise.
4642 * malloc/tst-valloc.c (do_test): Likewise.
4643 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4644 with resulting size allocation larger than PTRDIFF_MAX with
4645 reallocarray_nowarn.
4646 (reallocarray_nowarn): New function.
4647 * NEWS: Mention the malloc function semantic change.
4648
4649 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4650
4651 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4652 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4653
4654 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4655 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4656 * sysdeps/powerpc/fpu/s_fma.c: New file.
4657 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4658
4659 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4660 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4661
4662 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4663 the magic flag store.
4664 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4665 Likewise.
4666 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4667 Likewise.
4668 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4669 Remove rt_sigreturn call.
4670
4671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4672 Remove rt_sigreturn call.
4673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4674 Likewise.
4675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4677
4678 * support/Makefile (libsupport-routines): Add support_subprocess,
4679 xposix_spawn, xposix_spawn_file_actions_addclose, and
4680 xposix_spawn_file_actions_adddup2.
4681 (tst-support_capture_subprocess-ARGS): New rule.
4682 * support/capture_subprocess.h (support_capture_subprogram): New
4683 prototype.
4684 * support/support_capture_subprocess.c (support_capture_subprocess):
4685 Refactor to use support_subprocess and support_capture_poll.
4686 (support_capture_subprogram): New function.
4687 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4688 str_to_write_mode, test_common, parse_int, handle_restart,
4689 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4690 (do_test): Add support_capture_subprogram tests.
4691 * support/subprocess.h: New file.
4692 * support/support_subprocess.c: Likewise.
4693 * support/xposix_spawn.c: Likewise.
4694 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4695 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4696 * support/xspawn.h: Likewise.
4697
4698 2019-04-17 Mike Gerow <gerow@google.com>
4699
4700 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4701 groups limit.
4702
4703 2019-04-11 Florian Weimer <fweimer@redhat.com>
4704
4705 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4706 domain with empty string.
4707 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4708
4709 2019-04-11 Florian Weimer <fweimer@redhat.com>
4710
4711 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4712 comment.
4713 (alloc_buffer_next): Change return type to non-const. Update
4714 comment.
4715
4716 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4717
4718 * manual/time.texi (Formatting Calendar Time): Add missing percent
4719 sign to conversion specifier.
4720
4721 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4722 Kwok Cheung Yeung <kcy@codesourcery.com>
4723
4724 [BZ #16573]
4725 * malloc/mtrace.c: Define prototypes for all hooks.
4726 (set_default_hooks): New function.
4727 (set_trace_hooks): Likewise.
4728 (save_default_hooks): Likewise.
4729 (tr_freehook): Use new s*_hooks functions.
4730 (tr_mallochook): Likewise.
4731 (tr_reallochook): Likewise.
4732 (tr_memalignhook): Likewise.
4733 (mtrace): Likewise.
4734 (muntrace): Likewise.
4735
4736 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4737
4738 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4739 (generic_stpcpy): New function.
4740 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4741 (generic_stpncpy): New function.
4742 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4743 (generic_strcat): New function.
4744 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4745 (generic_strcpy): New function.
4746 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4747 (STUPID_STRNCAT): Remove function.
4748 (generic_strncat): New function.
4749 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4750 (STUPID_STRNCPY): Remove function.
4751 (generic_strncpy): New function.
4752 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4753 (generic_strnlen): New function.
4754 (memchr_strnlen): New function.
4755 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4756 (memchr_strlen): Likewise.
4757
4758 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4759
4760 * benchtests/bench-strstr.c (input): Add realistic input text.
4761 (stupid_strstr): Remove function.
4762 (basic_strstr): Add function.
4763 (twoway_strstr): Add function.
4764 (do_one_test): Add result checking.
4765 (do_test): Use new input text. Remove accidental early matches.
4766 (test_main): Improve range of tests, reduce unaligned cases.
4767
4768 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4769
4770 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4771 (basic_memmem): Add function.
4772 (twoway_memmem): Add function.
4773
4774 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4775
4776 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4777 * benchtests/bench-malloc-thread.c: Likewise.
4778 * benchtests/bench-skeleton.c: Likewise.
4779 * benchtests/bench-strtod.c: Likewise.
4780 * benchtests/bench-timing.h: Likewise.
4781
4782 2019-04-08 Florian Weimer <fweimer@redhat.com>
4783
4784 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4785 definitions.
4786 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4787 RES_INSECURE2 security checks.
4788 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4789 RES_INSECURE2 handling.
4790
4791 2019-04-08 Florian Weimer <fweimer@redhat.com>
4792
4793 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4794 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4795 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4796 GETHOSTBYNAME.
4797 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4798 (tests-internal): Update justification for tst-resolv-res_init,
4799 tst-resolv-res_init-thread.
4800 (tst-res_use_inet6): Remove target.
4801 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4802 * resolv/res_debug.c (p_option): Remove "inet6" support.
4803 * resolv/res_init.c (res_setoptions): Likewise.
4804 * resolv/res_use_inet6.h: Remove file.
4805 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4806 definition.
4807 (res_use_inet6): Always return false.
4808 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4809 * resolv/resolv_context.h: Adjust file comment.
4810 (struct resolv_context): Update comment on __next field.
4811 (__resolv_context_put): Update comment.
4812 * resolv/tst-res_use_inet6.c: Remove file.
4813 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4814 "inet6" support.
4815 (test_cases): Adjust test case.
4816 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4817 (thread_byname2_af_inet6): Use old byname_inet6 code.
4818 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4819 (gai): Remove do_inet6 argument.
4820 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4821 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4822 (thread_gai_unspec_inet6): Remove functions.
4823 (do_test): Adjust thread_funcs.
4824 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4825 RES_USE_INET6 flag.
4826 (gaih_inet): Do not disable RES_USE_INET6 flag.
4827
4828 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4829
4830 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4831 and remove redundant code.
4832
4833 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4834
4835 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4836 New rule.
4837 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4838 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4839 Likewise.
4840 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4841 Likewise.
4842 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4843 Likewise.
4844 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4845 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4846 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4847 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4848 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4849 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4850 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4851 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4852 wcsrchr-power7.
4853 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4854 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4855 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4856 Remove wcsrchr optimizations.
4857 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4858
4859 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4860 the loop unroll.
4861
4862 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4863 New rule.
4864 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4865 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4866 Likewise.
4867 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4868 Likewise.
4869 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4870 Likewise.
4871 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4872 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4873 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4874 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4875 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4876 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4877 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4878 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4879 wcschr-power7.
4880 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4881 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4882 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4883 Remove wcschr optimizations.
4884 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4885
4886 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4887 the loop unroll.
4888
4889 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4890 New rule.
4891 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4892 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4893 Likewise.
4894 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4895 Likewise.
4896 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4897 Likewise.
4898 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4899 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4900 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4901 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4902 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4903 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4904 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4905 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4906 wcscpy-power7.
4907 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4908 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4909 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4910 Remove wcscpy optimizations.
4911 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4912
4913 * include/loop_unroll.h: New file.
4914 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4915 besides generic implementation.
4916
4917 2019-04-03 DJ Delorie <dj@redhat.com>
4918
4919 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4920 snprintf truncating output.
4921
4922 2019-04-02 DJ Delorie <dj@redhat.com>
4923
4924 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4925 warning.
4926
4927 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4928
4929 [BZ #22964]
4930 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4931 era.
4932 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4933 (mkreftable): Add rules for the new Japanese era and the new dates.
4934
4935 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4936 Rafał Lużyński <digitalfreak@lingonborough.com>
4937
4938 * time/tst-strftime2.c (date_t): Explicitly define the type.
4939 (dates): Use natural month and year numbers to express a date.
4940 (is_before): New function to compare dates.
4941 (mkreftable): Minor improvements to simplify maintenance.
4942 (do_test): Reflect the changes in dates array.
4943
4944 [BZ #24293]
4945 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4946 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4947 * time/tst-strftime2.c (locales): Likewise.
4948 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4949 2010-04-01, and 2011-04-01.
4950 (mkreftable): Add rules for the new locales and the new dates.
4951
4952 2019-04-01 Carlos O'Donell <carlos@redhat.com>
4953
4954 * localedata/locales/ja_JP: Add comments to era entries.
4955
4956 2019-04-01 DJ Delorie <dj@redhat.com>
4957
4958 [BZ #24394]
4959 * time/strptime_l.c (%Ey): Fix fencepost error.
4960 * time/tst-strftime3.c: New.
4961 * time/Makefile (tests): Add tst-strftime3.
4962
4963 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
4964
4965 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4966 conditional branch to DIVBYZERO. Fix unwind info.
4967 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4968 excb after conditional branch to $powerof2. Add missing unop
4969 instructions and .align directives and reorder instructions to
4970 match __divqu.
4971
4972 2019-04-01 Richard Henderson <rth@twiddle.net>
4973
4974 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4975 Do not redefine.
4976 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4977 Do not redefine.
4978
4979 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
4980
4981 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4982 $libc_cv_riscv_float_abi in `test' invocation.
4983 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4984
4985 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
4986
4987 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4988 asm with builtin.
4989 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4990 Likewise.
4991 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4992 (_GET_SI_FPSCR): Likewise.
4993 (_SET_SI_FPSCR): Likewise.
4994
4995 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4996
4997 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4998 clang 2.8.
4999 (signbit): Use builtin for clang 3.3.
5000 (isinf): Use builtin for clang 3.7.
5001
5002 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5003
5004 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5005
5006 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5007
5008 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5009 quote in printf.
5010
5011 2019-03-25 Mike Crowe <mac@mcrowe.com>
5012
5013 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5014 pthread_rwlock_timedrdlock with calls to
5015 pthread_rwlock_timedwrlock to ensure that the latter is tested
5016 too. Use new function name in diagnostic messages too.
5017
5018 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5019 (do_test) Use libsupport test macros rather than hand-coded
5020 conditionals and error messages. Ensure that sem_init returns zero
5021 rather than not -1. Use <support/test-driver.c> rather than
5022 test-skeleton.c.
5023
5024 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5025 test macros rather than hand-coded conditionals and error messages.
5026 Use <support/test-driver.c> rather than test-skeleton.c.
5027
5028 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5029
5030 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5031
5032 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5033 (NT_MIPS_MSA): Likewise.
5034
5035 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5036
5037 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5038 * benchtests/README: Update description.
5039 * benchtests/bench-timing.h: Default to hp-timing.
5040 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5041 HP_TIMING_PRINT): Remove.
5042 (HP_TIMING_NOW): Add generic implementation.
5043 (hp_timing_t): Change to uint64_t.
5044
5045 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5046 HP_TIMING_INLINE.
5047 * nptl/descr.h: Likewise.
5048 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5049 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5050 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5051 Abstract hp-timing usage with RTLD_* macros.
5052 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5053 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5054 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5055 HP_TIMING_NONAVAIL): Likewise.
5056 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5057 Likewise.
5058 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5059 HP_SMALL_TIMING_AVAIL): Likewise.
5060 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5061 HP_SMALL_TIMING_AVAIL): Likewise.
5062 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5063 HP_SMALL_TIMING_AVAIL): Likewise.
5064 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5065 HP_SMALL_TIMING_AVAIL): Likewise.
5066 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5067 Likewise.
5068 * sysdeps/generic/hp-timing-common.h: Update comment with
5069 HP_TIMING_AVAIL removal.
5070
5071 * include/random-bits.h: New file.
5072 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5073 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5074 random_bits.
5075 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5076 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5077 Likewise.
5078
5079 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5080 * rt/Makefile (clock-routines): Remove get_clockfreq.
5081 * rt/get_clockfreq.c: Remove file.
5082 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5083 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5084 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5085 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5086 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5087
5088 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5089 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5090 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5091 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5092 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5093
5094 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5095 pthread_clock_settime.
5096 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5097 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5098 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5099 * elf/rtld.c (_dl_start_final): Likewise.
5100 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5101 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5102 Remove.
5103 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5104 (_dl_cpuclock_offset): Remove.
5105 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5106 cpuclock_offset_ununsed.
5107 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5108 cpuclock_offset set.
5109 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5110 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5111 * nptl/pthread_clock_gettime.c: Remove file.
5112 * nptl/pthread_clock_settime.c: Likewise.
5113 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5114 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5115 and CLOCK_PROCESS_CPUTIME_ID support.
5116 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5117 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5118 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5119 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5120 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5121 Likewise.
5122 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5123
5124 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5125
5126 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5127 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5128 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5129 New defines.
5130 * sysdeps/s390/memmem-arch13.S: New file.
5131 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5132 if it is only used as fallback.
5133 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5134 * sysdeps/s390/multiarch/ifunc-impl-list.c
5135 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5136
5137 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5138
5139 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5140 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5141 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5142 New defines.
5143 * sysdeps/s390/multiarch/ifunc-impl-list.c
5144 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5145 * sysdeps/s390/strstr-arch13.S: New file.
5146 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5147 if it is only used as fallback.
5148 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5149
5150 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5151
5152 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5153 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5154 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5155 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5156 ifunc selector.
5157 * sysdeps/s390/multiarch/ifunc-impl-list.c
5158 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5159 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5160 S390_IS_ARCH13_MIE3): New defines.
5161
5162 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5163
5164 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5165 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5166 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5167 * sysdeps/s390/configure: Regenerated.
5168
5169 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5170
5171 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5172 Add vxe2, vxp, dflt, sort flags.
5173 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5174 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5175 capabilities.
5176 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5177 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5178 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5179 HWCAP_S390_DFLT): Define.
5180
5181 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5182
5183 [BZ #24372]
5184 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5185 of compiler warning.
5186 * locale/programs/ld-collate.c (collate_output): Likewise.
5187
5188 2019-03-21 DJ Delorie <dj@redhat.com>
5189
5190 [BZ #24372]
5191 * iconv/iconvconfig.c (write_output): Replace floating point math
5192 with integer math to avoid imprecise results.
5193 * locale/programs/ld-collate.c (collate_output): Likewise.
5194
5195 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5196
5197 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5198 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5199
5200 2019-03-20 mansayk <6688000@gmail.com>
5201
5202 [BZ #24296]
5203 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5204 (abday): Likewise, but remove the trailing dots.
5205
5206 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5207
5208 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5209 macro.
5210 (HWCAP_PACA): Likewise.
5211 (HWCAP_PACG): Likewise.
5212 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5213 Increase to 32.
5214 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5215
5216 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5217
5218 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5219 should be handled.
5220
5221 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5222
5223 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5224 version to 5.0.
5225 (old_getpagesize): New syscall.
5226
5227 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5228
5229 [BZ #24293]
5230 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5231 * localedata/locales/cmn_TW (era): Likewise.
5232 * localedata/locales/hak_TW (era): Likewise.
5233 * localedata/locales/lzh_TW (era): Likewise.
5234 * localedata/locales/nan_TW (era): Likewise.
5235
5236 2019-03-14 Adam Maris <amaris@redhat.com>
5237
5238 * malloc/malloc.c (_int_malloc): Check for large bin list
5239 corruption when inserting unsorted chunk.
5240
5241 2019-03-14 Florian Weimer <fweimer@redhat.com>
5242
5243 Remove obsolete, never-implemented XSI STREAMS declarations.
5244 * manual/terminal.texi (Allocation): Remove portability note and
5245 adjust example.
5246 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5247 _SC_STREAMS.
5248 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5249 * sysdeps/unix/inet/Subdirs (streams): Remove.
5250 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5251 (conformtest-headers-UNIX98): Likewise.
5252 (conformtest-headers-XOPEN2K): Likewise.
5253 (conformtest-headers-POSIX2008): Likewise.
5254 * posix/compat-streams.c: New file.
5255 * posix/Makefile (routines): Add it.
5256 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5257 getpmsg, isastream, putmsg, putpmsg.
5258 (GLIBC_2.30): New section.
5259 * bits/stropts.h: Remove file.
5260 * bits/xtitypes.h: Likewise.
5261 * conform/data/stropts.h-data: Likewise.
5262 * include/stropts.h: Likewise.
5263 * include/sys/stropts.h: Likewise.
5264 * include/xtitypes.h: Likewise.
5265 * streams/Makefile: Likewise.
5266 * streams/fattach.c: Likewise.
5267 * streams/fdetach.c: Likewise.
5268 * streams/getmsg.c: Likewise.
5269 * streams/getpmsg.c: Likewise.
5270 * streams/isastream.c: Likewise.
5271 * streams/putmsg.c: Likewise.
5272 * streams/putpmsg.c: Likewise.
5273 * streams/stropts.h: Likewise.
5274 * streams/sys/stropts.h: Likewise.
5275 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5276 * sysdeps/s390/bits/xtitypes.h: Likewise.
5277 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5278 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5279 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5280 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5281 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5282 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5283 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5284 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5285 * sysdeps/x86/bits/xtitypes.h: Likewise.
5286
5287 2019-03-14 Florian Weimer <fweimer@redhat.com>
5288
5289 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5290 libnss_files.
5291 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5292 but not with libnss_files.
5293 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5294
5295 2019-03-14 Zack Weinberg <zackw@panix.com>
5296
5297 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5298 Specify encoding="utf-8" when opening headers to check.
5299
5300 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5301
5302 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5303 version to 5.0.
5304 (Context.checkout_tar): Handle variable major version for Linux
5305 kernel.
5306
5307 2019-03-13 Florian Weimer <fweimer@redhat.com>
5308
5309 [BZ #24047]
5310 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5311
5312 2019-03-13 Zack Weinberg <zackw@panix.com>
5313
5314 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5315 Move to stdlib.
5316 * include/inttypes.h: Adjust to match.
5317 * include/stdint.h: New wrapper.
5318
5319 2019-03-13 Zack Weinberg <zackw@panix.com>
5320
5321 * scripts/check-obsolete-constructs.py: New test script.
5322 * scripts/check-installed-headers.sh: Remove tests for
5323 obsolete typedefs, superseded by check-obsolete-constructs.py.
5324 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5325 as a special test. Update commentary.
5326 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5327 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5328 Update commentary.
5329 * posix/sys/types.h (__u_intN_t): Remove.
5330 (u_int8_t): Typedef using __uint8_t.
5331 (u_int16_t): Typedef using __uint16_t.
5332 (u_int32_t): Typedef using __uint32_t.
5333 (u_int64_t): Typedef using __uint64_t.
5334
5335 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5336
5337 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5338 call _dl_procinfo.
5339 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5340 Ignore types other than AT_HWCAP.
5341 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5342 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5343 Likewise.
5344 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5345 in the case of falling back to generic output mechanism.
5346 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5347 Likewise.
5348
5349 2019-03-12 Florian Weimer <fweimer@redhat.com>
5350
5351 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5352
5353 2019-03-12 Florian Weimer <fweimer@redhat.com>
5354
5355 [BZ #24047]
5356 resolv: Enable full ICMP errors for UDP DNS sockets
5357 * resolv/res_enable_icmp.c: New file.
5358 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5359 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5360 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5361 socket.
5362
5363 2019-03-11 Mao Han <han_mao@c-sky.com>
5364
5365 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5366 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5367
5368 2019-03-11 Mao Han <han_mao@c-sky.com>
5369
5370 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5371 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5372 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5373
5374 2019-03-11 Mao Han <han_mao@c-sky.com>
5375
5376 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5377 directly.
5378 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5379 definition.
5380
5381 2019-03-11 Mao Han <han_mao@c-sky.com>
5382
5383 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5384 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5385 in mcontext_t
5386
5387 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5388
5389 [BZ #24307]
5390 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5391 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5392 Unicode 12.0.0.
5393 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5394 * localedata/unicode-gen/PropList.txt: Likewise.
5395 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5396 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5397 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5398 * localedata/charmaps/UTF-8: Regenerate.
5399 * localedata/locales/i18n_ctype: Likewise.
5400 * localedata/locales/tr_TR: Likewise.
5401 * localedata/locales/translit_circle: Likewise.
5402 * localedata/locales/translit_cjk_compat: Likewise.
5403 * localedata/locales/translit_combining: Likewise.
5404 * localedata/locales/translit_compat: Likewise.
5405 * localedata/locales/translit_font: Likewise.
5406 * localedata/locales/translit_fraction: Likewise.
5407
5408 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5409
5410 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5411 than after operators.
5412 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5413 (setitimer_locked): Likewise.
5414 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5415 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5416 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5417 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5418 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5419 (PPC_CPU_SUPPORTED): Likewise.
5420 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5421 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5422 (stat_overflow): Likewise.
5423 (statfs_overflow): Likewise.
5424 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5425 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5426 (eq_ttyname_r): Likewise.
5427 (run_chroot_tests): Likewise.
5428
5429 2019-03-07 Florian Weimer <fweimer@redhat.com>
5430
5431 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5432 header check.
5433
5434 2019-03-07 Martin Liska <mliska@suse.cz>
5435
5436 * math/Makefile: Change location where math-vector-fortran.h is
5437 installed.
5438 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5439 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5440 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5441 * scripts/check-installed-headers.sh: Skip Fortran header files.
5442 * scripts/check-wrapper-headers.py: Likewise.
5443
5444 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5445
5446 * nptl/nptl-init.c (__have_futex_clock_realtime,
5447 __have_futex_clock_realtime): Remove definition.
5448 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5449 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5450 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5451 __ASSUME_FUTEX_CLOCK_REALTIME support.
5452 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5453 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5454 * sysdeps/unix/sysv/linux/kernel-features.h
5455 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5456 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5457 Adjust comment.
5458
5459 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5460
5461 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5462 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5463 __GI___wcscpy and wcscpy.
5464
5465 2019-03-04 Florian Weimer <fweimer@redhat.com>
5466
5467 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5468 declaration.
5469 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5470 defined.
5471
5472 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5473
5474 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5475 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5476
5477 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5478
5479 [BZ #24162]
5480 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5481 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5482
5483 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5484
5485 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5486 tests.
5487 (do_test): Likewise.
5488 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5489 (do_test_call_varg): Likewise.
5490 (do_test_call_rarg): Likewise.
5491 * sysdeps/ieee754/ldbl-opt/Makefile
5492 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5493 tst-nldbl-error.
5494 ($(objpfx)tst-nldbl-warn.c): New rule.
5495 ($(objpfx)tst-nldbl-error.c): Likewise.
5496 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5497 New variables.
5498
5499 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5500
5501 [BZ #23984]
5502 * include/bits/error-ldbl.h: New file.
5503 * include/error.h: Include stdarg.h. Declare internal functions
5504 __error_internal and __error_at_line_internal.
5505 * misc/Makefile (headers): Add bits/error-ldbl.h.
5506 * misc/bits/error-ldbl.h: New file.
5507 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5508 avoid the inclusion of bits/error.h.
5509 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5510 and __nldbl_error_at_line.
5511 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5512 (__nldbl_error, __ndlbl_error_at_line): New functions.
5513 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5514 Redirect error and error_at_line.
5515 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5517 Likewise.
5518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5519 Likewise.
5520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5521 Likewise.
5522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5523 Likewise.
5524 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5525 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5526 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5527
5528 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5529
5530 [BZ #23984]
5531 * include/bits/err-ldbl.h: New file.
5532 * include/err.h: Add prototypes for the internal functions:
5533 __vwarnx_internal and __vwarn_internal.
5534 * misc/Makefile (headers): Add bits/err-ldbl.h.
5535 * misc/bits/err-ldbl.h: New file.
5536 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5537 defined, i.e.: when -mlong-double-64 is in use.
5538 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5539 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5540 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5541 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5542 (VA_CALL): New macro.
5543 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5544 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5545 functions.
5546 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5547 declare prototypes for the new functions.
5548 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5550 Likewise.
5551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5552 Likewise.
5553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5554 Likewise.
5555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5556 Likewise.
5557 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5558 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5559 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5560
5561 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5562
5563 * sysdeps/ieee754/ldbl-opt/Makefile
5564 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5565 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5566 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5567
5568 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5569
5570 [BZ #23983]
5571 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5572 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5573 * argp/bits/argp-ldbl.h: New file.
5574 * include/argp.h: Include stdarg.h. Add prototypes for internal
5575 functions: __argp_error_internal and __argp_failure_internal.
5576 * include/bits/argp-ldbl.h: New file.
5577 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5578 __nldbl_argp_error and __nldbl_argp_failure.
5579 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5580 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5581 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5582 Redirect argp_error and argp_failure calls.
5583 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5585 Likewise.
5586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5587 Likewise.
5588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5589 Likewise.
5590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5591 Likewise.
5592 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5593 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5594 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5595
5596 2019-03-01 Florian Weimer <fweimer@redhat.com>
5597
5598 [BZ #20419]
5599 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5600 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5601 code, to avoid creating an ABI tag note.
5602 (modules-names-nobuild): Add tst-big-note-lib.
5603
5604 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5605
5606 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5607 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5608
5609 2019-03-01 Florian Weimer <fweimer@redhat.com>
5610
5611 [BZ #20271]
5612 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5613 (__netlink_assert_response): Add additional missing newlines.
5614
5615 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5616
5617 * sysdeps/powerpc/powerpc32/dl-machine.c
5618 (__elf_machine_fixup_plt): Use space before '('.
5619 (__process_machine_rela): Likewise.
5620 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5621 Likewise.
5622 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5623 Likewise.
5624 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5625 Likewise.
5626 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5627 (pattern): Likewise.
5628 (delta): Likewise.
5629 (check_result): Likewise.
5630 (check_excepts): Likewise.
5631 (check_op): Likewise.
5632 (fail_xr): Likewise.
5633 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5634 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5635 (SCNHSZ): Likewise.
5636 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5637 Likewise.
5638 (ARGS): Likewise.
5639 (__makecontext): Likewise.
5640 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5641 Likewise.
5642
5643 2019-02-28 Florian Weimer <fweimer@redhat.com>
5644
5645 [BZ #23937]
5646 elf: Add test with a local IFUNC resolver.
5647 * elf/ifuncmain9.c: New file.
5648 * elf/ifuncmain9pic.c: Likewise.
5649 * elf/ifuncmain9picstatic.c: Likewise.
5650 * elf/ifuncmain9pie.c: Likewise.
5651 * elf/ifuncmain9static.c: Likewise.
5652 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5653 ifuncmain9static, ifuncmain9picstatic.
5654 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5655 Add ifuncmain9, ifuncmain9pic.
5656 * elf/Makefile [multi-arch && build-shared && have-fpie]
5657 (ifunc-pie-tests): Add ifuncmain9pie.
5658 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5659 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5660 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5661
5662 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5663
5664 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5665 * configure: Regenerated.
5666 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5667
5668 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5669
5670 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5671 symbol as __wcspcy instead of wcscpy.
5672
5673 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5674
5675 * include/stdio.h (__renameat2): New hidden prototype.
5676 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5677 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5678 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5679 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5680
5681 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5682
5683 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5684 if statement.
5685
5686 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5687 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5688 * benchtests/bench-strlen.c (do_test): Likewise.
5689 (test_main): Likewise.
5690 * catgets/gencat.c (read_old): Likewise.
5691 * elf/cache.c (load_aux_cache): Likewise.
5692 * iconvdata/bug-iconv8.c (do_test): Likewise.
5693 * math/test-tgmath-ret.c (do_test): Likewise.
5694 * nis/nis_call.c (rec_dirsearch): Likewise.
5695 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5696 * nptl/tst-audit-threads.c (do_test): Likewise.
5697 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5698 * nss/nss_test1.c (init): Likewise.
5699 * nss/test-netdb.c (test_hosts): Likewise.
5700 * posix/execvpe.c (maybe_script_execute): Likewise.
5701 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5702 * stdio-common/tst-printf.c (do_test): Likewise.
5703 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5704 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5705 * stdlib/qsort.c (STACK_SIZE): Likewise.
5706 * stdlib/test-canon.c (do_test): Likewise.
5707 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5708 * string/memcmp.c (OPSIZ): Likewise.
5709 * string/test-strcpy.c (do_test): Likewise.
5710 (do_random_tests): Likewise.
5711 * string/test-strlen.c (do_test): Likewise.
5712 (test_main): Likewise.
5713 * string/test-strrchr.c (do_test): Likewise.
5714 (do_random_tests): Likewise.
5715 * string/tester.c (test_memrchr): Likewise.
5716 (test_memchr): Likewise.
5717 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5718 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5719 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5720 (read_encoded_value_with_base): Likewise.
5721 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5722 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5723 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5724 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5725 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5726 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5727 Likewise.
5728 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5729 Likewise.
5730 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5731 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5732 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5733 Likewise.
5734 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5735 Likewise.
5736 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5737 Likewise.
5738 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5739 Likewise.
5740 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5741 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5742 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5743 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5744 * time/test_time.c (main): Likewise.
5745
5746 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5747
5748 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5749
5750 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5751 wmemcpy.
5752
5753 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5754 wmemcpy.
5755
5756 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5757
5758 * include/wchar.h (__wcscpy): New prototype.
5759 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5760 (__wcscpy): Route internal symbol to generic implementation.
5761 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5762 Add internal __wcscpy alias.
5763 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5764 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5765 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5766 * wcsmbs/wcscpy.c (wcscpy): Add
5767 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5768 use generic implementation.
5769 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5770
5771 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5772 wmemset.
5773
5774 * sysdeps/m68k/wcpcpy.c: Remove file.
5775 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5776
5777 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5778
5779 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5780 than after operators.
5781 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5782 * sysdeps/mach/hurd/getcwd.c
5783 (__hurd_canonicalize_directory_name_internal): Likewise.
5784 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5785 (pthread_mutex_consistent): Likewise.
5786 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5787 Likewise.
5788 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5789 (__pthread_mutex_transfer_np): Likewise.
5790 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5791 (__pthread_mutex_unlock): Likewise.
5792 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5793 (mtx_owned_p): Likewise.
5794 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5795 (pthread_mutexattr_getrobust): Likewise.
5796 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5797 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5798 Likewise.
5799 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5800 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5801 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5802 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5803 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5804 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5805 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5806 Likewise.
5807 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5808 Likewise.
5809 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5810 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5811 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5812 (____longjmp_chk): Likewise.
5813 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5814 Likewise.
5815 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5816 (INTERNAL_SYSCALL): Likewise.
5817 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5818 (INTERNAL_SYSCALL): Likewise.
5819 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5820 (__get_clockfreq_via_cpuinfo): Likewise.
5821
5822 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5823 comments.
5824 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5825 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5826 (WORD_COPY_BWD): Likewise.
5827 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5828 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5829 Likewise.
5830 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5831 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5832 comment.
5833 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5834
5835 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5836
5837 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5838 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5839 rather than after operators.
5840 * elf/cache.c (print_cache): Likewise.
5841 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5842 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5843 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5844 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5845 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5846 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5847 (reauth_proc): Likewise.
5848 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5849 (__file_name_split_at): Likewise.
5850 (__directory_name_split_at): Likewise.
5851 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5852 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5853 * iconv/gconv_dl.c (do_print): Likewise.
5854 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5855 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5856 * locale/setlocale.c (new_composite_name): Likewise.
5857 * malloc/memusagestat.c (main): Likewise.
5858 * misc/fstab.c (fstab_convert): Likewise.
5859 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5860 Likewise.
5861 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5862 (getgrent_next_file): Likewise.
5863 (internal_getgrnam_r): Likewise.
5864 (internal_getgrgid_r): Likewise.
5865 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5866 Likewise.
5867 (internal_getgrent_r): Likewise.
5868 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5869 (getpwent_next_nss): Likewise.
5870 (getpwent_next_file): Likewise.
5871 (internal_getpwnam_r): Likewise.
5872 (internal_getpwuid_r): Likewise.
5873 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5874 Likewise.
5875 (getspent_next_nss): Likewise.
5876 (internal_getspnam_r): Likewise.
5877 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5878 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5879 * string/strchr.c (STRCHR): Likewise.
5880 * string/strchrnul.c (STRCHRNUL): Likewise.
5881 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5882 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5883 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5884 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5885 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5886 Likewise.
5887 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5888 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5889 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5890 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5891 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5892 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5893 (open_file): Likewise.
5894 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5895 (pthread_mutexattr_setprotocol): Likewise.
5896 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5897 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5898 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5899 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5900 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5901 Likewise.
5902 (elf_machine_rela): Likewise.
5903 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5904 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5905 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5906 * sysdeps/posix/rename.c (rename): Likewise.
5907 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5908 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5909 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5910 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5911 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5912 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5913 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5914 Likewise.
5915 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5916 Likewise.
5917 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5918 * time/tzfile.c (__tzfile_compute): Likewise.
5919
5920 2019-02-22 Joseph Myers <joseph@codesourcery.com>
5921
5922 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5923 rather than after operators.
5924 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5925 * crypt/md5.c (md5_finish_ctx): Likewise.
5926 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5927 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5928 * elf/cache.c (load_aux_cache): Likewise.
5929 * elf/dl-load.c (open_verify): Likewise.
5930 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5931 * elf/readelflib.c (process_elf_file): Likewise.
5932 * elf/rtld.c (dl_main): Likewise.
5933 * elf/sprof.c (generate_call_graph): Likewise.
5934 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5935 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5936 * hurd/dtable.c (reauth_dtable): Likewise.
5937 * hurd/getdport.c (__getdport): Likewise.
5938 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5939 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5940 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5941 Likewise.
5942 * hurd/hurdioctl.c (fioctl): Likewise.
5943 * hurd/hurdselect.c (_hurd_select): Likewise.
5944 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5945 (STOPSIGS): Likewise.
5946 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5947 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5948 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5949 * hurd/msgportdemux.c (msgport_server): Likewise.
5950 * hurd/setauth.c (_hurd_setauth): Likewise.
5951 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5952 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5953 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5954 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5955 * login/tst-utmp.c (do_check): Likewise.
5956 (simulate_login): Likewise.
5957 * mach/lowlevellock.h (lll_lock): Likewise.
5958 (lll_trylock): Likewise.
5959 * math/test-fenv.c (ALL_EXC): Likewise.
5960 * math/test-fenvinline.c (ALL_EXC): Likewise.
5961 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5962 * nis/nis_call.c (__do_niscall3): Likewise.
5963 * nis/nis_callback.c (cb_prog_1): Likewise.
5964 * nis/nis_defaults.c (searchaccess): Likewise.
5965 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5966 * nis/nis_ismember.c (internal_ismember): Likewise.
5967 * nis/nis_local_names.c (nis_local_principal): Likewise.
5968 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5969 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5970 Likewise.
5971 * nis/ypclnt.c (yp_match): Likewise.
5972 (yp_first): Likewise.
5973 (yp_next): Likewise.
5974 (yp_master): Likewise.
5975 (yp_order): Likewise.
5976 * nscd/hstcache.c (cache_addhst): Likewise.
5977 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5978 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5979 (internal_getpwuid_r): Likewise.
5980 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5981 * posix/glob.h (__GLOB_FLAGS): Likewise.
5982 * posix/regcomp.c (peek_token): Likewise.
5983 (peek_token_bracket): Likewise.
5984 (parse_expression): Likewise.
5985 * posix/regexec.c (sift_states_iter_mb): Likewise.
5986 (check_node_accept_bytes): Likewise.
5987 * posix/tst-spawn3.c (do_test): Likewise.
5988 * posix/wordexp-test.c (testit): Likewise.
5989 * posix/wordexp.c (parse_tilde): Likewise.
5990 (exec_comm): Likewise.
5991 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5992 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5993 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5994 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5995 * stdio-common/tst-fileno.c (do_test): Likewise.
5996 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5997 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5998 * stdlib/strtod_l.c (round_and_return): Likewise.
5999 (____STRTOF_INTERNAL): Likewise.
6000 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6001 * string/strcspn.c (STRCSPN): Likewise.
6002 * string/test-memmem.c (simple_memmem): Likewise.
6003 * termios/tcsetattr.c (tcsetattr): Likewise.
6004 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6005 * time/asctime.c (asctime_internal): Likewise.
6006 * time/strptime_l.c (__strptime_internal): Likewise.
6007 * time/sys/time.h (timercmp): Likewise.
6008 * time/tzfile.c (__tzfile_compute): Likewise.
6009
6010 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6011
6012 [BZ #21915]
6013 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6014
6015 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6016
6017 * argp/argp-help.c (__argp_error_internal): New function,
6018 renamed from __argp_error, but that takes a 'mode_flags'
6019 parameter to control the format of long double parameters.
6020 (__argp_error): Converted into a call __argp_error_internal.
6021 (__argp_failure_internal): New function, renamed from
6022 __argp_failure, but that takes a 'mode_flags' parameter.
6023 (__argp_failure): Converted into a call __argp_failure_internal.
6024 * misc/err.c (__vwarnx_internal): New function, renamed from
6025 vwarnx, but that takes a 'mode_flags' parameter.
6026 (vwarnx): Converted into a call to __vwarnx_internal.
6027 (__vwarn_internal): New function, renamed from vwarn, but that
6028 takes a 'mode_flags' parameter.
6029 (vwarn): Converted into a call to __vwarn_internal.
6030 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6031 call to __vfxprintf with 'mode_flags'.
6032 (__error_internal): New function, renamed from error, but that
6033 takes a 'mode_flags' parameter.
6034 (error): Converted into a call to __error_internal.
6035 (__error_at_line_internal): New function, renamed from
6036 error_at_line, but that takes a 'mode_flags' parameter.
6037 (error_at_line): Converted into a call to
6038 __error_at_line_internal.
6039 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6040 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6041 Likewise.
6042
6043 2019-02-20 Martin Liska <mliska@suse.cz>
6044
6045 * math/Makefile: Install math-vector-fortran.h.
6046 * bits/math-vector-fortran.h: New file.
6047 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6048
6049 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6050
6051 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6052 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6053
6054 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6055
6056 * nptl/pthread_mutex_trylock.c: Fix comment.
6057
6058 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6059
6060 * nptl/pthread_tryjoin.c: Fix comment.
6061
6062 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6063
6064 [BZ #24231]
6065 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6066 after R_SPARC_H34 case.
6067
6068 2019-02-18 Florian Weimer <fweimer@redhat.com>
6069
6070 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6071 (getanswer): Do not call Dprintf.
6072 (res_gethostbyname2_context): Likewise.
6073 (res_gethostbyaddr_context): Likewise.
6074
6075 2019-02-18 Florian Weimer <fweimer@redhat.com>
6076
6077 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6078 declaration.
6079 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6080 Remove definitions.
6081 * libio/stdfiles.c: Update comment.
6082 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6083 set _IO_stdin, _IO_stdout, _IO_stderr.
6084 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6085 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6086 inline function.
6087 (_IO_deallocate_file): New inline function.
6088 * libio/iolibio.h (_IO_vprintf): Remove definition.
6089 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6090 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6091 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6092 _IO_legacy_file.
6093 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6094 __builtin_expect. Use _IO_legacy_file.
6095
6096 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6097
6098 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6099 Initialize ctid with a known value and remove update of ctid
6100 after clone.
6101 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6102 as assumed current value of ctid_ptr.
6103
6104 2019-02-16 Florian Weimer <fweimer@redhat.com>
6105
6106 Check that non-sysdeps headers have wrapper headers.
6107 * scripts/check-wrapper-headers.py: New file.
6108 * Makefile (tests-special): Add check-wrapper-headers.out.
6109 (check-wrapper-headers.out): New target.
6110 * Rules (tests-special): Add check-wrapper-headers.out.
6111 (check-wrapper-headers.out): New target.
6112
6113 2019-02-16 Florian Weimer <fweimer@redhat.com>
6114
6115 Add missing header wrappers under include/.
6116 * include/ar.h: New file.
6117 * include/bits/mqueue2.h: Likewise.
6118 * include/bits/stdio.h: Likewise.
6119 * include/bits/stdio2.h: Likewise.
6120 * include/fstab.h: Likewise.
6121 * include/fts.h: Likewise.
6122 * include/lastlog.h: Likewise.
6123 * include/netinet/icmp6.h: Likewise.
6124 * include/netinet/igmp.h: Likewise.
6125 * include/netinet/ip6.h: Likewise.
6126 * include/re_comp.h: Likewise.
6127 * include/regexp.h: Likewise.
6128 * include/rpcsvc/bootparam.h: Likewise.
6129 * include/rpcsvc/yp_prot.h: Likewise.
6130 * include/sys/random.h: Likewise.
6131 * include/sys/stropts.h: Likewise.
6132 * include/sys/ttychars.h: Likewise.
6133 * include/sys/vfs.h: Likewise.
6134 * include/wait.h: Likewise.
6135
6136 2019-02-16 Florian Weimer <fweimer@redhat.com>
6137
6138 * nptl_db/proc_service.h: Move to ...
6139 * sysdeps/nptl/proc_service.h: ... here.
6140 * nptl_db/thread_db.h: Move to ...
6141 * sysdeps/nptl/thread_db.h: ... here.
6142 * nptl/descr.h: Include <thread_db.h>.
6143
6144 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6145
6146 * io/Makefile (tests): Add tst-lockf.
6147 * io/lockf.c (lockf): Use __fcntl and only define for
6148 !__OFF_T_MATCHES_OFF64_T.
6149 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6150 __OFF_T_MATCHES_OFF64_T case.
6151 * io/tst-lockf.c: New file.
6152 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6153 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6154 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6155 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6156 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6158 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6159 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6160 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6161
6162 2019-02-15 Florian Weimer <fweimer@redhat.com>
6163
6164 [BZ #24211]
6165 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6166 pd->result after the thread descriptor has been freed.
6167
6168 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6169
6170 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6171 from function return type.
6172
6173 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6174
6175 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6176
6177 * scripts/test_printers_common.py: Set TERM to a known harmless
6178 value.
6179
6180 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6181
6182 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6183 (xdr_u_int): Likewise.
6184 (xdr_enum): Likewise.
6185 (xdr_bytes): Reword fall-through comment.
6186 (xdr_string): Likewise.
6187
6188 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6189
6190 [BZ #2421]
6191 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6192 (tests): Add tst-join8 tst-join9.
6193 * nptl/lll_timedwait_tid.c: Remove file.
6194 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6195 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6196 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6197 * nptl/pthread_join_common.c (timedwait_tid): New function.
6198 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6199 is set.
6200 * nptl/tst-join5.c (thread_join): New function.
6201 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6202 check.
6203 * nptl/tst-join8.c: New file.
6204 * nptl/tst-join9.c: Likewise.
6205 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6206 lll_futex_timed_wait_cancel): Add generic macros.
6207 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6208 Remove definitions.
6209 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6210 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6211 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6212 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6213 Remove function.
6214 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6215 Likewise.
6216 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6217 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6218 (lll_futex_timed_wait_cancel): New macro.
6219
6220 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6221
6222 * benchtests/Makefile: Add malloc-simple benchmark.
6223 * benchtests/bench-malloc-simple.c: New benchmark.
6224
6225 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6226
6227 * benchtests/bench-memmove.c (do_one_test): Remove unused
6228 ORIG_SRC.
6229 (do_test): Adjust.
6230 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6231 ORIG_SRC.
6232 (do_test): Adjust.
6233
6234 2019-01-13 Jim Wilson <jimw@sifive.com>
6235
6236 [BZ #24040]
6237 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6238 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6239 (func): New.
6240 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6241 call func directly.
6242 * nptl/Makefile (tests): Add tst-unwind-thread.
6243 (CFLAGS-tst-unwind-thread.c): Define.
6244 * nptl/tst-unwind-thread.c: New file.
6245 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6246 as undefined.
6247
6248 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6249
6250 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6251 comment wording.
6252 * nis/nis_call.c (__do_niscall3): Likewise.
6253
6254 * catgets/gencat.c (normalize_line): Use braces around empty
6255 'else' body.
6256 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6257 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6258 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6259 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6260 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6261 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6262 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6263 definition.
6264
6265 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6266 execlp returns.
6267
6268 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6269
6270 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6271 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6272 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6273 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6274 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6275 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6276 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6277 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6278 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6279 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6280 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6281 * benchtests/bench-bcopy.c: Delete file.
6282 * benchtests/bench-bzero.c: Likewise.
6283 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6284 (simple_memccpy): Remove.
6285 (generic_memccpy): Add function.
6286 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6287 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6288 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6289 (generic_mempcpy): Add new function.
6290 * benchtests/bench-memset.c (simple_bzero): Remove.
6291 (builtin_bzero): Remove.
6292 (builtin_memset): Remove.
6293 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6294 (generic_rawmemchr): Add new function.
6295
6296 2019-02-12 Florian Weimer <fweimer@redhat.com>
6297
6298 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6299
6300 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6301
6302 [BZ #24122]
6303 * elf/Makefile (tests): Add tst-audit13.
6304 (modules-names): Add tst-audit13mod1.
6305 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6306 rule.
6307 * elf/tst-audit13.c: New file.
6308 * elf/tst-audit13mod1.c: Likewise.
6309
6310 2019-02-12 Florian Weimer <fweimer@redhat.com>
6311
6312 [BZ #24122]
6313 * elf/rtld.c (unload_audit_module): New function.
6314 (report_audit_module_load_error): Likewise.
6315 (load_audit_module): Likewise. Extracted from dl_main. Call
6316 _dl_close if the laversion symbol cannot be found. Use early
6317 returns for error handling. Add malloc error check. Check for a
6318 zero return value from la_version. Remove spurious comment about
6319 static TLS initialization. Remove useless casts.
6320 (notify_audit_modules_of_loaded_object): New function. Extracted
6321 from dl_main.
6322 (load_audit_module): Likewise.
6323 (dl_main): Call load_audit_modules.
6324
6325 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6326
6327 * elf/dl-exception.c (_dl_exception_create_format): Add
6328 fall-through comments.
6329 * elf/ldconfig.c (parse_conf_include): Likewise.
6330 * elf/rtld.c (print_statistics): Likewise.
6331 * locale/programs/charmap.c (parse_charmap): Likewise.
6332 * misc/mntent_r.c (__getmntent_r): Likewise.
6333 * posix/wordexp.c (parse_arith): Likewise.
6334 (parse_backtick): Likewise.
6335 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6336 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6337 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6338
6339 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6340
6341 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6342 Use float instead of double.
6343
6344 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6345
6346 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6347
6348 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6349
6350 * sysdeps/powerpc/bits/mathinline.h: Remove.
6351
6352 2019-02-08 Florian Weimer <fweimer@redhat.com>
6353
6354 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6355 * math/bits/math-finite.h: Move to ...
6356 * bits/math-finite.h: ... here.
6357
6358 2019-02-08 Florian Weimer <fweimer@redhat.com>
6359
6360 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6361 * bits/unistd_ext.h: here.
6362
6363 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6364
6365 [BZ #21915]
6366 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6367 * nss/tst-nss-files-hosts-long.c: New file.
6368 * nss/tst-nss-files-hosts-long.root: New directory.
6369 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6370 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6371
6372 2019-02-08 Florian Weimer <fweimer@redhat.com>
6373
6374 * include/bits/unistd_ext.h: Remove file.
6375 * posix/bits/unistd_ext.h: Move to ...
6376 * sysdeps/generic/bits/unistd_ext.h: ... here.
6377
6378 2019-02-08 Florian Weimer <fweimer@redhat.com>
6379
6380 * include/bits/unistd_ext.h: New file.
6381
6382 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6383
6384 * time/tst-strftime2.c: Use array_length macros instead of magic
6385 numbers.
6386
6387 2019-02-08 Florian Weimer <fweimer@redhat.com>
6388
6389 [BZ #24161]
6390 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6391 argument.
6392 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6393 locking if the new do_locking argument is true.
6394 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6395 __run_fork_handlers.
6396
6397 2019-02-08 Florian Weimer <fweimer@redhat.com>
6398
6399 [BZ #6399]
6400 Linux: Add gettid system call wrapper.
6401 * posix/Makefile (headers): Add bits/unistd_ext.h.
6402 * posix/bits/unistd_ext.h: New file.
6403 * posix/unistd.h: Include it.
6404 * manual/process.texi (Process Identification): Document gettid.
6405 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6406 tst-gettid, tst-gettid-kill.
6407 (tst-gettid): Link with $(shared-thread-library).
6408 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6409 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6410 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6411 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6412 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6413 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6414 Add gettid.
6415 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6416 Likewise.
6417 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6418 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6419 Likewise.
6420 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6421 Likewise.
6422 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6423 Likewise.
6424 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6425 Likewise.
6426 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6427 Likewise.
6428 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6429 Likewise.
6430 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6431 Likewise.
6432 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6433 (GLIBC_2.30): Likewise.
6434 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6435 (GLIBC_2.30): Likewise.
6436 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6437 (GLIBC_2.30): Likewise.
6438 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6439 (GLIBC_2.30): Likewise.
6440 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6441 Likewise.
6442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6443 (GLIBC_2.30): Likewise.
6444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6445 (GLIBC_2.30): Likewise.
6446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6447 (GLIBC_2.30): Likewise.
6448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6449 (GLIBC_2.30): Likewise.
6450 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6451 Likewise.
6452 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6453 Likewise.
6454 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6455 Likewise.
6456 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6457 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6458 Likewise.
6459 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6460 Likewise.
6461 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6462 Likewise.
6463 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6464 Likewise.
6465 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6466
6467 2019-02-08 Florian Weimer <fweimer@redhat.com>
6468
6469 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6470 compatibility symbols.
6471
6472 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6473
6474 [BZ #24180]
6475 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6476 Add compiler barriers and comments.
6477
6478 2019-02-07 Florian Weimer <fweimer@redhat.com>
6479
6480 * include/array_length.h (array_length): Do not use a statement
6481 expression and _Static_assert, so that array_length can be used at
6482 file scope and as a constant expression.
6483
6484 2019-02-07 Florian Weimer <fweimer@redhat.com>
6485
6486 * support/xdlfcn.h (xdlmopen): Declare.
6487 * support/xdlmopen.c: New file.
6488 * support/Makefile (libsupport-routines): Add xdlmopen.
6489
6490 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6491
6492 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6493 before return type, without separate inline.
6494 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6495 * elf/dl-tunables.h (tunable_is_name): Likewise.
6496 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6497 (do_set_top_pad): Likewise.
6498 (do_set_mmap_threshold): Likewise.
6499 (do_set_mmaps_max): Likewise.
6500 (do_set_mallopt_check): Likewise.
6501 (do_set_perturb_byte): Likewise.
6502 (do_set_arena_test): Likewise.
6503 (do_set_arena_max): Likewise.
6504 (do_set_tcache_max): Likewise.
6505 (do_set_tcache_count): Likewise.
6506 (do_set_tcache_unsorted_limit): Likewise.
6507 * nis/nis_subr.c (count_dots): Likewise.
6508 * nptl/allocatestack.c (advise_stack_range): Likewise.
6509 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6510 (do_sin): Likewise.
6511 (reduce_sincos): Likewise.
6512 (do_sincos): Likewise.
6513 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6514 (do_set_elision_enable): Likewise.
6515 (TUNABLE_CALLBACK_FNDECL): Likewise.
6516
6517 2019-02-06 Florian Weimer <fweimer@redhat.com>
6518
6519 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6520 (xdlsym): Use dlerror to detect a NULL symbol.
6521
6522 2019-02-06 Florian Weimer <fweimer@redhat.com>
6523
6524 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6525 <stap-probe.h>.
6526 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6527
6528 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6529
6530 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6531
6532 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6533
6534 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6535 __wmemcmp and weak alias to wmemcmp.
6536
6537 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6538
6539 [BZ #23403]
6540 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6541 TLS_TCB_AT_TP tls variant.
6542 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6543 Add alignment checks.
6544 * support/Makefile (libsupport-routines): Add xposix_memalign and
6545 xpthread_setstack.
6546 * support/support.h: Add xposix_memalign.
6547 * support/xthread.h: Add xpthread_attr_setstack.
6548 * support/xposix_memalign.c: New File.
6549 * support/xpthread_attr_setstack.c: Likewise.
6550
6551 2019-02-05 Florian Weimer <fweimer@redhat.com>
6552
6553 [BZ #24164]
6554 arm: Use "nr" constraint for Systemtap probes, to avoid the
6555 compiler using memory operands for constants, due to the "o"
6556 alternative in the default "nor" constraint.
6557 * include/stap-probe.h [USE_STAP_PROBE]: Include
6558 <stap-probe-machine.h>
6559 * sysdeps/generic/stap-probe-machine.h: New file.
6560 * sysdeps/arm/stap-probe-machine.h: Likewise.
6561
6562 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6563
6564 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6565 with 0, not tcache->entries[tc_idx].
6566
6567 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6568 once.
6569
6570 2019-02-04 Andreas Schwab <schwab@suse.de>
6571
6572 [BZ #16976]
6573 [BZ #17396]
6574 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6575 looking up collating elements match against (wide) character
6576 sequence instead of name. Correct alignment adjustment.
6577 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6578 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6579 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6580 (LOCALES): Add cs_CZ.ISO-8859-2.
6581 * posix/tst-fnmatch4.c: New file.
6582 * posix/tst-fnmatch5.c: New file.
6583 * include/wchar.h (__wmemcmp): Declare.
6584 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6585 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6586 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6587 * sysdeps/s390/wmemcmp.c: Likewise.
6588
6589 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6590
6591 [BZ #24155]
6592 CVE-2019-7309
6593 * NEWS: Updated for CVE-2019-7309.
6594 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6595 upper 32 bits of RDX register for x32. Use unsigned Jcc
6596 instructions, instead of signed.
6597 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6598 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6599
6600 2019-02-04 Florian Weimer <fweimer@redhat.com>
6601
6602 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6603 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6604 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6605 Likewise.
6606 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6607 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6608 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6609 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6610 Likewise.
6611 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6612 Likewise.
6613 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6614 Likewise.
6615 (posix_spawn_file_actions_addopen): Likewise.
6616 (posix_spawn_file_actions_addclose): Likewise.
6617 (posix_spawn_file_actions_adddup2): Likewise.
6618 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6619 qualifiers.
6620 (posix_spawn_file_actions_addfchdir_np): Likewise.
6621
6622 2019-02-04 David Newall <glibc@davidnewall.com>
6623
6624 elf: Implement --preload option for the dynamic linker.
6625 * elf/rtld.c (preloadarg): New variable.
6626 (handle_preload_list): Pass through “where” argument to
6627 do_preload.
6628 (dl_main): Handle "--preload" and add second call to
6629 handle_preload_list.
6630 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6631 (tst-rtld-preload-OBJS): Set variable.
6632 (tst-rtld-preload.out): New target.
6633 * elf/tst-rtld-preload.sh: New file.
6634
6635 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6636
6637 * Makefile (testrun.sh): Exit in case of incorrect argument.
6638
6639 2019-02-04 Florian Weimer <fweimer@redhat.com>
6640
6641 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6642 alignment gaps.
6643
6644 2019-02-03 Florian Weimer <fweimer@redhat.com>
6645
6646 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6647 implicit overflow checks.
6648
6649 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6650
6651 * stdlib/isomac.c: Include <unistd.h>.
6652
6653 2019-02-03 Florian Weimer <fweimer@redhat.com>
6654
6655 * include/time.h (__tzfile_default): Use int, not long int, for
6656 the GMT offsets.
6657 * time/tzfile.c (struct ttinfo): Change type of the offset member
6658 to int.
6659 (__tzfile_read): Remove useless cast.
6660 (__tzfile_default): Adjust prototype.
6661 * time/tzset.c (tz_rule): Change type of the offset member to int.
6662 (parse_offset): Change the type of the sign variable to int.
6663
6664 2019-02-03 Florian Weimer <fweimer@redhat.com>
6665
6666 [BZ #24153]
6667 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6668 * libio/getchar.c (getchar): Likewise.
6669 * libio/getchar_u.c (getchar_unlocked): Likewise.
6670 * libio/getwchar.c (getwchar): Likewise.
6671 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6672 * libio/iogets.c (_IO_gets): Likewise.
6673 * libio/vscanf.c (_IO_vscanf): Likewise.
6674 * libio/vwscanf.c (__vwscanf): Likewise.
6675 * libio/tst-bz24153.c: New file.
6676 * libio/Makefile (tests): Add it.
6677
6678 2019-02-02 Florian Weimer <fweimer@redhat.com>
6679
6680 [BZ #14829]
6681 * manual/resource.texi (Basic Scheduling Functions): Add
6682 portability note. Change process to task throughout the section.
6683 Remove incorrect comment about sched_yield as it affects
6684 tasks/threads, not entire processes.
6685 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6686 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6687
6688 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6689
6690 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6691 * configure: Regenerated.
6692 * manual/install.texi (Tools for Compilation): Update minimum GCC
6693 version.
6694 * INSTALL: Regenerated.
6695
6696 2019-02-01 Florian Weimer <fweimer@redhat.com>
6697
6698 * support/support_test_compare_string.c
6699 (support_test_compare_string): Use "string" in error message.
6700 * support/tst-test_compare_string.c (do_test): Adjust.
6701
6702 2019-02-01 Florian Weimer <fweimer@redhat.com>
6703
6704 * support/support_format_address_family.c
6705 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6706
6707 2019-02-01 Florian Weimer <fweimer@redhat.com>
6708
6709 * manual/socket.texi (Internet Address Formats): Clarify the byte
6710 order of struct sockaddr_in, struct sockaddr_in6. Document
6711 sin6_flowinfo and sin6_scope_id.
6712
6713 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6714
6715 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6716 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6717 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6718 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6719 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6720 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6721
6722 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6723
6724 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6725 [!MEMCHR](MEMCHR): Set to __memchr.
6726 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6727 Add memchr_generic and memchr_nosimd.
6728 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6729 (__libc_ifunc_impl_list): Add memchr ifuncs.
6730 * sysdeps/aarch64/multiarch/memchr.c: New file.
6731 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6732 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6733
6734 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6735
6736 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6737 Add memset_emag.
6738 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6739 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6740 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6741 Add IS_EMAG check for ifunc dispatch.
6742 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6743 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6744
6745 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6746
6747 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6748 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6749 Add emag.
6750 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6751 New macro.
6752
6753 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6754
6755 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6756
6757 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6758
6759 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6760 syscall-template file.
6761
6762 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6763 Torvald Riegel <triegel@redhat.com>
6764 Rik Prohaska <prohaska7@gmail.com>
6765
6766 [BZ# 23844]
6767 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6768 tst-rwlock-trywrlock-stall.
6769 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6770 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6771 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6772 Set __wrphase_fute to 1 only if we started the write phase.
6773 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6774 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6775 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6776 * support/xpthread_rwlock_destroy.c: New file.
6777 * support/xthread.h: Declare xpthread_rwlock_destroy.
6778
6779 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6780
6781 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6782 version to 4.0.2.
6783
6784 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6785
6786 [BZ #24051]
6787 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6788 * libio/fileops.c (_IO_new_file_underflow): Likewise
6789 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6790 * libio/putchar.c (putchar): Likewise.
6791 * libio/putchar_u.c (putchar_unlocked): Likewise.
6792 * libio/putwchar.c (putchar): Likewise.
6793 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6794 * libio/tst-bz24051.c: New test.
6795 * libio/Makefile (tests): Add tst-bz24051
6796
6797 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6798
6799 CVE-2019-9169
6800 regex: fix read overrun [BZ #24114]
6801 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6802 https://debbugs.gnu.org/34140
6803 * posix/regexec.c (proceed_next_node):
6804 Do not read past end of input buffer.
6805
6806 2019-01-31 Florian Weimer <fweimer@redhat.com>
6807
6808 [BZ #24059]
6809 * nss/nss_files/files-alias.c (get_next_alias): Handle
6810 continuation line without newline at the end.
6811 * nss/tst-nss-files-alias-truncated.c: New file.
6812 * nss/Makefile [$(build-shared)] (tests): Add
6813 tst-nss-files-alias-truncated.
6814 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6815 * support/namespace.h (struct support_chroot_configuration): Add
6816 aliases member.
6817 (struct support_chroot): Add path_aliases member.
6818 * support/support_chroot.c (support_chroot_create): Handle
6819 aliases.
6820 (support_chroot_free): Free path_aliases.
6821
6822 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6823
6824 * version.h (RELEASE): Set to "development".
6825 (VERSION): Set to "2.29.9000".
6826 * NEWS: Add section for 2.30.
6827
6828 * version.h (RELEASE): Set to "stable".
6829 (VERSION): Set to "2.29".
6830 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6831
6832 * NEWS: Add the list of bugs fixed in 2.29.
6833 * manual/contrib.texi: Update contributors list with some more
6834 names.
6835 * manual/install.texi: Update latest versions of packages
6836 tested.
6837 * INSTALL: Regenerated.
6838
6839 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6840
6841 * po/be.po: Update translations.
6842 * po/bg.po: Likewise.
6843 * po/ca.po: Likewise.
6844 * po/cs.po: Likewise.
6845 * po/da.po: Likewise.
6846 * po/de.po: Likewise.
6847 * po/el.po: Likewise.
6848 * po/eo.po: Likewise.
6849 * po/es.po: Likewise.
6850 * po/fi.po: Likewise.
6851 * po/fr.po: Likewise.
6852 * po/gl.po: Likewise.
6853 * po/hr.po: Likewise.
6854 * po/hu.po: Likewise.
6855 * po/ia.po: Likewise.
6856 * po/id.po: Likewise.
6857 * po/it.po: Likewise.
6858 * po/ja.po: Likewise.
6859 * po/ko.po: Likewise.
6860 * po/lt.po: Likewise.
6861 * po/nb.po: Likewise.
6862 * po/nl.po: Likewise.
6863 * po/pl.po: Likewise.
6864 * po/pt_BR.po: Likewise.
6865 * po/ru.po: Likewise.
6866 * po/rw.po: Likewise.
6867 * po/sk.po: Likewise.
6868 * po/sl.po: Likewise.
6869 * po/sv.po: Likewise.
6870 * po/tr.po: Likewise.
6871 * po/uk.po: Likewise.
6872 * po/vi.po: Likewise.
6873 * po/zh_CN.po: Likewise.
6874 * po/zh_TW.po: Likewise.
6875
6876 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6877
6878 [BZ #24130]
6879 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6880 of $f3 register on $y_is_neg path.
6881
6882 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6883
6884 [BZ #24110]
6885 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6886 sigaltstack.ss_flags.
6887
6888 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6889
6890 [BZ #23758]
6891 * manual/time.texi (strftime): Document "%Ey".
6892 * time/strftime_l.c (__strftime_internal): Set the default width
6893 padding with zero of "%Ey" to 2.
6894
6895 [BZ #24096]
6896 * manual/time.texi (strftime): Document "%EC" and "%EY".
6897 * time/Makefile (tests): Add tst-strftime2.
6898 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6899 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6900 override padding for "%Ey".
6901 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6902 "%Ey" in the subformat as if decorated with that flag.
6903 * time/tst-strftime2.c: New file.
6904
6905 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6906
6907 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6908 are not defined.
6909
6910 [BZ #24122]
6911 * elf/Makefile (tests): Add tst-audit13.
6912 (modules-names): Add tst-audit13mod1.
6913 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6914 rule.
6915 * elf/rtld.c (dl_main): Handle invalid audit module version.
6916 * elf/tst-audit13.c: New file.
6917 * elf/tst-audit13mod1.c: Likewise.
6918
6919 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6920
6921 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6922 returned by __hurd_at_flags.
6923 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6924 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6925 directly instead of __hurd_file_name_lookup.
6926
6927 2019-01-21 Joseph Myers <joseph@codesourcery.com>
6928
6929 * scripts/build-many-glibcs.py (Context.checkout): Default
6930 binutils version to 2.32 branch.
6931
6932 2019-01-21 Florian Weimer <fweimer@redhat.com>
6933
6934 [BZ #20018]
6935 CVE-2016-10739
6936 resolv: Reject trailing characters in host names
6937 * include/arpa/inet.h (__inet_aton_exact): Declare.
6938 (inet_aton): Remove hidden prototype. No longer used internally.
6939 * nscd/gai.c (__inet_aton): Do not define.
6940 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6941 * nss/digits_dots.c (__inet_aton): Likewise.
6942 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6943 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6944 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6945 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6946 (tst-resolv-trailing): Likewise.
6947 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6948 libc.
6949 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6950 Make static. Add endp parameter.
6951 (__inet_aton_exact): New function.
6952 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6953 (__inet_addr): Call inet_aton_end.
6954 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6955 not just IPv6. Call __inet_aton_exact.
6956 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6957 (tests): Make const. Add additional test cases with trailing
6958 characters.
6959 (do_test): Use array_length.
6960 * resolv/tst-inet_aton_exact.c: New file.
6961 * resolv/tst-resolv-trailing.c: Likewise.
6962 * resolv/tst-resolv-nondecimal.c: Likewise.
6963 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6964
6965 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6966
6967 [BZ# 24097]
6968 CVE-2019-6488
6969 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6970 Clear the upper 32 bits of RSI register.
6971 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6972 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6973 and tst-size_t-wcsnlen.
6974 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6975 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6976
6977 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6978
6979 [BZ# 24097]
6980 CVE-2019-6488
6981 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6982 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6983 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6984 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6985 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
6986
6987 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6988
6989 [BZ# 24097]
6990 CVE-2019-6488
6991 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
6992 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6993 * sysdeps/x86_64/strcmp.S: Likewise.
6994 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6995 tst-size_t-strncmp and tst-size_t-wcsncmp.
6996 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6997 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6998 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6999
7000 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7001
7002 [BZ# 24097]
7003 CVE-2019-6488
7004 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7005 RDX_LP for length. Clear the upper 32 bits of RDX register.
7006 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7007 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7008 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7009 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7010
7011 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7012
7013 [BZ# 24097]
7014 CVE-2019-6488
7015 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7016 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7017 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7018 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7019
7020 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7021
7022 [BZ# 24097]
7023 CVE-2019-6488
7024 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7025 length. Clear the upper 32 bits of RDX register.
7026 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7027 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7028 Likewise.
7029 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7030 Likewise.
7031 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7032 tst-size_t-wmemchr.
7033 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7034
7035 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7036
7037 [BZ# 24097]
7038 CVE-2019-6488
7039 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7040 length. Clear the upper 32 bits of RDX register.
7041 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7042 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7043 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7044 tst-size_t-wmemcmp.
7045 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7046 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7047
7048 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7049
7050 [BZ# 24097]
7051 CVE-2019-6488
7052 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7053 upper 32 bits of RDX register.
7054 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7055 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7056 tst-size_t-wmemchr.
7057 * sysdeps/x86_64/x32/test-size_t.h: New file.
7058 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7059 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7060
7061 2019-01-18 Florian Weimer <fweimer@redhat.com>
7062
7063 [BZ #24112]
7064 resolv: Do not send queries for non-host-names in nss_dns.
7065 * resolv/nss_dns/dns-host.c (check_name): New function.
7066 (_nss_dns_gethostbyname2_r): Use it.
7067 (_nss_dns_gethostbyname_r): Likewise.
7068 (_nss_dns_gethostbyname4_r): Likewise.
7069
7070 2019-01-21 Florian Weimer <fweimer@redhat.com>
7071
7072 * resolv/inet_addr.c: Reformat to GNU style.
7073 (__inet_addr, __inet_aton): Update comment.
7074
7075 2019-01-18 Florian Weimer <fweimer@redhat.com>
7076
7077 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7078 ("malloc: Use current (C11-style) atomics for fastbin access").
7079 This commit introduces a substantial performance regression on
7080 POWER and Aarch64.
7081 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7082 (REMOVE_FB): Define.
7083 (_int_malloc): Use it and reindent.
7084 (_int_free): Use CAS loop with
7085 catomic_compare_and_exchange_val_rel.
7086 (malloc_consolidate): Use atomic_exchange_acq.
7087
7088
7089 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7090
7091 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7092 -Wl,-z,now.
7093 (LDFLAGS-tst-minsigstksz-2): Likewise.
7094 (LDFLAGS-tst-minsigstksz-3): Likewise.
7095 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7096 (LDFLAGS-tst-minsigstksz-4): Likewise.
7097
7098 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7099
7100 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7101 than "alternate".
7102
7103 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7104
7105 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7106
7107 2019-01-16 Zack Weinberg <zackw@panix.com>
7108
7109 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7110 (xget_sigstack_location): New test support functions.
7111 * support/xsigstack.c: New file, implementing them.
7112 * support/tst-xsigstack.c: New test for them.
7113 * support/Makefile: Update.
7114
7115 * signal/tst-minsigstksz-1.c
7116 * signal/tst-minsigstksz-2.c
7117 * signal/tst-minsigstksz-3.c
7118 * signal/tst-minsigstksz-3a.c
7119 * signal/tst-minsigstksz-4.c: New tests.
7120 * signal/Makefile: Run them.
7121
7122 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7123
7124 * po/libc.pot: Regenerate.
7125
7126 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7127
7128 * math/libm-test-fma.inc (fma_test_data): Set
7129 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7130
7131 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7132
7133 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7134 (do_test): Changed __vector __int128_t to __vector unsigned int.
7135
7136 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7137
7138 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7139 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7140 stpcpy-avx2 and stpncpy-avx2.
7141 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7142 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7143 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7144 and __stpncpy_avx2.
7145 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7146 ifunc-strcpy.h}: rename header for a more generic name.
7147 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7148 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7149 AVX unaligned load is fast and vzeroupper is preferred.
7150 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7151 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7152 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7153 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7154 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7155 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7156
7157 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7158
7159 * argp/argp-help.c: Fix typo in comment.
7160 * misc/sys/cdefs.h: Likewise.
7161 * posix/regexec.c (sift_states_iter_mb): Likewise.
7162 * socket/sockatmark.c: Likewise.
7163 * socket/sys/socket.h: Likewise.
7164 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7165 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7166 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7167 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7168 * sysdeps/unix/sockatmark.c: Likewise.
7169 * time/strptime_l.c: Likewise.
7170
7171 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7172
7173 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7174 missing space after the cast of "_NL_CURRENT".
7175
7176 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7177
7178 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7179 ifdef to fix read of VSCR.
7180 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7181 tst-ucontext-ppc64-vscr.c to test list.
7182 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7183
7184 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7185
7186 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7187 fall-through.
7188
7189 2019-01-09 Jim Wilson <jimw@sifive.com>
7190
7191 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7192
7193 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7194
7195 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7196 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7197 __memcpy_falkor for ares.
7198 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7199 Add new define.
7200 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7201 Add ares cpu.
7202
7203 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7204
7205 [BZ #24066]
7206 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7207 4_FP_W_TYPEs are used for IEEE quad precision.
7208 * soft-fp/extendhftf2.c: Likewise.
7209 * soft-fp/extendsftf2.c: Likewise.
7210 * soft-fp/extendxftf2.c: Likewise.
7211 * soft-fp/trunctfdf2.c: Likewise.
7212 * soft-fp/trunctfhf2.c: Likewise.
7213 * soft-fp/trunctfsf2.c: Likewise.
7214 * soft-fp/trunctfxf2.c: Likewise.
7215 * sysdeps/alpha/ots_cvttx.c: Likewise.
7216 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7217 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7218 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7219 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7220 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7221 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7222 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7223 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7224 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7225 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7226 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7227 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7228 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7229 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7230 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7231 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7232 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7233
7234 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7235
7236 [BZ #24024]
7237 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7238 code with -fmath-errno.
7239 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7240 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7241 * string/test-strerror-errno.c: New file.
7242
7243 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7244
7245 [BZ #24046]
7246 * localedata/locales/en_US (date_fmt): Add, set to
7247 "%a %d %b %Y %r %Z".
7248
7249 2019-01-07 Florian Weimer <fweimer@redhat.com>
7250
7251 [BZ #24063]
7252 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7253 instead of @var{errno}.
7254 (Parsing of Integers): Likewise.
7255 (Parsing of Floats): Likewise.
7256 * manual/filesys.texi (Working with Directory Trees): Likewise.
7257 (Temporary Files): Likewise.
7258 * manual/job.texi (Terminal Access Functions): Likewise.
7259 * manual/llio.texi (Synchronizing I/O): Likewise.
7260 * manual/math.texi (SVID Random): Likewise.
7261 * manual/message.texi (The catgets Functions): Likewise.
7262 (Translation with gettext): Likewise.
7263 (Locating gettext catalog): Likewise.
7264 (Charset conversion in gettext): Likewise.
7265 * manual/nss.texi (NSS Module Function Internals): Likewise.
7266 * manual/search.texi (Hash Search Function): Likewise.
7267 * manual/setjmp.texi (System V contexts): Likewise.
7268 * manual/time.texi (Sleeping): Likewise.
7269 * manual/users.texi (Lookup User): Likewise.
7270 (Lookup Group): Likewise.
7271
7272 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7273
7274 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7275 fix typo.
7276
7277 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7278
7279 [BZ #19444]
7280 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7281 __builtin_unreachable for default case in switch.
7282 (__ieee754_yn): Likewise.
7283 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7284 (__ieee754_ynl): Likewise.
7285 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7286 (__ieee754_ynl): Likewise.
7287 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7288 (__ieee754_ynl): Likewise.
7289
7290 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7291
7292 * manual/maint.texi: Use @{ and @}.
7293
7294 2019-01-04 Florian Weimer <fweimer@redhat.com>
7295
7296 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7297 function.
7298 (do_in_chroot_1): Call it.
7299 (run_chroot_tests):
7300 Improve error reporting in case it is not possible to create a
7301 collision for the PTY name required by the test.
7302
7303 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7304
7305 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7306 lll_wait_tid with timeout.
7307 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7308 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7309 futex_reltimed_wait_cancelable for cancelabla mode.
7310 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7311 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7312 macros.
7313 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7314 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7315 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7316 SYSCALL_CANCEL_NCS): New macro.
7317 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7318 (lll_timedwait_tid): Remove macro.
7319 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7320 Likewise.
7321 (lll_timedwait_tid): Likewise.
7322 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7323 Likewise.
7324 (lll_timedwait_tid): Likewise.
7325 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7326 Likewise.
7327 (lll_timedwait_tid): Likewise.
7328 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7329 Use INTERNAL_SYSCALL_CANCEL.
7330 * sysdeps/unix/sysv/linux/futex-internal.h
7331 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7332 instead of __pthread_{enable,disable}_asynccancel.
7333 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7334 (lll_futex_wait_cancel): New macro.
7335
7336 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7337 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7338
7339 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7340 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7341
7342 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7343 in backtrace analysis.
7344 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7345 side-effects.
7346 (tf_send): Likewise.
7347
7348 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7349 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7350 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7351 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7352 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7353 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7354 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7355 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7356 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7357 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7358 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7359 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7360 Likewise.
7361 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7362 tst-cancel-wrappers.sh.
7363 (generated): Remove tst-cancel-wrappers.out.
7364 (tst-cancel-wrappers.out): Remove rule.
7365 * nptl/tst-cancel-wrappers.sh: Remove file.
7366
7367 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7368
7369 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7370 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7371 Update.
7372
7373 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7374
7375 [BZ #23640]
7376 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7377 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7378 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7379 close-on-exec reset for adddup2 file action.
7380 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7381
7382 2019-01-03 Zack Weinberg <zackw@panix.com>
7383
7384 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7385 parameter. Only use deprecated scanf when __USE_GNU is defined
7386 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7387 than 201103L, whichever is relevant for the language being compiled.
7388
7389 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7390 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7391 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7392 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7393 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7394
7395 * libio/iovsscanf.c
7396 * libio/fwscanf.c
7397 * libio/iovswscanf.c
7398 * libio/swscanf.c
7399 * libio/vscanf.c
7400 * libio/vwscanf.c
7401 * libio/wscanf.c
7402 * stdio-common/fscanf.c
7403 * stdio-common/scanf.c
7404 * stdio-common/vfscanf.c
7405 * stdio-common/vfwscanf.c
7406 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7407 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7408 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7409 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7410 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7411 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7412 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7413 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7414 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7415 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7416 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7417 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7418 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7419 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7420 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7421
7422 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7423 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7424 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7425 not sscanf.
7426 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7427 with a preprocessor macro.
7428
7429 * stdio-common/bug21.c, stdio-common/scanf14.c:
7430 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7431 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7432 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7433 to xscanf, xfscanf, xsscanf.
7434
7435 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7436 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7437 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7438 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7439 xfscanf, xsscanf.
7440 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7441 override feature selection macros or provide definitions of u_char etc.
7442 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7443 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7444 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7445 with -std=gnu89.
7446
7447 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7448
7449 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7450 bits/termios-misc.h.
7451 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7452 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7453 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7454 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7455 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7456 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7457
7458 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7459 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7460 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7461 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7462 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7463 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7464 termios-misc.h.
7465 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7466 (sysdep_headers): Add termios-misc.h.
7467
7468 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7469 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7470 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7471
7472 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7473 termios-tcflow.h.
7474 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7475 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7476 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7477 TCSAFLUSH): Move to termios-tcflow.h.
7478 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7479 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7480 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7481 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7482
7483 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7484 termios-c_lflag.h.
7485 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7486 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7487 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7488 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7489 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7490 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7491 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7492 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7493 Likewise.
7494 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7495 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7496 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7497 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7498
7499 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7500 termios-c_cflag.h.
7501 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7502 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7503 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7504 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7505 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7506 termios-c_cflag.h.
7507 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7508 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7509 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7510 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7511
7512 [BZ #23783]
7513 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7514 termios-baud.h.
7515 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7516 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7517 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7518 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7519 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7520 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7521 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7522 __MAX_BAUD): Move to termios-baud.h.
7523 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7524 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7525 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7526 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7527 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7528
7529 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7530 termios-c_oflag.h.
7531 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7532 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7533 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7534 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7535 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7536 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7537 termios-c_oflag.h.
7538 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7539 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7540 FFR1): Likewise.
7541 [USE_MISC] (XTABS): Likewise.
7542 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7543 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7544 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7545 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7546
7547 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7548 termios-c_iflag.h.
7549 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7550 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7551 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7552 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7553 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7554 IUTF8): Move to termios-c_iflag.h.
7555 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7556 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7557 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7558 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7559
7560 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7561 termios-cc.h.
7562 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7563 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7564 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7565 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7566 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7567 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7568 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7569 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7570 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7571 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7572 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7573 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7574
7575 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7576 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7577 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7578 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7579 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7580 termios-struct.h.
7581 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7582 termios-struct.h.
7583 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7584 Likewise.
7585 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7586 Likewise.
7587 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7588 Likewise.
7589 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7590 Likewise.
7591 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7592 _HAVE_C_OSPEED): Define.
7593 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7594 _HAVE_C_OSPEED): Likewise.
7595 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7596 _HAVE_C_OSPEED): Likewise.
7597 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7598 (cfsetospeed): Check for define value instead of existence.
7599 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7600 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7601 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7602 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7603 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7604
7605 [BZ #17783]
7606 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7607 Define.
7608 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7609 (TIOCSER_TEMT): Likewise.
7610 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7611 (TEOCSER_TEMT): Likewise.
7612
7613 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7614
7615 [BZ #24011]
7616 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7617
7618 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7619
7620 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7621
7622 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7623
7624 * sysdeps/htl/pt-barrierattr-setpshared.c
7625 (pthread_barrierattr_setpshared): Add stub warning.
7626 * sysdeps/htl/pt-condattr-setpshared.c
7627 (pthread_condattr_setpshared): Likewise.
7628 * sysdeps/htl/pt-mutexattr-setpshared.c
7629 (pthread_mutexattr_setpshared): Likewise.
7630 * sysdeps/htl/pt-rwlockattr-setpshared.c
7631 (pthread_rwlockattr_setpshared): Likewise.
7632 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7633 (pthread_mutexattr_setpshared): Likewise.
7634
7635 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7636
7637 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7638 constants to match with Linux 4.20.
7639
7640 * sysdeps/mips/mips32/libm-test-ulps: Update.
7641 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7642
7643 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7644
7645 [BZ #24034]
7646 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7647 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7648 than __typeof (...) for the a_ptr variable.
7649
7650 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7651
7652 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7653 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7654 * libio/Makefile (tests): Add tst-sprintf-ub and
7655 tst-sprintf-chk-ub.
7656 (CFLAGS-tst-sprintf-ub.c): New variable.
7657 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7658 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7659 destination buffer and check for overflows in fortified mode.
7660 * libio/libioP.h (PRINTF_CHK): New macro.
7661 * libio/tst-sprintf-chk-ub.c: New file.
7662 * libio/tst-sprintf-ub.c: Likewise.
7663
7664 2019-01-02 Florian Weimer <fweimer@redhat.com>
7665
7666 [BZ #24018]
7667 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7668 failure.
7669
7670 2019-01-02 Florian Weimer <fweimer@redhat.com>
7671
7672 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7673
7674 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7675
7676 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7677 macro.
7678
7679 * sysdeps/unix/sysv/linux/netpacket/packet.h
7680 (PACKET_IGNORE_OUTGOING): New macro.
7681
7682 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7683 macro.
7684
7685 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7686 version to 4.20.
7687 (riscv_flush_icache): New syscall.
7688
7689 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7690 trailing whitespace removed.
7691 * scripts/config.guess: Update to version 2019-01-01.
7692 * scripts/config.sub: Update to version 2019-01-01.
7693 * scripts/move-if-change: Update from gnulib.
7694
7695 * NEWS: Update copyright dates.
7696 * catgets/gencat.c (print_version): Likewise.
7697 * csu/version.c (banner): Likewise.
7698 * debug/catchsegv.sh: Likewise.
7699 * debug/pcprofiledump.c (print_version): Likewise.
7700 * debug/xtrace.sh (do_version): Likewise.
7701 * elf/ldconfig.c (print_version): Likewise.
7702 * elf/ldd.bash.in: Likewise.
7703 * elf/pldd.c (print_version): Likewise.
7704 * elf/sotruss.sh: Likewise.
7705 * elf/sprof.c (print_version): Likewise.
7706 * iconv/iconv_prog.c (print_version): Likewise.
7707 * iconv/iconvconfig.c (print_version): Likewise.
7708 * locale/programs/locale.c (print_version): Likewise.
7709 * locale/programs/localedef.c (print_version): Likewise.
7710 * login/programs/pt_chown.c (print_version): Likewise.
7711 * malloc/memusage.sh (do_version): Likewise.
7712 * malloc/memusagestat.c (print_version): Likewise.
7713 * malloc/mtrace.pl: Likewise.
7714 * manual/libc.texinfo: Likewise.
7715 * nptl/version.c (banner): Likewise.
7716 * nscd/nscd.c (print_version): Likewise.
7717 * nss/getent.c (print_version): Likewise.
7718 * nss/makedb.c (print_version): Likewise.
7719 * posix/getconf.c (main): Likewise.
7720 * scripts/test-installation.pl: Likewise.
7721 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7722
7723 * All files with FSF copyright notices: Update copyright dates
7724 using scripts/update-copyrights.
7725 * locale/programs/charmap-kw.h: Regenerated.
7726 * locale/programs/locfile-kw.h: Likewise.
7727
7728 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7729
7730 * timezone/zdump.c: Update from tzcode 2018i.
7731 * timezone/zic.c: Likewise.
7732
7733 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7734
7735 regex: improve Gnulib port to AIX
7736 From the glibc point of view, this removes duplicate macro
7737 definitions and is obviously safe.
7738 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7739 * posix/regex_internal.h:
7740 (__attribute__, __attribute_warn_unused_result__):
7741 Remove; already defined elsewhere.
7742
7743 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7744
7745 [BZ #24027]
7746 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7747 copying operation. (ncopies had the wrong type, resulting in an
7748 integer wraparound and too few elements being copied.)
7749
7750 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7751
7752 [BZ #24022]
7753 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7754 <asm/syscalls.h> exists with __has_include__ before including it.
7755
7756 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7757
7758 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7759 version to 4.20.
7760
7761 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7762
7763 * hurd/lookup-retry: Include <unistd.h>.
7764 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7765 Release it on return. Handle "pid" magical lookup retry.
7766
7767 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7768
7769 [BZ #10496]
7770 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7771 (t_fmt_ampm): Likewise.
7772 * localedata/locales/aa_ER (t_fmt): Likewise.
7773 (t_fmt_ampm): Likewise.
7774 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7775 (t_fmt_ampm): Likewise.
7776 * localedata/locales/aa_ET (t_fmt): Likewise.
7777 (t_fmt_ampm): Likewise.
7778 * localedata/locales/am_ET (t_fmt): Likewise.
7779 (t_fmt_ampm): Likewise.
7780 * localedata/locales/byn_ER (t_fmt): Likewise.
7781 (t_fmt_ampm): Likewise.
7782 * localedata/locales/om_ET (t_fmt): Likewise.
7783 (t_fmt_ampm): Likewise.
7784 * localedata/locales/sid_ET (t_fmt): Likewise.
7785 (t_fmt_ampm): Likewise.
7786 * localedata/locales/so_DJ (t_fmt): Likewise.
7787 (t_fmt_ampm): Likewise.
7788 * localedata/locales/so_ET (t_fmt): Likewise.
7789 (t_fmt_ampm): Likewise.
7790 * localedata/locales/so_SO (t_fmt): Likewise.
7791 (t_fmt_ampm): Likewise.
7792 * localedata/locales/ti_ER (t_fmt): Likewise.
7793 (t_fmt_ampm): Likewise.
7794 * localedata/locales/ti_ET (t_fmt): Likewise.
7795 (t_fmt_ampm): Likewise.
7796 * localedata/locales/tig_ER (t_fmt): Likewise.
7797 (t_fmt_ampm): Likewise.
7798 * localedata/locales/wal_ET (t_fmt): Likewise.
7799 (t_fmt_ampm): Likewise.
7800
7801 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7802 * localedata/locales/ar_IN (t_fmt): Likewise.
7803 * localedata/locales/bhb_IN (t_fmt): Likewise.
7804 * localedata/locales/bho_IN (t_fmt): Likewise.
7805 * localedata/locales/bi_VU (t_fmt): Likewise.
7806 * localedata/locales/bn_BD (t_fmt): Likewise.
7807 * localedata/locales/bn_IN (t_fmt): Likewise.
7808 * localedata/locales/brx_IN (t_fmt): Likewise.
7809 * localedata/locales/doi_IN (t_fmt): Likewise.
7810 * localedata/locales/en_HK (t_fmt): Likewise.
7811 (t_fmt_ampm): Likewise.
7812 * localedata/locales/en_IN (t_fmt): Likewise.
7813 * localedata/locales/en_PH (t_fmt): Likewise.
7814 * localedata/locales/gu_IN (t_fmt): Likewise.
7815 * localedata/locales/hi_IN (t_fmt): Likewise.
7816 * localedata/locales/hif_FJ (t_fmt): Likewise.
7817 * localedata/locales/hne_IN (t_fmt): Likewise.
7818 * localedata/locales/kn_IN (t_fmt): Likewise.
7819 * localedata/locales/kok_IN (t_fmt): Likewise.
7820 * localedata/locales/ks_IN (t_fmt): Likewise.
7821 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7822 * localedata/locales/mag_IN (t_fmt): Likewise.
7823 * localedata/locales/mai_IN (t_fmt): Likewise.
7824 * localedata/locales/mjw_IN (t_fmt): Likewise.
7825 * localedata/locales/ml_IN (t_fmt): Likewise.
7826 * localedata/locales/mni_IN (t_fmt): Likewise.
7827 * localedata/locales/mr_IN (t_fmt): Likewise.
7828 * localedata/locales/ms_MY (t_fmt): Likewise.
7829 * localedata/locales/pa_IN (t_fmt): Likewise.
7830 * localedata/locales/raj_IN (t_fmt): Likewise.
7831 * localedata/locales/sa_IN (t_fmt): Likewise.
7832 * localedata/locales/sat_IN (t_fmt): Likewise.
7833 * localedata/locales/sd_IN (t_fmt): Likewise.
7834 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7835 * localedata/locales/tcy_IN (t_fmt): Likewise.
7836 * localedata/locales/the_NP (t_fmt): Likewise.
7837 * localedata/locales/to_TO (t_fmt): Likewise.
7838 * localedata/locales/ur_IN (t_fmt): Likewise.
7839
7840 * localedata/locales/hif_FJ (d_t_fmt): Set to
7841 "%A %d %b %Y %I:%M:%S %p".
7842 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7843
7844 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7845 * localedata/locales/ar_BH (t_fmt): Likewise.
7846 * localedata/locales/ar_DZ (t_fmt): Likewise.
7847 * localedata/locales/ar_EG (t_fmt): Likewise.
7848 * localedata/locales/ar_IQ (t_fmt): Likewise.
7849 * localedata/locales/ar_JO (t_fmt): Likewise.
7850 * localedata/locales/ar_KW (t_fmt): Likewise.
7851 * localedata/locales/ar_LB (t_fmt): Likewise.
7852 * localedata/locales/ar_LY (t_fmt): Likewise.
7853 * localedata/locales/ar_OM (t_fmt): Likewise.
7854 * localedata/locales/ar_QA (t_fmt): Likewise.
7855 * localedata/locales/ar_SD (t_fmt): Likewise.
7856 * localedata/locales/ar_SS (t_fmt): Likewise.
7857 * localedata/locales/ar_SY (t_fmt): Likewise.
7858 * localedata/locales/ar_TN (t_fmt): Likewise.
7859 * localedata/locales/ar_YE (t_fmt): Likewise.
7860
7861 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7862 (t_fmt_ampm): Likewise.
7863 * localedata/locales/gez_ET (t_fmt): Likewise.
7864 (t_fmt_ampm): Likewise.
7865
7866 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7867 (t_fmt_ampm): Likewise.
7868 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7869
7870 * localedata/locales/zh_HK (t_fmt):
7871 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7872
7873 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7874 because this locale does not use the 12-hour clock.
7875 (t_fmt): Set to "%Z %H:%M:%S".
7876 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7877
7878 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7879 because this locale does not use the 12-hour clock.
7880 (t_fmt): Set to "%H:%M:%S %Z".
7881 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7882
7883 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7884 because this locale does not use the 12-hour clock.
7885 (t_fmt): Set to "%T".
7886 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7887 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7888
7889 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7890 because this locale does not use the 12-hour clock.
7891 (t_fmt): Set to "%H:%M:%S %Z".
7892 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7893
7894 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7895 because this locale does not use the 12-hour clock.
7896 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7897 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7898
7899 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7900
7901 [BZ #10496]
7902 [BZ #23724]
7903 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7904 (t_fmt_ampm): Likewise.
7905 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7906 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7907 (d_fmt): Set to "%-d.%-m.%y".
7908
7909 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7910
7911 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7912 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7913 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7914 Likewise.
7915 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7916 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7917 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7918 function.
7919 * support/blob_repeat.c (check_mul_overflow_size_t,
7920 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7921
7922 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7923
7924 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7925
7926 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7927
7928 regex: simplify Gnulib port
7929 This simplifies the code, by removing stuff intended for porting
7930 to Gnulib but no longer needed there.
7931 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7932 uses of libc_hidden_def, weak_alias.
7933 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7934 _Restrict_ except for public-facing headers.
7935 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7936 Remove; already defined elsewhere.
7937 * posix/regex.c, posix/regex_internal.h:
7938 Use __GNUC_PREREQ instead of rolling our own.
7939 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7940
7941 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7942
7943 * benchtests/bench-strlen.c (generic_strlen): New function.
7944 (memchr_strlen): New function.
7945
7946 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7947
7948 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7949 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7950 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7951
7952 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7953
7954 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7955
7956 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7957
7958 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7959 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7960 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7961 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7962 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7963 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7964 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7965
7966 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7967
7968 [BZ #24023]
7969 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7970 PLT reference in libc.so.
7971 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7972 _Q_lltoq and _Q_qtod PLT references in libc.so.
7973
7974 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7975
7976 * benchtests/bench-memchr.c: Cleanup defines.
7977 * benchtests/bench-memcmp.c: Likewise.
7978 * benchtests/bench-memset.c: Likewise.
7979 * benchtests/bench-memset-large.c: Likewise.
7980 * benchtests/bench-memset-walk.c: Likewise.
7981 * benchtests/bench-stpcpy.c: Likewise.
7982 * benchtests/bench-stpncpy.c: Likewise.
7983 * benchtests/bench-strcat.c: Likewise.
7984 * benchtests/bench-strchr.c: Likewise.
7985 * benchtests/bench-strcmp.c: Likewise.
7986 * benchtests/bench-strcpy.c: Likewise.
7987 * benchtests/bench-strcspn.c: Likewise.
7988 * benchtests/bench-string.h: Likewise.
7989 * benchtests/bench-strlen.c: Likewise.
7990 * benchtests/bench-strncat.c: Likewise.
7991 * benchtests/bench-strncmp.c: Likewise.
7992 * benchtests/bench-strncpy.c: Likewise.
7993 * benchtests/bench-strnlen.c: Likewise.
7994 * benchtests/bench-strpbrk.c: Likewise.
7995 * benchtests/bench-strrchr.c: Likewise.
7996 * benchtests/bench-strspn.c: Likewise.
7997
7998 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7999
8000 * stdlib/longlong.h: Update from GCC.
8001
8002 [BZ #23993]
8003 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8004 * configure: Regenerated.
8005 * manual/install.texi (Tools for Compilation): Update minimum GCC
8006 version.
8007 * INSTALL: Regenerated.
8008
8009 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8010
8011 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8012
8013 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8014
8015 * malloc/malloc.c (mremap_chunk): Additional checks.
8016
8017 2018-12-21 Mao Han <han_mao@c-sky.com>
8018
8019 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8020 * scripts/build-many-glibcs.py: Add C-SKY targets.
8021 * sysdeps/csky/Implies: New file.
8022 * sysdeps/csky/Makefile: Likewise.
8023 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8024 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8025 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8026 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8027 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8028 * sysdeps/csky/abiv2/memmove.S: Likewise.
8029 * sysdeps/csky/abiv2/memset.S: Likewise.
8030 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8031 * sysdeps/csky/abiv2/start.S: Likewise.
8032 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8033 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8034 * sysdeps/csky/abiv2/strlen.S: Likewise.
8035 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8036 * sysdeps/csky/abort-instr.h: Likewise.
8037 * sysdeps/csky/atomic-machine.h: Likewise.
8038 * sysdeps/csky/bits/endian.h: Likewise.
8039 * sysdeps/csky/bits/fenv.h: Likewise.
8040 * sysdeps/csky/bits/link.h: Likewise.
8041 * sysdeps/csky/bits/setjmp.h: Likewise.
8042 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8043 * sysdeps/csky/bsd-setjmp.S: Likewise.
8044 * sysdeps/csky/configure: Likewise.
8045 * sysdeps/csky/configure.ac: Likewise.
8046 * sysdeps/csky/dl-machine.h: Likewise.
8047 * sysdeps/csky/dl-procinfo.c: Likewise.
8048 * sysdeps/csky/dl-procinfo.h: Likewise.
8049 * sysdeps/csky/dl-sysdep.h: Likewise.
8050 * sysdeps/csky/dl-tls.h: Likewise.
8051 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8052 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8053 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8054 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8055 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8056 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8057 * sysdeps/csky/fpu/fegetround.c: Likewise.
8058 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8059 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8060 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8061 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8062 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8063 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8064 * sysdeps/csky/fpu/fesetround.c: Likewise.
8065 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8066 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8067 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8068 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8069 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8070 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8071 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8072 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8073 * sysdeps/csky/fpu_control.h: Likewise.
8074 * sysdeps/csky/gccframe.h: Likewise.
8075 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8076 * sysdeps/csky/ldsodefs.h: Likewise.
8077 * sysdeps/csky/libc-tls.c: Likewise.
8078 * sysdeps/csky/linkmap.h: Likewise.
8079 * sysdeps/csky/machine-gmon.h: Likewise.
8080 * sysdeps/csky/memusage.h: Likewise.
8081 * sysdeps/csky/nofpu/Implies: Likewise.
8082 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8083 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8084 * sysdeps/csky/nptl/Makefile: Likewise.
8085 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8086 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8087 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8088 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8089 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8090 * sysdeps/csky/nptl/tls.h: Likewise.
8091 * sysdeps/csky/preconfigure: Likewise.
8092 * sysdeps/csky/sfp-machine.h: Likewise.
8093 * sysdeps/csky/sotruss-lib.c: Likewise.
8094 * sysdeps/csky/stackinfo.h: Likewise.
8095 * sysdeps/csky/sysdep.h: Likewise.
8096 * sysdeps/csky/tininess.h: Likewise.
8097 * sysdeps/csky/tst-audit.h: Likewise.
8098 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8099 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8100 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8101 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8102 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8103 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8104 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8105 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8106 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8107 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8108 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8109 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8110 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8111 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8112 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8113 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8114 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8115 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8116 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8117 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8118 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8119 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8120 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8121 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8122 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8123 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8124 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8125 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8126 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8127 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8128 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8129 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8130 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8131 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8132 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8133 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8134 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8135 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8136 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8137 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8138 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8139 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8140 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8141 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8142
8143 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8144
8145 * include/time.h (__difftime64): Add.
8146 * time/difftime.c (subtract): convert to 64-bit time.
8147 * time/difftime.c (__difftime64): Add.
8148 * time/difftime.c (__difftime): Wrap around __difftime64.
8149
8150 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8151
8152 * manual/examples/add.c: Remove redundant "if not".
8153 * manual/examples/argp-ex1.c: Likewise.
8154 * manual/examples/argp-ex2.c: Likewise.
8155 * manual/examples/argp-ex3.c: Likewise.
8156 * manual/examples/argp-ex4.c: Likewise.
8157 * manual/examples/atexit.c: Likewise.
8158 * manual/examples/db.c: Likewise.
8159 * manual/examples/dir.c: Likewise.
8160 * manual/examples/dir2.c: Likewise.
8161 * manual/examples/execinfo.c: Likewise.
8162 * manual/examples/filecli.c: Likewise.
8163 * manual/examples/filesrv.c: Likewise.
8164 * manual/examples/fmtmsgexpl.c: Likewise.
8165 * manual/examples/genpass.c: Likewise.
8166 * manual/examples/inetcli.c: Likewise.
8167 * manual/examples/inetsrv.c: Likewise.
8168 * manual/examples/isockad.c: Likewise.
8169 * manual/examples/longopt.c: Likewise.
8170 * manual/examples/memopen.c: Likewise.
8171 * manual/examples/memstrm.c: Likewise.
8172 * manual/examples/mkdirent.c: Likewise.
8173 * manual/examples/mkfsock.c: Likewise.
8174 * manual/examples/mkisock.c: Likewise.
8175 * manual/examples/mygetpass.c: Likewise.
8176 * manual/examples/pipe.c: Likewise.
8177 * manual/examples/popen.c: Likewise.
8178 * manual/examples/rprintf.c: Likewise.
8179 * manual/examples/search.c: Likewise.
8180 * manual/examples/select.c: Likewise.
8181 * manual/examples/setjmp.c: Likewise.
8182 * manual/examples/sigh1.c: Likewise.
8183 * manual/examples/sigusr.c: Likewise.
8184 * manual/examples/stpcpy.c: Likewise.
8185 * manual/examples/strdupa.c: Likewise.
8186 * manual/examples/strftim.c: Likewise.
8187 * manual/examples/subopt.c: Likewise.
8188 * manual/examples/swapcontext.c: Likewise.
8189 * manual/examples/termios.c: Likewise.
8190 * manual/examples/testopt.c: Likewise.
8191 * manual/examples/testpass.c: Likewise.
8192 * manual/examples/timeval_subtract.c: Likewise.
8193
8194 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8195
8196 * sysdeps/x86/fpu/math_private.h: New file.
8197 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8198
8199 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8200 definition.
8201 (cosh): Likewise.
8202 (tanh): Likewise.
8203
8204 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8205
8206 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8207 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8208 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8209 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8210 fields.
8211 (_dl_show_auxv): Give a special treatment to
8212 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8213 and AT_L3_CACHEGEOMETRY.
8214 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8215 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8216 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8217 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8218
8219 2018-12-19 Andreas Schwab <schwab@suse.de>
8220
8221 * nscd/connections.c (check_use): Don't abort on invalid len.
8222
8223 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8224
8225 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8226 values in the 64bit value cases.
8227
8228 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8229
8230 * include/time.h
8231 (__ctime64_r): Add.
8232 * time/ctime_r.c
8233 (__ctime64_r): Add.
8234 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8235
8236 * include/time.h
8237 (__ctime64): Add.
8238 * time/gmtime.c
8239 (__ctime64): Add.
8240 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8241
8242 * include/time.h
8243 (__gmtime64_r): Add.
8244 * time/gmtime.c
8245 (__gmtime64_r): Add.
8246 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8247
8248 * include/time.h
8249 (__gmtime64): Add.
8250 * time/gmtime.c
8251 (__gmtime64): Add.
8252 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8253
8254 * include/time.h
8255 (__localtime64_r): Add.
8256 * time/localtime.c
8257 (__localtime64_r): Add.
8258 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8259
8260 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8261
8262 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8263 kernel_sigction definition.
8264
8265 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8266
8267 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8268
8269 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8270 __syscall_rt_sigaction.
8271 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8272 (kernel_sigaction): Use Linux generic defintion.
8273 (STUB): Define.
8274 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8275 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8276 (__syscall_rt_sigaction): Remove implementation.
8277 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8278 hidden.
8279 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8280 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8281 INTERNAL_SYSCALL): Remove definitions.
8282 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8283 action and signal set size.
8284 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8285 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8286
8287 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8288 James Clarke <jrtc27@jrtc27.com>
8289
8290 [BZ #23967]
8291 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8292 Define if SA_RESTORER is defined.
8293 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8294 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8295 already defined.
8296 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8297 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8298 definitions.
8299 (HAS_SA_RESTORER): Define.
8300 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8301 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8302 (HAS_SA_RESTORER): Define.
8303 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8304 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8305 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8306 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8307 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8308
8309 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8310
8311 * sysdeps/unix/sysv/linux/kernel-features.h
8312 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8313 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8314 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8315 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8316 (__ASSUME_ST_INO_64_BIT): Likewise.
8317 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8318 <kernel-features.h>.
8319 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8320 Remove conditional code.
8321 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8322 <kernel-features.h>.
8323 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8324 Remove conditional code.
8325 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8326 <kernel-features.h>.
8327 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8328 Remove conditional code.
8329 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8330 <kernel-features.h>.
8331 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8332 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8333
8334 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8335
8336 * sysdeps/s390/multiarch/ifunc-resolve.h
8337 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8338 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8339 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8340 Delete macro definition.
8341 (s390_libc_ifunc_init): Rename to
8342 s390_libc_ifunc_expr_stfle_init.
8343 * sysdeps/s390/bzero: Use
8344 s390_libc_ifunc_expr_stfle_init instead of
8345 s390_libc_ifunc_init.
8346 * sysdeps/s390/memcmp.c: Likewise.
8347 * sysdeps/s390/memcpy.c: Likewise.
8348 * sysdeps/s390/mempcpy.c: Likewise.
8349 * sysdeps/s390/memset.c: Likewise.
8350
8351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8352
8353 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8354 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8355
8356 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8357
8358 * sysdeps/s390/multiarch/Makefile
8359 (sysdep_routines): Remove wmemcmp variants.
8360 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8361 * sysdeps/s390/multiarch/ifunc-impl-list.c
8362 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8363 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8364 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8365 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8366 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8367 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8368 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8369 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8370
8371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8372
8373 * sysdeps/s390/multiarch/Makefile
8374 (sysdep_routines): Remove wmemset variants.
8375 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8376 * sysdeps/s390/multiarch/ifunc-impl-list.c
8377 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8378 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8379 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8380 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8381 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8382 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8383 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8384 * sysdeps/s390/ifunc-wmemset.h: New file.
8385
8386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8387
8388 * sysdeps/s390/multiarch/Makefile
8389 (sysdep_routines): Remove wmemchr variants.
8390 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8391 * sysdeps/s390/multiarch/ifunc-impl-list.c
8392 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8393 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8394 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8395 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8396 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8397 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8398 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8399 * sysdeps/s390/ifunc-wmemchr.h: New file.
8400
8401 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8402
8403 * sysdeps/s390/multiarch/Makefile
8404 (sysdep_routines): Remove wcscspn variants.
8405 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8406 * sysdeps/s390/multiarch/ifunc-impl-list.c
8407 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8408 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8409 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8410 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8411 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8412 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8413 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8414 * sysdeps/s390/ifunc-wcscspn.h: New file.
8415
8416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8417
8418 * sysdeps/s390/multiarch/Makefile
8419 (sysdep_routines): Remove wcspbrk variants.
8420 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8421 * sysdeps/s390/multiarch/ifunc-impl-list.c
8422 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8423 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8424 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8425 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8426 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8427 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8428 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8429 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8430
8431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8432
8433 * sysdeps/s390/multiarch/Makefile
8434 (sysdep_routines): Remove wcsspn variants.
8435 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8436 * sysdeps/s390/multiarch/ifunc-impl-list.c
8437 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8438 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8439 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8440 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8441 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8442 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8443 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8444 * sysdeps/s390/ifunc-wcsspn.h: New file.
8445
8446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8447
8448 * sysdeps/s390/multiarch/Makefile
8449 (sysdep_routines): Remove wcsrchr variants.
8450 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8451 * sysdeps/s390/multiarch/ifunc-impl-list.c
8452 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8453 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8454 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8455 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8456 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8457 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8458 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8459 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8460
8461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8462
8463 * sysdeps/s390/multiarch/Makefile
8464 (sysdep_routines): Remove wcschrnul variants.
8465 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8466 * sysdeps/s390/multiarch/ifunc-impl-list.c
8467 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8468 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8469 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8470 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8471 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8472 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8473 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8474 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8475
8476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8477
8478 * sysdeps/s390/multiarch/Makefile
8479 (sysdep_routines): Remove wcschr variants.
8480 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8481 * sysdeps/s390/multiarch/ifunc-impl-list.c
8482 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8483 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8484 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8485 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8486 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8487 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8488 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8489 * sysdeps/s390/ifunc-wcschr.h: New file.
8490
8491 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8492
8493 * sysdeps/s390/multiarch/Makefile
8494 (sysdep_routines): Remove wcsncmp variants.
8495 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8496 * sysdeps/s390/multiarch/ifunc-impl-list.c
8497 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8498 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8499 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8500 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8501 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8502 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8503 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8504 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8505
8506 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8507
8508 * sysdeps/s390/multiarch/Makefile
8509 (sysdep_routines): Remove wcscmp variants.
8510 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8511 * sysdeps/s390/multiarch/ifunc-impl-list.c
8512 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8513 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8514 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8515 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8516 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8517 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8518 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8519 * sysdeps/s390/ifunc-wcscmp.h: New file.
8520
8521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8522
8523 * sysdeps/s390/multiarch/Makefile
8524 (sysdep_routines): Remove wcsncat variants.
8525 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8526 * sysdeps/s390/multiarch/ifunc-impl-list.c
8527 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8528 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8529 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8530 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8531 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8532 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8533 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8534 * sysdeps/s390/ifunc-wcsncat.h: New file.
8535
8536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8537
8538 * sysdeps/s390/multiarch/Makefile
8539 (sysdep_routines): Remove wcscat variants.
8540 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8541 * sysdeps/s390/multiarch/ifunc-impl-list.c
8542 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8543 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8544 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8545 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8546 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8547 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8548 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8549 * sysdeps/s390/ifunc-wcscat.h: New file.
8550
8551 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8552
8553 * sysdeps/s390/multiarch/Makefile
8554 (sysdep_routines): Remove wcpncpy variants.
8555 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8556 * sysdeps/s390/multiarch/ifunc-impl-list.c
8557 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8558 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8559 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8560 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8561 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8562 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8563 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8564 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8565
8566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8567
8568 * sysdeps/s390/multiarch/Makefile
8569 (sysdep_routines): Remove wcsncpy variants.
8570 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8571 * sysdeps/s390/multiarch/ifunc-impl-list.c
8572 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8573 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8574 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8575 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8576 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8577 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8578 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8579 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8580
8581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8582
8583 * sysdeps/s390/multiarch/Makefile
8584 (sysdep_routines): Remove wcpcpy variants.
8585 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8586 * sysdeps/s390/multiarch/ifunc-impl-list.c
8587 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8588 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8589 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8590 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8591 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8592 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8593 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8594 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8595
8596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8597
8598 * sysdeps/s390/multiarch/Makefile
8599 (sysdep_routines): Remove wcscpy variants.
8600 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8601 * sysdeps/s390/multiarch/ifunc-impl-list.c
8602 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8603 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8604 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8605 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8606 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8607 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8608 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8609 * sysdeps/s390/ifunc-wcscpy.h: New file.
8610
8611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8612
8613 * sysdeps/s390/multiarch/Makefile
8614 (sysdep_routines): Remove wcsnlen variants.
8615 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8616 * sysdeps/s390/multiarch/ifunc-impl-list.c
8617 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8618 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8619 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8620 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8621 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8622 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8623 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8624 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8625
8626 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8627
8628 * sysdeps/s390/multiarch/Makefile
8629 (sysdep_routines): Remove wcslen variants.
8630 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8631 * sysdeps/s390/multiarch/ifunc-impl-list.c
8632 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8633 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8634 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8635 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8636 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8637 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8638 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8639 * sysdeps/s390/ifunc-wcslen.h: New file.
8640
8641 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8642
8643 * sysdeps/s390/multiarch/Makefile
8644 (sysdep_routines): Remove memrchr variants.
8645 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8646 * sysdeps/s390/multiarch/ifunc-impl-list.c
8647 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8648 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8649 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8650 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8651 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8652 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8653 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8654 * sysdeps/s390/ifunc-memrchr.h: New file.
8655
8656 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8657
8658 * sysdeps/s390/multiarch/Makefile
8659 (sysdep_routines): Remove memccpy variants.
8660 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8661 * sysdeps/s390/multiarch/ifunc-impl-list.c
8662 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8663 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8664 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8665 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8666 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8667 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8668 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8669 * sysdeps/s390/ifunc-memccpy.h: New file.
8670
8671 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8672
8673 * sysdeps/s390/multiarch/Makefile
8674 (sysdep_routines): Remove rawmemchr variants.
8675 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8676 * sysdeps/s390/multiarch/ifunc-impl-list.c
8677 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8678 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8679 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8680 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8681 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8682 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8683 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8684 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8685
8686 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8687
8688 * sysdeps/s390/multiarch/Makefile
8689 (sysdep_routines): Remove memchr variants.
8690 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8691 * sysdeps/s390/multiarch/ifunc-impl-list.c
8692 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8693 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8694 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8695 * sysdeps/s390/multiarch/memchr.c: Move to ...
8696 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8697 * sysdeps/s390/ifunc-memchr.h: New file.
8698 * sysdeps/s390/s390-64/memchr.S: Move to ...
8699 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8700 for 31/64bit and ifunc handling.
8701 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8702 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8703 * sysdeps/s390/s390-32/memchr.S: Likewise.
8704
8705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8706
8707 * sysdeps/s390/multiarch/Makefile
8708 (sysdep_routines): Remove strcspn variants.
8709 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8710 * sysdeps/s390/multiarch/ifunc-impl-list.c
8711 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8712 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8713 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8714 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8715 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8716 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8717 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8718 * sysdeps/s390/ifunc-strcspn.h: New file.
8719
8720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8721
8722 * sysdeps/s390/multiarch/Makefile
8723 (sysdep_routines): Remove strpbrk variants.
8724 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8725 * sysdeps/s390/multiarch/ifunc-impl-list.c
8726 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8727 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8728 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8729 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8730 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8731 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8732 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8733 * sysdeps/s390/ifunc-strpbrk.h: New file.
8734
8735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8736
8737 * sysdeps/s390/multiarch/Makefile
8738 (sysdep_routines): Remove strspn variants.
8739 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8740 * sysdeps/s390/multiarch/ifunc-impl-list.c
8741 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8742 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8743 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8744 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8745 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8746 * sysdeps/s390/multiarch/strspn.c: Move to ...
8747 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8748 * sysdeps/s390/ifunc-strspn.h: New file.
8749
8750 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8751
8752 * sysdeps/s390/multiarch/Makefile
8753 (sysdep_routines): Remove strrchr variants.
8754 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8755 * sysdeps/s390/multiarch/ifunc-impl-list.c
8756 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8757 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8758 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8759 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8760 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8761 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8762 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8763 * sysdeps/s390/ifunc-strrchr.h: New file.
8764
8765 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8766
8767 * sysdeps/s390/multiarch/Makefile
8768 (sysdep_routines): Remove strchrnul variants.
8769 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8770 * sysdeps/s390/multiarch/ifunc-impl-list.c
8771 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8772 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8773 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8774 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8775 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8776 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8777 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8778 * sysdeps/s390/ifunc-strchrnul.h: New file.
8779
8780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8781
8782 * sysdeps/s390/multiarch/Makefile
8783 (sysdep_routines): Remove strchr variants.
8784 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8785 * sysdeps/s390/multiarch/ifunc-impl-list.c
8786 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8787 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8788 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8789 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8790 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8791 * sysdeps/s390/multiarch/strchr.c: Move to ...
8792 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8793 * sysdeps/s390/ifunc-strchr.h: New file.
8794
8795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8796
8797 * sysdeps/s390/multiarch/Makefile
8798 (sysdep_routines): Remove strncmp variants.
8799 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8800 * sysdeps/s390/multiarch/ifunc-impl-list.c
8801 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8802 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8803 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8804 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8805 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8806 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8807 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8808 * sysdeps/s390/ifunc-strncmp.h: New file.
8809
8810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8811
8812 * sysdeps/s390/multiarch/Makefile
8813 (sysdep_routines): Remove strcmp variants.
8814 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8815 * sysdeps/s390/multiarch/ifunc-impl-list.c
8816 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8817 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8818 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8819 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8820 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8821 * sysdeps/s390/ifunc-strcmp.h: New file.
8822 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8823 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8824 for 31/64bit and ifunc handling.
8825 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8826 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8827 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8828
8829 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8830
8831 * sysdeps/s390/multiarch/Makefile
8832 (sysdep_routines): Remove strncat variants.
8833 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8834 * sysdeps/s390/multiarch/ifunc-impl-list.c
8835 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8836 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8837 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8838 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8839 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8840 * sysdeps/s390/multiarch/strncat.c: Move to ...
8841 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8842 * sysdeps/s390/ifunc-strncat.h: New file.
8843
8844 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8845
8846 * sysdeps/s390/multiarch/Makefile
8847 (sysdep_routines): Remove strcat variants.
8848 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8849 * sysdeps/s390/multiarch/ifunc-impl-list.c
8850 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8851 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8852 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8853 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8854 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8855 * sysdeps/s390/multiarch/strcat.c: Move to ...
8856 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8857 * sysdeps/s390/ifunc-strcat.h: New file.
8858
8859 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8860
8861 * sysdeps/s390/multiarch/Makefile
8862 (sysdep_routines): Remove stpncpy variants.
8863 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8864 * sysdeps/s390/multiarch/ifunc-impl-list.c
8865 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8866 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8867 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8868 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8869 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8870 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8871 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8872 * sysdeps/s390/ifunc-stpncpy.h: New file.
8873
8874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8875
8876 * sysdeps/s390/multiarch/Makefile
8877 (sysdep_routines): Remove strncpy variants.
8878 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8879 * sysdeps/s390/multiarch/ifunc-impl-list.c
8880 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8881 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8882 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8883 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8884 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8885 * sysdeps/s390/ifunc-strncpy.h: New file.
8886 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8887 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8888 and adjust ifunc handling.
8889 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8890 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8891 and adjust ifunc handling.
8892 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8893 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8894
8895 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8896
8897 * sysdeps/s390/multiarch/Makefile
8898 (sysdep_routines): Remove stpcpy variants.
8899 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8900 * sysdeps/s390/multiarch/ifunc-impl-list.c
8901 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8902 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8903 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8904 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8905 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8906 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8907 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8908 * sysdeps/s390/ifunc-stpcpy.h: New file.
8909
8910 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8911
8912 * sysdeps/s390/multiarch/Makefile
8913 (sysdep_routines): Remove strcpy variants.
8914 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8915 * sysdeps/s390/multiarch/ifunc-impl-list.c
8916 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8917 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8918 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8919 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8920 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8921 * sysdeps/s390/ifunc-strcpy.h: New file.
8922 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8923 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8924 for 31/64bit and ifunc handling.
8925 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8926 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8927 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8928
8929 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8930
8931 * sysdeps/s390/multiarch/Makefile
8932 (sysdep_routines): Remove strnlen variants.
8933 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8934 * sysdeps/s390/multiarch/ifunc-impl-list.c
8935 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8936 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8937 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8938 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8939 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8940 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8941 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8942 * sysdeps/s390/ifunc-strnlen.h: New file.
8943
8944 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8945
8946 * sysdeps/s390/multiarch/Makefile
8947 (sysdep_routines): Remove strlen variants.
8948 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8949 * sysdeps/s390/multiarch/ifunc-impl-list.c
8950 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8951 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8952 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8953 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8954 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8955 * sysdeps/s390/multiarch/strlen.c: Move to ...
8956 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8957 * sysdeps/s390/ifunc-strlen.h: New file.
8958
8959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8960
8961 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8962 * sysdeps/s390/multiarch/ifunc-impl-list.c
8963 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8964 * sysdeps/s390/ifunc-memmem.h: New file.
8965 * sysdeps/s390/memmem.c: Likewise.
8966 * sysdeps/s390/memmem-c.c: Likewise.
8967 * sysdeps/s390/memmem-vx.c: Likewise.
8968
8969 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8970
8971 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8972 * sysdeps/s390/multiarch/ifunc-impl-list.c
8973 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8974 * sysdeps/s390/ifunc-strstr.h: New file.
8975 * sysdeps/s390/strstr.c: Likewise.
8976 * sysdeps/s390/strstr-c.c: Likewise.
8977 * sysdeps/s390/strstr-vx.c: Likewise.
8978
8979 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8980
8981 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8982 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8983 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8984 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8985 New defines.
8986 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8987 * sysdeps/s390/memmove-c.c: New file.
8988 * sysdeps/s390/memmove.c: Likewise.
8989 * sysdeps/s390/multiarch/ifunc-impl-list.c
8990 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8991
8992 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8993
8994 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8995 * sysdeps/s390/configure.ac: Add check for z13 support.
8996 * sysdeps/s390/configure: Regenerated.
8997
8998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8999
9000 * sysdeps/s390/memcopy.h: New file.
9001
9002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9003
9004 * sysdeps/s390/s390-32/bcopy.S: Remove.
9005 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9006
9007 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9008
9009 * sysdeps/s390/ifunc-memcpy.h: New File.
9010 * sysdeps/s390/memcpy.S: Move to ...
9011 * sysdeps/s390/memcpy-z900.S ... here.
9012 Move implementations from memcpy-s390x.s to here.
9013 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9014 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9015 Remove memcpy/mempcpy variants.
9016 * sysdeps/s390/Makefile (sysdep_routines):
9017 Add memcpy/mempcpy variants.
9018 * sysdeps/s390/multiarch/ifunc-impl-list.c
9019 (__libc_ifunc_impl_list): Adjust ifunc variants for
9020 memcpy and mempcpy.
9021 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9022 to ...
9023 * sysdeps/s390/memcpy.c: ... here.
9024 Adjust ifunc variants for memcpy.
9025 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9026 * sysdeps/s390/mempcpy.c: ... here.
9027 Adjust ifunc variants for mempcpy.
9028 * sysdeps/s390/mempcpy.S: Delete file.
9029
9030 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9031
9032 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9033 * sysdeps/s390/memcpy.S: ... here.
9034 Adjust to be usable for 31/64bit.
9035 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9036 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9037 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9038 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9039 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9040 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9041 Adjust to be usable for 31/64bit.
9042 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9043 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9044 * sysdeps/s390/multiarch/memcpy.c: ... here.
9045 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9046
9047 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9048
9049 * sysdeps/s390/ifunc-memcmp.h: New File.
9050 * sysdeps/s390/memcmp.S: Move to ...
9051 * sysdeps/s390/memcmp-z900.S ... here.
9052 Move implementations from memcmp-s390x.s to here.
9053 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9054 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9055 Remove memcmp variants.
9056 * sysdeps/s390/Makefile (sysdep_routines):
9057 Add memcmp variants.
9058 * sysdeps/s390/multiarch/ifunc-impl-list.c
9059 (__libc_ifunc_impl_list): Adjust ifunc variants for
9060 memcmp.
9061 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9062 to ...
9063 * sysdeps/s390/memcmp.c: ... here.
9064 Adjust ifunc variants for memcmp.
9065
9066 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9067
9068 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9069 * sysdeps/s390/memcmp.S: ... here.
9070 Adjust to be usable for 31/64bit.
9071 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9072 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9073 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9074 Remove memcmp.
9075 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9076 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9077 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9078 Adjust to be usable for 31/64bit.
9079 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9080 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9081 * sysdeps/s390/multiarch/memcmp.c: ... here.
9082 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9083
9084 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9085
9086 * sysdeps/s390/s390-32/bzero.S: Delete file.
9087 * sysdeps/s390/s390-64/bzero.S: Likewise.
9088 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9089 * sysdeps/s390/bzero.c: New file.
9090 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9091 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9092 * sysdeps/s390/multiarch/ifunc-impl-list.c
9093 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9094
9095 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9096
9097 * sysdeps/s390/ifunc-memset.h: New File.
9098 * sysdeps/s390/memset.S: Move to ...
9099 * sysdeps/s390/memset-z900.S ... here.
9100 Move implementations from memset-s390x.s to here.
9101 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9102 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9103 Remove memset variants.
9104 * sysdeps/s390/Makefile (sysdep_routines):
9105 Add memset variants.
9106 * sysdeps/s390/multiarch/ifunc-impl-list.c
9107 (__libc_ifunc_impl_list): Adjust ifunc variants for
9108 memset.
9109 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9110 to ...
9111 * sysdeps/s390/memset.c: ... here.
9112 Adjust ifunc variants for memset.
9113
9114 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9115
9116 * sysdeps/s390/s390-64/memset.S: Move to ...
9117 * sysdeps/s390/memset.S: ... here.
9118 Adjust to be usable for 31/64bit.
9119 * sysdeps/s390/s390-32/memset.S: Delete File.
9120 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9121 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9122 Remove memset.
9123 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9124 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9125 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9126 Adjust to be usable for 31/64bit.
9127 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9128 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9129 * sysdeps/s390/multiarch/memset.c: ... here.
9130 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9131
9132 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9133
9134 * sysdeps/s390/multiarch/ifunc-resolve.h
9135 (s390_libc_ifunc_init, s390_libc_ifunc,
9136 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9137
9138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9139
9140 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9141 * sysdeps/s390/configure.ac: Add check for z10 support.
9142 * sysdeps/s390/configure: Regenerated.
9143
9144 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9145
9146 * sysdeps/i386/atomic-machine.h: Merged with ...
9147 * sysdeps/x86_64/atomic-machine.h: To ...
9148 * sysdeps/x86/atomic-machine.h: This. New file.
9149
9150 2018-12-18 Florian Weimer <fweimer@redhat.com>
9151
9152 Rewrite locale/gen-translit.pl in Python.
9153 * locale/Makefile (generated): Add C-translit.h.
9154 (before-compile): Add $(objpfx)C-translit.h.
9155 (C-translit.h): Move to $(objpfx). Create target directory.
9156 Build using Python script.
9157 * locale/gen-translit.py: New file.
9158 * locale/gen-translit.pl: Remove file.
9159 * locale/C-translit.h.in: Change comment character to '#' for
9160 easier parsing without a C preprocessor.
9161 * locale/C-translit.h: Remove generated file.
9162 * manual/install.texi (Tools for Compilation): Do not mention
9163 C-translit.h.
9164 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9165 Remove locale/C-translit.h.
9166 * scripts/update-copyrights: Likewise.
9167 * INSTALL: Regenerate.
9168
9169 2018-12-18 Florian Weimer <fweimer@redhat.com>
9170
9171 [BZ #23995]
9172 * localedata/locales/bi_VU: Remove executable bit from file.
9173
9174 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9175
9176 * include/time.h
9177 (__localtime64): Add.
9178 * manual/maint.texi: Document Y2038 symbol handling.
9179 * time/localtime.c
9180 (__localtime64): Add.
9181 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9182
9183 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9184
9185 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9186 Do not clobber r12.
9187
9188 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9189 to allow extra macros from first or second sources.
9190 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9191 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9192 (tests-special): Add $(objpfx)tst-mman-consts.out.
9193 ($(objpfx)tst-mman-consts.out): New makefile target.
9194
9195 2018-12-17 Mao Han <han_mao@c-sky.com>
9196
9197 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9198 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9199 without stat64 system call support.
9200 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9201 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9202 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9203 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9204 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9205 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9206 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9207 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9208 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9209 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9210 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9211
9212 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9213
9214 regex: fix storage-exhaustion error
9215 [BZ #18040]
9216 * posix/regexec.c (get_subexp):
9217 Do not continue if storage is exhausted.
9218
9219 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9220
9221 regex: fix heap-use-after-free error
9222 [BZ #18040]
9223 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9224 https://debbugs.gnu.org/32592
9225 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9226 call extend_buffers which reallocates the re_string_t internal buffer.
9227 Local variable 'buf' was not updated in such case, resulting in
9228 use-after-free.
9229 * posix/regexec.c (get_subexp): Update 'buf' after call to
9230 get_subexp_sub.
9231
9232 2018-12-15 Florian Weimer <fweimer@redhat.com>
9233
9234 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9235 (minimum_stride_size): Use it.
9236 (support_blob_repeat_allocate): Likewise.
9237
9238 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9239
9240 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9241 definition.
9242 (acosh): Likewise.
9243 (atanh): Likewise.
9244
9245 2018-12-14 Florian Weimer <fweimer@redhat.com>
9246
9247 * manual/process.texi (Process Creation Concepts): Remove
9248 documentation of process (ID) lifetime. List more process
9249 creation functions. Reference Process Identification section.
9250 (Process Identification): Add information about process ID
9251 lifetime. Describe Linux thread/task IDs.
9252 * manual/signal.texi (Signaling Another Process): Mention that the
9253 signal is always sent to the process.
9254
9255 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9256
9257 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9258 and tst-ldbl-efgcvt.
9259 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9260 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9261 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9262 (fcvt_tests, output_error, output_r_error, do_test): Use the
9263 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9264 select the type of floating-point variables and arguments; to
9265 produce extra tests for double and conversion specifiers for
9266 printf; and to set the names of called functions.
9267 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9268 in tst-efgcvt-template.c.
9269 * misc/tst-ldbl-efgcvt.c: Likewise.
9270
9271 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9272
9273 * nss/Makefile (tst-nss-test3.out): New rule.
9274
9275 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9276
9277 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9278 clobber sp.
9279
9280 2018-12-13 fanjinke <fanjinke@hygon.cn>
9281
9282 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9283 "HygonGenuine".
9284
9285 2018-12-13 Andreas Schwab <schwab@suse.de>
9286
9287 [BZ #23861]
9288 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9289 (__pthread_rwlock_rdlock_full): Update expected value for
9290 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9291 * nptl/tst-rwlock-pwn.c: New file.
9292 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9293
9294 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9295
9296 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9297 definition.
9298
9299 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9300
9301 * benchtests/scripts/compare_bench.py (do_compare): write to
9302 stderr in casestat is not present.
9303 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9304 stderr in case timings field is not present. Also string showing
9305 the output filename goes into the stderr.
9306
9307 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9308
9309 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9310 and ZeroDivisorError exceptions.
9311 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9312 argument to loop through user provided statistics.
9313 * benchtests/scripts/compare_bench.py (main): Include the --stats
9314 argument.
9315
9316 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9317
9318 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9319 instead of return.
9320
9321 2018-12-12 Florian Weimer <fweimer@redhat.com>
9322
9323 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9324 clause to copyright header.
9325
9326 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9327
9328 [BZ #23614]
9329 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9330 registers saved in the stack frame.
9331 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9332 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9333
9334 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9335
9336 * include/bits/monetary-ldbl.h: New file.
9337 * include/bits/printf-ldbl.h: Likewise.
9338 * include/bits/stdio-ldbl.h: Likewise.
9339 * include/bits/stdlib-ldbl.h: Likewise.
9340 * include/bits/syslog-ldbl.h: Likewise.
9341 * include/bits/wchar-ldbl.h: Likewise.
9342
9343 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9344
9345 * libio/libio.h: Remove redirection for _IO_vfprintf.
9346
9347 2018-12-11 Andreas Schwab <schwab@suse.de>
9348
9349 * Makerules: Remove all references to abilist-pattern.
9350 (update-all-abi): Simplify find expression.
9351
9352 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9353
9354 [BZ #23961]
9355 * math/auto-libm-test-in: Add new test case.
9356 * math/auto-libm-test-out-pow: Regenerated.
9357 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9358
9359 2018-12-10 DJ Delorie <dj@redhat.com>
9360
9361 [BZ #23948]
9362 * support/test-container.c: Move postclean step to before we
9363 change namespaces.
9364
9365 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9366
9367 * scripts/gen-as-const.py (main): Handle --python option.
9368 * scripts/gen-py-const.awk: Remove.
9369 * Makerules (py-const-script): Use gen-as-const.py.
9370 ($(py-const)): Likewise.
9371 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9372 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9373 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9374 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9375 ~PTHREAD_MUTEX_NO_ELISION_NP.
9376 * manual/README.pretty-printers: Update reference to
9377 gen-py-const.awk.
9378
9379 * scripts/glibcextract.py: New file.
9380 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9381 or tempfile. Import glibcexctract.
9382 (compute_c_consts): Remove. Moved to glibcextract.py.
9383 (gen_test): Update reference to compute_c_consts.
9384 (main): Likewise.
9385 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9386 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9387 * sysdeps/unix/sysv/linux/Makefile
9388 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9389 Redirect stderr as well as stdout.
9390
9391 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9392
9393 [BZ #19767]
9394 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9395 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9396 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9397 ALWAYS_USE_VSYSCALL.
9398 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9399 ALWAYS_USE_VSYSCALL.
9400 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9401 ALWAYS_USE_VSYSCALL.
9402
9403 2018-12-10 Florian Weimer <fweimer@redhat.com>
9404
9405 [BZ #23972]
9406 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9407 offset instead of count for clarity. Fix typo in comment.
9408 (__old_getdents64): Keep track of previous offset. Use it to call
9409 handle_overflow.
9410 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9411 that d_off is never zero.
9412
9413 2018-12-10 Andreas Schwab <schwab@suse.de>
9414
9415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9416 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9418 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9419 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9420
9421 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9422
9423 * timezone/private.h: Update from tzcode 2018g.
9424 * timezone/tzfile.h: Likewise.
9425 * timezone/tzselect.ksh: Likewise.
9426 * timezone/zdump.c: Likewise.
9427 * timezone/zic.c: Likewise.
9428
9429 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9430
9431 [BZ #23490]
9432 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9433 (do_test): Adjust buffer size and fix format.
9434
9435 2018-12-07 DJ Delorie <dj@redhat.com>
9436
9437 [BZ #23907]
9438 * malloc/tst-tcfree3.c: New.
9439 * malloc/Makefile: Add it.
9440
9441 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9442
9443 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9444
9445 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9446
9447 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9448 used as a mask for the mode argument of __vfscanf_internal and
9449 __vfwscanf_internal.
9450 * stdio-common/vfscanf-internal.c
9451 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9452 (__strtof128_internal): Define to __wcstof128_internal.
9453 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9454 __strtof128_internal or __wcstof128_internal when the format of
9455 long double is the same as _Float128.
9456
9457 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9458
9459 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9460 * posix/confstr.c (confstr): Rename to __confstr.
9461 (__confstr): Add hidden def.
9462 (confstr): Add weak alias for __confstr.
9463 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9464 confstr.
9465
9466 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9467
9468 * NEWS: Mention getcpu.
9469 * include/sched.h (__getcpu): New libc_hidden_proto.
9470 * manual/resource.texi: Document getcpu.
9471 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9472 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9473 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9474 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9475 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9476 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9477 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9478 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9479 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9480 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9481 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9482 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9483 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9484 Likewise.
9485 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9486 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9487 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9489 Likewise.
9490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9491 Likewise.
9492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9493 Likewise.
9494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9495 Likewise.
9496 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9497 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9498 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9499 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9500 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9501 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9502 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9503 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9504 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9505 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9506 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9507 Also check getcpu.
9508
9509 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9510
9511 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9512 functions.
9513 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9514
9515 2018-12-07 Florian Weimer <fweimer@redhat.com>
9516
9517 [BZ #17405]
9518 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9519 * posix/Versions (GLIBC_2.29): Export
9520 posix_spawn_file_actions_addfchdir_np.
9521 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9522 * posix/spawn_faction_destroy.c
9523 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9524 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9525 and the field action.fchdir_action.
9526 * posix/tst-spawn-chdir.c (add_chdir): New function.
9527 (do_test): Add do_fchdir loop. Call add_chdir.
9528 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9529 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9530 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9531 posix_spawn_file_actions_addfchdir_np.
9532 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9533 Likewise.
9534 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9535 Likewise.
9536 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9537 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9538 Likewise.
9539 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9540 Likewise.
9541 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9542 Likewise.
9543 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9544 Likewise.
9545 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9546 Likewise.
9547 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9548 Likewise.
9549 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9550 (GLIBC_2.29): Likewise.
9551 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9552 (GLIBC_2.29): Likewise.
9553 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9554 (GLIBC_2.29): Likewise.
9555 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9556 (GLIBC_2.29): Likewise.
9557 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9558 Likewise.
9559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9560 (GLIBC_2.29): Likewise.
9561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9562 (GLIBC_2.29): Likewise.
9563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9564 (GLIBC_2.29): Likewise.
9565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9566 (GLIBC_2.29): Likewise.
9567 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9568 Likewise.
9569 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9570 Likewise.
9571 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9572 Likewise.
9573 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9574 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9575 Likewise.
9576 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9577 Likewise.
9578 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9579 Likewise.
9580 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9581 Likewise.
9582
9583 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9584
9585 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9586 trailing whitespace removed.
9587 * scripts/config.guess: Update to version 2018-11-28.
9588 * scripts/config.sub: Update to version 2018-11-28.
9589 * scripts/install-sh: Update to version 2018-03-11.20.
9590 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9591 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9592
9593 2018-12-07 Florian Weimer <fweimer@redhat.com>
9594
9595 [BZ #23927]
9596 CVE-2018-19591
9597 * inet/tst-if_index-long.c: New file.
9598 * inet/Makefile (tests): Add tst-if_index-long.
9599
9600 2018-12-07 Florian Weimer <fweimer@redhat.com>
9601
9602 * support/check.h (support_record_failure_is_failed): Declare.
9603 * support/descriptors.h: New file.
9604 * support/support_descriptors.c: Likewise.
9605 * support/tst-support_descriptors.c: Likewise.
9606 * support/support_record_failure.c
9607 (support_record_failure_is_failed): New function.
9608 * support/Makefile (libsupport-routines): Add support_descriptors.
9609 (tests): Add tst-support_descriptors.
9610
9611 2018-12-05 Zack Weinberg <zackw@panix.com>
9612 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9613
9614 * stdio-common/vfprintf-internal.c
9615 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9616 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9617 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9618 and __no_long_double.
9619 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9620 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9621 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9622 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9623 and __nldbl_*syslog* functions.
9624 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9625 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9626 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9627 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9628 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9629 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9630 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9631 (__nldbl_vwprintf, __nldbl_wprintf):
9632 Directly call the appropriate __v*printf_internal routine, passing
9633 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9634 variable names.
9635 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9636 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9637 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9638 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9639 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9640 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9641 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9642 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9643 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9644 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9645 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9646 (__nldbl_syslog, __nldbl_vsyslog):
9647 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9648 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9649 appropriate.
9650 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9651 appropriate.
9652
9653 2018-12-05 Zack Weinberg <zackw@panix.com>
9654 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9655
9656 [BZ #11319]
9657 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9658 Moved here from debug/vsprintf_chk.c.
9659 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9660 and completion logic for the strfile to match exactly what
9661 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9662 _IO_str_init_static_internal instead of maxlen-1.
9663 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9664 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9665 __vsprintf_internal.
9666
9667 * debug/vsprintf_chk.c (__vsprintf_chk)
9668 * debug/sprintf_chk.c (__sprintf_chk):
9669 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9670 'flags' argument is positive, and slen as maxlen. No need to lock
9671 the FILE and/or construct a temporary FILE. Minimize and normalize
9672 header inclusions and variable names. Do not libc_hidden_def anything.
9673
9674 * debug/asprintf_chk.c (__asprintf_chk)
9675 * debug/dprintf_chk.c (__dprintf_chk)
9676 * debug/fprintf_chk.c (__fprintf_chk)
9677 * debug/fwprintf_chk.c (__fwprintf_chk)
9678 * debug/printf_chk.c (__printf_chk)
9679 * debug/snprintf_chk.c (__snprintf_chk)
9680 * debug/swprintf_chk.c (__swprintf_chk)
9681 * debug/vasprintf_chk.c (__vasprintf_chk)
9682 * debug/vdprintf_chk.c (__vdprintf_chk)
9683 * debug/vfprintf_chk.c (__vfprintf_chk)
9684 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9685 * debug/vprintf_chk.c (__vprintf_chk)
9686 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9687 * debug/vswprintf_chk.c (__vswprintf_chk)
9688 * debug/vwprintf_chk.c (__vwprintf_chk)
9689 * debug/wprintf_chk.c (__wprintf_chk):
9690 Directly call the corresponding vxxprintf_internal function, passing
9691 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9692 the FILE and/or construct a temporary FILE. Minimize and normalize
9693 header inclusions and variable names. Do not libc_hidden_def anything.
9694
9695 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9696 __obstack_vprintf_internal.
9697 (__obstack_vprintf_chk): Convert into a wrapper that calls
9698 __obstack_vprintf_internal (these two functions already had the
9699 same code) and move to new file...
9700 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9701 file.
9702 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9703 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9704 * debug/Makefile (routines): Add vobprintf_chk.
9705
9706 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9707 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9708 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9709 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9710 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9711 (__nldbl___obstack_vfprintf_chk):
9712 Directly call the corresponding vxxprintf_internal function,
9713 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9714 duplicate comparison of slen with 0 or maxlen from the corresponding
9715 non-__nldbl function.
9716
9717 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9718 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9719 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9720 Remove libc_hidden_proto.
9721
9722 * stdio-common/vfprintf-internal.c
9723 (__vfprintf_internal, __vfwprintf_internal):
9724 Do not check _IO_FLAGS2_FORTIFY.
9725 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9726 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9727 a comment explaining why it has the maxlen argument.
9728 (_IO_acquire_lock_clear_flags2_fct): Remove.
9729 (_IO_acquire_lock_clear_flags2): Remove.
9730 (_IO_release_lock): Remove conditional statement which will
9731 now never execute.
9732 (_IO_acquire_lock): Remove variable which is now unused.
9733 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9734 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9735
9736 * stdio-common/Makefile (tests): Add tst-bz11319 and
9737 tst-bz11319-fortify2.
9738 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9739 * stdio-common/tst-bz11319-fortify2.c: New file.
9740 * stdio-common/tst-bz11319.c: Likewise.
9741
9742 2018-12-05 Zack Weinberg <zackw@panix.com>
9743 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9744
9745 * misc/syslog.c: Include libioP.h, not iolibio.h.
9746 (__vsyslog_internal): New function with the former body of
9747 __vsyslog_chk; takes mode_flags argument same as
9748 __v*printf_internal. Call __vfprintf_internal directly.
9749
9750 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9751 Remove libc_hidden_def.
9752 (__syslog, __syslog_chk): Use __vsyslog_internal.
9753 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9754
9755 * include/sys/syslog.h: Add multiple inclusion guard.
9756 Add prototype for __vsyslog_internal.
9757 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9758
9759 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9760 Use __vsyslog_internal.
9761
9762 2018-12-05 Zack Weinberg <zackw@panix.com>
9763 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9764
9765 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9766 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9767 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9768 New functions.
9769 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9770 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9771
9772 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9773 Include wctype.h here if COMPILE_WPRINTF is defined.
9774 Define __vfprintf_internal or __vfwprintf_internal, depending
9775 on COMPILE_WPRINTF.
9776 Temporarily, on entry to this function, update mode_flags
9777 according to the environmental settings corresponding to
9778 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9779 Throughout, check mode_flags instead of __ldbl_is_dbl and
9780 _IO_FLAGS2_FORTIFY on the destination FILE.
9781 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9782 Include vfprintf-internal.c. Don't include wctype.h.
9783 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9784 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9785 and vfprintf.
9786 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9787 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9788 and vfwprintf.
9789 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9790
9791 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9792 and add mode_flags argument; use __vfprintf_internal.
9793 (__vdprintf): New function. Alias vdprintf to this.
9794 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9795 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9796 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9797 (__obstack_printf): Use __obstack_printf_internal.
9798 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9799 public aliases __vsnprintf and vsnprintf.
9800 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9801 called internally.
9802 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9803 public aliases _IO_vsprintf and vsprintf.
9804 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9805 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9806 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9807 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9808 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9809
9810 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9811 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9812 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9813 * stdio-common/printf.c: Use __vfprintf_internal.
9814
9815 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9816 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9817 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9818
9819 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9820 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9821 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9822 __vfwprintf_internal.
9823
9824 * libio/libio.h: Remove libc_hidden_proto and declaration for
9825 _IO_vfprintf.
9826 Remove declaration of _IO_vfwprintf.
9827 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9828 _IO_vsprintf.
9829 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9830 _IO_obstack_printf.
9831 * include/stdio.h: Add prototype for __vasprintf.
9832 (__vsnprintf): Remove declaration, because there are no more
9833 internal calls.
9834 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9835 declaration, because there are no more internal calls.
9836
9837 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9838 __vsnprintf_internal, instead of _IO_vsnprintf.
9839 * argp/argp-help.c (__argp_error, __argp_failure): Use
9840 __vasprintf_internal, instead of _IO_vasprintf.
9841 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9842 redefine, because there are no more internal calls.
9843
9844 2018-12-05 Zack Weinberg <zackw@panix.com>
9845 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9846
9847 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9848 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9849 Include libio/strfile.h instead of libioP.h.
9850 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9851 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9852 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9853 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9854 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9855 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9856 necessary. Do not set __no_long_double. Normalize variable names.
9857 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9858 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9859 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9860 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9861 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9862 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9863 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9864 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9865 Do not set __no_long_double. Normalize variable names.
9866
9867 2018-12-05 Zack Weinberg <zackw@panix.com>
9868 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9869
9870 * stdio-common/isoc99_scanf.c
9871 * stdio-common/isoc99_fscanf.c
9872 * stdio-common/isoc99_sscanf.c
9873 * stdio-common/isoc99_vscanf.c
9874 * stdio-common/isoc99_vfscanf.c
9875 * stdio-common/isoc99_vsscanf.c
9876 * wcsmbs/isoc99_wscanf.c
9877 * wcsmbs/isoc99_fwscanf.c
9878 * wcsmbs/isoc99_swscanf.c
9879 * wcsmbs/isoc99_vwscanf.c
9880 * wcsmbs/isoc99_vfwscanf.c
9881 * wcsmbs/isoc99_vswscanf.c:
9882 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9883 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9884 No need to lock and unlock the FILE passed to that function.
9885
9886 * stdio-common/vfscanf-internal.c
9887 (__vfscanf_internal, __vfwscanf_internal):
9888 Don't look at _IO_FLAGS2_SCANF_STD.
9889 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9890 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9891 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9892
9893 2018-12-05 Zack Weinberg <zackw@panix.com>
9894 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9895
9896 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9897 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9898 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9899 * libio/strfile.h: Add multiple inclusion guard.
9900 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9901
9902 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9903 consistency with the other version of this file.
9904 (ldbl_compat_symbol): New macro.
9905 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9906 New macro.
9907
9908 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9909 Define __vfscanf_internal or __vfwscanf_internal, depending on
9910 COMPILE_WSCANF; don't define any other public symbols.
9911 Remove errval and code to set errp.
9912 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9913 as the mode_flags argument.
9914 (encode_error, conv_error, input_error): Don't set errval.
9915 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9916 Include vfscanf-internal.c.
9917 * stdio-common/vfscanf.c: New file defining the public entry
9918 point vfscanf, which calls __vfscanf_internal.
9919 * stdio-common/vfwscanf.c: New file defining the public entry
9920 point vfwscanf, which calls __vfwscanf_internal.
9921
9922 * stdio-common/iovfscanf.c: New file.
9923 * stdio-common/iovfwscanf.c: Likewise.
9924
9925 * stdio-common/Makefile (routines): Add vfscanf-internal,
9926 vfwscanf-internal, iovfscanf, iovfwscanf.
9927 * stdio-common/Versions: Mention GLIBC_2.29, so that
9928 it can be used in SHLIB_COMPAT expressions.
9929 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9930 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9931 Call __vfscanf_internal, instead of _IO_vfscanf.
9932 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9933 _IO_vfscanf.
9934 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9935 _IO_vfwscanf.
9936
9937 * libio/iovsscanf.c: Clean up includes, when possible. Use
9938 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9939 __vfscanf_internal or __vfwscanf_internal directly.
9940 * libio/iovswscanf.c: Likewise.
9941 * libio/swscanf.c: Likewise.
9942 * libio/vscanf.c: Likewise.
9943 * libio/vwscanf.c: Likewise.
9944 * libio/wscanf.c: Likewise.
9945 * stdio-common/isoc99_fscanf.c: Likewise.
9946 * stdio-common/isoc99_scanf.c: Likewise.
9947 * stdio-common/isoc99_sscanf.c: Likewise.
9948 * stdio-common/isoc99_vfscanf.c: Likewise.
9949 * stdio-common/isoc99_vscanf.c: Likewise.
9950 * stdio-common/isoc99_vsscanf.c: Likewise.
9951 * stdio-common/scanf.c: Likewise.
9952 * stdio-common/sscanf.c: Likewise.
9953 * wcsmbs/isoc99_fwscanf.c: Likewise.
9954 * wcsmbs/isoc99_swscanf.c: Likewise.
9955 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9956 * wcsmbs/isoc99_vswscanf.c: Likewise.
9957 * wcsmbs/isoc99_vwscanf.c: Likewise.
9958 * wcsmbs/isoc99_wscanf.c: Likewise.
9959
9960 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
9961
9962 * include/time.h
9963 (__tz_compute): Replace time_t with __time64_t.
9964 (__tz_convert): Replace time_t* with __time64_t.
9965 (__offtime): Replace time_t* with __time64_t.
9966 * time/gmtime.c
9967 (__gmtime_r): Adjust call to __tz_convert.
9968 (gmtime): Likewise.
9969 * time/localtime.c
9970 (__localtime_r): Likewise.
9971 (localtime): Likewise.
9972 * time/offtime.c: Replace time_t with __time64_t.
9973 * time/tzset.c: Likewise.
9974
9975 2018-12-04 Joseph Myers <joseph@codesourcery.com>
9976
9977 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9978 dynamic linker unless [$(run-built-tests) = yes].
9979
9980 2018-12-03 DJ Delorie <dj@delorie.com>
9981
9982 * support/test-container.c (check_for_unshare_hints): New.
9983 (main): Call it if unshare fails. Add support for "su" scriptlet
9984 command.
9985
9986 2018-12-03 Joseph Myers <joseph@codesourcery.com>
9987
9988 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9989 'START' to indicate that start text should be output.
9990 (gen_test): Likewise.
9991 (main): Generate 'START' for first symbol or '--' line, or at end
9992 of input if not previously generated.
9993
9994 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9995
9996 [BZ #19767]
9997 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9998 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9999 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10000 ALWAYS_USE_VSYSCALL.
10001
10002 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10003
10004 [BZ #23913]
10005 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10006 new_argv by one.
10007
10008 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10009
10010 [BZ #23923]
10011 * locale/programs/localedef.c: Declare boolean hard_links default true.
10012 (options): Add --no-hard-links option.
10013 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10014 * locale/programs/localedef.h: Declare prototype for hard_links.
10015 * locale/programs/locfile.c (write_locale_data): Don't use hard
10016 links if hard_links is false.
10017
10018 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10019
10020 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10021 cpu_features_basic.
10022 (__cache_sysconf): Likewise.
10023 (init_cacheinfo): Likewise.
10024 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10025 populate COMMON_CPUID_INDEX_80000007 and
10026 COMMON_CPUID_INDEX_80000008.
10027 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10028 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10029 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10030 (init_cpu_features): Use _Static_assert on
10031 index_arch_Fast_Unaligned_Load.
10032 __get_cpuid_registers and __get_arch_feature. Updated for
10033 cpu_features_basic. Set stepping in cpu_features.
10034 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10035 (FEATURE_INDEX_2): New.
10036 (FEATURE_INDEX_MAX): Changed to enum.
10037 (COMMON_CPUID_INDEX_D_ECX_1): New.
10038 (COMMON_CPUID_INDEX_80000007): Likewise.
10039 (COMMON_CPUID_INDEX_80000008): Likewise.
10040 (cpuid_registers): Likewise.
10041 (cpu_features_basic): Likewise.
10042 (CPU_FEATURE_USABLE): Likewise.
10043 (bit_arch_XXX_Usable): Likewise.
10044 (cpu_features): Use cpuid_registers and cpu_features_basic.
10045 (bit_arch_XXX): Reweritten.
10046 (bit_cpu_XXX): Likewise.
10047 (index_cpu_XXX): Likewise.
10048 (reg_XXX): Likewise.
10049 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10050 <support/check.h>.
10051 (CHECK_CPU_FEATURE): New.
10052 (CHECK_CPU_FEATURE_USABLE): Likewise.
10053 (cpu_kinds): Likewise.
10054 (do_test): Print vendor, family, model and stepping. Check
10055 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10056 (TEST_FUNCTION): Removed.
10057 Include <support/test-driver.c> instead of
10058 "../../test-skeleton.c".
10059 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10060 Check POPCNT instead of POPCOUNT.
10061 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10062
10063 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10064
10065 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10066 there is no element in `consts'.
10067
10068 2018-12-01 Florian Weimer <fweimer@redhat.com>
10069
10070 * support/support_capture_subprocess.c
10071 (support_capture_subprocess): Check that pipe descriptors have
10072 expected values. Close original pipe descriptors in subprocess.
10073
10074 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10075
10076 [BZ #23032]
10077 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10078 attr with __pthread_default_barrierattr.
10079 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10080 attr with __pthread_default_condattr.
10081 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10082 attr with __pthread_default_mutexattr.
10083 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10084 attr with __pthread_default_rwlockattr.
10085
10086 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10087
10088 * manual/tunables.texi (POSIX Thread Tunables): New node.
10089 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10090 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10091 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10092 __pthread_tunables_init.
10093 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10094 (max_adaptive_count): Define.
10095 * nptl/pthread_mutex_conf.c: New file.
10096 * nptl/pthread_mutex_conf.h: New file.
10097 * sysdeps/generic/adaptive_spin_count.h: New file.
10098 * sysdeps/nptl/dl-tunables.list: New file.
10099 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10100 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10101 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10102 Likewise.
10103
10104 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10105
10106 [BZ #20544]
10107 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10108 * stdlib/on_exit.c (__on_exit): Likewise.
10109 * stdlib/Makefile (tests): Add tst-bz20544.
10110 * stdlib/tst-bz20544.c: New test.
10111
10112 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10113
10114 [BZ #19767]
10115 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10116 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10117 New.
10118
10119 2018-11-30 Florian Weimer <fweimer@redhat.com>
10120
10121 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10122 Extend error logging.
10123 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10124 symbol.
10125
10126 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10127
10128 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10129 __sigismember instead of sigismember.
10130 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10131 cancel_handler): New definitions.
10132 (do_system): Use posix_spawn instead of fork and execl and remove
10133 reentracy code.
10134 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10135 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10136 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10137 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10138 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10139 * sysdeps/unix/sysv/linux/system.c: Likewise.
10140
10141 [BZ #22834]
10142 [BZ #17490]
10143 * NEWS: Add new semantic for atfork with popen and system.
10144 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10145 fork and execl.
10146
10147 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10148
10149 [BZ #23690]
10150 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10151 modification order when accessing reloc_result->addr.
10152 * include/link.h (reloc_result): Add field init.
10153 * nptl/Makefile (tests): Add tst-audit-threads.
10154 (modules-names): Add tst-audit-threads-mod1 and
10155 tst-audit-threads-mod2.
10156 Add rules to build tst-audit-threads.
10157 * nptl/tst-audit-threads-mod1.c: New file.
10158 * nptl/tst-audit-threads-mod2.c: Likewise.
10159 * nptl/tst-audit-threads.c: Likewise.
10160 * nptl/tst-audit-threads.h: Likewise.
10161
10162 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10163
10164 * scripts/gen-as-const.py: New file.
10165 * scripts/gen-as-const.awk: Remove.
10166 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10167 gen-as-const.py.
10168 ($(objpfx)test-as-const-%.c): Likewise.
10169
10170 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10171
10172 * elf/dl-exception.c: Include <_itoa.h>.
10173
10174 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10175
10176 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10177 returned by __f_setlk.
10178
10179 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10180 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10181
10182 * elf/Makefile (tests-internal): Add tst-create_format1.
10183 * elf/dl-exception.c (_dl_exception_create_format): Support
10184 %x, %lx and %zx.
10185 * elf/tst-create_format1.c: New file.
10186
10187 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10188
10189 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10190 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10191 gnulib.)
10192 * argp/argp-help.c (__argp_failure): Likewise.
10193
10194 2018-11-29 Mao Han <han_mao@c-sky.com>
10195
10196 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10197 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10198 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10199 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10200 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10201 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10202 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10203 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10204 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10205 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10206 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10207 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10208 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10209 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10210 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10211 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10212 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10213 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10214 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10215 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10216 (R_CKCORE_TLS_TPOFF32): New defines.
10217
10218 2018-11-29 Florian Weimer <fweimer@redhat.com>
10219
10220 * posix/Makefile (before-compile): Remove testcases.h and
10221 ptestcases.h.
10222 (generated): Add testcases.h and ptestcases.h.
10223 (testcases.h, ptestcases.h): Move to $(objpfx).
10224 (runtests.o): Add dependency on testcases.h.
10225 (runptests.o): Add dependency on ptestcases.h.
10226 * posix/testcases.h, posix/ptestcases.h: Remove files.
10227 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10228 not touch posix/testcases.h and posix/ptestcases.h.
10229
10230 2018-11-28 Florian Weimer <fweimer@redhat.com>
10231
10232 support: Add signal support to support_capture_subprocess_check.
10233 * support/capture_subprocess.h (support_capture_subprocess_check):
10234 Adjust comment and rename parameter.
10235 * support/support_capture_subprocess_check.c
10236 (print_actual_status): New function.
10237 (support_capture_subprocess_check): Support negative
10238 status_or_signal. Call print_actual_status.
10239 * support/tst-support_capture_subprocess.c (do_test): Call
10240 support_capture_subprocess_check.
10241 * libio/tst-vtables-common.c (termination_status)
10242 (init_termination_status): Remove.
10243 (check_for_termination): Adjust support_capture_subprocess_check
10244 call.
10245 (do_test): Remove call to init_termination_status.
10246
10247 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10248
10249 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10250 source directory instead of a copy.
10251 (CommandList.create_copy_dir): Remove.
10252
10253 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10254
10255 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10256
10257 2018-11-28 Florian Weimer <fweimer@redhat.com>
10258
10259 * support/support.h (support_quote_string): Do not use str
10260 parameter name.
10261
10262 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10263
10264 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10265 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10266
10267 2018-11-27 Florian Weimer <fweimer@redhat.com>
10268
10269 * support/support.h (support_quote_string): Declare.
10270 * support/support_quote_string.c: New file.
10271 * support/tst-support_quote_string.c: Likewise.
10272 * support/Makefile (libsupport-routines): Add
10273 support_quote_string.
10274 (tests): Add tst-support_quote_string.
10275
10276 2018-11-27 Florian Weimer <fweimer@redhat.com>
10277
10278 [BZ #23927]
10279 CVE-2018-19591
10280 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10281 descriptor leak in case of ENODEV error.
10282
10283 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10284
10285 [BZ #19767]
10286 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10287 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10288 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10289
10290 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10291
10292 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10293 Error for unknown lines.
10294
10295 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10296
10297 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10298 Touch additional files.
10299
10300 2018-11-26 Florian Weimer <fweimer@redhat.com>
10301
10302 [BZ #23907]
10303 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10304 double-frees.
10305
10306 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10307
10308 [BZ #19767]
10309 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10310 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10311 SHARED. Include sysdep.h.
10312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10313 ALWAYS_USE_VSYSCALL.
10314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10315 ALWAYS_USE_VSYSCALL.
10316
10317 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10318
10319 [BZ #19767]
10320 * nptl/Makefile (tests-static): Add tst-cond11-static.
10321 (tests): Likewise.
10322 * nptl/tst-cond11-static.c: New File.
10323 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10324 tst-affinity-static.
10325 (tests): Likewise.
10326 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10327 instead of SHARED.
10328 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10329 (USE_VSYSCALL): Likewise.
10330 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10331 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10332 instead of SHARED.
10333 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10334 SHARED.
10335 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10336 New.
10337
10338 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10339
10340 [BZ #23915]
10341 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10342 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10343 Undefine.
10344
10345 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10346
10347 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10348 (tst-cet-legacy-1a-ARGS): New.
10349 ($(objpfx)tst-cet-legacy-1a): New target.
10350 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10351
10352 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10353
10354 * conform/conformtest.py (CompileSubTest.__init__): Set
10355 self.run_early to False.
10356 (ExecuteSubTest.__init__): Likewise.
10357 (HeaderTests.run): Try running all non-optional, non-XFAILed
10358 compilation tests in a single execution of the compiler.
10359
10360 * conform/conformtest.py (CompileSubTest): New class.
10361 (ExecuteSubTest): Likewise.
10362 (ElementTest.run): Rename to gen_subtests. Append tests to
10363 self.subtests instead of running them.
10364 (ConstantTest.run): Likewise.
10365 (SymbolTest.run): Likewise.
10366 (TypeTest.run): Likewise.
10367 (TagTest.run): Likewise.
10368 (FunctionTest.run): Likewise.
10369 (VariableTest.run): Likewise.
10370 (MacroFunctionTest.run): Likewise.
10371 (MacroStrTest.run): Likewise.
10372 (HeaderTests.handle_test_line): Generate subtests for tests.
10373 (HeaderTests.run): Run subtests for tests.
10374
10375 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10376
10377 * math/Versions (GLIBC_2.29): Add pow.
10378 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10379 symbol.
10380 * math/w_pow.c: New file.
10381 * sysdeps/i386/fpu/w_pow.c: New file.
10382 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10383 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10384 and add necessary aliases.
10385 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10386 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10387 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10388 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10389 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10390 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10391 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10392 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10393 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10394 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10395 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10396 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10397 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10398 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10399 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10404 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10405 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10406 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10407 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10408 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10409 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10410 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10411 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10412 __pow.
10413 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10414 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10415 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10416
10417 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10418
10419 * math/Versions (GLIBC_2.29): Add log2.
10420 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10421 symbol.
10422 * math/w_log2.c: New file.
10423 * sysdeps/i386/fpu/w_log2.c: New file.
10424 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10425 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10426 and add necessary aliases.
10427 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10428 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10429 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10430 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10431 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10432 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10433 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10434 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10435 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10436 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10437 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10438 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10439 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10440 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10441 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10446 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10447 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10448 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10449 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10450 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10451 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10452 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10453
10454 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10455
10456 * math/Versions (GLIBC_2.29): Add log.
10457 * math/w_log_compat.c (__log_compat): Change to versioned compat
10458 symbol.
10459 * math/w_log.c: New file.
10460 * sysdeps/i386/fpu/w_log.c: New file.
10461 * sysdeps/ia64/fpu/e_log.S: Update.
10462 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10463 and add necessary aliases.
10464 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10465 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10466 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10467 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10468 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10469 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10470 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10471 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10472 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10473 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10474 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10475 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10476 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10477 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10478 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10483 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10484 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10485 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10486 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10487 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10488 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10489 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10490 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10491 __log.
10492 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10493 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10494 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10495 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10496
10497 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10498
10499 * math/Versions (GLIBC_2.29): Add exp and exp2.
10500 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10501 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10502 * math/w_exp_compat.c (__exp_compat): Likewise.
10503 * math/w_exp.c: New file.
10504 * math/w_exp2.c: New file.
10505 * sysdeps/i386/fpu/w_exp.c: New file.
10506 * sysdeps/i386/fpu/w_exp2.c: New file.
10507 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10508 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10509 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10510 and add necessary aliases.
10511 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10512 and add necessary aliases.
10513 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10514 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10515 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10516 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10517 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10518 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10519 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10520 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10521 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10522 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10523 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10524 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10525 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10526 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10527 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10528 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10529 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10534 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10535 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10536 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10537 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10538 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10539 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10540 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10541 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10542 (__ieee754_exp): Rename to __exp.
10543 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10544 (__ieee754_exp): Rename to __exp.
10545 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10546 (__ieee754_exp): Rename to __exp.
10547 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10548 __exp.
10549 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10550
10551 2018-11-20 DJ Delorie <dj@redhat.com>
10552
10553 * malloc/malloc.c (tcache_entry): Add key field.
10554 (tcache_put): Set it.
10555 (tcache_get): Likewise.
10556 (_int_free): Check for double free in tcache.
10557 * malloc/tst-tcfree1.c: New.
10558 * malloc/tst-tcfree2.c: New.
10559 * malloc/Makefile: Run the new tests.
10560 * manual/probes.texi: Document memory_tcache_double_free probe.
10561
10562 * dlfcn/dlerror.c (check_free): Prevent double frees.
10563
10564 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10565
10566 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10567
10568 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10569
10570 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10571 in tests. Use names for format arguments.
10572 (ConstantTest.run): Likewise.
10573 (SymbolTest.run): Likewise.
10574 (TypeTest.run): Likewise.
10575 (TagTest.run): Likewise.
10576 (FunctionTest.run): Likewise.
10577 (VariableTest.run): Likewise.
10578 (MacroFunctionTest.run): Likewise.
10579 (MacroStrTest.run): Likewise.
10580 (HeaderTests.__init__): Set self.num_tests.
10581 (HeaderTests.handle_test_line): Set test.num. Increment
10582 self.num_tests.
10583
10584 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10585
10586 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10587 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10588 SEEK_SET.
10589
10590 2018-11-19 Mao Han <han_mao@c-sky.com>
10591
10592 * scripts/config.guess: Update to version 2018-08-29.
10593 * scripts/config.sub: Update to version 2018-08-29.
10594
10595 2018-11-19 Florian Weimer <fweimer@redhat.com>
10596
10597 support: Print timestamps in timeout handler.
10598 * support/support_test_main.c (print_timestamp): New function.
10599 (signal_handler): Use it to print the termination time and the
10600 time of the last write to standard output.
10601
10602 2018-11-16 Zack Weinberg <zackw@panix.com>
10603 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10604
10605 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10606 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10607 argument.
10608 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10609 and add flags argument. Check flags instead of __ldbl_is_dbl when
10610 deciding whether to set is_long_double.
10611 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10612 passing zero for flags argument.
10613 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10614
10615 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10616 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10617 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10618 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10619 variable names. Remove libc_hidden_def/libc_hidden_proto from
10620 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10621 longer called from within the library.
10622 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10623 for __nldbl___vstrfmon_l, declare it explicitly.
10624
10625 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10626
10627 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10628
10629 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10630 macros
10631 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10632 F_SETLK64, F_SETLKW64, respectively.
10633 * sysdeps/mach/hurd/f_setlk.c: New file.
10634 * sysdeps/mach/hurd/f_setlk.h: New file.
10635 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10636 f_setlk.
10637 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10638 (__libc_fcntl): Move non-flock operations to...
10639 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10640 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10641
10642 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10643
10644 mktime: DEBUG_MKTIME cleanup
10645 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10646 And it’s no longer needed now that glibc and Gnulib both have
10647 their own testing mechanisms for mktime.
10648 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10649
10650 mktime: fix non-EOVERFLOW errno handling
10651 [BZ#23789]
10652 mktime was not properly reporting failures when the underlying
10653 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10654 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10655 The problem could happen on non-glibc platforms, with Gnulib.
10656 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10657 (tm_diff): ... this simpler function, which does not change errno.
10658 All callers changed to deal with errno themselves.
10659 (ranged_convert, __mktime_internal): Return failure immediately if
10660 the underlying function reports any failure other than EOVERFLOW.
10661 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10662 gap code fails.
10663
10664 mktime: fix bug with Y2038 DST transition
10665 [BZ#23789]
10666 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10667 mishandle a DST transition that jumps over the Y2038 boundary.
10668 No such DST transitions are known so this is only a theoretical
10669 bug, but we might as well do things right.
10670
10671 mktime: make more room for overflow
10672 [BZ#23789]
10673 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10674 This is so that we can add tm_diff results to a previous guess,
10675 which will be useful in a later patch.
10676
10677 mktime: simplify offset guess
10678 [BZ#23789]
10679 * time/mktime.c (__mktime_internal): Omit excess precision.
10680
10681 mktime: new test for mktime failure
10682 [BZ#23789]
10683 Based on a test suggested by Albert Aribaud in:
10684 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10685 * time/Makefile (tests): Add bug-mktime4.
10686 * time/bug-mktime4.c: New file.
10687
10688 mktime: fix EOVERFLOW bug
10689 [BZ#23789]
10690 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10691 Include libc-config.h, not config.h, for __set_errno.
10692 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10693
10694 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10695
10696 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10697 __attribute_copy__ to copy attributes from name. Drop static qualifier
10698 to avoid warnings about leaf attribute not having effect on static
10699 functions.
10700
10701 2018-11-13 Florian Weimer <fweimer@redhat.com>
10702
10703 * malloc/malloc.c (fastbin_push_entry): New function.
10704 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10705 (REMOVE_FB): Remove macro.
10706 (_int_malloc): Use fastbin_pop_entry and reindent.
10707 (_int_free): Use fastbin_push_entry.
10708 (malloc_consolidate): Use atomic_exchange_acquire.
10709
10710 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10711
10712 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10713 alias attribute, not with strong_alias.
10714
10715 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10716 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10717 with additional parameter thread.
10718 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10719 in terms of __hidden_ver2.
10720 (hidden_tls_def): New macro.
10721 (libc_hidden_tls_def): Likewise.
10722 (rtld_hidden_tls_def): Likewise.
10723 (libm_hidden_tls_def): Likewise.
10724 (libmvec_hidden_tls_def): Likewise.
10725 (libresolv_hidden_tls_def): Likewise.
10726 (librt_hidden_tls_def): Likewise.
10727 (libdl_hidden_tls_def): Likewise.
10728 (libnss_files_hidden_tls_def): Likewise.
10729 (libnsl_hidden_tls_def): Likewise.
10730 (libnss_nisplus_hidden_tls_def): Likewise.
10731 (libutil_hidden_tls_def): Likewise.
10732 (libutil_hidden_tls_def): Likweise.
10733 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10734 libc_hidden_tls_def.
10735 (__sim_disabled_exceptions_thread): Likewise.
10736 (__sim_round_mode_thread): Likewise.
10737
10738 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10739 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10740 copy attributes from name.
10741
10742 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10743
10744 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10745 Use __attribute_copy__ to copy attributes from name.
10746
10747 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10748 with __hidden_ver1 call.
10749 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10750 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10751 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10752 (__cosf): Do not declare here.
10753 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10754 (__sincosf): Do not declare here.
10755 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10756 (__sinf): Do not declare here.
10757
10758 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10759 (__BIG_ENDIAN): Likewise.
10760 (__BYTE_ORDER): Likewise.
10761 (strong_alias): Likewise.
10762 (_strong_alias): Likewise.
10763
10764 2018-11-12 Florian Weimer <fweimer@redhat.com>
10765
10766 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10767 function. Move after the definition of in_smallbin_range. Do not
10768 use __builtin_expect for paths that lead to a noreturn function.
10769 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10770 because it is unclear whether this is in fact an unlikely
10771 condition.
10772 (_int_malloc, _int_free): Adjust.
10773 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10774 variables.
10775 * malloc/arena.c (heap_trim): Likewise.
10776
10777 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10778
10779 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10780 it, free it if needed.
10781 (reauthenticate): Test and use ccwdir.
10782 (child_init_port): In non-resetids case, test and use ccwdir.
10783 (child_chdir): New nested function to set ccwdir.
10784 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10785 * hurd/hurd/port.h (_hurd_port_move): New function.
10786 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10787 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10788 * hurd/Versions (_hurd_port_move): Export function.
10789 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10790 symbol.
10791 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10792 of dtablesize for allocating dtable_cloexec.
10793
10794 2018-11-09 Martin Sebor <msebor@redhat.com>
10795
10796 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10797 it's already defined.
10798 (_strong_alias): Use __attribute_copy__.
10799 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10800 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10801 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10802 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10803 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10804 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10805 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10806 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10807 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10808 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10809 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10810 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10811 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10812 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10813 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10814 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10815 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10816 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10817 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10818
10819 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10820
10821 * misc/tst-efgcvt.c: Include support/check.h and
10822 support/test-driver.c. Do not include test-skeleton.c.
10823 (error_count): Remove.
10824 (output_error): Replace increments to error_count with calls to
10825 support_record_failure.
10826 (output_r_error): Likewise.
10827 (special): Likewise.
10828 (do_test): Unconditionally return zero.
10829 (TEST_FUNCTION): Remove.
10830
10831 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10832
10833 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10834 not $(@D)/scratch.
10835 ($(linknamespace-header-tests)): Likewise.
10836
10837 * conform/conformtest.py: New file.
10838 * conform/conformtest.pl: Remove.
10839 * conform/GlibcConform.pm: Likewise.
10840 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10841 (KEYWORDS_C99): Likewise.
10842 (KEYWORDS): Likewise.
10843 * conform/Makefile ($(conformtest-header-tests)): Use
10844 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10845 option. Use --header instead of --headers.
10846 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10847 function entries.
10848 * conform/data/spawn.h-data: Likewise.
10849 * conform/data/fcntl.h-data (openat): Add space after function
10850 name.
10851 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10852 (wcscasecmp_l): Likewise.
10853 * conform/data/termios.h-data (c_cc): Add space after element
10854 name.
10855
10856 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10857
10858 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10859 instead of manually comparing and reporting mismatching strings.
10860 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10861 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10862
10863 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10864
10865 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10866 __ASSUME_SOCKETCALL.
10867 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10868 (__ASSUME_SOCKETCALL): Remove.
10869 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10870 (__ASSUME_SOCKETCALL): Likewise.
10871 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10872 (__ASSUME_SOCKETCALL): Likewise.
10873 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10874 (__ASSUME_SOCKETCALL): Likewise.
10875 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10876 (__ASSUME_SOCKETCALL): Likewise.
10877 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10878 (__ASSUME_SOCKETCALL): Likewise.
10879 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10880 (__ASSUME_SOCKETCALL): Likewise.
10881
10882 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10883
10884 [BZ #23509]
10885 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10886 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10887 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10888 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10889 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10890 lc_unknown.
10891
10892 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10893
10894 [BZ #17630]
10895 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10896
10897 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10898
10899 [BZ #23867]
10900 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10901 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10902 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10903 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10904
10905 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10906
10907 * support/support_test_compare_string.c
10908 (support_test_compare_string): Fix printf format.
10909
10910 2018-11-07 Florian Weimer <fweimer@redhat.com>
10911
10912 Implement TEST_COMPARE_STRING.
10913 * support/check.h (TEST_COMPARE_STRING): Define.
10914 (support_test_compare_string): Declare.
10915 * support/Makefile (libsupport-routines): Add
10916 support_test_compare_string.
10917 (tests): Add tst-test_compare_string.
10918 * support/support_test_compare_string.c: New file.
10919 * support/tst-test_compare_string.c: Likewise.
10920
10921 2018-11-07 Andreas Schwab <schwab@suse.de>
10922
10923 [BZ #23864]
10924 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10925 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10926 Undef.
10927
10928 2018-11-06 Joseph Myers <joseph@codesourcery.com>
10929
10930 [BZ #23862]
10931 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10932 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10933 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10934 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10935 Likewise.
10936
10937 2018-11-06 Florian Weimer <fweimer@redhat.com>
10938
10939 [BZ #17405]
10940 * posix/Makefile (routines): Add spawn_faction_addchdir.
10941 (tests): Add tst-spawn-chdir.
10942 * posix/Versions (GLIBC_2.29): Add
10943 posix_spawn_file_actions_addchdir_np.
10944 * posix/spawn_faction_addchdir.c: New file.
10945 * posix/spawn_faction_destroy.c
10946 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10947 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10948 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10949 chdir_action.
10950 * posix/tst-spawn-chdir.c: New file.
10951 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10952 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10953 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10954 posix_spawn_file_actions_addchdir_np.
10955 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10956 Likewise.
10957 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10958 Likewise.
10959 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10960 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10961 Likewise.
10962 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10963 Likewise.
10964 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10965 Likewise.
10966 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10967 Likewise.
10968 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10969 Likewise.
10970 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10971 Likewise.
10972 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10973 (GLIBC_2.29): Likewise.
10974 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10975 (GLIBC_2.29): Likewise.
10976 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10977 (GLIBC_2.29): Likewise.
10978 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10979 (GLIBC_2.29): Likewise.
10980 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10981 Likewise.
10982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10983 (GLIBC_2.29): Likewise.
10984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10985 (GLIBC_2.29): Likewise.
10986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10987 (GLIBC_2.29): Likewise.
10988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10989 (GLIBC_2.29): Likewise.
10990 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10991 Likewise.
10992 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10993 Likewise.
10994 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10995 Likewise.
10996 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10997 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10998 Likewise.
10999 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11000 Likewise.
11001 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11002 Likewise.
11003 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11004 Likewise.
11005
11006 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11007
11008 * misc/Makefile (tests): Add tst-ldbl-error.
11009 * misc/tst-ldbl-error.c: New file.
11010
11011 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11012
11013 * misc/Makefile (tests): Add tst-ldbl-warn.
11014 * misc/tst-ldbl-warn.c: New file.
11015
11016 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11017
11018 * argp/Makefile (tests): Add tst-ldbl-argp.
11019 * argp/tst-ldbl-argp.c: New file.
11020
11021 2018-11-05 Arjun Shankar <arjun@redhat.com>
11022
11023 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11024 __gconv_path_elem and call __gconv_get_path unconditionally.
11025
11026 2018-11-05 Andreas Schwab <schwab@suse.de>
11027
11028 [BZ #22927]
11029 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11030 creating the first helper thread failed.
11031
11032 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11033
11034 * sysdeps/mach/hurd/msync.c: New file.
11035
11036 2018-11-02 Florian Weimer <fweimer@redhat.com>
11037
11038 * support/shell-container.c (copy_func): Call
11039 support_copy_file_range instead of copy_file_range to support
11040 cross-device copies.
11041
11042 2018-11-02 Florian Weimer <fweimer@redhat.com>
11043
11044 * support/test-container.c: Include <libc-pointer-arith.h> for
11045 ALIGN_UP.
11046
11047 2018-11-01 Zong Li <zong@andestech.com>
11048
11049 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11050 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11051 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11052 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11053
11054 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11055 variable to avoid overlap arguments.
11056
11057 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11058
11059 * posix/bug-regex22.c (main): Use puts with distinct error
11060 messages for unexpected success of re_compile_pattern, not printf
11061 with NULL argument to %s.
11062
11063 * stdio-common/bug22.c: Include <libc-diag.h>.
11064 (do_test): Disable -Wformat-overflow= warnings around fprintf
11065 calls outputting more than INT_MAX characters.
11066 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11067 around printf call with NULL %s argument.
11068
11069 [BZ #23848]
11070 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11071 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11072 Undefine.
11073 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11074 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11075 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11076 (__ASSUME_SENDTO_SYSCALL): Likewise.
11077 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11078 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11079 [!__arch64__].
11080 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11081 (__ASSUME_CONNECT_SYSCALL): Likewise.
11082 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11083 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11084 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11085 Define.
11086 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11087 Likewise.
11088 [__LINUX_KERNEL_VERSION >= 0x040400]
11089 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11090 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11091 Remove.
11092 (listen): Likewise.
11093 (setsockopt): Likewise.
11094
11095 2018-11-01 Fredrik Noring <noring@nocrew.org>
11096
11097 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11098 with the ISA override.
11099
11100 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11101
11102 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11103 #endif.
11104
11105 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11106
11107 * manual/errno.texi (EIEIO): Document how translators should
11108 translate the error message.
11109 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11110 printing trailing whitespaces refused by git.
11111 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11112 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11113 * hurd/Makefile (user-interfaces): Add pci.
11114
11115 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11116
11117 * conform/linknamespace.py: New file.
11118 * conform/linknamespace.pl: Remove file.
11119 * conform/Makefile ($(linknamespace-header-tests)): Use
11120 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11121 option.
11122
11123 2018-10-30 Florian Weimer <fweimer@redhat.com>
11124
11125 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11126 memory leaks.
11127
11128 2018-10-30 Florian Weimer <fweimer@redhat.com>
11129
11130 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11131
11132 2018-10-30 Florian Weimer <fweimer@redhat.com>
11133
11134 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11135 support_blob_repeat.
11136
11137 2018-10-30 Florian Weimer <fweimer@redhat.com>
11138
11139 Avoid spurious test failures in stdlib/test-bz22786.
11140 * support/Makefile (libsupport-routines): Add blob_repeat.
11141 (tests): Add tst-support_blob_repeat.
11142 * support/blob_repeat.h: New file.
11143 * support/blob_repeat.c: Likewise.
11144 * support/tst-support_blob_repeat.c: Likewise.
11145 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11146 support_blob_repeat_allocate.
11147
11148 2018-10-30 Andreas Schwab <schwab@suse.de>
11149
11150 [BZ #23125]
11151 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11152 Don't use tail call.
11153 * elf/tst-unwind-main.c: New file.
11154 * elf/Makefile (tests): Add tst-unwind-main.
11155 (CFLAGS-tst-unwind-main.c): Define.
11156
11157 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11158
11159 [BZ #23791]
11160 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11161 n_cs_precedes to 0.
11162 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11163
11164 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11165
11166 * conform/glibcconform.py: Do not import shutil.
11167 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11168 of mkdtemp.
11169
11170 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11171 critic_missing for versions before 3.4.
11172 * configure: Regenerated.
11173 * manual/install.texi (Tools for Compilation): Document
11174 requirement for Python to build glibc.
11175 * INSTALL: Regenerated.
11176 * Rules [PYTHON]: Make code unconditional.
11177 * benchtests/Makefile [PYTHON]: Likewise.
11178 * conform/Makefile [PYTHON]: Likewise.
11179 * manual/Makefile [PYTHON]: Likewise.
11180 * math/Makefile [PYTHON]: Likewise.
11181
11182 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11183
11184 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11185 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11186 answer to interrupt_operation, return EIEIO instead of EINTR.
11187 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11188 _hurd_intr_rpc_msg_about_to global point to start of controlled
11189 assembly snippet. Make it check canceled flag.
11190 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11191 the _hurd_intr_rpc_msg_about_to point.
11192 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11193 issue, remove cancel flag check.
11194
11195 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11196
11197 * scripts/build-many-glibcs.py: Remove compatibility for missing
11198 os.cpu_count and re.fullmatch.
11199
11200 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11201
11202 [BZ #23822]
11203 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11204 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11205 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11206
11207 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11208
11209 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11210 macro.
11211
11212 2018-10-25 Florian Weimer <fweimer@redhat.com>
11213
11214 [BZ #23562]
11215 [BZ #23821]
11216 XFAIL siginfo_t si_band conform test on sparc64.
11217 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11218 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11219 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11220 (conformtest-xfail-conds): Add sparc64-linux.
11221 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11222 sparc64.
11223 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11224
11225 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11226
11227 * elf/elf.h (NT_MIPS_DSP): New macro.
11228 (NT_MIPS_FP_MODE): Likewise.
11229
11230 2018-10-25 Zong Li <zong@andestech.com>
11231
11232 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11233 name by adding the file extension (.so).
11234
11235 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11236
11237 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11238 (test-xfail-ISO11/threads.h/linknamespace,
11239 test-xfail-ISO11/threads.h/conform): Add.
11240
11241 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11242
11243 * math/gen-libm-test.py: Import os.
11244 (ALL_FLOATS_MANUAL): New constant.
11245 (ALL_FLOATS_SUFFIX): Likewise.
11246 (Ulps.all_functions): New function.
11247 (real_all_ulps): Likewise.
11248 (generate_err_table_sub): Likewise.
11249 (generate_err_table): Likewise.
11250 (main): Handle -s and -m options.
11251 * manual/libm-err-tab.pl: Remove.
11252 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11253 instead of libm-err-tab.pl.
11254 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11255 != no].
11256 * manual/install.texi (Tools for Compilation): Document
11257 requirement for Python to build manual.
11258 * INSTALL: Regenerated.
11259
11260 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11261
11262 * bits/time64.h: New file.
11263 * include/time.h: Replace internal_time_t with __time64_t.
11264 * posix/bits/types (__time64_t): Add.
11265 * stdlib/Makefile: Add bits/time64.h to includes.
11266 * time/tzfile.c: Replace internal_time_t with __time64_t.
11267
11268 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11269
11270 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11271 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11272 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11273 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11274 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11275 prototype.
11276 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11277 * posix/spawn_faction_addclose.c
11278 (__posix_spawn_file_actions_addclose): Add hidden definition.
11279 * posix/spawn_faction_adddup2.c
11280 (__posix_spawn_file_actions_adddup2): Likewise.
11281 * posix/spawn_faction_destroy.c
11282 (__posix_spawn_file_actions_destroy): Likewise.
11283 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11284 Likewise.
11285 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11286 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11287 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11288 Likewise.
11289 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11290 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11291 Likewise.
11292
11293 2018-10-24 Andreas Schwab <schwab@suse.de>
11294
11295 [BZ #18093]
11296 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11297 format cache.
11298 * elf/cache.c (print_cache): Likewise.
11299
11300 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11301
11302 * bits/timesize.h: New file.
11303 * stdlib/Makefile (headers): Add bits/timesize.h.
11304 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11305 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11306 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11307 (__SEM_PAD_AFTER_TIME): Likewise.
11308 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11309 (__SHM_PAD_AFTER_TIME): Likewise.
11310 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11311 (__MSQ_PAD_BEFORE_TIME): Likewise.
11312 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11313 (__SEM_PAD_BEFORE_TIME): Likewise.
11314 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11315 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11316 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11317 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11318 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11319 (__MSQ_PAD_BEFORE_TIME): Likewise.
11320 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11321 (__SEM_PAD_BEFORE_TIME): Likewise.
11322 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11323 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11324 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11325 (__MSQ_PAD_BEFORE_TIME): Likewise.
11326 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11327 (__SEM_PAD_BEFORE_TIME): Likewise.
11328 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11329 (__SHM_PAD_BEFORE_TIME): Likewise.
11330 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11331 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11332 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11333
11334 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11335
11336 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11337 USE_RDTSCP is defined.
11338 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11339 USE_RDTSCP is defined.
11340
11341 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11342
11343 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11344 defined.
11345
11346 [BZ #23709]
11347 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11348 independently of other flags.
11349
11350 2018-10-23 Florian Weimer <fweimer@redhat.com>
11351
11352 * time/tst-mktime2.c (N_STRINGS): Remove.
11353 (set_timezone): New function.
11354 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11355 (mktime_test1): Report localtime failure and check errno value.
11356 Use TEST_COMPARE.
11357 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11358 (do_test): Remove alarm call. Use set_timezone and array_length.
11359
11360 2018-10-23 Andreas Schwab <schwab@suse.de>
11361
11362 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11363 (__start_context): Use END instead of PSEUDO_END.
11364
11365 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11366
11367 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11368 version to 4.19.
11369
11370 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11371 version to 4.19.
11372
11373 [BZ #23793]
11374 * wcsmbs/c32rtomb.c: New file.
11375 * wcsmbs/mbrtoc32.c: Likewise.
11376 * wcsmbs/tst-c32-state.c: Likewise.
11377 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11378 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11379 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11380 (tests): Add tst-c32-state.
11381 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11382 $(gen-locales).
11383
11384 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11385
11386 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11387 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11388
11389 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11390
11391 [BZ #23794]
11392 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11393 pair and return 0 in that case, and use saved character to
11394 interpret following character.
11395 * wcsmbs/tst-c16-surrogate.c: New file.
11396 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11397 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11398 Depend on $(gen-locales)
11399
11400 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11401
11402 [BZ #23562]
11403 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11404 (struct siginfo_t): Use correct type for si_band.
11405
11406 2018-10-19 Florian Weimer <fweimer@redhat.com>
11407
11408 [BZ #23689]
11409 * resource/bits/types/struct_rusage.h (struct rusage): Update
11410 comment on struct. Remove extraneous field comment.
11411
11412 2018-10-18 David S. Miller <davem@davemloft.net>
11413
11414 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11415 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11416 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11417 sysdep_routines in subdir elf.
11418 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11419 version for __vdso_clock_gettime.
11420 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11421 Define.
11422 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11423 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11424
11425 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11426
11427 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11428
11429 * sysdeps/i386/init-arch.h: Removed.
11430 * sysdeps/i386/i586/init-arch.h: Likewise.
11431 * sysdeps/i386/i686/init-arch.h: Likewise.
11432 * sysdeps/i386/i686/hp-timing.h: Likewise.
11433 * sysdeps/x86_64/hp-timing.h: Likewise.
11434 * sysdeps/i386/isa.h: New file.
11435 * sysdeps/i386/i586/isa.h: Likewise.
11436 * sysdeps/i386/i686/isa.h: Likewise.
11437 * sysdeps/x86_64/isa.h: Likewise.
11438 * sysdeps/x86/hp-timing.h: New file.
11439 * sysdeps/x86/init-arch.h: Include <isa.h>.
11440
11441 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11442
11443 * math/libm-test-pow.inc (pow_test_data): Do not allow
11444 divide-by-zero exception for pow(+/- 0, -Inf).
11445
11446 2018-10-17 Zack Weinberg <zackw@panix.com>
11447
11448 * manual/job.texi (Job Control is Optional): Remove node, as
11449 job control has not been optional in quite some time.
11450 (Job Control): Mention briefly that systems older than
11451 POSIX.1-2001 might not support job control.
11452 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11453 defined on systems conforming to POSIX.1-2001.
11454
11455 2018-10-17 Arjun Shankar <arjun@redhat.com>
11456
11457 [BZ #22062]
11458 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11459 indentation.
11460 * (__gconv_read_conf): Mark function static.
11461 * (once): New static variable.
11462 * (__gconv_load_conf): New function.
11463 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11464 * iconv/gconv_db.c (once): Remove static variable.
11465 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11466 __gconv_read_conf.
11467 * (__gconv_find_transform): Likewise.
11468 * iconv/tst-iconv-mt.c: New test.
11469 * iconv/Makefile: Add tst-iconv_mt.
11470
11471 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11472
11473 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11474 bits/shm-pad.h.
11475 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11476 (shmatt_t): Define as __syscall_ulong_t.
11477 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11478 and [__SHM_PAD_AFTER_TIME].
11479 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11480 Define shm_segsz and associated padding based on
11481 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11482 Use __syscall_ulong_t instead of unsigned long int.
11483 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11484 unsigned long int.
11485 [__USE_MISC] (struct shm_info): Likewise.
11486 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11487 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11488 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11489 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11490 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11491 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11492 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11493 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11494 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11495 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11496 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11497
11498 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11499 bits/shmlba.h.
11500 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11501 (SHMLBA): Remove macro.
11502 (__getpagesize): Remove function declaration.
11503 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11504 <bits/shmlba.h>.
11505 (SHMLBA): Remove macro.
11506 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11507 <bits/shmlba.h>.
11508 (SHMLBA): Remove macro.
11509 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11510 <bits/shmlba.h>.
11511 (SHMLBA): Remove macro.
11512 (__getpagesize): Remove function declaration.
11513 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11514 <bits/shmlba.h>.
11515 (SHMLBA): Remove macro.
11516 (__getshmlba): Remove function declaration.
11517 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11518 (SHMLBA): Remove macro.
11519 (__getpagesize): Remove function declaration.
11520 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11521 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11522 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11523 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11524 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11525 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11526 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11527 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11528 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11529 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11530
11531 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11532
11533 [BZ #23275]
11534 * nptl/tst-mutex10.c: New File.
11535 * nptl/Makefile (tests): Add tst-mutex10.
11536 (tst-mutex10-ENV): New variable.
11537 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11538 Ensure that elision path is used if elision is available.
11539 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11540 Likewise.
11541 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11542 Likewise.
11543 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11544 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11545 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11546 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11547 Likewise.
11548 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11549 (__pthread_mutex_cond_lock_adjust): Likewise.
11550 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11551 Likewise.
11552 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11553 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11554 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11555 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11556 Add comments.
11557 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11558 Use atomic_load_relaxed and atomic_store_relaxed.
11559 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11560 Use atomic_store_relaxed.
11561
11562 2018-10-17 Andreas Schwab <schwab@suse.de>
11563
11564 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11565 * crypt/badsalttest.c (TIMEOUT): Likewise.
11566 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11567 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11568 * io/test-lfs.c (TIMEOUT): Likewise.
11569 * libio/tst-atime.c (TIMEOUT): Likewise.
11570 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11571 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11572 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11573 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11574 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11575 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11576 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11577 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11578 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11579 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11580 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11581 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11582 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11583 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11584 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11585 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11586 * nptl/tst-once2.c (TIMEOUT): Likewise.
11587 * nptl/tst-once3.c (TIMEOUT): Likewise.
11588 * nptl/tst-once4.c (TIMEOUT): Likewise.
11589 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11590 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11591 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11592 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11593 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11594 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11595 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11596 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11597 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11598 * posix/tst-chmod.c (TIMEOUT): Likewise.
11599 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11600 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11601 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11602 * posix/tst-regex2.c (TIMEOUT): Likewise.
11603 * posix/tst-waitid.c (TIMEOUT): Likewise.
11604 * rt/tst-aio.c (TIMEOUT): Likewise.
11605 * rt/tst-aio10.c (TIMEOUT): Likewise.
11606 * rt/tst-aio4.c (TIMEOUT): Likewise.
11607 * rt/tst-aio5.c (TIMEOUT): Likewise.
11608 * rt/tst-aio6.c (TIMEOUT): Likewise.
11609 * rt/tst-aio64.c (TIMEOUT): Likewise.
11610 * rt/tst-aio7.c (TIMEOUT): Likewise.
11611 * rt/tst-aio9.c (TIMEOUT): Likewise.
11612 * rt/tst-clock.c (TIMEOUT): Likewise.
11613 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11614 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11615 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11616 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11617 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11618 * rt/tst-timer4.c (TIMEOUT): Likewise.
11619 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11620 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11621 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11622 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11623 * time/tst-ftime.c (TIMEOUT): Likewise.
11624 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11625
11626 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11627
11628 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11629 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11630 for thunderX2.
11631
11632 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11633
11634 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11635 bits/sem-pad.h.
11636 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11637 instead of <bits/wordsize.h>.
11638 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11639 and [__SEM_PAD_AFTER_TIME].
11640 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11641 __syscall_ulong_t instead of unsigned long int.
11642 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11643 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11644 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11645 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11646 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11647 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11648 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11649 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11650 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11651 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11652 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11653
11654 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11655
11656 regex: simplify by using intprops.h
11657 [BZ#23744]
11658 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11659 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11660 intprops.h defines them.
11661
11662 regex: __builtin_expect → __glibc_unlikely
11663 [BZ#23744]
11664 This refactoring was prompted by a problem when the regex code is
11665 used as part of Gnulib and when the builder’s compiler does not grok
11666 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11667 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11668 Although this refactoring does not fix the problem directly,
11669 we might as well have Gawk use the now-preferred glibc style for when
11670 __builtin_expect is unavailable.
11671 * posix/regex_internal.h (BE): Remove.
11672 All uses replaced by __glibc_unlikely or __glibc_likely.
11673
11674 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11675
11676 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11677 bits/msq-pad.h.
11678 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11679 instead of <bits/wordsize.h>.
11680 (msgqnum_t): Define as __syscall_ulong_t.
11681 (msglen_t): Likewise.
11682 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11683 and [__MSQ_PAD_AFTER_TIME].
11684 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11685 __syscall_ulong_t instead of unsigned long int.
11686 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11687 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11688 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11689 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11690 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11691 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11692 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11693 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11694 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11695 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11696 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11697
11698 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11699
11700 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11701 (struct shmid_ds): Condition padding after time fields on
11702 [__WORDSIZE == 32].
11703 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11704 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11705 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11706
11707 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11708 (struct semid_ds): Condition padding after time fields on
11709 [__WORDSIZE == 32].
11710 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11711 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11712 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11713 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11714
11715 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11716 (struct msqid_ds): Condition padding after time fields on
11717 [__WORDSIZE == 32].
11718 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11719 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11720 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11721 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11722
11723 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11724
11725 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11726
11727 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11728
11729 * libio/tst-readline.c (TIMEOUT): Define.
11730
11731 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11732
11733 mktime fix for Gnulib + coreutils
11734 [BZ#23745]
11735 This fix affects only Gnulib. Problem discovered when
11736 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11737 * time/mktime.c:
11738 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11739 Do not define since it is not used. Defining an unused static
11740 function prompts a warning from GCC when Coreutils is configured
11741 with --enable-gcc-warnings.
11742
11743 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11744
11745 * benchtests/scripts/compare_bench.py (main): set float type on
11746 threshold argument.
11747
11748 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11749
11750 [BZ #23740]
11751 * localedata/locales/kl_GL (mon): Update, the relative case.
11752 (alt_mon): Add, fill with month names in the nominative case.
11753 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11754 (d_fmt): Set to "%b %d %Y".
11755
11756 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11757
11758 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11759 <bits/mman-linux.h>.
11760 (PROT_READ): Don't define here.
11761 (PROT_WRITE): Likewise.
11762 (PROT_EXEC): Likewise.
11763 (PROT_NONE): Likewise.
11764 (PROT_GROWSDOWN): Likewise.
11765 (PROT_GROWSUP): Likewise.
11766 (MAP_SHARED): Likewise.
11767 (MAP_PRIVATE): Likewise.
11768 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11769 [__USE_MISC] (MAP_FILE): Likewise.
11770 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11771 [__USE_MISC] (MAP_ANON): Likewise.
11772 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11773 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11774 (MCL_CURRENT): Likewise.
11775 (MCL_FUTURE): Likewise.
11776 (MCL_ONFAULT): Likewise.
11777 [__USE_MISC] (MADV_NORMAL): Likewise.
11778 [__USE_MISC] (MADV_RANDOM): Likewise.
11779 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11780 [__USE_MISC] (MADV_WILLNEED): Likewise.
11781 [__USE_MISC] (MADV_DONTNEED): Likewise.
11782 [__USE_MISC] (MADV_FREE): Likewise.
11783 [__USE_MISC] (MADV_REMOVE): Likewise.
11784 [__USE_MISC] (MADV_DONTFORK): Likewise.
11785 [__USE_MISC] (MADV_DOFORK): Likewise.
11786 [__USE_MISC] (MADV_HWPOISON): Likewise.
11787 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11788 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11789 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11790 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11791 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11792 (__MAP_ANONYMOUS): New macro.
11793 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11794 <bits/mman-linux.h> inclusion.
11795 (MAP_FIXED): Likewise.
11796 (MS_SYNC): Likewise.
11797 (MS_ASYNC): Likewise.
11798 (MS_INVALIDATE): Likewise.
11799 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11800 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11801 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11802 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11803 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11804 [__USE_MISC] (MADV_DODUMP): Likewise.
11805 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11806 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11807
11808 [BZ #23735]
11809 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11810 Define.
11811 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11812 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11813 Add test-nldbl-redirect.
11814 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11815 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11816 $(objpfx)libnldbl_nonshared.a.
11817
11818 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11819
11820 * support/support.h (support_objdir_elf_ldso): New variable.
11821 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11822 * support/Makefile (CFLAGS-support_paths.c): Add definition
11823 for OBJDIR_ELF_LDSO_PATH.
11824 * support/test-container.c (main): Search for the ld.so
11825 which is also used by the testsuite.
11826
11827 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11828
11829 [BZ #20209]
11830 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11831 should be "sap" rather than "sab".
11832 (day): Fix spelling of Sunday, should be "sapaat" rather than
11833 "sabaat".
11834
11835 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11836
11837 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11838
11839 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11840
11841 [BZ #19444]
11842 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11843 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11844 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11845
11846 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11847
11848 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11849
11850 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11851
11852 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11853 Add -mrtm.
11854 (CFLAGS-elision-unlock.c): Likewise.
11855 (CFLAGS-elision-timed.c): Likewise.
11856 (CFLAGS-elision-trylock.c): Likewise.
11857 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11858
11859 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11860
11861 [BZ #21037]
11862 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11863 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11864 new fd_to_filename interface.
11865 * libio/freopen64.c (freopen64): Likewise.
11866 * libio/tst-memstream.h: New file.
11867 * libio/tst-memstream4.c: Likewise.
11868 * libio/tst-wmemstream4.c: Likewise.
11869 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11870 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11871 and remove internal dynamic allocation.
11872
11873 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11874
11875 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11876 (MREMAP_MAYMOVE): Do not define here.
11877 [__USE_GNU] (MREMAP_FIXED): Likewise.
11878 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11879 (MREMAP_MAYMOVE): Define here instead.
11880 [__USE_GNU] (MREMAP_FIXED): Likewise.
11881 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11882 (MREMAP_MAYMOVE): Remove.
11883 [__USE_GNU] (MREMAP_FIXED): Likewise.
11884
11885 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11886
11887 * math/fromfp.h: Do not include <math_private.h>.
11888 * math/s_cacosh_template.c: Likewise.
11889 * math/s_casin_template.c: Likewise.
11890 * math/s_casinh_template.c: Likewise.
11891 * math/s_ccos_template.c: Likewise.
11892 * math/s_cproj_template.c: Likewise.
11893 * math/s_fdim_template.c: Likewise.
11894 * math/s_fmaxmag_template.c: Likewise.
11895 * math/s_fminmag_template.c: Likewise.
11896 * math/s_iseqsig_template.c: Likewise.
11897 * math/s_ldexp_template.c: Likewise.
11898 * math/s_nextdown_template.c: Likewise.
11899 * math/w_log1p_template.c: Likewise.
11900 * math/w_scalbln_template.c: Likewise.
11901 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11902 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11903 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11904 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11905 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11906 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11907 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11908 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11909 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11910 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11911 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11912 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11913 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11914 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11915 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11916 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11917 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11918 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11919 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11920 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11921 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11922 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11923 * sysdeps/ieee754/k_standardf.c: Likewise.
11924 * sysdeps/ieee754/k_standardl.c: Likewise.
11925 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11926 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11927 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11928 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11929 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11930 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11931 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11932 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11933 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11934 * sysdeps/ieee754/s_signgam.c: Likewise.
11935 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11936 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11937 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11938 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11939 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11940 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11941 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11942 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11943 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11944 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11945 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11946 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11947 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11948 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11949 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11950 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11951 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11952 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11953 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11954 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11955 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11956 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11957 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11958 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11959 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11960 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11961 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11962 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11963 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11964 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11965 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11966 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11967 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11968 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11969 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11970 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11971 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11972 <math_private.h>.
11973 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11974
11975 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11976
11977 [BZ #23716]
11978 * sysdeps/i386/dl-cet.c: Removed.
11979 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11980 prototype.
11981 (_dl_runtime_profile_shstk): Likewise.
11982 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11983 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11984
11985 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11986
11987 [BZ #23579]
11988 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11989 do_test_with_invalid_iov): New tests.
11990 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11991 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11992 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11993 errno is ENOSYS.
11994 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11995 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11996 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11997
11998 2018-09-27 Joseph Myers <joseph@codesourcery.com>
11999
12000 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12001 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12002 (MATH_REDIRECT_BINARY_ARGS): New macro.
12003 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12004 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12005 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12006 header inclusion.
12007 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12008 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12009 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12010 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12011 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12012 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12013 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12014 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12015 Likewise.
12016 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12017 Likewise.
12018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12020 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12021 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12023 Likewise.
12024 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12025 Likewise.
12026 * sysdeps/generic/math_private_calls.h
12027 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12028 Do not declare and define as an inline function.
12029 * math/divtc3.c (__divtc3): Use copysign functions instead of
12030 __copysign variants.
12031 * math/multc3.c (__multc3): Likewise.
12032 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12033 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12034 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12035 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12036 Likewise.
12037 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12038 (__ieee754_yn): Likewise.
12039 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12040 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12041 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12042 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12043 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12044 (__sin): Likewise.
12045 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12046 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12047 Likewise.
12048 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12049 Likewise.
12050 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12051 Likewise.
12052 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12053 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12054 Likewise.
12055 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12056 (__ieee754_ynf): Likewise.
12057 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12058 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12059 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12060 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12061 Likewise.
12062 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12063 (__ieee754_ynl): Likewise.
12064 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12065 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12066 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12067 Likewise.
12068 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12069 (__ieee754_ynl): Likewise.
12070 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12071 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12072 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12073 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12074 Likewise.
12075 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12076 (__ieee754_ynl)
12077 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12078 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12079 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12080 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12081 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12082
12083 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12084 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12085 using MATH_REDIRECT.
12086 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12087 header inclusion.
12088 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12089 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12090 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12091 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12092 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12096 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12099 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12100 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12101 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12102 (round): Redirect to __round.
12103 (__roundl): Call round instead of __round.
12104 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12105 Remove macro.
12106 [_ARCH_PWR5X] (__roundf): Likewise.
12107 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12108 functions instead of __round variants.
12109 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12110 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12111 Likewise.
12112 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12113 Likewise.
12114 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12115 Likewise.
12116 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12117 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12118 __lroundl.
12119 (__ieee754_expl): Call roundl instead of __roundl.
12120
12121 2018-09-27 Andreas Schwab <schwab@suse.de>
12122
12123 [BZ #23717]
12124 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12125 (do_test): Make st1 static.
12126
12127 2018-09-26 Andreas Schwab <schwab@suse.de>
12128
12129 [BZ #23707]
12130 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12131 * elf/Makefile (tests): Add tst-unwind-ctor.
12132 (modules-names): Add tst-unwind-ctor-lib.
12133 ($(objpfx)tst-unwind-ctor): Depend on
12134 $(objpfx)tst-unwind-ctor-lib.so.
12135
12136 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12137
12138 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12139 file. Most contents moved from ....
12140 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12141 and include <bits/mman-map-flags-generic.h>.
12142 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12143 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12144 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12145 <bits/mman-map-flags-generic.h>.
12146 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12147 macros defined in <bits/mman-map-flags-generic.h>.
12148 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12149 <bits/mman-map-flags-generic.h>.
12150 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12151 defined in <bits/mman-map-flags-generic.h>.
12152
12153 2018-09-26 Andreas Schwab <schwab@suse.de>
12154
12155 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12156 output.
12157
12158 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12159 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12160 Fangrui Song <maskray@google.com>
12161
12162 [BZ #20480]
12163 * config.make.in (have-textrel_ifunc): New define.
12164 * configure.ac: Add check if linker supports textrel relocation with
12165 ifunc.
12166 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12167 tst-ifunc-textrel.
12168 (CFLAGS-tst-ifunc-textrel.c): New rule.
12169 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12170 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12171 * elf/tst-ifunc-textrel.c: New file.
12172
12173 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12174
12175 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12176 <bits/procfs-prregset.h>.
12177 (prgregset_t): Define using __prgregset_t.
12178 (prfpregset_t): Define using __prfpregset_t.
12179 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12180 (sysdep_headers): Add bits/procfs-prregset.h.
12181 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12182 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12183 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12184 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12185
12186 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12187 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12188 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12189 pr_uid and pr_gid.
12190 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12191 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12192 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12193 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12194 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12195 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12196 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12197 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12198 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12199 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12200 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12201 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12202 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12203 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12204 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12205 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12206 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12207 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12208 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12209 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12210 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12211 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12212 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12213 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12214
12215 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12216 AArch64 version. Include <bits/procfs.h>.
12217 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12218 (sysdep_headers): Add bits/procfs.h.
12219 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12220 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12221 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12222 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12223 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12224 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12225 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12226 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12227 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12228 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12229 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12230 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12231 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12232 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12233 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12234 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12235 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12236
12237 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12238
12239 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12240 Use libsupport.
12241
12242 2018-09-25 Arjun Shankar <arjun@redhat.com>
12243
12244 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12245 (__gconv_max_path_elem_len): Likewise.
12246 (__gconv_nmodules): Likewise.
12247 (__gconv_get_path): Likewise.
12248 (path_elem): Move to ...
12249 * iconv/gconv_conf.c: ... here.
12250 (__gconv_get_path): Mark function static.
12251 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12252 * iconv/gconv_open.c: ... here.
12253
12254 2018-09-24 Andreas Schwab <schwab@suse.de>
12255
12256 * scripts/haveversions.awk: New file.
12257 * Makerules ($(common-objpfx)Versions.def)
12258 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12259 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12260 Move rules ...
12261 * Makeconfig ($(common-objpfx)Versions.def)
12262 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12263 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12264 ... here.
12265 ($(common-objpfx)Versions.mk): New rule. Include it.
12266 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12267 Emit error if build-obsolete-nsl = yes.
12268 * manual/install.texi (Configuring and compiling): Describe
12269 --enable-obsolete-nsl as unavaiable after version 2.28.
12270 * INSTALL: Regenerate.
12271
12272 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12273
12274 * NEWS: Add note about new TLE support on powerpc64le.
12275 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12276 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12277 __ununsed1.
12278 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12279 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12280 * sysdeps/powerpc/powerpc32/sysdep.h,
12281 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12282 ABORT_TRANSACTION): Remove macros.
12283 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12284 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12285 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12287 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12288 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12289 usage.
12290 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12291
12292 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12293
12294 [BZ #10425]
12295 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12296 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12297 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12298 which is the same as in it_IT.
12299 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12300 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12301
12302 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12303
12304 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12305 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12306 using MATH_REDIRECT.
12307 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12308 header inclusion.
12309 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12310 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12311 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12312 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12313 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12314 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12316 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12318 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12319 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12320 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12321 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12322 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12323 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12324 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12325 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12326 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12327 (ceil): Redirect to __ceil.
12328 (floor): Redirect to __floor.
12329 (trunc): Redirect to __trunc.
12330 (__truncl): Call trunc instead of __trunc.
12331 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12332 Remove macro.
12333 [_ARCH_PWR5X] (__truncf): Likewise.
12334 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12335 trunc functions instead of __trunc variants.
12336 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12337 Likewise.
12338 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12339 Likewise.
12340 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12341 Likewise.
12342 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12343 Likewise.
12344
12345 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12346 [__i586__ || __pentium__].
12347 [__i486__]: Handle explicitly.
12348 (HAS_CPUID): Define to 1 if above macros are undefined.
12349 (HAS_I586): Likewise.
12350 (HAS_I686): Likewise.
12351
12352 2018-09-20 Florian Weimer <fweimer@redhat.com>
12353
12354 * misc/tst-gethostid.c: New file.
12355 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12356 (tst-gethostid): Link with -ldl.
12357
12358 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12359
12360 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12361 value from gethostbyname_r.
12362
12363 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12364
12365 * stdlib/tst-setcontext9.c (f1): Rename to...
12366 (f1a): ... this.
12367 (f1b): New function implementing lower half of f1 in alternate stack.
12368
12369 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12370
12371 Fix mktime localtime offset confusion
12372 [BZ #23603]
12373 * include/time.h (__mktime_internal): The localtime offset is now
12374 of type long int instead of time_t. This is the longstanding type
12375 in glibc, and it is more than enough to represent difference
12376 between localtime and gmtime even if it is 32 bits and time_t is
12377 64. Changing it now will let us avoid an unnecessary change when
12378 time_t is widened to 64 bits on 32-bit platforms.
12379 * time/mktime-internal.h (mktime_offset_t): Now long int.
12380
12381 Merge mktime, timegm from upstream Gnulib
12382 [BZ #23603][BZ #16346]
12383 This fixes some obscure problems with integer overflow.
12384 Although it looks scary, it is almost all a byte-for-byte copy
12385 from Gnulib, and the Gnulib code has been tested reasonably well.
12386 * include/intprops.h: New file, copied from Gnulib.
12387 * include/verify.h, time/mktime-internal.h:
12388 New tiny files, simplified from Gnulib.
12389 * time/mktime.c: Copy from Gnulib. This has the following changes:
12390 Do not include config.h if DEBUG_MKTIME is nonzero.
12391 Include stdbool.h, intprops.h, verify.h.
12392 Include string.h only if needed.
12393 Include stdlib.h on MS-Windows.
12394 Include mktime-internal.h.
12395 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12396 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12397 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12398 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12399 simplify later conditionals; default the others to zero. Use
12400 these conditionals to express only the code needed on the current
12401 platform. In uses of these conditionals, explicitly spell out how
12402 _LIBC affects things, so it’s easier to review from a glibc
12403 viewpoint.
12404 (WRAPV): Remove; no longer needed now that we have
12405 systematic overflow checking.
12406 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12407 compartmentalize tzset issues. Move system-dependent tzsettish
12408 code here from mktime.
12409 (verify): Remove; now done by verify.h. All uses changed.
12410 (long_int): Use a more-conservative definition, to avoid
12411 integer overflow.
12412 (SHR): Remove, replacing with ...
12413 (shr): New function, which means we needn’t worry about side
12414 effects in args, and conversion analysis is simpler.
12415 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12416 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12417 (time_t_avg, time_t_add_ok): Remove.
12418 (mktime_min, mktime_max): New constants.
12419 (leapyear, isdst_differ): Use bool for booleans.
12420 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12421 Use long_int, not time_t, for mktime differences.
12422 (long_int_avg): New function, replacing time_t_avg.
12423 INT_ADD_WRAPV replaces time_t_add_ok.
12424 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12425 All uses changed.
12426 (convert_time): New function.
12427 (ranged_convert): Use it.
12428 (__mktime_internal): Last arg now points to mktime_offset_t, not
12429 time_t. All uses changed. This is a no-op on glibc, where
12430 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12431 offset guess. Directly check for integer overflow instead of
12432 using a heuristic that works only 99.9...% of the time.
12433 Access *OFFSET only once, to avoid an unlikely race if the
12434 compiler delays a load and if this cascades into a signed integer
12435 overflow.
12436 (mktime): Move tzsettish code to my_tzset, and move
12437 localtime_offset to within mktime so that it doesn’t
12438 need a separate ifdef.
12439 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12440 instead of localtime.
12441 * time/timegm.c: Copy from Gnulib. This has the following changes:
12442 Include mktime-internal.h.
12443 [!_LIBC]: Include config.h and time.h. Do not include
12444 timegm.h or time_r.h. Make __mktime_internal a macro,
12445 and include mktime-internal.h to get its declaration.
12446 (timegm): Temporary is now mktime_offset_t, not time_t.
12447 This affects only Gnulib.
12448
12449 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12450
12451 [BZ #23637]
12452 * string/test-strstr.c (pr23637): New function.
12453 (test_main): Add tests with longer needles.
12454 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12455 * string/strstr.c (AVAILABLE): Likewise.
12456
12457 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12458
12459 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12460
12461 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12462
12463 * NEWS: Mention pow improvements.
12464 * math/Makefile (type-double-routines): Add e_pow_log_data.
12465 * sysdeps/generic/math_private.h (__exp1): Remove.
12466 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12467 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12468 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12469 contraction.
12470 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12471 (exp_inline): Remove.
12472 (__ieee754_exp): Only single double input is handled.
12473 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12474 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12475 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12476 (__pow_log_data): Define.
12477 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12478 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12479 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12480 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12481 contraction.
12482 (CFLAGS-e_pow-fma4.c): Likewise.
12483
12484 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12485
12486 Simplify tzfile fstat failure code
12487 [BZ #21716]
12488 * time/tzfile.c (__tzfile_read): Simplify slightly.
12489
12490 Fix tzfile low-memory assertion failure
12491 [BZ #21716]
12492 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12493 when registering time zone abbreviations.
12494
12495 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12496
12497 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12498 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12499 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12500 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12501 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12502 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12503 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12504 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12505 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12506
12507 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12508 __ceil.
12509 (__ceill): Call ceil instead of __ceil.
12510 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12511 __floor.
12512 (__floorl): Call floor instead of __floor.
12513
12514 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12515
12516 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12517 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12518 using MATH_REDIRECT.
12519 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12520 header inclusion.
12521 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12522 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12523 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12524 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12525 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12526 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12527 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12528 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12529 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12530 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12531 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12533 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12534 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12535 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12536 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12537 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12538 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12539 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12540 Remove macro.
12541 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12542 functions instead of __ceil variants.
12543 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12544 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12545 Likewise.
12546 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12547 Likewise.
12548 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12549 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12550 Likewise.
12551 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12552 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12553
12554 [BZ #21286]
12555 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12556 constant.
12557 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12558 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12559 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12560 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12561 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12562 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12563 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12564 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12565 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12566 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12567 (ILL_BADIADDR): Remove constant.
12568 (TRAP_BRANCH): Likewise.
12569 (TRAP_HWBKPT): Likewise.
12570
12571 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12572
12573 [BZ #23656]
12574 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12575 Remove [_MIPS_SIM = _ABIN32] conditional case.
12576 (struct elf_prpsinfo): Likewise.
12577
12578 [BZ #23649]
12579 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12580 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12581 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12582 Likewise.
12583 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12584 elf_prpsinfo): Likewise.
12585 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12586 elf_prpsinfo): Likewise.
12587 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12588 Likewise.
12589
12590 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12591 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12592 using MATH_REDIRECT.
12593 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12594 header inclusion.
12595 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12596 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12597 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12598 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12599 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12600 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12601 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12602 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12603 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12604 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12605 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12606 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12607 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12608 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12609 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12610 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12611 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12612 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12613 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12616 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12617 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12618 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12619 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12620 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12621 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12622 __rint variants.
12623 * math/e_scalbf.c (invalid_fn): Likewise.
12624 * math/e_scalbl.c (invalid_fn): Likewise.
12625 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12626 Likewise.
12627 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12628 Likewise.
12629 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12630 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12631 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12632 Likewise.
12633 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12634 Likewise.
12635 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12636 Likewise.
12637 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12638 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12639
12640 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12641 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12642 New macro.
12643 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12644 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12645 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12646 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12647 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12648 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12649 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12650 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12651 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12652 && !NO_MATH_REDIRECT] (floor): Likewise.
12653 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12654 header inclusion.
12655 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12656 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12657 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12658 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12659 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12660 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12661 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12662 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12663 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12664 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12667 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12668 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12669 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12670 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12671 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12672 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12673 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12674 Remove macro.
12675 [_ARCH_PWR5X] (__floorf): Likewise.
12676 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12677 inline function.
12678 [__SSE4_1__] (__floorf): Likewise.
12679 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12680 instead of __floor variants.
12681 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12682 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12683 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12684 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12685 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12686 * math/w_tgamma_compat.c (__tgamma): Likewise.
12687 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12688 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12689 * math/w_tgammal_compat.c (__tgammal): Likewise.
12690 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12691 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12692 Likewise.
12693 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12694 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12695 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12696 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12697 Likewise.
12698 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12699 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12700 Likewise.
12701 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12702 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12703 Likewise.
12704 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12705 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12706 Likewise.
12707 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12708 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12709 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12710 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12711 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12712 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12713
12714 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12715
12716 * elf/Makefile (modules-names-tests): New variable.
12717
12718 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12719
12720 * NEWS: Mention log2 improvements.
12721 * math/Makefile (type-double-routines): Add e_log2_data.
12722 * sysdeps/i386/fpu/e_log2_data.c: New file.
12723 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12724 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12725 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12726 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12727 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12728 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12729
12730 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12731
12732 * NEWS: Mention log improvement.
12733 * math/Makefile (type-double-routines): Add e_log_data.
12734 * sysdeps/i386/fpu/e_log_data.c: New file.
12735 * sysdeps/ia64/fpu/e_log_data.c: New file.
12736 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12737 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12738 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12739 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12740 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12741 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12742
12743 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12744 Xuepeng Guo <xuepeng.guo@intel.com>
12745
12746 [BZ #23606]
12747 * sysdeps/i386/start.S: Include <sysdep.h>
12748 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12749 enabled. Add cfi_undefined (eip).
12750
12751 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12752
12753 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12754 (MOVQ): Likewise.
12755 (EXTRACT_WORDS64): Likewise.
12756 (INSERT_WORDS64): Likewise.
12757 (GET_FLOAT_WORD): Likewise.
12758 (SET_FLOAT_WORD): Likewise.
12759
12760 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12761 argument.
12762 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12763 build, but not for second build if --full-gcc. Use
12764 --enable-languages=all for second build if --full-gcc.
12765 (get_parser): Add --full-gcc option.
12766 (main): Update call to Context.
12767
12768 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12769
12770 [BZ #10797]
12771 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12772 Single Quotation Mark).
12773 (thousands_sep): Likewise.
12774 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12775 * localedata/locales/it_IT (thousands_sep): Use ".".
12776 (grouping): Use "3;3".
12777
12778 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12779
12780 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12781 x86_64 and i686 configs using --enable-obsolete-rpc
12782 --enable-obsolete-nsl.
12783
12784 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12785
12786 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12787
12788 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12789
12790 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12791 Increment size of new_argv by one.
12792
12793 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12794
12795 [BZ #17426]
12796 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12797 * localedata/locales/ar_IN (d_fmt): Likewise.
12798 * localedata/locales/bhb_IN (d_fmt): Likewise.
12799 * localedata/locales/bho_IN (d_fmt): Likewise.
12800 * localedata/locales/bn_BD (d_fmt): Likewise.
12801 * localedata/locales/bn_IN (d_fmt): Likewise.
12802 * localedata/locales/doi_IN (d_fmt): Likewise.
12803 * localedata/locales/gu_IN (d_fmt): Likewise.
12804 * localedata/locales/hi_IN (d_fmt): Likewise.
12805 * localedata/locales/hne_IN (d_fmt): Likewise.
12806 * localedata/locales/kn_IN (d_fmt): Likewise.
12807 * localedata/locales/mag_IN (d_fmt): Likewise.
12808 * localedata/locales/mai_IN (d_fmt): Likewise.
12809 * localedata/locales/mjw_IN (d_fmt): Likewise.
12810 * localedata/locales/ml_IN (d_fmt): Likewise.
12811 * localedata/locales/mni_IN (d_fmt): Likewise.
12812 * localedata/locales/mr_IN (d_fmt): Likewise.
12813 * localedata/locales/pa_IN (d_fmt): Likewise.
12814 * localedata/locales/raj_IN (d_fmt): Likewise.
12815 * localedata/locales/sat_IN (d_fmt): Likewise.
12816 * localedata/locales/sd_IN (d_fmt): Likewise.
12817 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12818 * localedata/locales/ta_IN (d_fmt): Likewise.
12819 * localedata/locales/ta_LK (d_fmt): Likewise.
12820 * localedata/locales/tcy_IN (d_fmt): Likewise.
12821 * localedata/locales/ur_IN (d_fmt): Likewise.
12822
12823 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12824 * localedata/locales/ks_IN (d_fmt): Likewise.
12825 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12826
12827 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12828 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12829 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12830 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12831
12832 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12833
12834 * NEWS: Mention exp and exp2 improvements.
12835 * math/Makefile (libm-support): Remove t_exp.
12836 (type-double-routines): Add math_err and e_exp_data.
12837 * sysdeps/aarch64/libm-test-ulps: Update.
12838 * sysdeps/arm/libm-test-ulps: Update.
12839 * sysdeps/i386/fpu/e_exp_data.c: New file.
12840 * sysdeps/i386/fpu/math_err.c: New file.
12841 * sysdeps/i386/fpu/t_exp.c: Remove.
12842 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12843 * sysdeps/ia64/fpu/math_err.c: New file.
12844 * sysdeps/ia64/fpu/t_exp.c: Remove.
12845 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12846 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12847 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12848 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12849 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12850 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12851 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12852 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12853 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12854 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12855 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12856 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12857 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12858 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12859 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12860 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12861
12862 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12863
12864 * sysdeps/alpha/fpu/math_private.h: Remove.
12865
12866 * sysdeps/generic/math_private.h
12867 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12868 Move this inline function ....
12869 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12870 * include/math.h [!_ISOMAC]: To here....
12871
12872 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12873
12874 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12875 code ....
12876 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12877 * include/fenv.h [!_ISOMAC]: ... to here.
12878 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12879 (feraiseexcept): Likewise.
12880 * math/fromfp.h: Do not include <fenv_private.h>.
12881 * math/s_cexp_template.c: Likewise.
12882 * math/s_csin_template.c: Likewise.
12883 * math/s_csinh_template.c: Likewise.
12884 * math/s_ctan_template.c: Likewise.
12885 * math/s_ctanh_template.c: Likewise.
12886 * math/s_iseqsig_template.c: Likewise.
12887 * math/w_acos_compat.c: Likewise.
12888 * math/w_acosf_compat.c: Likewise.
12889 * math/w_acosl_compat.c: Likewise.
12890 * math/w_asin_compat.c: Likewise.
12891 * math/w_asinf_compat.c: Likewise.
12892 * math/w_asinl_compat.c: Likewise.
12893 * math/w_j0_compat.c: Likewise.
12894 * math/w_j0f_compat.c: Likewise.
12895 * math/w_j0l_compat.c: Likewise.
12896 * math/w_j1_compat.c: Likewise.
12897 * math/w_j1f_compat.c: Likewise.
12898 * math/w_j1l_compat.c: Likewise.
12899 * math/w_jn_compat.c: Likewise.
12900 * math/w_jnf_compat.c: Likewise.
12901 * math/w_log10_compat.c: Likewise.
12902 * math/w_log10f_compat.c: Likewise.
12903 * math/w_log10l_compat.c: Likewise.
12904 * math/w_log2_compat.c: Likewise.
12905 * math/w_log2f_compat.c: Likewise.
12906 * math/w_log2l_compat.c: Likewise.
12907 * math/w_log_compat.c: Likewise.
12908 * math/w_logf_compat.c: Likewise.
12909 * math/w_logl_compat.c: Likewise.
12910 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12911 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12912 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12913 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12914 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12915 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12916 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12917 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12918 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12919 * sysdeps/ieee754/k_standardl.c: Likewise.
12920 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12921 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12922 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12923 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12924 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12925 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12926 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12927 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12928 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12929 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12930 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12931 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12932 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12933 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12934 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12935 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12936 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12937 * math/w_ilogb_template.c: Include <fenv.h> instead of
12938 <fenv_private.h>.
12939 * math/w_llogb_template.c: Likewise.
12940 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12941 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12942
12943 2018-09-03 Joseph Myers <joseph@codesourcery.com>
12944
12945 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12946 * math/fromfp.h: Include <fenv_private.h>.
12947 * math/math-narrow.h: Likewise.
12948 * math/s_cexp_template.c: Likewise.
12949 * math/s_csin_template.c: Likewise.
12950 * math/s_csinh_template.c: Likewise.
12951 * math/s_ctan_template.c: Likewise.
12952 * math/s_ctanh_template.c: Likewise.
12953 * math/s_iseqsig_template.c: Likewise.
12954 * math/w_acos_compat.c: Likewise.
12955 * math/w_acosf_compat.c: Likewise.
12956 * math/w_acosl_compat.c: Likewise.
12957 * math/w_asin_compat.c: Likewise.
12958 * math/w_asinf_compat.c: Likewise.
12959 * math/w_asinl_compat.c: Likewise.
12960 * math/w_ilogb_template.c: Likewise.
12961 * math/w_j0_compat.c: Likewise.
12962 * math/w_j0f_compat.c: Likewise.
12963 * math/w_j0l_compat.c: Likewise.
12964 * math/w_j1_compat.c: Likewise.
12965 * math/w_j1f_compat.c: Likewise.
12966 * math/w_j1l_compat.c: Likewise.
12967 * math/w_jn_compat.c: Likewise.
12968 * math/w_jnf_compat.c: Likewise.
12969 * math/w_llogb_template.c: Likewise.
12970 * math/w_log10_compat.c: Likewise.
12971 * math/w_log10f_compat.c: Likewise.
12972 * math/w_log10l_compat.c: Likewise.
12973 * math/w_log2_compat.c: Likewise.
12974 * math/w_log2f_compat.c: Likewise.
12975 * math/w_log2l_compat.c: Likewise.
12976 * math/w_log_compat.c: Likewise.
12977 * math/w_logf_compat.c: Likewise.
12978 * math/w_logl_compat.c: Likewise.
12979 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12980 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12981 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12982 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12983 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12984 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12985 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12986 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12987 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12988 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12989 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12990 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12991 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12992 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12993 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12994 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12995 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12996 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12997 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12998 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12999 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13000 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13001 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13002 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13003 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13004 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13005 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13006 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13007 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13008 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13009 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13010 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13011 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13012 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13013 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13014 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13015 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13016 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13017 * sysdeps/ieee754/k_standardl.c: Likewise.
13018 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13019 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13020 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13021 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13022 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13023 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13024 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13025 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13026 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13027 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13028 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13029 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13030 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13031 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13032 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13033 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13034 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13035 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13036 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13037 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13038 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13039 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13040 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13041 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13042 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13043 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13044 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13045 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13046 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13047 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13048 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13049 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13050 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13051 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13052 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13053 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13054 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13055 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13056 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13057 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13058 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13059 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13060 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13061 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13062 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13063 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13064 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13065 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13066 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13067 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13068 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13069 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13070 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13071 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13072 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13073 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13074 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13075 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13076 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13077 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13078 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13079 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13080 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13081 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13082 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13083 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13084 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13085 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13086 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13087 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13088 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13089
13090 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13091
13092 [BZ #20271]
13093 * include/stdio.h (__libc_fatal): Mention newline in comment.
13094 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13095 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13096 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13097 * nss/nsswitch.c (__nss_next2): Likewise.
13098 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13099 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13100 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13101 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13102 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13103 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13104 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13105 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13106 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13107 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13108 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13109 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13110 (__netlink_assert_response): Likewise.
13111
13112 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13113
13114 * conform/glibcconform.py: New file.
13115 * conform/list-header-symbols.py: Likewise.
13116 * conform/list-header-symbols.pl: Remove.
13117 * conform/Makefile (tests-special): Only add linknamespace tests
13118 if [PYTHON].
13119 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13120
13121 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13122
13123 [BZ #23597]
13124 * support/Makefile (libsupport-routines): Add
13125 support_copy_file_range and xcopy_file_range.
13126 * support/support.h: Include <sys/types.h>.
13127 (support_copy_file_range): New prototype.
13128 * support/support_copy_file_range.c: New file. Copied and
13129 modified from io/copy_file_range-compat.c.
13130 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13131 instead of copy_file_range.
13132 * support/xcopy_file_range.c: New file.
13133 * support/xunistd.h (xcopy_file_range): New prototype.
13134
13135 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13136
13137 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13138 xpthread_create and xpthread_join.
13139
13140 2018-08-30 Florian Weimer <fweimer@redhat.com>
13141
13142 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13143
13144 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13145
13146 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13147 if malloc fails.
13148
13149 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13150
13151 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13152 and minus_oflow as non-finite.
13153
13154 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13155
13156 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13157 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13158 moved to fenv_private.h except for ...
13159 (TOINT_INTRINSICS): Kept in math_private.h.
13160 (roundtoint): Likewise.
13161 (converttoint): Likewise.
13162 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13163 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13164 * sysdeps/arm/math_private.h: Remove.
13165 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13166 ....
13167 * sysdeps/generic/math_private.h: ... this file. Include
13168 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13169 Include <fenv_private.h>. Remove functions and macros moved to
13170 fenv_private.h.
13171 * sysdeps/i386/fpu/math_private.h: Remove.
13172 * sysdeps/mips/math_private.h: Move to ....
13173 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13174 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13175 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13176 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13177 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13178 * sysdeps/powerpc/fpu/math_private.h: Do not include
13179 <fenv_private.h>.
13180 * sysdeps/riscv/rvf/math_private.h: Move to ....
13181 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13182 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13183 <fenv_private.h>.
13184 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13185 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13186 * sysdeps/sparc/fpu/math_private.h: Remove.
13187 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13188 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13189 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13190 <fenv_private.h>.
13191 * sysdeps/x86_64/fpu/math_private.h: Do not include
13192 <sysdeps/i386/fpu/fenv_private.h>.
13193
13194 2018-08-28 Florian Weimer <fweimer@redhat.com>
13195
13196 [BZ #23578]
13197 * posix/tst-regcomp-truncated.c: New file.
13198 * posix/Makefile (tests): Add it.
13199 (tst-regcomp-truncated.out): Depend on generated locales.
13200
13201 2018-08-28 Florian Weimer <fweimer@redhat.com>
13202
13203 * support/test-container.c (main): Treat unshare failure with
13204 EPERM as an unsupported test.
13205
13206 2018-08-28 Florian Weimer <fweimer@redhat.com>
13207
13208 [BZ #23520]
13209 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13210 * nscd/netgroupcache.c
13211 (addgetnetgrentX): Add tofreep parameter. Do not free
13212 heap-allocated buffer.
13213 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13214 (addgetnetgrentX_ignore): New function.
13215 (addgetnetgrent): Call it.
13216 (readdgetnetgrent): Likewise.
13217
13218 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13219
13220 * string/memmem.c: Use memcmp for first match.
13221
13222 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13223
13224 [BZ #17426]
13225 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13226
13227 2018-08-27 DJ Delorie <dj@redhat.com>
13228
13229 * support/Makefile (others): Don't list programs explicitly as a
13230 dependency of "others".
13231
13232 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13233
13234 * sysdeps/generic/math-tests-trap-force.h: New file.
13235 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13236 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13237 * sysdeps/powerpc/math-tests.h: Remove file.
13238 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13239
13240 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13241 Torvald Riegel <triegel@redhat.com>
13242
13243 [BZ #23538]
13244 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13245 Update r to include the set wake-request flag if waiters are
13246 remaining after spinning.
13247
13248 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13249
13250 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13251
13252 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13253
13254 [BZ #23578]
13255 regex: fix uninitialized memory access
13256 I introduced this bug into gnulib in commit
13257 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13258 eventually it was merged into glibc. The bug was found by
13259 project-repo <bugs@feusi.co> and reported here:
13260 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13261 Diagnosis and draft fix reported by Assaf Gordon here:
13262 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13263 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13264 * posix/regex_internal.c (build_wcs_upper_buffer):
13265 Fix bug when mbrtowc returns 0.
13266
13267 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13268
13269 * po/be.po: Update translation.
13270
13271 2018-08-24 DJ Delorie <dj@delorie.com>
13272
13273 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13274 $(libunwind).
13275
13276 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13277
13278 [BZ #23400]
13279 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13280 create temporary files in source tree.
13281
13282 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13283
13284 * sysdeps/generic/math-tests-trap.h: New file.
13285 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13286 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13287 * sysdeps/aarch64/math-tests.h: Remove file.
13288 * sysdeps/arm/math-tests.h: Likewise.
13289 * sysdeps/riscv/math-tests.h: Likewise.
13290 * sysdeps/aarch64/math-tests-trap.h: New file.
13291 * sysdeps/arm/math-tests-trap.h: Likewise.
13292 * sysdeps/riscv/math-tests-trap.h: Likewise.
13293
13294 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13295
13296 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13297 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13298 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13299 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13300 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13301 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13302 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13303 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13304 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13305 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13306 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13307 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13308 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13309 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13310 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13311 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13312 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13313 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13314
13315 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13316
13317 * sysdeps/generic/math-tests-exceptions.h: New file.
13318 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13319 (EXCEPTION_TESTS_float): Do not define here.
13320 (EXCEPTION_TESTS_double): Likewise.
13321 (EXCEPTION_TESTS_long_double): Likewise.
13322 (EXCEPTION_TESTS_float128): Likewise.
13323 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13324 Likewise.
13325 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13326 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13327 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13328 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13329 * sysdeps/mips/math-tests.h: Likewise.
13330 * sysdeps/nios2/math-tests.h: Likewise.
13331 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13332 (EXCEPTION_TESTS_float): Do not define here.
13333 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13334 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13335 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13336
13337 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13338
13339 * NEWS: Move optimized sinf entry to 2.29.
13340
13341 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13342
13343 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13344
13345 2018-08-22 DJ Delorie <dj@redhat.com>
13346
13347 * Makefile (testroot.pristine): New rules to initialize the
13348 test-in-container "testroot".
13349 * Makerules (all-testsuite): Add tests-container.
13350 * Rules (tests-expected): Add tests-container.
13351 (binaries-all-tests): Likewise.
13352 (tests-container): New, run these tests in the testroot container.
13353 * support/Makefile (others): Add *-container, support_paths.c,
13354 xmkdirp, and links-dso-program.
13355 * support/links-dso-program-c.c: New.
13356 * support/links-dso-program.cc: New.
13357 * support/test-container.c: New.
13358 * support/shell-container.c: New.
13359 * support/echo-container.c: New.
13360 * support/true-container.c: New.
13361 * support/xmkdirp.c: New.
13362 * support/xsymlink.c: New.
13363 * support/support_paths.c: New.
13364 * support/support.h: Add support paths prototypes.
13365 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13366
13367 * nss/tst-nss-test3.c: Convert to test-in-container.
13368 * nss/tst-nss-test3.root/: New.
13369
13370 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13371
13372 regex: port Gnulib code to z/OS POSIX environment
13373 Problem reported by Arnold Robbins in:
13374 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13375 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13376 Undef.
13377
13378 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13379
13380 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13381 (ROUNDING_TESTS_double): Remove.
13382 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13383 (ROUNDING_TESTS_double): Remove.
13384 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13385 (ROUNDING_TESTS_double): Remove.
13386 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13387 (ROUNDING_TESTS_float): Remove.
13388 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13389 (ROUNDING_TESTS_float): Remove.
13390 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13391 (ROUNDING_TESTS_float): Remove.
13392 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13393 !TEST_MATHVEC here.
13394 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13395 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13396
13397 * sysdeps/generic/math-tests-rounding.h: New file.
13398 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13399 (ROUNDING_TESTS_float): Do not define here.
13400 (ROUNDING_TESTS_double): Likewise.
13401 (ROUNDING_TESTS_long_double): Likewise.
13402 (ROUNDING_TESTS_float128): Likewise.
13403 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13404 (ROUNDING_TESTS_double): Undefine before defining.
13405 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13406 (ROUNDING_TESTS_double): Undefine before defining.
13407 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13408 (ROUNDING_TESTS_double): Undefine before defining.
13409 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13410 (ROUNDING_TESTS_float): Undefine before defining.
13411 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13412 (ROUNDING_TESTS_float): Undefine before defining.
13413 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13414 (ROUNDING_TESTS_float): Undefine before defining.
13415 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13416 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13417 not define here.
13418 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13419 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13420 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13421 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13422 (ROUNDING_TESTS_float): Do not define here.
13423 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13424 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13425 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13426 (ROUNDING_TESTS_float): Likewise.
13427 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13428 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13429 * sysdeps/mips/math-tests.h [__mips_soft_float]
13430 (ROUNDING_TESTS_float): Likewise.
13431 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13432 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13433 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13434 (ROUNDING_TESTS_double): Likewise.
13435 (ROUNDING_TESTS_long_double): Likewise.
13436
13437 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13438
13439 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13440 (PF_XDP): New macro.
13441 (AF_XDP): New macro.
13442 (SOL_XDP): New macro.
13443
13444 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13445
13446 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13447 (TCP_INQ): Likewise.
13448 (TCP_CM_INQ): Likewise.
13449 (TCP_REPAIR_ON): Likewise.
13450 (TCP_REPAIR_OFF): Likewise.
13451 (TCP_REPAIR_OFF_NO_WP): Likewise.
13452 (struct tcp_zerocopy_receive): New type.
13453
13454 2018-08-21 Florian Weimer <fweimer@redhat.com>
13455
13456 * support/support.h (support_descriptor_supports_holes): Declare.
13457 * support/Makefile (libsupport-routines): Add
13458 support_descriptor_supports_holes.
13459 * support/support_descriptor_supports_holes.c: New file.
13460 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13461 and stop testing if holes are not supported.
13462 * io/test-lfs.c (do_prepare): Likewise.
13463 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13464 Likewise.
13465 * timezone/tst-tzset.c (create_tz_file): Likewise.
13466 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13467 variable.
13468 (do_prepare): Set it.
13469 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13470
13471 2018-08-21 Florian Weimer <fweimer@redhat.com>
13472
13473 [BZ #17248]
13474 * Makeconfig (+cflags): Do not sort (and deduplicate).
13475
13476 2018-08-21 Florian Weimer <fweimer@redhat.com>
13477
13478 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13479 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13480
13481 2018-08-20 Florian Weimer <fweimer@redhat.com>
13482
13483 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13484 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13485
13486 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13487
13488 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13489 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13490 and ssi_arch members.
13491
13492 * elf/elf.c (NT_VMCOREDD): New macro.
13493 (AT_MINSIGSTKSZ): Likewise.
13494
13495 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13496
13497 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13498 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13499 s_cosf-ppc64 and s_cosf-power8.
13500 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13501 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13502 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13503 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13507 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13510 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13511 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13512
13513 2018-08-17 Florian Weimer <fweimer@redhat.com>
13514
13515 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13516
13517 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13518
13519 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13520
13521 2018-08-16 Florian Weimer <fweimer@redhat.com>
13522
13523 * configure.ac: Add --with-nonshared-cflags option.
13524 * config.make.in (extra-nonshared-cflags): Set variable.
13525 * Makeconfig (CFLAGS-.oS): Use it.
13526 * manual/install.texi (Configuring and compiling): Document
13527 --with-nonshared-cflags.
13528 * configure: Regenerate.
13529 * INSTALL: Likewise.
13530
13531 2018-08-16 Florian Weimer <fweimer@redhat.com>
13532
13533 * Makeconfig (ASFLAGS): Always append required assembler flags.
13534
13535 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13536
13537 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13538 (malloc_consolidate): Likewise.
13539
13540 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13541
13542 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13543
13544 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13545
13546 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13547 every strlen call.
13548
13549 * benchtests/bench-strlen.c: Print performance numbers in json.
13550
13551 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13552
13553 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13554 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13555 only for little endian.
13556 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13557 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13558 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13559 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13560 Add check for little endian.
13561 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13562 (__strcmp_power9): Add check for little endian.
13563 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13564 Add check for little endian.
13565 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13566 (__strncmp_power9): Add check for little endian.
13567 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13568 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13569 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13570 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13571 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13572
13573 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13574
13575 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13576 [!STRLEN](STRLEN): Set to __strlen.
13577 * sysdeps/aarch64/multiarch/strlen.c: New file.
13578 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13579 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13580 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13581 (__libc_ifunc_impl_list): Add strlen.
13582 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13583 strlen_generic and strlen_asimd.
13584
13585 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13586
13587 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13588 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13589 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13590
13591 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13592
13593 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13594
13595 2018-08-14 Florian Weimer <fweimer@redhat.com>
13596
13597 [BZ #23519]
13598 * include/stdio.h (__vfxprintf): Declare.
13599 * stdio-common/fxprintf.c (__vfxprintf): New function.
13600 (__fxprintf): Call it.
13601 * misc/err.c (convert_and_print): Remove function.
13602 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13603 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13604 * misc/Makefile (tests): Add tst-warn-wide.
13605 * misc/tst-warn-wide.c: New file.
13606
13607 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13608 Szabolcs Nagy <szabolcs.nagy@arm.com>
13609
13610 * NEWS: Mention sinf, cosf, sincosf.
13611 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13612 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13613 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13614 constants rather than including generic sincosf.h.
13615 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13616 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13617 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13618 (reduced_cos): Remove.
13619 (sinf_poly): New function.
13620 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13621
13622 2018-08-14 Florian Weimer <fweimer@redhat.com>
13623
13624 [BZ #23521]
13625 [BZ #23522]
13626 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13627 processing, bail out if no room, and close the stream before
13628 returning ERANGE.
13629 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13630 (tst-nss-files-alias-leak): Link with libdl.
13631 (tst-nss-files-alias-leak.out): Depend on nss_files.
13632
13633 * nss/tst-nss-files-alias-leak.c: New file.
13634
13635 2018-08-14 Florian Weimer <fweimer@redhat.com>
13636
13637 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13638 server_user, stat_user.
13639
13640 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13641
13642 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13643 version to 4.18.
13644 (io_pgetevents): New syscall.
13645 (rseq): Likewise.
13646
13647 * manual/install.texi (Configuring and compiling): Do not list
13648 tools used for testing pretty printers here.
13649 (Tools for Compilation): List Python, PExpect and GDB here.
13650 Update descriptions of uses of Perl and Python.
13651 * INSTALL: Regenerate.
13652
13653 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13654 version to 4.18.
13655
13656 2018-08-13 Florian Weimer <fweimer@redhat.com>
13657
13658 * misc/error.c (error): Add missing va_end call.
13659 (error_at_line): Likewise.
13660
13661 2018-08-13 Florian Weimer <fweimer@redhat.com>
13662
13663 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13664
13665 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13666
13667 * benchtests/scripts/benchout.schema.json (properties): Add
13668 new properties.
13669
13670 * benchtests/bench-skeleton.c (main): Add duration and
13671 iterations attributes.
13672
13673 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13674
13675 regex: Gnulib unibyte RRI uses bytes not chars
13676 Adjust the non-glibc code to agree with what Gawk needs for
13677 rational range interpretation (RRI) for regular expression ranges.
13678 In unibyte locales, Gawk wants ranges to use the underlying byte
13679 rather than the character code point. This change does not affect
13680 glibc proper.
13681 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13682 In unibyte locales, use the byte value rather than
13683 running it through btowc.
13684
13685 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13686
13687 * sysdeps/generic/math-tests-snan.h: New file.
13688 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13689 (SNAN_TESTS_float): Do not define here.
13690 (SNAN_TESTS_double): Likewise.
13691 (SNAN_TESTS_long_double): Likewise.
13692 (SNAN_TESTS_float128): Likewise.
13693 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13694 * sysdeps/i386/fpu/math-tests.h: Remove file.
13695 * sysdeps/ia64/math-tests-snan.h: New file.
13696 * sysdeps/ia64/math-tests.h: Remove file.
13697 * sysdeps/x86/math-tests.h: Likewise.
13698 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13699
13700 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13701 Szabolcs Nagy <szabolcs.nagy@arm.com>
13702
13703 * math/Makefile: Add s_sincosf_data.c.
13704 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13705 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13706 (sincosf_poly): Likewise.
13707 (reduce_small): Likewise.
13708 (reduce_large): Likewise.
13709 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13710 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13711 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13712 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13713
13714 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13715 Szabolcs Nagy <szabolcs.nagy@arm.com>
13716
13717 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13718 (converttoint): Use lround.
13719 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13720 document the semantics when TOINT_INTRINSICS is set.
13721 (converttoint): Likewise.
13722 (TOINT_RINT): Remove.
13723 (TOINT_SHIFT): Remove.
13724 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13725 path.
13726
13727 2018-08-10 Florian Weimer <fweimer@redhat.com>
13728
13729 [BZ #23497]
13730 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13731 function.
13732 (__old_getdents64): Use getdents64. Convert entries without
13733 moving them.
13734 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13735 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13736 tst-readdir64-compat.
13737
13738 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13739
13740 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13741 Fix unwind.
13742
13743 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13744
13745 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13746 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13747 code to s390x-mcount.h and #include it.
13748 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13749 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13750 (__fentry__): Add.
13751
13752 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13753
13754 * stdlib/Versions: Remove __fentry__.
13755 * sysdeps/i386/Versions: Add __fentry__.
13756 * sysdeps/x86_64/Versions: Add __fentry__.
13757
13758 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13759
13760 * sysdeps/s390/Makefile: Register the new tests.
13761 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13762 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13763 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13764 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13765 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13766 * sysdeps/s390/tst-dl-runtime.c: New file.
13767
13768 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13769
13770 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13771 Do not clobber R0.
13772
13773 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13774
13775 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13776 Do not clobber R0.
13777
13778 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13779
13780 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13781 Do not clobber R0.
13782
13783 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13784
13785 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13786 Do not clobber R0.
13787
13788 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13789
13790 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13791 Use symbolic offsets for stack variables.
13792
13793 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13794
13795 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13796 Use symbolic offsets for stack variables.
13797
13798 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13799
13800 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13801 Use symbolic offsets for stack variables.
13802
13803 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13804
13805 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13806 Use symbolic offsets for stack variables.
13807
13808 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13809
13810 * math/gen-libm-test.py: New file.
13811 * math/gen-libm-test.pl: Remove.
13812 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13813 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13814 gen-libm-test.pl.
13815 ($(libm-test-c-noauto-obj)): Likewise.
13816 ($(libm-test-c-auto-obj)): Likewise.
13817 ($(libm-test-c-narrow-obj)): Likewise.
13818 (regen-ulps): Likewise.
13819 * math/README.libm-test: Update references to gen-libm-test.pl.
13820 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13821 referencing gen-libm-test.pl.
13822 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13823 * math/libm-test-support.c: Likewise.
13824 * math/libm-test-support.h: Likewise.
13825 * sysdeps/generic/libm-test-ulps: Likewise.
13826
13827 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13828
13829 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13830 Fix value.
13831
13832 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13833
13834 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13835 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13836
13837 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13838
13839 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13840 symbols.
13841 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13842 __pthread_setspecific): Add hidden proto.
13843 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13844 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13845
13846 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13847
13848 * benchtests/bench-string.h (buf1_size, buf2_size): New
13849 variables.
13850 (init_sizes): New function.
13851 (test_init): Use it.
13852 (alloc_buf, exit_error): New functions.
13853 (alloc_bufs): Use ALLOC_BUF.
13854 (realloc_bufs): Remove.
13855 * benchtests/bench-memcmp.c (do_test): Adjust.
13856 * benchtests/bench-memset-large.c (do_test): Likewise.
13857 * benchtests/bench-memset-walk.c (do_test): Likewise.
13858 * benchtests/bench-memset.c (do_test): Likewise.
13859 * benchtests/bench-strncmp.c (do_test): Likewise.
13860
13861 2018-08-06 Andreas Schwab <schwab@suse.de>
13862
13863 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13864 of CONST_THREAD_AREA.
13865
13866 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13867
13868 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13869 (STATE_SAVE_MASK): Likewise.
13870 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13871 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13872 (STATE_SAVE_MASK): Likewise.
13873 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13874 instead of <cpu-features.h>.
13875
13876 2018-08-03 DJ Delorie <dj@redhat.com>
13877
13878 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13879 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13880
13881 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13882
13883 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13884
13885 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13886 after TEST_* calls.
13887 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13888 * math/libm-test-logb.inc (logb_test_data): Likewise.
13889
13890 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13891
13892 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13893 * string/strstr.c (AVAILABLE): Likewise.
13894
13895 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13896
13897 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13898 <init-arch.h>.
13899 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13900 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13901 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13902
13903 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13904
13905 * po/be.po: Update translation.
13906
13907 * po/be.po: Update translation.
13908
13909 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13910
13911 * sysdeps/x86/cpu-features-offsets.sym
13912 (rtld_global_ro_offsetof): Removed.
13913 (CPU_FEATURES_SIZE): Likewise.
13914 (CPUID_OFFSET): Likewise.
13915 (CPUID_SIZE): Likewise.
13916 (CPUID_EAX_OFFSET): Likewise.
13917 (CPUID_EBX_OFFSET): Likewise.
13918 (CPUID_ECX_OFFSET): Likewise.
13919 (CPUID_EDX_OFFSET): Likewise.
13920 (FAMILY_OFFSET): Likewise.
13921 (MODEL_OFFSET): Likewise.
13922 (FEATURE_OFFSET): Likewise.
13923 (FEATURE_SIZ): Likewise.
13924 (COMMON_CPUID_INDEX_1): Likewise.
13925 (COMMON_CPUID_INDEX_7): Likewise.
13926 (FEATURE_INDEX_1): Likewise.
13927 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13928
13929 2018-08-02 Carlos O'Donell <carlos@redhat.com>
13930
13931 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13932 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13933 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13934 (install-locales): Depend on install-locale-archive.
13935 (install-locale-archive): Define.
13936 (install-locale-files): Define.
13937 (build-one-locale): Define macro.
13938 * manual/install.texi (Running make install): Document.
13939 * manual/INSTALL: Regenerate.
13940
13941 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13942
13943 * benchtests/scripts/compare_strings.py: Import traceback.
13944 (parse_file): Pretty-print error.
13945
13946 * NEWS: Mention the change.
13947 * elf/dl-tunables.list: Rename tune namespace to cpu.
13948 * sysdeps/powerpc/dl-tunables.list: Likewise.
13949 * sysdeps/x86/dl-tunables.list: Likewise.
13950 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13951 cpu.name.
13952 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13953 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13954 * manual/README.tunables: Likewise.
13955 * manual/tunables.texi: Likewise.
13956 * sysdeps/powerpc/cpu-features.c: Likewise.
13957 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13958 (init_cpu_features): Likewise.
13959 * sysdeps/x86/cpu-features.c: Likewise.
13960 * sysdeps/x86/cpu-features.h: Likewise.
13961 * sysdeps/x86/cpu-tunables.c: Likewise.
13962 * sysdeps/x86_64/Makefile: Likewise.
13963 * sysdeps/x86/dl-cet.c: Likewise.
13964
13965 2018-08-02 Joseph Myers <joseph@codesourcery.com>
13966
13967 [BZ #23479]
13968 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13969 [__mips_hard_float].
13970 (FE_UNDERFLOW): Likewise.
13971 (FE_OVERFLOW): Likewise.
13972 (FE_DIVBYZERO): Likewise.
13973 (FE_INVALID): Likewise.
13974 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13975 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13976 (FE_UPWARD): Likewise.
13977 (FE_DOWNWARD): Likewise.
13978 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13979 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13980 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13981 [__mips_hard_float].
13982 (FP_ROUNDMODE): Likewise.
13983 (FP_RND_NEAREST): Likewise.
13984 (FP_RND_ZERO): Likewise.
13985 (FP_RND_PINF): Likewise.
13986 (FP_RND_MINF): Likewise.
13987 (FP_EX_INVALID): Likewise.
13988 (FP_EX_OVERFLOW): Likewise.
13989 (FP_EX_UNDERFLOW): Likewise.
13990 (FP_EX_DIVZERO): Likewise.
13991 (FP_EX_INEXACT): Likewise.
13992 (FP_INIT_ROUNDMODE): Likewise.
13993 * sysdeps/mips/nofpu/fesetenv.c: New file.
13994 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13995
13996 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13997
13998 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13999 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14000 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14001 conditional on [FE_UPWARD].
14002
14003 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14004
14005 regex: fix memory leak in Gnulib
14006 Problem and fix reported by Assaf Gordon in:
14007 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14008 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14009 range_ends members too, as they are defined in 'struct
14010 re_charset_t' even if not _LIBC. This affects only Gnulib.
14011
14012 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14013
14014 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14015 ...
14016 (get_common_indices): This.
14017 (init_cpu_features): Updated.
14018
14019 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14020
14021 * sysdeps/generic/math-tests-snan-payload.h: New file.
14022 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14023 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14024 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14025 * sysdeps/generic/math-tests.h: Include
14026 <math-tests-snan-payload.h>.
14027 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14028 * sysdeps/hppa/math-tests.h: Remove file.
14029 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14030 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14031 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14032 Likewise.
14033
14034 * sysdeps/generic/math-tests-snan-cast.h: New file.
14035 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14036 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14037 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14038 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14039
14040 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14041
14042 * version.h (RELEASE): Set to "development".
14043 (VERSION): Set to "2.28.9000".
14044 * NEWS (2.29): New section.
14045
14046 * version.h (RELEASE): Set to "stable".
14047 (VERSION): Set to "2.28".
14048 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14049 * NEWS: Add the list of bugs fixed in 2.28.
14050
14051 * po/ca.po: Update to latest version.
14052 * po/cs.po: Likewise
14053 * po/da.po: Likewise
14054 * po/el.po: Likewise
14055 * po/eo.po: Likewise
14056 * po/es.po: Likewise
14057 * po/fi.po: Likewise
14058 * po/fr.po: Likewise
14059 * po/gl.po: Likewise
14060 * po/hu.po: Likewise
14061 * po/ia.po: Likewise
14062 * po/id.po: Likewise
14063 * po/it.po: Likewise
14064 * po/ja.po: Likewise
14065 * po/ko.po: Likewise
14066 * po/lt.po: Likewise
14067 * po/nb.po: Likewise
14068 * po/nl.po: Likewise
14069 * po/pt_BR.po: Likewise
14070 * po/ru.po: Likewise
14071 * po/rw.po: Likewise
14072 * po/sk.po: Likewise
14073 * po/sl.po: Likewise
14074 * po/tr.po: Likewise
14075 * po/zh_CN.po: Likewise
14076 * po/zh_TW.po: Likewise
14077
14078 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14079
14080 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14081 initialization...
14082 (init): ... before initializing libpthread.
14083
14084 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14085 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14086 (__mach_setup_tls): ... new function.
14087 (mach_setup_tls): New alias.
14088 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14089 __mach_setup_thread.
14090 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14091 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14092 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14093 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14094
14095 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14096
14097 * manual/install.texi: Update versions.
14098 * INSTALL: Regenerate.
14099
14100 * manual/contrib.texi (Contributors): Update contributions.
14101
14102 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14103
14104 * po/be.po: Update translations.
14105
14106 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14107
14108 * sysdeps/sh/libm-test-ulps: Update.
14109
14110 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14111
14112 * po/bg.po: Update translations.
14113 * po/de.po: Likewise.
14114 * po/hr.po: Likewise.
14115 * po/pt_BR.po: Likewise.
14116 * po/sv.po: Likewise.
14117 * po/vi.po: Likewise.
14118
14119 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14120
14121 [BZ #23467]
14122 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14123 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14124 (CFLAGS-tst-cet-property-1.o): New.
14125 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14126 ($(objpfx)tst-cet-property-2): Likewise.
14127 ($(objpfx)tst-cet-property-2.out): Likewise.
14128 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14129 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14130 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14131 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14132 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14133
14134 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14135
14136 [BZ #23458]
14137 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14138
14139 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14140
14141 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14142 __sbrk): Do not set attribute_hidden.
14143 * sysdeps/mach/hurd/not-errno.h: New file.
14144 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14145 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14146
14147 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14148
14149 * po/uk.po: Update translations.
14150 * po/cs.po: Likewise.
14151 * po/pl.po: Likewise.
14152
14153 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14154
14155 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14156 parse beyond the note end.
14157
14158 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14159
14160 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14161 kernel does not support OFD locks.
14162 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14163
14164 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14165
14166 * sysdeps/mach/hurd/Versions (libc): Make __access and
14167 __access_noerrno external so they can override the ld symbols.
14168 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14169 __writev, __open64, __access_noerrno extern so they can be overrided.
14170 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14171 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14172
14173 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14174
14175 * po/libc.pot: Regenerate.
14176
14177 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14178
14179 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14180
14181 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14182
14183 [BZ #23459]
14184 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14185 function.
14186 (init_cpu_features): Call get_extended_indices for both Intel
14187 and AMD CPUs.
14188 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14189 Remove "for AMD" comment.
14190
14191 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14192
14193 [BZ # 23456]
14194 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14195 COMMON_CPUID_INDEX_80000001.
14196
14197 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14198
14199 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14200 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14201
14202 2018-07-26 Florian Weimer <fweimer@redhat.com>
14203
14204 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14205 aliases for symbols not in the implementation namespace.
14206
14207 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14208
14209 [BZ #23393]
14210 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14211 lowercase in LATIN script.
14212 * localedata/Makefile (test-input): Add en_US.UTF-8.
14213 * localedata/en_US.UTF-8.in: New file.
14214 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14215 and restore old tests.
14216 * posix/tst-regexloc.c (do_test): Add back range expression test.
14217
14218 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14219
14220 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14221
14222 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14223
14224 * nptl/threads.h: Move to ...
14225 * sysdeps/nptl/threads.h: ... here.
14226 * sysdeps/hurd/stdc-predef.h: New file.
14227
14228 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14229
14230 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14231 tst-cet-setcontext-1 if CET is enabled.
14232 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14233 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14234
14235 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14236
14237 * include/threads.h: Move to ...
14238 * sysdeps/nptl/threads.h: ... here.
14239 * sysdeps/htl/threads.h: New file.
14240 * conform/Makefile (linknamespace-libs-ISO11): Use
14241 static-thread-library instead of linking libpthread.
14242 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14243
14244 2018-07-25 Florian Weimer <fweimer@redhat.com>
14245
14246 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14247 nanoseconds into seconds.
14248 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14249 (do_test): Likewise.
14250 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14251 (do_test): Likewise. Avoid nanosecond overflow and spurious
14252 timeouts due to system load.
14253 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14254 (child_wait): Increment it.
14255 (do_test): Wait as long as necessary until all expected threads
14256 have arrived.
14257
14258 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14259 H.J. Lu <hongjiu.lu@intel.com>
14260
14261 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14262 __ssp.
14263 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14264 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14265 (__push___start_context): New.
14266 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14267 <asm/prctl.h>.
14268 (__getcontext): Record the current shadow stack base. Save the
14269 caller's shadow stack pointer and base.
14270 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14271 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14272 (__push___start_context): New prototype.
14273 (__makecontext): Call __push___start_context to allocate a new
14274 shadow stack, push __start_context onto the new stack as well
14275 as the new shadow stack.
14276 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14277 <asm/prctl.h>.
14278 (__setcontext): Restore the target shadow stack.
14279 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14280 <asm/prctl.h>.
14281 (__swapcontext): Record the current shadow stack base. Save
14282 the caller's shadow stack pointer and base. Restore the target
14283 shadow stack.
14284 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14285 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14286 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14287
14288 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14289
14290 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14291 tst-setcontext8 and tst-setcontext9.
14292 * stdlib/tst-setcontext6.c: New file.
14293 * stdlib/tst-setcontext7.c: Likewise.
14294 * stdlib/tst-setcontext8.c: Likewise.
14295 * stdlib/tst-setcontext9.c: Likewise.
14296
14297 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14298
14299 * stdlib/Makefile ((tests): Add tst-setcontext5.
14300 * stdlib/tst-setcontext5.c: New file.
14301
14302 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14303
14304 * stdlib/Makefile (tests): Add tst-setcontext4.
14305 * stdlib/tst-setcontext4.c: New file.
14306
14307 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14308
14309 * stdlib/Makefile (tests): Add tst-swapcontext1.
14310 * stdlib/tst-swapcontext1.c: New test.
14311
14312 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14313
14314 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14315 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14316 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14317 and tst-cet-legacy-4c.
14318 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14319 and tst-cet-legacy-mod-4.
14320 (CFLAGS-tst-cet-legacy-2.c): New.
14321 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14322 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14323 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14324 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14325 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14326 ($(objpfx)tst-cet-legacy-1): Likewise.
14327 ($(objpfx)tst-cet-legacy-2): Likewise.
14328 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14329 ($(objpfx)tst-cet-legacy-2a): Likewise.
14330 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14331 ($(objpfx)tst-cet-legacy-4): Likewise.
14332 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14333 ($(objpfx)tst-cet-legacy-4a): Likewise.
14334 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14335 (tst-cet-legacy-4a-ENV): Likewise.
14336 ($(objpfx)tst-cet-legacy-4b): Likewise.
14337 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14338 (tst-cet-legacy-4b-ENV): Likewise.
14339 ($(objpfx)tst-cet-legacy-4c): Likewise.
14340 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14341 (tst-cet-legacy-4c-ENV): Likewise.
14342 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14343 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14344 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14345 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14346 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14347 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14348 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14349 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14350 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14351 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14352 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14353
14354 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14355
14356 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14357 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14358 with ssp_base.
14359 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14360 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14361 with ssp_base.
14362
14363 2018-07-25 Andreas Schwab <schwab@suse.de>
14364
14365 [BZ #23442]
14366 * locale/weightwc.h (findidx): Handle the case where usrc is a
14367 prefix of cp but one character too short.
14368
14369 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14370
14371 * NEWS: Add ISO C threads addition.
14372
14373 2018-07-24 Florian Weimer <fweimer@redhat.com>
14374
14375 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14376 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14377 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14378 4.13.
14379
14380 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14381
14382 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14383 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14384 <sys/prctl.h> and <asm/prctl.h>.
14385 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14386 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14387 and <asm/prctl.h>.
14388 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14389 ARCH_CET_LEGACY_BITMAP.
14390 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14391 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14392 * sysdeps/x86/libc-start.c: Include <startup.h>.
14393
14394 2018-07-24 Florian Weimer <fweimer@redhat.com>
14395
14396 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14397 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14398
14399 2018-07-24 Rical Jasan <rj@2c3t.io>
14400 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14401 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14402
14403 [BZ #14092]
14404 * manual/debug.texi: Update adjacent chapter name.
14405 * manual/probes.texi: Likewise.
14406 * manual/threads.texi (ISO C Threads): New section.
14407 (POSIX Threads): Convert to a section.
14408
14409 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14410 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14411
14412 [BZ# 14092]
14413 * nptl/Makefile (tests): Add new test files.
14414 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14415 * nptl/tst-cnd-basic.c: Likewise.
14416 * nptl/tst-cnd-broadcast.c: Likewise.
14417 * nptl/tst-cnd-timedwait.c: Likewise.
14418 * nptl/tst-mtx-basic.c: Likewise.
14419 * nptl/tst-mtx-recursive.c: Likewise.
14420 * nptl/tst-mtx-timedlock.c: Likewise.
14421 * nptl/tst-mtx-trylock.c: Likewise.
14422 * nptl/tst-thrd-basic.c: Likewise.
14423 * nptl/tst-thrd-detach.c: Likewise.
14424 * nptl/tst-thrd-sleep.c: Likewise.
14425 * nptl/tst-tss-basic.c: Likewise.
14426
14427 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14428
14429 [BZ #14092]
14430 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14431 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14432 symbols.
14433 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14446 Likewise.
14447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14448 Likewise.
14449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14450 Likewise.
14451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14461 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14462 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14463 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14464 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14465 Likewise.
14466 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14478 ikewise.
14479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14481 Likewise.
14482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14483 Likewise.
14484 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14485 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14486 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14487 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14488 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14489 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14490 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14491 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14492
14493 [BZ #14092]
14494 * conform/data/threads.h-data (thread_local): New macro.
14495 (TSS_DTOR_ITERATIONS): Likewise.
14496 (tss_t): New type.
14497 (tss_dtor_t): Likewise.
14498 (tss_create): New function.
14499 (tss_get): Likewise.
14500 (tss_set): Likewise.
14501 (tss_delete): Likewise.
14502 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14503 tss_get, and tss_set objects.
14504 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14505 * nptl/tss_create.c: New file.
14506 * nptl/tss_delete.c: Likewise.
14507 * nptl/tss_get.c: Likewise.
14508 * nptl/tss_set.c: Likewise.
14509 * sysdeps/nptl/threads.h (thread_local): New define.
14510 (TSS_DTOR_ITERATIONS): Likewise.
14511 (tss_t): New typedef.
14512 (tss_dtor_t): Likewise.
14513 (tss_create): New prototype.
14514 (tss_get): Likewise.
14515 (tss_set): Likewise.
14516 (tss_delete): Likewise.
14517
14518 [BZ #14092]
14519 * conform/data/threads.h-data (cnd_t): New type.
14520 (cnd_init): New function.
14521 (cnd_signal): Likewise.
14522 (cnd_broadcast): Likewise.
14523 (cnd_wait): Likewise.
14524 (cnd_timedwait): Likewise.
14525 (cnd_destroy): Likewise.
14526 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14527 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14528 object.
14529 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14530 * nptl/cnd_broadcast.c: New file.
14531 * nptl/cnd_destroy.c: Likewise.
14532 * nptl/cnd_init.c: Likewise.
14533 * nptl/cnd_signal.c: Likewise.
14534 * nptl/cnd_timedwait.c: Likewise.
14535 * nptl/cnd_wait.c: Likewise.
14536 * sysdeps/nptl/threads.h (cnd_t): New type.
14537 (cnd_init): New prototype.
14538 (cnd_signa): Likewise.
14539 (cnd_broadcast): Likewise.
14540 (cnd_wait): Likewise.
14541 (cnd_timedwait): Likewise.
14542 (cnd_destroy): Likewise.
14543
14544 [BZ #14092]
14545 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14546 (once_flag): New type.
14547 (call_once): New function.
14548 * nptl/Makefile (libpthread-routines): Add call_once object.
14549 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14550 * nptl/call_once.c: New file.
14551 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14552 (once_flag): New type.
14553 (call_once): New prototype.
14554
14555 [BZ #14092]
14556 * conform/data/threads.h-data (mtx_plain): New constant.
14557 (mtx_recursive): Likewise.
14558 (mtx_timed): Likewise.
14559 (mtx_t): New type.
14560 (mtx_init): New function.
14561 (mtx_lock): Likewise.
14562 (mtx_timedlock): Likewise.
14563 (mtx_trylock): Likewise.
14564 (mtx_unlock): Likewise.
14565 (mtx_destroy): Likewise.
14566 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14567 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14568 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14569 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14570 * nptl/mtx_destroy.c: New file.
14571 * nptl/mtx_init.c: Likewise.
14572 * nptl/mtx_lock.c: Likewise.
14573 * nptl/mtx_timedlock.c: Likewise.
14574 * nptl/mtx_trylock.c: Likewise.
14575 * nptl/mtx_unlock.c: Likewise.
14576 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14577 (mtx_recursive): Likewise.
14578 (mtx_timed): Likewise.
14579 (mtx_t): New type.
14580 (mtx_init): New prototype.
14581 (mtx_lock): Likewise.
14582 (mtx_timedlock): Likewise.
14583 (mtx_trylock): Likewise.
14584 (mtx_unlock): Likewise.
14585 (mtx_destroy): Likewise.
14586
14587 [BZ #14092]
14588 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14589 (linknamespace-libs-ISO11): Add libpthread.a.
14590 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14591 functions.
14592 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14593 * nptl/Makefile (headers): Add threads.h.
14594 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14595 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14596 thrd_yield.
14597 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14598 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14599 thrd_join, thrd_sleep, and thrd_yield symbols.
14600 * nptl/descr.h (struct pthread): Add c11 field.
14601 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14602 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14603 routine with expected function prototype.
14604 (__pthread_create_2_1): Add C11 threads check based on attribute
14605 value.
14606 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14607 * nptl/thrd_create.c: New file.
14608 * nptl/thrd_current.c: Likewise.
14609 * nptl/thrd_detach.c: Likewise.
14610 * nptl/thrd_equal.c: Likewise.
14611 * nptl/thrd_exit.c: Likewise.
14612 * nptl/thrd_join.c: Likewise.
14613 * nptl/thrd_priv.h: Likewise.
14614 * nptl/thrd_sleep.c: Likewise.
14615 * nptl/thrd_yield.c: Likewise.
14616 * include/threads.h: Likewise.
14617
14618 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14619
14620 * bits/indirect-return.h: New file.
14621 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14622 * sysdeps/x86/bits/indirect-return.h: Likewise.
14623 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14624 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14625 (swapcontext): Add __INDIRECT_RETURN.
14626 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14627 (prepare_test_buffer): Use it.
14628
14629 2018-07-24 Andreas Schwab <schwab@suse.de>
14630
14631 [BZ #23448]
14632 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14633 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14634
14635 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14636
14637 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14638 Redefine if shadow stack is enabled.
14639 (SYSCALL_ERROR_LABEL): Likewise.
14640 (__vfork): Pop shadow stack and jump back to to caller directly
14641 when shadow stack is in use.
14642 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14643 Redefine if shadow stack is enabled.
14644 (SYSCALL_ERROR_LABEL): Likewise.
14645 (__vfork): Pop shadow stack and jump back to to caller directly
14646 when shadow stack is in use.
14647
14648 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14649
14650 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14651 enabled.
14652 (foo): Likewise.
14653 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14654 (foo): Likewise.
14655
14656 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14657
14658 * scripts/build-many-glibcs.py (Context.checkout): Default
14659 binutils version to 2.31 branch.
14660
14661 2018-07-20 Zong Li <zong@andestech.com>
14662
14663 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14664 URL of gcc's tarball.
14665
14666 2018-07-20 Florian Weimer <fweimer@redhat.com>
14667
14668 [BZ #23396]
14669 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14670 not compare an extra byte after the end of the weights.
14671
14672 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14673
14674 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14675 to 1.
14676 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14677 hidden prototypes.
14678 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14679 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14680 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14681 list of libraries whose stack executability is expected.
14682 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14683 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14684 variable.
14685 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14686 libc.so libpthread.so.
14687
14688 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14689
14690 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14691 SOCK_NONBLOCK.
14692 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14693 and SOCK_NONBLOCK.
14694 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14695 implement __pipe2.
14696 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14697
14698 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14699
14700 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14701 library to improve command line parsing.
14702 (__main__): make schema file as optional parameter (--schema),
14703 defaulting to benchtests/scripts/benchout.schema.json.
14704 (main): move out of the parsing stuff to __main_  and leave it
14705 only as caller of main comparison functions.
14706
14707 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14708
14709 * NEWS: Add a note for Intel CET status.
14710 * manual/install.texi: Likewise.
14711 * INSTALL: Regenerated.
14712
14713 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14714
14715 [BZ #23140]
14716 * localedata/locales/oc_FR (mon): Rename to...
14717 (alt_mon): This, then update October (typo fix).
14718 (mon): New content (genitive case, month names preceded by
14719 "de" or "d’").
14720
14721 [BZ #23422]
14722 * localedata/locales/oc_FR (abday): Update all items.
14723 (day): Update Wednesday and Saturday (typo fixes).
14724 (abmon): Update all items, except May.
14725 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14726 (LC_IDENTIFICATION): Bump the revision number and date.
14727 Keep the "category" entries in alphabetic order.
14728 (LC_ADDRESS): Remove no longer needed comment.
14729 (LC_COLLATE): Use “copy "ca_ES"”.
14730 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14731 "name_mrs".
14732
14733 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14734
14735 * grp/tst_fgetgrent.c: Include <unistd.h>.
14736 (main): Use mkstemp instead of tmpnam.
14737 * io/test-utime.c (main): Likewise.
14738 * posix/annexc.c (macrofile): Change to modifiable array.
14739 (main): Remove macrofile here.
14740 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14741 macrofile here.
14742 (check_header): Do not remove macrofile here.
14743 * posix/bug-getopt1.c: Include <stdlib.h>.
14744 (do_test): Use mkstemp instead of tmpnam.
14745 * posix/bug-getopt2.c: Include <stdlib.h>.
14746 (do_test): Use mkstemp instead of tmpnam.
14747 * posix/bug-getopt3.c: Include <stdlib.h>.
14748 (do_test): Use mkstemp instead of tmpnam.
14749 * posix/bug-getopt4.c: Include <stdlib.h>.
14750 (do_test): Use mkstemp instead of tmpnam.
14751 * posix/bug-getopt5.c: Include <stdlib.h>.
14752 (do_test): Use mkstemp instead of tmpnam.
14753 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14754 (main): Use mkstemp instead of tmpnam.
14755 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14756 (main): Use mkstemp instead of tmpnam.
14757 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14758 (main): use mkstemp instead of tmpnam.
14759 * stdlib/isomac.c (macrofile): Change to modifiable array.
14760 (main): Remove macrofile here.
14761 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14762 macrofile here.
14763 (check_header): Do not remove macrofile here.
14764
14765 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14766
14767 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14768 glibc.tune.x86_shstk.
14769
14770 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14771
14772 * NEWS: Mention --enable-cet.
14773 * manual/install.texi: Document --enable-cet.
14774 * INSTALL: Regenerated.
14775
14776 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14777
14778 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14779 Add _CET_NOTRACK before indirect jump to jump table.
14780
14781 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14782
14783 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14784 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14785 to jump table.
14786
14787 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14788
14789 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14790 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14791 to jump table.
14792
14793 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14794
14795 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14796 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14797 to jump table.
14798
14799 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14800
14801 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14802 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14803 to jump table.
14804
14805 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14806
14807 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14808 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14809 to jump table.
14810 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14811
14812 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14813
14814 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14815 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14816 to jump table.
14817
14818 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14819
14820 * sysdeps/i386/i686/multiarch/memset-sse2.S
14821 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14822 to jump table.
14823
14824 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14825
14826 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14827 indirect jump to jump table.
14828
14829 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14830
14831 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14832 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14833 to jump table.
14834 (MEMCPY): Likewise.
14835
14836 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14837
14838 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14839 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14840 to jump table.
14841 (MEMCPY): Likewise.
14842
14843 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14844
14845 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14846 _CET_NOTRACK before indirect jump to jump table.
14847
14848 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14849
14850 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14851 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14852 to jump table.
14853
14854 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14855
14856 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14857 indirect jump to jump table.
14858
14859 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14860
14861 [BZ #22241]
14862 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14863 (LOCALES): Likewise.
14864 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14865 * localedata/locales/sah_RU: New file.
14866 * localedata/sah_RU.UTF-8.in: New file.
14867
14868 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14869
14870 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14871 "sysdep.h".
14872 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14873 _CET_ENDBR to indirect jump targets and adjust jump destination
14874 for _CET_ENDBR.
14875 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14876 "sysdep.h".
14877 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14878 _CET_ENDBR to indirect jump targets and adjust jump destination
14879 for _CET_ENDBR.
14880 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14881 "sysdep.h".
14882 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14883 _CET_ENDBR to indirect jump targets and adjust jump destination
14884 for _CET_ENDBR.
14885
14886 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14887
14888 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14889 _CET_ENDBR.
14890
14891 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14892
14893 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14894 _CET_ENDBR.
14895 (_dl_tlsdesc_undefweak): Likewise.
14896 (_dl_tlsdesc_dynamic): Likewise.
14897 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14898 (_dl_tlsdesc_resolve_rel): Likewise.
14899 (_dl_tlsdesc_resolve_rela): Likewise.
14900 (_dl_tlsdesc_resolve_hold): Likewise.
14901 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14902 (_dl_tlsdesc_undefweak): Likewise.
14903 (_dl_tlsdesc_dynamic): Likewise.
14904 (_dl_tlsdesc_resolve_rela): Likewise.
14905 (_dl_tlsdesc_resolve_hold): Likewise.
14906
14907 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14908
14909 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14910 (_fini): Likewise.
14911 * sysdeps/x86_64/crti.S (_init): Likewise.
14912 (_fini): Likewise.
14913
14914 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
14915
14916 [BZ #23140]
14917 * localedata/locales/os_RU (mon): Rename to...
14918 (alt_mon): This.
14919 (mon): Import from CLDR (genitive case).
14920
14921 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14922
14923 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14924 cet-tunables.h> when CET is enabled.
14925
14926 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14927
14928 [BZ #21598]
14929 * configure.ac: Add --enable-cet.
14930 * configure: Regenerated.
14931 * elf/Makefille (all-built-dso): Add a comment.
14932 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14933 Include <dl-prop.h>.
14934 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14935 segment.
14936 * elf/dl-open.c: Include <dl-prop.h>.
14937 (dl_open_worker): Call _dl_open_check.
14938 * elf/rtld.c: Include <dl-prop.h>.
14939 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14940 _rtld_main_check.
14941 * sysdeps/generic/dl-prop.h: New file.
14942 * sysdeps/i386/dl-cet.c: Likewise.
14943 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14944 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14945 * sysdeps/x86/cet-tunables.h: Likewise.
14946 * sysdeps/x86/check-cet.awk: Likewise.
14947 * sysdeps/x86/configure: Likewise.
14948 * sysdeps/x86/configure.ac: Likewise.
14949 * sysdeps/x86/dl-cet.c: Likewise.
14950 * sysdeps/x86/dl-procruntime.c: Likewise.
14951 * sysdeps/x86/dl-prop.h: Likewise.
14952 * sysdeps/x86/libc-start.h: Likewise.
14953 * sysdeps/x86/link_map.h: Likewise.
14954 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14955 _CET_ENDBR.
14956 (_dl_runtime_profile): Likewise.
14957 (_dl_runtime_resolve_shstk): New.
14958 (_dl_runtime_profile_shstk): Likewise.
14959 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14960 if CET is enabled.
14961 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14962 (CFLAGS-.os): Likewise.
14963 (CFLAGS-.op): Likewise.
14964 (CFLAGS-.oS): Likewise.
14965 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14966 is enabled.
14967 (tests-special): Add $(objpfx)check-cet.out.
14968 (cet-built-dso): New.
14969 (+$(cet-built-dso:=.note)): Likewise.
14970 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14971 ($(objpfx)check-cet.out): New.
14972 (generated): Add check-cet.out.
14973 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14974 <cet-tunables.h>.
14975 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14976 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14977 (init_cpu_features): Call get_cet_status to check CET status
14978 and update dl_x86_feature_1 with CET status. Call
14979 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14980 (set_x86_shstk). Disable and lock CET in libc.a.
14981 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14982 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14983 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14984 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14985 (_CET_ENDBR): Define if not defined.
14986 (ENTRY): Add _CET_ENDBR.
14987 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14988 x86_shstk.
14989 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14990 _CET_ENDBR.
14991 (_dl_runtime_profile): Likewise.
14992
14993 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14994
14995 [BZ #21895]
14996 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14997 restore r2 on longjmp.
14998 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14999 test list.
15000 Added rules to build test tst-setjmp-bug21895-static.
15001 Added module setjmp-bug21895 and rules to build a shared object from it.
15002 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15003 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15004
15005 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15006
15007 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15008 * benchtests/bench-strstr.c: Likewise.
15009 * string/memmem.c (FASTSEARCH): Define.
15010 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15011 Add support for FASTSEARCH.
15012 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15013 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15014 (FASTSEARCH): Define.
15015 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15016 * string/test-strstr.c: Likewise.
15017
15018 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15019
15020 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15021 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15022
15023 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15024 H.J. Lu <hongjiu.lu@intel.com>
15025
15026 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15027 (__longjmp): Restore shadow stack pointer if shadow stack is
15028 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15029 isn't defined for __longjmp_cancel.
15030 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15031 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15032 and SHADOW_STACK_POINTER_OFFSET is defined.
15033 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15034 (setjmp): Save shadow stack pointer if shadow stack is enabled
15035 and SHADOW_STACK_POINTER_OFFSET is defined.
15036 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15037 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15038 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15039 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15040 <jmp_buf-ssp.h>.
15041 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15042 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15043 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15044 Remove jmp_buf-ssp.sym.
15045 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15046 <jmp_buf-ssp.h>.
15047 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15048 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15049 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15050 jmp_buf-ssp.sym.
15051 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15052 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15053 (__longjmp): Restore shadow stack pointer if shadow stack is
15054 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15055 isn't defined for __longjmp_cancel.
15056 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15057 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15058 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15059
15060 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15061
15062 [BZ #22563]
15063 * nptl/pthread_create.c: Include <tls-setup.h>.
15064 (__pthread_create_2_1): Call tls_setup_tcbhead.
15065 * sysdeps/generic/tls-setup.h: New file.
15066 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15067 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15068 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15069 Likewise.
15070 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15071 to feature_1.
15072 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15073 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15074 (X86_FEATURE_1_SHSTK): Likewise.
15075 (CET_ENABLED): Likewise.
15076 (IBT_ENABLED): Likewise.
15077 (SHSTK_ENABLED): Likewise.
15078
15079 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15080
15081 [BZ #23208]
15082 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15083 (LOCALES): Likewise.
15084 * localedata/dsb_DE.UTF-8.in: New file.
15085 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15086
15087 2018-07-12 Florian Weimer <fweimer@redhat.com>
15088
15089 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15090 __mprotect, not mprotect.
15091
15092 2018-07-11 Florian Weimer <fweimer@redhat.com>
15093
15094 * io/Makefile (headers): Add bits/statx.h.
15095
15096 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15097
15098 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15099 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15100 and headers.
15101 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15102 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15103 for utf8_gen.py
15104
15105 2018-07-10 Florian Weimer <fweimer@redhat.com>
15106
15107 * io/Makefile (routines): Add statx.
15108 (tests-internal): Add tst-statx.
15109 * io/Versions (GLIBC_2.28): Export statx.
15110 * io/bits/statx.h: New file.
15111 * io/sys/stat.h [__USE_GNU]: Include it.
15112 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15113 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15114 Define.
15115 * io/statx.c: New file.
15116 * io/statx_generic.: Likewise.
15117 * io/tst-statx.: Likewise.
15118 * include/bits/statx.h: Likewise.
15119 * sysdeps/unix/sysv/linux/kernel-features.h
15120 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15121 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15122 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15123 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15124 Undefine.
15125 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15126 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15127 * sysdeps/unix/sysv/linux/statx.c: New file.
15128 * manual/filesys.texi: Note that statx is undocumented.
15129 * sysdeps/**/libc*.abilist: Update.
15130
15131 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15132
15133 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15134 a kernel issue which lead to test failure in some cases.
15135
15136 2018-07-10 Florian Weimer <fweimer@redhat.com>
15137
15138 [BZ #23036]
15139 * posix/regexec.c (check_node_accept_bytes): When comparing
15140 weights, do not compare an extra byte after the end of the
15141 weights.
15142
15143 2018-07-10 Florian Weimer <fweimer@redhat.com>
15144
15145 * libio/readline.c: Fix copyright year.
15146 * libio/tst-readline.c Likewise.
15147 * nss/tst-nss-files-hosts-getent.c: Likewise.
15148
15149 2018-07-06 Florian Weimer <fweimer@redhat.com>
15150
15151 [BZ #18991]
15152 * nss/nss_files/files-XXX.c (internal_getent): Use
15153 __libc_readline_unlocked. Seek back to the start of the line if
15154 parsing failes with ERANGE.
15155 (get_contents_ret, get_contents): Remove.
15156 * nss/tst-nss-files-hosts-getent.c: New file.
15157 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15158 (tst-nss-files-hosts-getent): Link with -ldl.
15159
15160 2018-07-06 Florian Weimer <fweimer@redhat.com>
15161
15162 * include/stdio.h (__libc_readline_unlocked): Declare.
15163 (__ftello64, __fseeko64): Declare aliases.
15164 * libio/readline.c: New file.
15165 * libio/tst-readline.c: Likewise.
15166 (routines): Add readline.
15167 (tests-internal): Add tst-readlime.
15168 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15169 __libc_readline_unlocked.
15170 * libio/fseeko.c (__fseeko): Rename from fseeko.
15171 (fseeko): Add alias.
15172 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15173 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15174 (fseeko64): Add alias.
15175 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15176 * libio/ftello64.c (__ftello64): Rename from ftello64.
15177 (ftello64): Add alias.
15178
15179 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15180
15181 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15182 HWCAP_ATOMICS.
15183
15184 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15185
15186 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15187 Use dl_hwcap without masking.
15188 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15189 Remove HWCAP_CPUID.
15190
15191 2018-07-06 Florian Weimer <fweimer@redhat.com>
15192
15193 * conform/conformtest.pl (checknamespace): Escape literal braces
15194 in regular expressions.
15195
15196 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15197
15198 * sysdeps/x86/cpu-features.c (get_common_indeces):
15199 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15200 * sysdeps/x86/cpu-features.c (init_cpu_features):
15201 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15202
15203 2018-07-05 Florian Weimer <fweimer@redhat.com>
15204
15205 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15206 protector.
15207 (CFLAGS-elf-init.oS): Likewise.
15208
15209 2018-07-05 Florian Weimer <fweimer@redhat.com>
15210 Carlos O'Donell <carlos@redhat.com>
15211
15212 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15213 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15214 with stack protector enabled because there is no risk of infinite
15215 recursion.
15216
15217 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15218
15219 [BZ #19818]
15220 [BZ #23307]
15221 * libc-abis (ABSOLUTE): New ABI.
15222 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15223 * NEWS: Mention the new ABI.
15224
15225 2018-07-05 Florian Weimer <fweimer@redhat.com>
15226
15227 [BZ # 17662]
15228 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15229 (RENAME_WHITEOUT): Define.
15230 [__USE_GNU] (renameat2): Declare.
15231 * stdio-common/Makefile (routines): Add renameat2.
15232 (tests): Add tst-renameat2.
15233 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15234 * stdio-common/renameat2.c: New file.
15235 * stdio-common/tst-renameat2.c: Likewise.
15236 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15237 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15238 undocumented.
15239 * sysdeps/unix/sysv/linux/kernel-features.h
15240 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15241 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15242 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15243 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15244 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15245 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15246 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15247 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15248 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15249 * include/stdio.h (__renameat): Add alias for renameat.
15250 * stdio-common/renameat.c (__renameat): Rename from renameat.
15251 Add hidden definition and alias.
15252 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15253 * sysdeps/mach/hurd/renameat.c: Likewise.
15254 * sysdeps/**/libc*.abilist: Add renameat2.
15255
15256 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15257
15258 * posix/bug-regex33.c: Fix build after regex sync.
15259
15260 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15261
15262 [BZ #23164]
15263 * localedata/tst-langinfo-setlocale.c: New file.
15264 * localedata/tst-langinfo-setlocale-static.c: New file.
15265 * localedata/tst-langinfo-newlocale.c: New file.
15266 * localedata/tst-langinfo-newlocale-static.c: New file.
15267 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15268 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15269 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15270 (tests-static): Remove tst-langinfo-static. Add
15271 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15272 (tests-special): Remove $(objpfx)tst-langinfo.out,
15273 $(objpfx)tst-langinfo-static.out. Add
15274 $(objpfx)tst-langinfo-setlocale.out,
15275 $(objpfx)tst-langinfo-newlocale.out,
15276 $(objpfx)tst-langinfo-setlocale-static.out,
15277 $(objpfx)tst-langinfo-newlocale-static.out.
15278 ($(objpfx)tst-langinfo.out): Remove.
15279 ($(objpfx)tst-langinfo-static.out): Remove.
15280 ($(objpfx)tst-langinfo-newlocale.out): New target.
15281 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15282 (test-xfail-tst-langinfo-newlocale-static): Add.
15283 ($(objpfx)tst-langinfo-setlocale.out): New target.
15284 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15285 * localedata/tst-langinfo.c: Call test_locale.
15286 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15287 data.
15288
15289 2018-07-04 Florian Weimer <fweimer@redhat.com>
15290
15291 testrun.sh: Implement --tool=strace, --tool=valgrind
15292 * Makefile (testrun-script): Define variable.
15293 (testrun.sh): Use variable.
15294 * manual/install.texi (Tools for Compilation): make 4.0 or later
15295 is required.
15296 * configure.ac: Check for make 4.0 or later.
15297 * INSTALL: Regenerate.
15298 * configure: Likewise.
15299
15300 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15301
15302 [BZ #23233]
15303 [BZ #21163]
15304 [BZ #18986]
15305 [BZ #13762]
15306 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15307 * posix/PCRE.tests: Remove invalid test.
15308 * posix/bug-regex28.c: Fix expected values for used syntax.
15309 * posix/bug-regex37.c: New file.
15310 * posix/bug-regex38.c: Likewise.
15311 * posix/regcomp.c: Sync with gnulib.
15312 * posix/regex.c: Likewise.
15313 * posix/regex.h: Likewise.
15314 * posix/regex_internal.c: Likewise.
15315 * posix/regex_internal.h: Likewise.
15316 * posix/regexec.c: Likewise.
15317
15318 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15319
15320 [BZ #23308]
15321 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15322 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15323 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15324 * localedata/unicode-gen/PropList.txt: likewise.
15325 * localedata/unicode-gen/UnicodeData.txt: likewise.
15326 * localedata/charmaps/UTF-8: Regenerate.
15327 * localedata/locales/i18n_ctype: likewise.
15328 * localedata/locales/tr_TR: likewise.
15329 * localedata/locales/translit_circle: likewise.
15330 * localedata/locales/translit_cjk_compat: likewise.
15331 * localedata/locales/translit_combining: likewise.
15332 * localedata/locales/translit_compat: likewise.
15333 * localedata/locales/translit_font: likewise.
15334 * localedata/locales/translit_fraction: likewise.
15335
15336 2018-07-03 Florian Weimer <fweimer@redhat.com>
15337
15338 [BZ #23363]
15339 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15340 * stdio-common/tst-printf.sh: Adjust expected output.
15341 * LICENSES: Update.
15342
15343 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15344
15345 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15346 symbol.
15347
15348 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15349
15350 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15351 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15352 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15353 * stdio-common/tst-printfsz-islongdouble.c: New file.
15354 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15355 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15356 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15357 [subdir == stdio-common] (tests-internal): Add
15358 test-printf-size-ieee128, and test-printf-size-ibm128.
15359 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15360 (CFLAGS-test-printf-size-ibm128.c): New variables.
15361 [subdir == stdio-common] (tests-special): Add
15362 $(objpfx)test-printf-size-ieee128.out and
15363 $(objpfx)test-printf-size-ibm128.out.
15364 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15365 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15366 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15367 __printf_sizeieee128.
15368 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15369 New file.
15370 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15371 Likewise.
15372 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15373 Likewise.
15374
15375 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15376
15377 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15378 (exp2f_inline): Likewise.
15379 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15380 (__math_uflowf): Likewise.
15381 (__math_may_uflowf): Likewise.
15382 (__math_divzerof): Likewise.
15383 (__math_invalidf): Likewise.
15384 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15385 (__math_oflowf): Likewise.
15386 (__math_uflowf): Likewise.
15387 (__math_may_uflowf): Likewise.
15388 (__math_divzerof): Likewise.
15389 (__math_invalidf): Likewise.
15390
15391 2018-06-29 DJ Delorie <dj@redhat.com>
15392 Carlos O'Donell <carlos@redhat.com>
15393
15394 [BZ #23329]
15395 * include/libc-symbols.h: Comment the freeres framework.
15396 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15397 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15398 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15399 * dlfcn/dlerror.c: Include libc-symbols.h
15400 (__dlerror_main_freeres): New function.
15401 * dlfcn/dlfreeres.c: New file.
15402 * dlfcn/sdlfreeres.c: New file.
15403 * include/dlfcn.h: Declare __dlerror_main_freeres.
15404 * malloc/set-freeres.c: Declare __libdl_freeres, and
15405 __libpthread_freeres.
15406 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15407 the releavant libraries are loaded.
15408 * malloc/thread-freeres.c: Add comments.
15409 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15410 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15411 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15412 (__free_stacks): Rename to...
15413 (free_stacks): ...this. Mark static.
15414 (queue_stack): Call free_stacks.
15415 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15416 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15417 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15418 ptr_freeres element from struct.
15419 (pthread_functions): Remove .ptr_freeres from struct initializer.
15420 [SHARED] (nptl_freeres): Remove.
15421 * nptl/nptlfreeres.c: New file.
15422 * nptl/pthreadP.h
15423 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15424 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15425 attribute_hidden.
15426 (__free_stacks): Rename to...
15427 (__nptl_stacks_freeres): ...this.
15428 (__shm_directory_freeres): Declare.
15429 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15430 (__nptl_unwind_freeres): ...this.
15431 * resolv/res-close.c: Add comment.
15432 * resolv/resolv_conf.c: Include libc-symbols.h.
15433 * string/strerror_l.c: Include libc-symbols.h.
15434 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15435 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15436 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15437 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15438
15439 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15440
15441 * stdlib/tst-strfmon_l.c: Add tests for long double.
15442
15443 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15444
15445 [BZ #23208]
15446 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15447 * localedata/locales/dsb_DE: New file.
15448
15449 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15450
15451 [BZ #23140]
15452 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15453 genitive case).
15454 (alt_mon): New entry, import from CLDR (nominative case).
15455
15456 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15457
15458 [BZ #22996]
15459 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15460
15461 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15462
15463 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15464 Use vector registers.
15465
15466 * sysdeps/aarch64/multiarch/memmove_falkor.S
15467 (__memcpy_falkor): Use vector registers.
15468
15469 2018-06-29 Martin Sebor <msebor@redhat.com>
15470
15471 * manual/stdio.texi (Customizing Printf): Mention interaction
15472 with GCC built-ins.
15473
15474 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15475
15476 [BZ #23307]
15477 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15478 `st_value' is 0 if `st_shndx' is SHN_ABS.
15479 * elf/tst-absolute-zero.c: New file.
15480 * elf/tst-absolute-zero-lib.c: New file.
15481 * elf/tst-absolute-zero-lib.lds: New file.
15482 * elf/Makefile (tests): Add `tst-absolute-zero'.
15483 (modules-names): Add `tst-absolute-zero-lib'.
15484 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15485 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15486 ($(objpfx)tst-absolute-zero: New dependency.
15487
15488 2018-06-29 Zack Weinberg <zackw@panix.com>
15489
15490 * configure.ac: New command-line option --disable-crypt.
15491 Force --disable-nss-crypt when --disable-crypt is given, with a
15492 warning if it was explicitly enabled.
15493 * configure: Regenerate.
15494 * config.make.in: New boolean substitution variable $(build-crypt).
15495 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15496 when $(build-crypt).
15497 * manual/install.texi: Document --disable-crypt.
15498 * INSTALL: Regenerate.
15499
15500 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15501 which is never set.
15502 * conform/Makefile: Only include libcrypt.a in
15503 linknamespace-libs-xsi and linknamespace-libs-XPG4
15504 when $(build-crypt).
15505 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15506 USE_CRYPT to 1 when $(build-crypt).
15507 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15508 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15509 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15510
15511 2018-06-29 Zack Weinberg <zackw@panix.com>
15512
15513 * crypt/crypt.h, posix/unistd.h: Update comments and
15514 prototypes for crypt and crypt_r.
15515
15516 * manual/crypt.texi (Cryptographic Functions): New initial
15517 exposition.
15518 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15519 (Unpredictable Bytes): Improve initial exposition. Clarify error
15520 behavior of getentropy and getrandom.
15521 * manual/examples/genpass.c: Generate a salt using getentropy
15522 instead of the current time. Use hash $5$ (SHA-2-256).
15523 * manual/examples/testpass.c: Demonstrate validation against
15524 hashes generated with three different one-way functions.
15525
15526 * manual/intro.texi: crypt.texi does not need an overview
15527 anymore.
15528
15529 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15530 * manual/terminal.texi: Consistently refer to "passphrases"
15531 * instead of "passwords", and to the "user database" instead
15532 * of the "password database".
15533 * manual/users.texi: Similarly. Add notes about how actual
15534 passphrase hashes are now stored in the shadow database.
15535 Remove 20-year-old junk todo note.
15536
15537 2018-06-29 Zack Weinberg <zackw@panix.com>
15538
15539 * manual/crypt.texi: Use a normal top-level @node declaration.
15540 Move most of the introductory text to the 'crypt' section.
15541 Move the example programs below the @deftypefun for 'crypt_r'.
15542 Move the 'getpass' section...
15543 * manual/terminal.texi: ...here.
15544
15545 2018-06-29 Zack Weinberg <zackw@panix.com>
15546 Florian Weimer <fweimer@redhat.com>
15547
15548 * posix/unistd.h: Do not declare encrypt.
15549 (_XOPEN_CRYPT): Remove macro definition.
15550 (crypt): Declare only for _USE_MISC.
15551 * stdlib/stdlib.h: Do not declare setkey.
15552 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15553 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15554
15555 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15556 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15557 into compat symbols. Don't define initial_perm if it's not
15558 going to be used.
15559 * crypt/cert.c: Link explicitly with the expected versions for
15560 setkey and encrypt. If they are not available at all, mark
15561 the test as unsupported.
15562
15563 * sunrpc/des_crypt.c: Unconditionally block linkage with
15564 cbc_crypt and ecb_crypt for new binaries.
15565 * sunrpc/des_soft.c: Unconditionally block linkage with
15566 des_setparity for new binaries.
15567
15568 * manual/crypt.texi: Remove the entire "DES Encryption"
15569 section. Also remove the paragraph talking about FIPS 140-2
15570 from the introduction.
15571 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15572 of libgcrypt for "real" encryption, not DES.
15573 * manual/conf.texi (Constants for Sysconf): Mention that
15574 _XOPEN_CRYPT is no longer impelemented.
15575
15576 * conform/data/unistd.h-data: Remove crypt function declaration.
15577
15578 2018-06-29 Florian Weimer <fweimer@redhat.com>
15579
15580 [BZ #23351]
15581 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15582 (disallow_malloc_check): Remove variable.
15583 (__malloc_check_init): Adjust.
15584 (malloc_set_state): Update comment.
15585 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15586 declarations.
15587
15588 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15589
15590 [BZ #23140]
15591 * localedata/locales/ast_ES (mon): Rename to...
15592 (alt_mon): This.
15593 (mon): Import from CLDR (genitive case).
15594
15595 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15596 Jakub Sitnicki <jkbs@redhat.com>
15597
15598 [BZ #21812]
15599 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15600 on NLM_F_DUMP_INTR.
15601
15602 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15603
15604 * manual/llio.texi: Remove spurious space.
15605
15606 2018-06-28 Florian Weimer <fweimer@redhat.com>
15607
15608 [BZ #23349]
15609 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15610 _STRUCT_TIMESPEC.
15611
15612 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15613
15614 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15615 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15616 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15617 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15618 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15619 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15620 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15621
15622 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15623
15624 [BZ #23266]
15625 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15626 Copy and null-terminate entries that are not terminated, in
15627 addition to empty ones.
15628
15629 2018-06-27 Florian Weimer <fweimer@redhat.com>
15630
15631 [BZ #18023]
15632 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15633 (extend_alloca_account): Remove.
15634 * manual/stdio.texi (Variable Arguments Output): Update comment.
15635
15636 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15637
15638 * nptl/sockperf.c: Remove file.
15639
15640 2018-06-27 Florian Weimer <fweimer@redhat.com>
15641
15642 [BZ #18023]
15643 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15644 scratch_buffer instead of extend_alloca.
15645
15646 2018-06-27 Florian Weimer <fweimer@redhat.com>
15647
15648 [BZ #18023]
15649 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15650 scratch_buffer instead of extend_alloca. Update comments.
15651
15652 2018-06-27 Florian Weimer <fweimer@redhat.com>
15653
15654 [BZ #18023]
15655 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15656 instead of extend_alloca.
15657
15658 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15659
15660 [BZ #13888]
15661 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15662 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15663 /tmp.
15664 * scripts/test-installation.pl: Put temporary files in build
15665 directory, not /tmp.
15666 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15667 (CFLAGS-bug4.c): Likewise.
15668 (CFLAGS-bug5.c): Likewise.
15669 (CFLAGS-test-fseek.c): Likewise.
15670 (CFLAGS-test-popen.c): Likewise.
15671 (CFLAGS-test_rdwr.c): Likewise.
15672 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15673 /tmp.
15674 * stdio-common/bug4.c (main): Likewise.
15675 * stdio-common/bug5.c (main): Likewise.
15676 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15677 * stdio-common/test-popen.c (do_test): Likewise.
15678 * stdio-common/test_rdwr.c (main): Likewise.
15679
15680 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15681
15682 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15683 (sem_open): Set sem.newsem.pad to zero for valgrind.
15684
15685 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15686
15687 [BZ #20251]
15688 * NEWS: Mention fcntl64 addition.
15689 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15690 * login/utmp_file.c: Likewise.
15691 * sysdeps/posix/fdopendir.c: Likewise.
15692 * sysdeps/posix/opendir.c: Likewise.
15693 * sysdeps/unix/pt-fcntl.c: Likewise.
15694 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15695 __fcntl64_nocancel_adjusted): New prototype.
15696 (__fcntl_nocancel_adjusted): Remove prototype.
15697 * io/Makefile (routines): Add fcntl64.
15698 (CFLAGS-fcntl64.c): New rule.
15699 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15700 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15701 * io/fcntl.h (fcntl64): Add prototype and redirect if
15702 __USE_FILE_OFFSET64 is defined.
15703 * io/fcntl64.c: New file.
15704 * manual/llio.text: Add a note for which commands fcntl acts a
15705 cancellation point.
15706 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15707 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15708 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15709 New symbols.
15710 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15711 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15712 non-LFS case.
15713 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15714 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15715 to __fcntl64_nocancel.
15716 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15717 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15718 to __fcntl64_nocancel.
15719 * sysdeps/generic/not-cancel.h: Likewise.
15720 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15721 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15722 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15723 (fcntl64): New symbol.
15724 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15725 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15726 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15729 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15730 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15731 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15732 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15733 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15734 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15735 fcntl64): Likewise.
15736 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15737 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15738 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15739 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15740 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15741 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15742 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15743 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15744 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15745 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15746 Likewise.
15747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15748 Likewise.
15749 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15750 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15751 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15752
15753 2018-06-26 Florian Weimer <fweimer@redhat.com>
15754
15755 Run thread shutdown functions in an explicit order.
15756 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15757 definition.
15758 (__libc_thread_freeres): Call thread shutdown functions
15759 explicitly.
15760 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15761 * include/string.h (__strerror_thread_freeres): Declare.
15762 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15763 arena_thread_freeres. No longer static. Remove thread shutdown
15764 hook registration.
15765 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15766 Declare.
15767 * resolv/res-close.c (__res_thread_freeres): Renamed from
15768 res_thread_freeres. No longer static. Remove thread shutdown
15769 hook registration.
15770 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15771 * resolv/resolv_conf.c (freeres): Remove incorrect section
15772 attribute and use libc_freeres_fn.
15773 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15774 strerror_thread_freeres. No longer static. Remove thread
15775 shutdown hook registration.
15776 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15777 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15778 shutdown hook registration.
15779 * Makerules (shlib.lds): Do not provide section boundary symbols
15780 for __libc_thread_subfreeres.
15781 * manual/memory.texi (Basic Allocation): Update comment.
15782
15783 2018-06-26 Florian Weimer <fweimer@redhat.com>
15784
15785 Remove always-defined _RPC_THREAD_SAFE_ macro.
15786 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15787 Do not define _RPC_THREAD_SAFE_.
15788 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15789 conditional.
15790 * sunrpc/clnt_perr.c: Likewise.
15791 * sunrpc/clnt_raw.c: Likewise.
15792 * sunrpc/clnt_simp.c: Likewise.
15793 * sunrpc/key_call.c: Likewise.
15794 * sunrpc/rpc_common.c: Likewise.
15795 * sunrpc/rpc_main.c: Likewise.
15796 * sunrpc/rpc_thread.c: Likewise.
15797 * sunrpc/svc.c: Likewise.
15798 * sunrpc/svc_raw.c: Likewise.
15799 * sunrpc/svc_simple.c: Likewise.
15800 * sumrpc/svcauth_des.c: Likewise.
15801
15802 2018-06-26 Florian Weimer <fweimer@redhat.com>
15803
15804 * libio/Makefile (tests-internal): Add tst-vtables,
15805 tst-vtables-interposed.
15806 * libio/tst-vtables.c: New file.
15807 * libio/tst-vtables-common.c: Likewise.
15808 * libio/tst-vtables-interposed.c: Likewise.
15809
15810 2018-06-26 Florian Weimer <fweimer@redhat.com>
15811
15812 * support/support_test_main.c (support_test_main): Only call
15813 setvbuf if not disables.
15814 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15815 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15816
15817 2018-06-26 Florian Weimer <fweimer@redhat.com>
15818
15819 [BZ #23313]
15820 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15821
15822 2018-06-25 Florian Weimer <fweimer@redhat.com>
15823
15824 [BZ #18023]
15825 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15826 Use struct scratch_buffer instead of extend_alloca.
15827
15828 2018-06-25 Florian Weimer <fweimer@redhat.com>
15829
15830 [BZ #18023]
15831 * nss/getent.c (initgroups_keys): Use dynarray instead of
15832 extend_alloca.
15833
15834 2018-06-25 Florian Weimer <fweimer@redhat.com>
15835
15836 [BZ #18023]
15837 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15838 Use struct scratch_buffer instead of extend_alloca.
15839
15840 2018-06-25 Florian Weimer <fweimer@redhat.com>
15841
15842 [BZ #18023]
15843 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15844 back to malloc directly, without stack allocations.
15845
15846 2018-06-25 Florian Weimer <fweimer@redhat.com>
15847
15848 [BZ #18023]
15849 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15850 of extend_alloca.
15851
15852 2018-06-25 Florian Weimer <fweimer@redhat.com>
15853
15854 [BZ #18023]
15855 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15856 of extend_alloca.
15857 * nscd/hstcache.c (addhstbyX): Likewise.
15858 * nscd/pwdcache.c (addpwbyX): Likewise.
15859 * nscd/servicescache.c (addservbyX): Likewise.
15860
15861 2018-06-25 Florian Weimer <fweimer@redhat.com>
15862
15863 [BZ #18023]
15864 * nscd/connections.c (read_cmdline): New function.
15865 (restart): Use it. Update comment.
15866
15867 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15868
15869 [BZ #23140]
15870 * localedata/locales/csb_PL (mon): Rename to...
15871 (alt_mon): This.
15872 (abmon): Rename to...
15873 (ab_alt_mon): This.
15874 (mon): Add with proper genitive forms, copy from Wikipedia.
15875 (abmon): Likewise.
15876
15877 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15878
15879 [BZ #19485]
15880 * localedata/locales/csb_PL (mon): Fix typos:
15881 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15882 (yesstr): Add, value is "jo".
15883 (nostr): Add, value is "nié".
15884
15885 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15886
15887 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15888 all log1p and significand functions on m680x0.
15889 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15890 of s_significand.c..
15891 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15892 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15893 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15894 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15895 s_log1p.c and include it..
15896
15897 2018-06-21 Vincent Chen <vincentc@andestech.com>
15898
15899 * elf/elf.h (R_NDS32_NONE): New define.
15900 (R_NDS32_32_RELA): Likewise.
15901 (R_NDS32_COPY): Likewise.
15902 (R_NDS32_GLOB_DAT): Likewise.
15903 (R_NDS32_JUMP_SLOT): Likewise.
15904 (R_NDS32_RELATIVE): Likewise.
15905 (R_NDS32_TLS_TPOFF): Likewise.
15906 (R_NDS32_TLS_DESC): Likewise.
15907
15908 2018-06-21 Mark Wielaard <mark@klomp.org>
15909
15910 * elf/elf.h (R_BPF_MAP_FD): Removed.
15911 (R_BPF_64_64, R_BPF_64_32): New.
15912
15913 2018-06-21 Florian Weimer <fweimer@redhat.com>
15914
15915 [BZ #23253]
15916 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15917 Renamed from libc_feholdsetround_ctx.
15918 (default_libc_feresetround_ctx): Renamed from
15919 libc_feresetround_ctx.
15920 (default_libc_feholdsetround_noex_ctx): Renamed from
15921 libc_feholdsetround_noex_ctx.
15922 (default_libc_feresetround_noex_ctx): Renamed from
15923 libc_feresetround_noex_ctx.
15924 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15925 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15926 forwardning to the old implementations under the new names.
15927 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15928 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15929 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15930 (libc_feresetround_ctx): Forward to default implements for i386
15931 and MATH_SET_BOTH_ROUNDING_MODES.
15932 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15933 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15934
15935 2018-06-20 Joseph Myers <joseph@codesourcery.com>
15936
15937 * string/tst-cmp.c: Include <libc-diag.h>.
15938 (strncmp_max): Disable -Wstringop-overflow= around call to
15939 strncmp.
15940 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15941 strncasecmp.
15942
15943 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15944 (main): Disable -Wunused-value around call to strpbrk.
15945 * string/bug-strspn1.c: Include <libc-diag.h>.
15946 (main): Disable -Wunused-value around call to strspn.
15947
15948 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15949 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15950
15951 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15952 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15953
15954 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15955
15956 * math/Makefile (libm-calls): Move s_significandF to...
15957 (gen-libm-calls): ... here.
15958 * math/s_significand_template.c: New file.
15959 * math/s_significand.c: Removed.
15960 * math/s_significandf.c: Removed.
15961 * math/s_significandl.c: Removed.
15962 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15963 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15964
15965 * math/e_exp2_template.c (declare_mgen_finite_alias,
15966 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15967 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15968 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15969
15970 2018-06-20 Florian Weimer <fweimer@redhat.com>
15971
15972 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15973
15974 2018-06-19 Joseph Myers <joseph@codesourcery.com>
15975
15976 [BZ #23280]
15977 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15978 floating-point number to strtod functions rather than possibly
15979 negating result of those functions.
15980 * stdio-common/tst-scanf-round.c: New file.
15981 * stdio-common/Makefile (tests): Add tst-scanf-round.
15982 ($(objpfx)tst-scanf-round): Depend on $(libm).
15983
15984 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15985
15986 * sysdeps/mach/hurd/localplt.data: Move to...
15987 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15988 R_386_GLOB_DAT like on Linux i386.
15989
15990 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15991
15992 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15993 (SHM_STAT_ANY): New macro.
15994 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15995 (SHM_STAT_ANY): Likewise.
15996 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15997 (SHM_STAT_ANY): Likewise.
15998 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15999 (SHM_STAT_ANY): Likewise.
16000 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16001 (SHM_STAT_ANY): Likewise.
16002 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16003 (SHM_STAT_ANY): Likewise.
16004 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16005 (SHM_STAT_ANY): Likewise.
16006 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16007 (SHM_STAT_ANY): Likewise.
16008 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16009 (SHM_STAT_ANY): Likewise.
16010 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16011 (SHM_STAT_ANY): Likewise.
16012 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16013 (SHM_STAT_ANY): Likewise.
16014 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16015 (SHM_STAT_ANY): Likewise.
16016
16017 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16018 (SEM_STAT_ANY): New macro.
16019 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16020 (SEM_STAT_ANY): Likewise.
16021 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16022 (SEM_STAT_ANY): Likewise.
16023 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16024 (SEM_STAT_ANY): Likewise.
16025 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16026 (SEM_STAT_ANY): Likewise.
16027 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16028 (SEM_STAT_ANY): Likewise.
16029 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16030 (SEM_STAT_ANY): Likewise.
16031 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16032 (SEM_STAT_ANY): Likewise.
16033 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16034 (SEM_STAT_ANY): Likewise.
16035 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16036 (SEM_STAT_ANY): Likewise.
16037
16038 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16039 (MSG_STAT_ANY): New macro.
16040 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16041 (MSG_STAT_ANY): Likewise.
16042 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16043 (MSG_STAT_ANY): Likewise.
16044 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16045 (MSG_STAT_ANY): Likewise.
16046 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16047 (MSG_STAT_ANY): Likewise.
16048 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16049 (MSG_STAT_ANY): Likewise.
16050 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16051 (MSG_STAT_ANY): Likewise.
16052 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16053 (MSG_STAT_ANY): Likewise.
16054 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16055 (MSG_STAT_ANY): Likewise.
16056 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16057 (MSG_STAT_ANY): Likewise.
16058
16059 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16060 (MAP_TYPE): Change value to 0x2b.
16061
16062 2018-06-18 Florian Weimer <fweimer@redhat.com>
16063
16064 [BZ #15722]
16065 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16066 socket with SOCK_CLOEXEC.
16067
16068 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16069
16070 [BZ #23303]
16071 * sysdeps/powerpc/powerpc64/le/Makefile
16072 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16073 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16074 (gnulib-tests): Also add $(f128-loader-link) for
16075 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16076
16077 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16078
16079 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16080 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16081 of sendfile.
16082 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16083 (sendfile64): New strong alias.
16084 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16085 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16086 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16087 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16088 attribute.
16089 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16090 ___pthread_get_cleanup_stack.
16091 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16092 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16093 * mach/shortcut.awk: Make syscall stubs include
16094 <mach-shortcuts-hidden.h> and add hidden definition.
16095 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16096 (__mach_msg): Add hidden prototype.
16097 * mach/msg.c: Include <mach.h>.
16098 (__mach_msg): Add hidden definition.
16099 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16100 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16101 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16102 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16103 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16104 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16105 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16106 prototype and definition.
16107 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16108 hidden target for _hurd_self_sigstate.
16109
16110 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16111
16112 [BZ #23007]
16113 * stdlib/tst-strtod-nan-sign-main.c: New file.
16114 * stdlib/tst-strtod-nan-sign.c: Likewise.
16115 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16116 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16117 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16118 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16119 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16120
16121 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16122
16123 [BZ #23007]
16124 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16125 appropriate sign.
16126
16127 2018-06-14 Florian Weimer <fweimer@redhat.com>
16128
16129 [BZ #23290]
16130 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16131 that the result stays within the ISO-8859-1 range.
16132 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16133 characters are defined in IBM273.
16134
16135 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16136
16137 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16138 __mach_task_self): Remove attribute_hidden.
16139
16140 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16141
16142 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16143 ignore -Wrestrict for one test.
16144
16145 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16146 Szabolcs Nagy <szabolcs.nagy@arm.com>
16147
16148 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16149
16150 2018-06-14 Florian Weimer <fweimer@redhat.com>
16151
16152 * scripts/update-abilist.sh: Accept empty list of files to patch.
16153
16154 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16155
16156 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16157 test-xfail-check-abi-libmachuser): Add.
16158 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16159 __libc_read and __libc_write to __read and __write.
16160 * sysdeps/hurd/include/hurd/port.h: New file.
16161 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16162 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16163 __thread_switch, __evc_wait): Move declarations to...
16164 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16165 attribute_hidden.
16166 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16167 use PLT to call _hurd_self_sigstate.
16168
16169 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16170
16171 [BZ #23279]
16172 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16173 MAX_EXP as overflowing.
16174 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16175 overflow flag.
16176 (round_str): Output also whether result overflows in each rounding
16177 mode.
16178 * stdlib/tst-strtod-round-data: Add more tests.
16179 * stdlib/tst-strtod-round-data.h: Regenerated.
16180 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16181 (TEST): Handle extra arguments for overflow flags.
16182 (struct test_overflow): New type.
16183 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16184 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16185 (test_in_one_mode): Take argument with overflow information.
16186 (do_test): Update calls to test_in_one_mode.
16187
16188 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16189
16190 * elf/dl-load (_dl_dst_substitute): Correct comment.
16191 (_dl_dst_count): Likewise.
16192
16193 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16194 lll_futex_timed_wait.
16195
16196 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16197
16198 [BZ #23277]
16199 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16200 attribute.
16201 * math/test-nan-const.c: New file.
16202 * math/Makefile (tests): Add test-nan-const.
16203 (CFLAGS-test-nan-const.c): New variable.
16204
16205 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16206
16207 * benchtests/scripts/compare_strings.py (process_results): Add
16208 funcs argument. Compare only functions which are selected.
16209 (main): Check if base function is among selected functions.
16210 Pass selected functions to process_results.
16211 (__main__): Add -f/--functions argument.
16212
16213 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16214 Hongbo Zhang <hongbo.zhang@linaro.org>
16215
16216 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16217 __memcpy_falkor for phecda core.
16218 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16219 __memmove_falkor for phecda core.
16220 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16221 __memset_falkor for phecda core.
16222 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16223 for phecda core.
16224 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16225 macro to identify phecda core.
16226
16227 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16228 Andreas Schwab <schwab@suse.de>
16229 Dmitry V. Levin <ldv@altlinux.org>
16230 Florian Weimer <fweimer@redhat.com>
16231
16232 [BZ #23102]
16233 [BZ #21942]
16234 [BZ #18018]
16235 [BZ #23259]
16236 CVE-2011-0536
16237 * elf/dl-dst.h: Remove DL_DST_COUNT.
16238 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16239 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16240 (is_dst): Comment. Support ELF gABI.
16241 (_dl_dst_count): Comment. Simplify and count DSTs.
16242 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16243 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16244 locals.
16245
16246 2018-06-12 Zack Weinberg <zackw@panix.com>
16247
16248 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16249 * sysdeps/unix/sysv/linux/dl-sysdep.c
16250 Include not-cancel.h. Use __close_nocancel instead of __close,
16251 __open64_nocancel instead of __open, __read_nocancel instead of
16252 __libc_read, and __write_nocancel instead of __libc_write.
16253
16254 * csu/check_fds.c (check_one_fd)
16255 * sysdeps/posix/fdopendir.c (__fdopendir)
16256 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16257 instead of __fcntl and/or __libc_fcntl.
16258
16259 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16260 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16261 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16262 Use __open64_nocancel instead of __open_nocancel.
16263
16264 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16265 hidden_proto declarations to the end and issue them if either
16266 IS_IN(libc) or IS_IN(rtld).
16267 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16268 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16269 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16270 read_nocancel, waitpid_nocancel, write_nocancel.
16271
16272 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16273 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16274 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16275
16276 * nptl/pt-fcntl.c: New file.
16277 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16278 (libpthread-routines): Add pt-fcntl.
16279 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16280 (__libc_fcntl): Remove attribute_hidden.
16281 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16282 __fcntl_nocancel_adjusted, not fcntl_common.
16283 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16284 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16285 to fcntl_nocancel.c.
16286 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16289 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16290
16291 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16292 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16293 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16294 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16295 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16296 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16297 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16298 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16299 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16300 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16301 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16302 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16303 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16304 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16305 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16306 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16307 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16308 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16309 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16310 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16311
16312 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16313 libpthread-routines.
16314 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16315 defines nothing.
16316
16317 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16318 __libc_read, and __write instead of __libc_write. Define
16319 __open64 in addition to __open.
16320
16321 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16322
16323 [BZ #23250]
16324 [BZ #10686]
16325 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16326 to _private_tm[3] and add __glibc_reserved2.
16327 Add _Static_assert of offset of __private_ss == 0x30.
16328 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16329 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16330
16331 2018-06-12 Florian Weimer <fweimer@redhat.com>
16332
16333 x86: Make strncmp usable from rtld.
16334 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16335 __strncmp_ia32 if in libc (and not in rtld).
16336 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16337 strncmp if not in libc (and not to __strncmp_sse2).
16338
16339 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16340
16341 [BZ #23140]
16342 * localedata/locales/gd_GB (mon): Rename to...
16343 (alt_mon): This.
16344 (mon): Import from CLDR (genitive case).
16345 * localedata/locales/hsb_DE (mon): Rename to...
16346 (alt_mon): This.
16347 (mon): Import from CLDR (genitive case).
16348 * localedata/locales/wa_BE (mon): Rename to...
16349 (alt_mon): This.
16350 (mon): Add, fill with the proper genitive forms, but CLDR data
16351 is incomplete; completed according to the comments in this file.
16352 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16353
16354 * localedata/locales/wa_BE (country_name): Reword
16355 "Beljike" -> "Beldjike".
16356
16357 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16358
16359 [BZ #23272]
16360 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16361 cases of non-finite arguments.
16362 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16363
16364 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16365
16366 [BZ #23174]
16367 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16368
16369 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16370
16371 [BZ #23264]
16372 * include/unistd.h (__execvpex): New prototype.
16373 * posix/Makefile (tests): Add tst-spawn4.
16374 (tests-internal): Add tst-spawn4-compat.
16375 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16376 * posix/tst-spawn4-compat.c: New file.
16377 * posix/tst-spawn4.c: Likewise.
16378 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16379 binaries as shell scripts.
16380 * sysdeps/posix/spawni.c (__spawni): Likewise.
16381
16382 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16383
16384 [BZ #23145]
16385 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16386 ($(all-built-dso:=.dynsym): New target.
16387 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16388 ($(objpfx)check-initfini.out): New target.
16389 (generated): Add check-initfini.out.
16390 * scripts/check-initfini.awk: New file.
16391 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16392 (_fini): Likewise.
16393 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16394 (_fini): Likewise.
16395 * sysdeps/arm/crti.S (_init): Mark as hidden.
16396 (_fini): Likewise.
16397 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16398 (_fini): Likewise.
16399 * sysdeps/i386/crti.S (_init): Mark as hidden.
16400 (_fini): Likewise.
16401 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16402 (_fini): Likewise.
16403 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16404 (_fini): Likewise.
16405 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16406 (_fini): Likewise.
16407 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16408 (_fini): Likewise.
16409 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16410 (_fini): Likewise.
16411 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16412 (_fini): Likewise.
16413 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16414 (_fini): Likewise.
16415 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16416 (_fini): Likewise.
16417 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16418 (_fini): Likewise.
16419 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16420 (_fini): Likewise.
16421 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16422 (_fini): Likewise.
16423 * sysdeps/sh/crti.S (_init): Mark as hidden.
16424 (_fini): Likewise.
16425 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16426 (_fini): Likewise.
16427 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16428 (_fini): Likewise.
16429
16430 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16431
16432 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16433 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16434 and TF redirection to KFtype and KF only when the default
16435 long double type is not the IEEE 128-bit floating point type.
16436
16437 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16438
16439 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16440 macro.
16441 (HWCAP_USCAT): Likewise.
16442 (HWCAP_ILRCPC): Likewise.
16443 (HWCAP_FLAGM): Likewise.
16444 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16445 Increase to 28.
16446 (_dl_aarch64_cap_flags): Add new flag names.
16447
16448 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16449 (MAP_FIXED_NOREPLACE): New macro.
16450 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16451 (MAP_FIXED_NOREPLACE): Likewise.
16452 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16453 (MAP_FIXED_NOREPLACE): Likewise.
16454 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16455 (MAP_FIXED_NOREPLACE): Likewise.
16456 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16457 (MAP_FIXED_NOREPLACE): Likewise.
16458 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16459 (MAP_FIXED_NOREPLACE): Likewise.
16460 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16461 (MAP_FIXED_NOREPLACE): Likewise.
16462 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16463 (MAP_FIXED_NOREPLACE): Likewise.
16464 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16465 (MAP_FIXED_NOREPLACE): Likewise.
16466 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16467 (MAP_FIXED_NOREPLACE): Likewise.
16468 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16469 (MAP_FIXED_NOREPLACE): Likewise.
16470 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16471 (MAP_FIXED_NOREPLACE): Likewise.
16472 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16473 (MAP_FIXED_NOREPLACE): Likewise.
16474 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16475 (MAP_FIXED_NOREPLACE): Likewise.
16476 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16477 (MAP_FIXED_NOREPLACE): Likewise.
16478
16479 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16480 version to 4.17.
16481
16482 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16483
16484 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16485 version to 4.17
16486
16487 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16488
16489 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16490 int.
16491 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16492
16493 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16494
16495 * benchtests/scripts/compare_string.py: (process_results) Catch
16496 exception in non-existent base_func and catch exception in
16497 non-existent attribute.
16498 (parse_file) Catch exception if input file does not exist.
16499
16500 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16501
16502 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16503 options to avoid diff calculation and omit header, respectively.
16504 (main): process --no-diff and --no-header
16505
16506 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16507 H.J. Lu <hongjiu.lu@intel.com>
16508
16509 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16510 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16511 wcsncmp-sse2.
16512 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16513 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16514 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16515 and __wcsncmp_sse2.
16516 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16517 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16518 AVX unaligned load is fast and vzeroupper is preferred.
16519 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16520 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16521 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16522 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16523 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16524 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16525 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16526 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16527 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16528 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16529 is undefined.
16530
16531 2018-06-01 Florian Weimer <fweimer@redhat.com>
16532
16533 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16534 configuring with --disable-multi-arch, building with
16535 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16536 Haswell-era CPU.
16537
16538 2018-06-01 Florian Weimer <fweimer@redhat.com>
16539
16540 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16541 results from building with “-march=x86-64 -mtune=generic
16542 -mfpmath=sse” and running on a Haswell-era CPU.
16543
16544 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16545
16546 [BZ #18473]
16547 * soft-fp/sqrttf2.c: Remove file.
16548 * soft-fp/sqrtdf2.c: Move to ....
16549 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16550 <shlib-compat.h>.
16551 (__sqrtdf2): Make conditional on
16552 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16553 symbol.
16554 * soft-fp/sqrtsf2.c: Move to ....
16555 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16556 <shlib-compat.h>.
16557 (__sqrtsf2): Make conditional on
16558 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16559 symbol.
16560 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16561 (gcc-double-routines): Remove sqrtdf2.
16562 (gcc-quad-routines): Remove sqrttf2.
16563 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16564 Do not filter out sqrtsf2 and sqrtdf2.
16565 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16566 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16567
16568 2018-06-01 Florian Weimer <fweimer@redhat.com>
16569
16570 * sysdeps/generic/libcidn.abilist: Remove file.
16571
16572 2018-06-01 Florian Weimer <fweimer@redhat.com>
16573
16574 [BZ #23236]
16575 * libio/strfile.h (struct _IO_str_fields): Rename members to
16576 discourage their use and add comment.
16577 (_IO_STR_DYNAMIC): Remove unused macro.
16578 * libio/strops.c (_IO_str_init_static_internal): Do not use
16579 callback pointers. Call malloc and free.
16580 (_IO_str_overflow): Do not use callback pointers. Call malloc
16581 and free.
16582 (enlarge_userbuf): Likewise.
16583 (_IO_str_finish): Call free.
16584 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16585 _allocate_buffer_unused.
16586 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16587 and free.
16588 (enlarge_userbuf): Likewise.
16589 (_IO_wstr_finish): Call free.
16590 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16591 _allocate_buffer_unused, _free_buffer_unused.
16592 * libio/memstream.c (__open_memstream): Likewise.
16593 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16594 * libio/wmemstream.c (open_wmemstream): Likewise.
16595
16596 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16597
16598 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16599 AMD Ryzen 7 1800X.
16600
16601 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16602
16603 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16604 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16605 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16606 New file.
16607 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16608 Likewise.
16609 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16610
16611 2018-05-29 Florian Weimer <fweimer@redhat.com>
16612
16613 * support/Makefile (libsupport-routines): Add
16614 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16615 xpthread_barrierattr_setpshared.
16616 * support/xpthread_barrierattr_destroy.c: New file.
16617 * support/xpthread_barrierattr_init.c: Likewise.
16618 * support/xpthread_barrierattr_setpshared.c: Likewise.
16619
16620 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16621
16622 [BZ #23206]
16623 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16624 _r_debug and update DT_DEBUG for debugger.
16625
16626 2018-05-29 Florian Weimer <fweimer@redhat.com>
16627
16628 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16629 (tst-strtod5i.out): Likewise.
16630
16631 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16632
16633 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16634 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16635 (sparc64-quad-routines): New variable. Moved from ....
16636 [$(subdir) = soft-fp] (sysdep_routines): Add
16637 $(sparc64-quad-routines). Moved from ....
16638 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16639 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16640 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16641 moved from ....
16642 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16643 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16644 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16645 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16646 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16647 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16648 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16649 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16650 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16651 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16652 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16653 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16654 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16655 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16656 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16657 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16658 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16659 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16660 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16661 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16662 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16663 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16664 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16665 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16666 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16667 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16668 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16669 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16670 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16671 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16672 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16673 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16674 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16675 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16676 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16677 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16678 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16679 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16680 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16681 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16682 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16683 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16684 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16685 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16686 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16687 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16688 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16689 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16690 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16691 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16692 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16693 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16694 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16695 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16696 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16697 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16698 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16699 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16700
16701 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16702 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16703 (sparc32-quad-routines): New variable. Moved from ....
16704 [$(subdir) = soft-fp] (sysdep_routines): Add
16705 $(sparc32-quad-routines). Moved from ....
16706 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16707 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16708 moved from ....
16709 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16710 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16711 * sysdeps/sparc/sparc32/q_add.c: ... here.
16712 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16713 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16714 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16715 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16716 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16717 * sysdeps/sparc/sparc32/q_div.c: ... here.
16718 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16719 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16720 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16721 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16722 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16723 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16724 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16725 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16726 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16727 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16728 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16729 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16730 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16731 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16732 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16733 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16734 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16735 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16736 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16737 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16738 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16739 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16740 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16741 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16742 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16743 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16744 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16745 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16746 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16747 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16748 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16749 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16750 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16751 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16752 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16753 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16754 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16755 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16756 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16757 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16758 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16759 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16760 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16761 * sysdeps/sparc/sparc32/q_util.c: ... here.
16762 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16763 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16764 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16765 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16766
16767 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16768 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16769
16770 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16771 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16772 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16773 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16774
16775 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16776
16777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16778 powerpc/soft-fp.
16779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16780 Likewise.
16781 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16782 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16783
16784 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16785
16786 [BZ #23171]
16787 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16788 double version.
16789
16790 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16791
16792 * sysdeps/sh/Implies: Remove sh/soft-fp.
16793 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16794 * sysdeps/sh/sfp-machine.h: ... here.
16795
16796 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16797
16798 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16799 (__mempcpy_erms): Skip zero length.
16800 (__memmove_erms): Likewise.
16801 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16802 (__memset_erms): Likewise.
16803
16804 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16805
16806 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16807 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16808 Add functions moved from ....
16809 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16810 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16811 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16812 from ....
16813 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16814 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16815 * sysdeps/alpha/e_sqrtl.c: ... here.
16816 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16817 * sysdeps/alpha/local-soft-fp.h: ... here.
16818 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16819 * sysdeps/alpha/ots_add.c: ... here.
16820 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16821 * sysdeps/alpha/ots_cmp.c: ... here.
16822 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16823 * sysdeps/alpha/ots_cmpe.c: ... here.
16824 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16825 * sysdeps/alpha/ots_cvtqux.c: ... here.
16826 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16827 * sysdeps/alpha/ots_cvtqx.c: ... here.
16828 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16829 * sysdeps/alpha/ots_cvttx.c: ... here.
16830 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16831 * sysdeps/alpha/ots_cvtxq.c: ... here.
16832 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16833 * sysdeps/alpha/ots_cvtxt.c: ... here.
16834 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16835 * sysdeps/alpha/ots_div.c: ... here.
16836 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16837 * sysdeps/alpha/ots_mul.c: ... here.
16838 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16839 * sysdeps/alpha/ots_nintxq.c: ... here.
16840 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16841 * sysdeps/alpha/ots_sub.c: ... here.
16842 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16843 * sysdeps/alpha/sfp-machine.h: ... here.
16844
16845 2018-05-23 Florian Weimer <fweimer@redhat.com>
16846
16847 [BZ #19728]
16848 [BZ #19729]
16849 [BZ #22247]
16850 CVE-2016-6261
16851 CVE-2016-6263
16852 CVE-2017-14062
16853 Switch to extern IDNA implementation (libidn2).
16854 * libidn: Remove subdirectory.
16855 * LICENSES: Do not mention licensing conditions for the removed
16856 libidn code.
16857 * config.h.in (HAVE_LIBIDN): Remove.
16858 * include/dlfcn.h (__libc_dlopen): Update comment.
16859 * include/idna.h: Remove file.
16860 * inet/Makefile (routines): Add idna.
16861 (tests-static, tests-internal): Add tst-idna_name_classify.
16862 (LOCALES): Generate locales for tests.
16863 (tst-idna_name_classify.out): Depend on generated locales.
16864 * inet/idna_name_classify.c: New file.
16865 * inet/tst-idna_name_classify.c: Likewise.
16866 * inet/net-internal.h (__idna_to_dns_encoding)
16867 (__idna_from_dns_encoding): Declare.
16868 * inet/net-internal.h (enum idna_name_classification): Define.
16869 (__idna_name_classify): Declare.
16870 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16871 __idna_from_dns_encoding.
16872 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16873 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16874 name as a fallback in case of encoding errors.
16875 (getnameinfo): Use DEPRECATED_NI_IDN.
16876 * inet/idna.c: New file.
16877 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16878 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16879 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16880 (modules-names): Add tst-no-libidn2.
16881 (extra-test-objs): Add tst-no-libidn2.os.
16882 (LDFLAGS-tst-no-libidn2.so): Set soname.
16883 (LOCALES): Set, and generate locales.
16884 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16885 (tst-resolv-ai_idn-latin1): Likewise.
16886 (tst-resolv-ai_idn-nolibidn2): Likewise.
16887 (tst-resolv-ai_idn.out): Depend on locales.
16888 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16889 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16890 tst-no-libidn2.so.
16891 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16892 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16893 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16894 * resolv/tst-resolv-ai_idn.c: New file.
16895 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16896 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16897 * resolv/tst-no-libidn2.c: Likewise.
16898 * support/support_format_addrinfo.c (format_ai_flags): Do not
16899 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16900 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16901 (gaih_inet): Call __idna_to_dns_encoding and
16902 __idna_from_dns_encoding, and use the original (punycode) name if
16903 __idna_from_dns_encoding fails due to an encoding error.
16904 (getaddrinfo): Use DEPRECATED_AI_IDN.
16905 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16906 * sysdeps/unix/inet/configure: Remove file.
16907 * sysdeps/unix/inet/configure.ac: Likewise.
16908
16909 2018-05-23 Florian Weimer <fweimer@redhat.com>
16910
16911 Implement allocate_once.
16912 * include/allocate_once.h: New file.
16913 * misc/allocate_once.c: Likewise.
16914 * misc/tst-allocate_once.c: Likewise.
16915 * misc/Makefile (routines): Add allocate_once.
16916 (tests-internal): Add tst-allocate_once.
16917 (generated): Add tst-allocate_once.mtrace,
16918 tst-allocate_once-mem.out.
16919 (tests-special): Add tst-allocate_once-mem.out.
16920 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16921 (tst-allocate_once-mem.out): Call mtrace.
16922 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16923
16924 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16925
16926 [BZ #23196]
16927 * string/test-memcpy.c (do_test1): New function.
16928 (test_main): Call it.
16929
16930 2018-05-23 Andreas Schwab <schwab@suse.de>
16931
16932 [BZ #23196]
16933 CVE-2018-11237
16934 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16935 (L(preloop_large)): Save initial destination pointer in %r11 and
16936 use it instead of %rax after the loop.
16937 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16938
16939 2018-05-22 Joseph Myers <joseph@codesourcery.com>
16940
16941 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16942 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16943 -I../soft-fp. Moved from ....
16944 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16945 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16946 * sysdeps/aarch64/e_sqrtl.c: ... here.
16947 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16948 * sysdeps/aarch64/sfp-machine.h: ... here.
16949
16950 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16951 -Wmaybe-uninitialized around access to fq[0].
16952 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16953 Likewise.
16954
16955 [BZ #18471]
16956 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16957 aliases for non-libc case of versioned symbols.
16958 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16959 (llseek): Define as compat symbol if
16960 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16961 with link warning.
16962 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16963 Make into a compat symbol, disabled for minimum symbol version
16964 GLIBC_2.28 and later.
16965 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16966
16967 2018-05-22 Florian Weimer <fweimer@redhat.com>
16968
16969 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16970 not add -mpreferred-stack-boundary=4.
16971 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16972 (stack-align-test-flags): Likewise.
16973 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16974 Likewise.
16975 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16976 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16977 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16978 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16979 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16980 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16981 (CFLAGS-tst-align2.c): Likewise.
16982
16983 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16984
16985 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16986 (index_arch_Prefer_FSRM): Likewise.
16987 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16988 Also check Prefer_FSRM.
16989 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16990 Also return OPTIMIZE (erms) for Prefer_FSRM.
16991
16992 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16993
16994 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16995 (index_cpu_FSRM): Likewise.
16996 (reg_FSRM): Likewise.
16997
16998 2018-05-18 Joseph Myers <joseph@codesourcery.com>
16999
17000 * math/gen-tgmath-tests.py: Import sys.
17001 (Tests.__init__): Initialize macros_seen.
17002 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17003 if requested to do so for this macro.
17004 (Tests.add_all_tests): Take argument for macro for which to
17005 generate tests.
17006 (Tests.check_macro_list): New function.
17007 (main): Handle check-list argument and argument specifying macro
17008 for which to generate tests.
17009 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17010 [PYTHON] (tgmath3-macro-tests): Likewise.
17011 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17012 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17013 not test-tgmath3.c.
17014 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17015 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17016 to CFLAGS.
17017 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17018 [PYTHON] ($(foreach
17019 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17020 rule.
17021 [PYTHON] (tests-special): Add
17022 $(objpfx)test-tgmath3-macro-list.out.
17023 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17024
17025 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17026 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17027 later.
17028
17029 [BZ #22639]
17030 * time/tzset.c (SECSPERDAY): Cast to time_t.
17031 * time/tst-y2039.c: New file.
17032 * time/Makefile (tests): Add tst-y2039.
17033
17034 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17035
17036 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17037 (PREFETCH_ONE_SET): Remove duplicate line.
17038
17039 2018-05-17 Florian Weimer <fweimer@redhat.com>
17040
17041 * sysdeps/generic/math-type-macros-double.h: Include
17042 <math-nan-payload-double.h> after <libm-alias-double.h>.
17043 * sysdeps/generic/math-type-macros-float.h: Include
17044 <math-nan-payload-float.h> after <libm-alias-float.h>.
17045 * sysdeps/generic/math-type-macros-float128.h: Include
17046 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17047 * sysdeps/generic/math-type-macros-ldouble.h: Include
17048 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17049
17050 2018-05-17 Andreas Schwab <schwab@suse.de>
17051
17052 * resolv/res_send.c (__res_context_send): Don't set errno when
17053 returing error after malloc failure.
17054
17055 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17056
17057 * nptl/allocatestack.c (allocate_stack): Remove the
17058 !__ASSUME_PRIVATE_FUTEX paths.
17059 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17060 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17061 Likewise.
17062 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17063 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17064 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17065 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17066 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17067 !__ASSUME_PRIVATE_FUTEX path.
17068 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17069 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17070 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17071 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17072 !__ASSUME_PRIVATE_FUTEX macros.
17073 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17074 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17075 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17076 * sysdeps/unix/sysv/linux/kernel-features.h
17077 (__ASSUME_PRIVATE_FUTEX): Removed.
17078
17079 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17080
17081 * math/Makefile (libm-narrow-fns): Add div.
17082 (libm-test-funcs-narrow): Likewise.
17083 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17084 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17085 * math/gen-auto-libm-tests.c (test_functions): Add div.
17086 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17087 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17088 (NARROW_DIV_TRIVIAL): Likewise.
17089 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17090 macro.
17091 (__ddivl): Likewise.
17092 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17093 ddiv.
17094 (CFLAGS-nldbl-ddiv.c): New variable.
17095 (CFLAGS-nldbl-fdiv.c): Likewise.
17096 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17097 __nldbl_ddivl.
17098 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17099 prototype.
17100 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17101 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17102 * math/auto-libm-test-in: Add tests of div.
17103 * math/auto-libm-test-out-narrow-div: New generated file.
17104 * math/libm-test-narrow-div.inc: New file.
17105 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17106 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17107 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17108 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17109 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17110 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17111 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17112 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17113 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17114 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17115 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17116 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17117 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17118 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17119 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17120 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17121 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17122 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17123 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17124 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17125 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17126 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17127 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17128 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17129 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17130 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17131 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17132 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17133 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17134 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17135 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17136 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17141 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17142 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17143 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17144 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17145 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17146 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17147 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17148 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17149
17150 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17151
17152 [BZ #23178]
17153 * nscd/nscd-client.h (sendfileall): Remove prototype.
17154 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17155 (handle_request): Use writeall instead of sendfileall.
17156 * nscd/aicache.c (addhstaiX): Likewise.
17157 * nscd/grpcache.c (cache_addgr): Likewise.
17158 * nscd/hstcache.c (cache_addhst): Likewise.
17159 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17160 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17161 * nscd/pwdcache.c (cache_addpw): Likewise.
17162 * nscd/servicescache.c (cache_addserv): Likewise.
17163 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17164 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17165 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17166 Remove define.
17167
17168 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17169
17170 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17171 Include <string/strncat.c>.
17172 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17173 alias.
17174 (__GI___strncat): New hidden alias.
17175
17176 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17177
17178 * sysdeps/mips/mips32/libm-test-ulps: Update.
17179 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17180
17181 2018-05-16 Florian Weimer <fweimer@redhat.com>
17182
17183 * support/Makefile (libsupport-routines): Add support_quote_blob,
17184 support_test_compare_blob.
17185 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17186 * support/check.h (TEST_COMPARE_BLOB): Define.
17187 (support_test_compare_blob): Declare.
17188 * support/support.h (support_quote_blob): Declare.
17189 * support/support_quote_blob.c: New file.
17190 * support/support_test_compare_blob.c: Likewise.
17191 * support/tst-support_quote_blob.c: Likewise.
17192 * support/tst-test_compare_blob.c: Likewise.
17193
17194 2018-05-16 Florian Weimer <fweimer@redhat.com>
17195
17196 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17197 of <strtod_nan_double.h>.
17198 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17199 instead of SET_MANTISSA.
17200 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17201 of include <strtod_nan_float.h>.
17202 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17203 instead of <strtod_nan_ldouble.h>.
17204 * stdlib/strtod_nan_double.h: Move to ...
17205 * sysdeps/generic/math-nan-payload-double.h: ... here.
17206 (FLOAT): Remove definition.
17207 (SET_MANTISSA): Rename to ...
17208 (SET_NAN_PAYLOAD): ... this.
17209 * stdlib/strtod_nan_float.h: Move to ...
17210 * sysdeps/generic/math-nan-payload-float.h: ... here.
17211 (FLOAT): Remove definition.
17212 (SET_MANTISSA): Rename to ...
17213 (SET_NAN_PAYLOAD): ... this.
17214 * sysdeps/generic/math-type-macros-double.h: Include
17215 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17216 instead of <math-svid-compat.h>.
17217 * sysdeps/generic/math-type-macros-float.h: Include
17218 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17219 instead of <math-svid-compat.h>.
17220 * sysdeps/generic/math-type-macros-float128.h: Include
17221 <math-nan-payload-float128.h>.
17222 * sysdeps/generic/math-type-macros-ldouble.h: Include
17223 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17224 instead of <math-svid-compat.h>.
17225 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17226 check for definition.
17227 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17228 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17229 Include <ieee754_float128.h>.
17230 (FLOAT): Remove definition.
17231 (SET_MANTISSA): Rename to ...
17232 (SET_NAN_PAYLOAD): ... this.
17233 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17234 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17235 Do not include <float128_private.h>.
17236 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17237 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17238 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17239 (FLOAT): Remove definition.
17240 (SET_MANTISSA): Rename to ...
17241 (SET_NAN_PAYLOAD): ... this.
17242 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17243 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17244 (FLOAT): Remove definition.
17245 (SET_MANTISSA): Rename to ...
17246 (SET_NAN_PAYLOAD): ... this.
17247 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17248 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17249 (FLOAT): Remove definition.
17250 (SET_MANTISSA): Rename to ...
17251 (SET_NAN_PAYLOAD): ... this.
17252 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17253 of "../stdlib/strtod_nan_double.h".
17254 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17255 of "../stdlib/strtod_nan_float.h".
17256 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17257 instead of "../stdlib/strtod_nan_ldouble.h".
17258 * manual/arith.texi (Parsing of Floats): Adjust comment.
17259
17260 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17261
17262 * math/Makefile (libm-narrow-fns): Add mul.
17263 (libm-test-funcs-narrow): Likewise.
17264 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17265 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17266 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17267 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17268 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17269 (NARROW_MUL_TRIVIAL): Likewise.
17270 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17271 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17272 macro.
17273 (__dmull): Likewise.
17274 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17275 dmul.
17276 (CFLAGS-nldbl-dmul.c): New variable.
17277 (CFLAGS-nldbl-fmul.c): Likewise.
17278 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17279 __nldbl_dmull.
17280 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17281 prototype.
17282 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17283 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17284 * math/auto-libm-test-in: Add tests of mul.
17285 * math/auto-libm-test-out-narrow-mul: New generated file.
17286 * math/libm-test-narrow-mul.inc: New file.
17287 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17288 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17289 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17290 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17291 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17292 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17293 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17294 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17295 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17296 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17297 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17298 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17299 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17300 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17301 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17302 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17303 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17304 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17305 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17306 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17307 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17308 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17309 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17310 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17311 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17312 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17313 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17314 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17315 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17316 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17317 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17318 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17323 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17324 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17325 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17326 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17327 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17328 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17329 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17330 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17331
17332 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17333
17334 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17335 with *%eax in call.
17336
17337 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17338
17339 * sysdeps/i386/ldsodefs.h: Removed.
17340 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17341 * sysdeps/x86/ldsodefs.h: This.
17342 (La_i86_regs): New.
17343 (La_i86_retval): Likewise.
17344 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17345 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17346
17347 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17348
17349 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17350 unnecessary testl.
17351
17352 2018-05-13 Alan Modra <amodra@gmail.com>
17353
17354 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17355 R_PARISC_TLS_DTPOFF32 reloc addend.
17356
17357 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17358
17359 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17360 * math/math.h: Restrict the prototype definition for the functions
17361 issignaling(_Float128) and iszero(_Float128); and template
17362 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17363 __HAVE_FLOAT128_UNLIKE_LDBL.
17364 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17365 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17366 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17367 __f128() constants; define the type _Float128 as long double;
17368 and reuse long double in __CFLOAT128.
17369
17370 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17371
17372 * sysdeps/generic/math_private.h: Do not include
17373 <math-barriers.h>.
17374 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17375 <math_private.h>.
17376 * math/fromfp.h: Include <math-barriers.h>.
17377 * math/math-narrow.h: Likewise.
17378 * math/s_nextafter.c: Likewise.
17379 * math/s_nexttowardf.c: Likewise.
17380 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17381 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17382 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17383 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17384 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17385 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17386 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17387 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17388 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17389 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17390 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17391 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17392 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17393 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17394 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17395 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17396 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17397 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17398 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17399 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17400 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17401 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17402 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17403 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17404 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17405 * sysdeps/ieee754/k_standardl.c: Likewise.
17406 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17407 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17408 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17409 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17410 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17411 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17412 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17413 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17414 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17415 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17416 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17417 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17418 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17419 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17420 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17421 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17422 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17423 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17424 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17425 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17426 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17427 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17428
17429 2018-05-11 Florian Weimer <fweimer@redhat.com>
17430
17431 Use 64-bit epoch values in the time zone file parser.
17432 * include/time.h (internal_time_t): Define.
17433 (__tzfile_compute): Use it.
17434 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17435 member.
17436 (transitions): Switch to internal_time_t.
17437 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17438 types.
17439 (__tzfile_compute): Use internal_time_t for timer argument. Check
17440 for truncation before calling __offtime.
17441
17442 2018-05-11 Florian Weimer <fweimer@redhat.com>
17443
17444 [BZ #23166]
17445 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17446 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17447 Likewise.
17448 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17449 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17450 export without --enable-obsolete-rpc.
17451 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17452 symbol. This should not have been exported, ever.
17453
17454 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17455
17456 [BZ #23152]
17457 * localedata/locales/gd_GB (abmon): Fix typo in May:
17458 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17459
17460 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17461
17462 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17463 Use multiple registers to copy data in loop tail.
17464
17465 * sysdeps/aarch64/multiarch/memmove_falkor.S
17466 (__memmove_falkor): Use multiple registers to move data in
17467 loop tail.
17468
17469 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17470
17471 * math/math-underflow.h: New file.
17472 * sysdeps/generic/math_private.h: Do not include <float.h>.
17473 (fabs_tg): Remove macro. Moved to math-underflow.h.
17474 (min_of_type_f): Likewise.
17475 (min_of_type_): Likewise.
17476 (min_of_type_l): Likewise.
17477 (min_of_type_f128): Likewise.
17478 (min_of_type): Likewise.
17479 (math_check_force_underflow): Likewise.
17480 (math_check_force_underflow_nonneg): Likewise.
17481 (math_check_force_underflow_complex): Likewise.
17482 * math/e_exp2_template.c: Include <math-underflow.h>.
17483 * math/k_casinh_template.c: Likewise.
17484 * math/s_catan_template.c: Likewise.
17485 * math/s_catanh_template.c: Likewise.
17486 * math/s_ccosh_template.c: Likewise.
17487 * math/s_cexp_template.c: Likewise.
17488 * math/s_clog10_template.c: Likewise.
17489 * math/s_clog_template.c: Likewise.
17490 * math/s_csin_template.c: Likewise.
17491 * math/s_csinh_template.c: Likewise.
17492 * math/s_csqrt_template.c: Likewise.
17493 * math/s_ctan_template.c: Likewise.
17494 * math/s_ctanh_template.c: Likewise.
17495 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17496 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17497 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17498 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17499 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17500 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17501 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17502 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17503 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17504 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17505 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17506 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17507 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17508 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17509 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17510 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17511 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17512 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17513 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17514 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17515 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17516 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17517 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17518 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17519 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17520 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17521 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17522 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17523 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17524 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17525 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17526 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17527 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17528 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17529 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17530 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17531 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17532 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17533 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17534 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17535 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17536 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17537 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17538 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17539 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17540 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17541 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17542 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17543 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17544 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17545 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17546 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17547 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17548 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17549 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17550 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17551 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17552 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17553 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17554 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17555 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17556 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17557 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17558 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17559 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17560 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17561 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17562 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17563 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17564 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17565 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17566 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17567 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17568 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17569 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17570 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17571 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17572 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17573 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17574 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17575 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17576 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17577 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17578 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17579
17580 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17581
17582 * sysdeps/generic/math-barriers.h: New file.
17583 * sysdeps/generic/math_private.h [!math_opt_barrier]
17584 (math_opt_barrier): Move to math-barriers.h.
17585 [!math_opt_barrier] (math_force_eval): Likewise.
17586 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17587 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17588 math-barriers.h.
17589 (math_force_eval): Likewise.
17590 * sysdeps/alpha/fpu/math-barriers.h: New file.
17591 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17592 math-barriers.h.
17593 (math_force_eval): Likewise.
17594 * sysdeps/x86/fpu/math-barriers.h: New file.
17595 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17596 math-barriers.h.
17597 (math_force_eval): Likewise.
17598 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17599 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17600 multiple-include guard for rename.
17601 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17602 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17603 math-barriers.h.
17604 (math_force_eval): Likewise.
17605
17606 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17607
17608 [BZ #22786]
17609 CVE-2018-11236
17610 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17611 computation.
17612 * stdlib/Makefile (test-bz22786): New test.
17613 * stdlib/test-bz22786.c: New test.
17614
17615 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17616
17617 * include/math-narrow-eval.h: New file. Contents moved from ....
17618 * sysdeps/generic/math_private.h: ... here.
17619 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17620 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17621 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17622 * stdlib/strtod_l.c: Likewise.
17623 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17624 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17625 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17626 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17627 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17628 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17629 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17630 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17631 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17632 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17633 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17634 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17635 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17636 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17637 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17638 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17639 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17640 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17641 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17642 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17643 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17644 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17645 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17646 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17647 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17648 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17649 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17650 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17651 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17652
17653 2018-05-08 Andreas Schwab <schwab@suse.de>
17654
17655 * sysdeps/nptl/internaltypes.h: Fix comment.
17656
17657 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17658
17659 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17660 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17661 hidden.
17662
17663 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17664
17665 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17666 of I into loop header.
17667 * benchtests/bench-memmove-walk.c
17668 (test_main): Likewise.
17669
17670 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17671
17672 Revert:
17673 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17674 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17675
17676 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17677
17678 [BZ #20419]
17679 * elf/dl-load.c (open_verify): Fix stack overflow.
17680 * elf/Makefile (tst-big-note): New test.
17681 * elf/tst-big-note-lib.S: New.
17682 * elf/tst-big-note.c: New.
17683
17684 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17685
17686 * scripts/abilist.awk: Ignore absolute symbols.
17687 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17688 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17689 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17690 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17691 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17692 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17693 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17694 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17695 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17696 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17697 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17698 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17704 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17705 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17706 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17707 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17708 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17709 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17710 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17711 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17712 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17713 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17714 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17715 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17716 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17717 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17718 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17719 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17720 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17721 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17722 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17723 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17724 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17725 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17726 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17727 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17728 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17729 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17730 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17731 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17732 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17733 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17734 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17735 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17736 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17737 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17738 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17739 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17740 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17741 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17742 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17743 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17744 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17745 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17746 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17747 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17748 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17749 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17750 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17751 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17752 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17753 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17754 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17755 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17756 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17757 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17758 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17759 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17760 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17761 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17762 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17763 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17764 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17765 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17766 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17767 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17768 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17769 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17770 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17771 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17772 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17773 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17774 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17775 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17776 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17777 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17778 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17779 Likewise.
17780 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17781 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17782 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17783 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17784 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17785 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17786 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17787 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17788 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17789 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17790 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17791 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17792 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17793 Likewise.
17794 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17795 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17796 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17797 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17798 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17799 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17800 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17801 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17802 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17803 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17804 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17805 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17806 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17807 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17808 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17809 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17810 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17811 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17812 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17813 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17814 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17815 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17816 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17817 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17818 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17819 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17820 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17821 Likewise.
17822 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17824 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17825 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17839 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17840 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17842 Likewise.
17843 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17846 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17852 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17875 Likewise.
17876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17881 Likewise.
17882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17883 Likewise.
17884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17886 Likewise.
17887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17889 Likewise.
17890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17891 Likewise.
17892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17895 Likewise.
17896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17897 Likewise.
17898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17899 Likewise.
17900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17904 Likewise.
17905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17911 Likewise.
17912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17914 Likewise.
17915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17916 Likewise.
17917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17918 Likewise.
17919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17920 Likewise.
17921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17924 Likewise.
17925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17926 Likewise.
17927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17928 Likewise.
17929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17932 Likewise.
17933 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17947 Likewise.
17948 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17960 Likewise.
17961 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17964 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17965 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17973 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17975 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17976 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17977 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17978 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17979 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17983 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17986 Likewise.
17987 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17996 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17997 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17998 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17999 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18000 Likewise.
18001 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18005 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18006 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18008 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18012 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18013 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18014 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18017 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18018 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18019 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18020 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18022 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18026 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18028 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18029 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18030 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18039
18040 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18041
18042 [BZ #23137]
18043 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18044 Use atomic_load_acquire to load __tid.
18045
18046 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18047
18048 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18049 Restore the pointer into %rdx, after syscall and use %rdx,
18050 instead of %rsi, to restore context.
18051
18052 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18053
18054 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18055 Pop the pointer into %rdx after syscall and use %rdx, instead
18056 of %rsi, to restore context.
18057
18058 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18059
18060 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18061 handlers after setjmp.
18062 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18063 defined.
18064 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18065 <libc-pointer-arith.h>.
18066 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18067 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18068 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18069 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18070 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18071 * sysdeps/x86/__longjmp_cancel.S: New file.
18072 * sysdeps/x86/longjmp.c: Likewise.
18073 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18074
18075 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18076
18077 * NEWS: Add ustat.h deprecation entry.
18078 * bits/ustat.h: Remove file.
18079 * misc/sys/ustat.h: Likewise.
18080 * misc/ustat.h: Likewise.
18081 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18082 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18083 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18084 compatibility mode.
18085 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18086 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18087 generic Linux implementation.
18088
18089 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18090
18091 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18092 * math/w_expl_compat.c: Likewise.
18093 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18094
18095 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18096
18097 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18098
18099 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18100
18101 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18102 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18103 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18104 Remove.
18105 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18107 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18108 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18109 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18110 and SYSCALL_LL64.
18111
18112 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18113
18114 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18115
18116 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18117 * math/w_asin_template.c: Likewise.
18118 * math/w_atanh_template.c: Likewise.
18119
18120 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18121
18122 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18123 to powerpc/powerpc64/be for big-endian.
18124 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18125 little-endian.
18126
18127 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18128 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18129 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18130 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18131 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18132 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18133 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18134 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18135 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18136 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18137 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18138 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18139 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18140 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18141 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18142 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18143 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18144 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18145 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18146 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18147 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18148 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18149 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18150 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18151 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18152 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18153 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18154 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18155 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18156 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18157 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18158 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18159
18160 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18161 adjusted to imply powerpc64 and older processors on powerpc64/be.
18162 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18163 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18164 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18165 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18166 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18167 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18168 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18169 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18170 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18171 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18172 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18173 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18174 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18175 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18176 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18177 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18178 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18179 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18180 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18181 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18182 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18183 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18184 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18185 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18186 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18187 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18188 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18189 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18190 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18191 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18192 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18193
18194 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18195 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18196 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18197 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18198
18199 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18200 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18201 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18202 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18203
18204 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18205 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18206 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18207 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18208 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18209 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18210 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18211 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18212 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18213 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18214 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18215
18216 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18217 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18218 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18219 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18220 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18221 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18222 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18223 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18224 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18225 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18226 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18227
18228 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18229 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18230 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18231 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18232 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18233 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18234 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18235 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18236 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18237 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18238 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18239 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18240
18241 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18242 and adjusted to imply olders processors.
18243 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18244 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18245 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18246 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18247 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18248 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18249 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18250 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18251 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18252 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18253 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18254
18255 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18256 powerpc64/le.
18257 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18258 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18259
18260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18261 powerpc64le.
18262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18264
18265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18266 powerpc64/be.
18267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18270
18271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18272 powerpc64 and adjusted.
18273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18276 Likewise.
18277
18278 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18279
18280 * sysdeps/tile: Remove.
18281 * sysdeps/unix/sysv/linux/tile: Likewise.
18282 * README (tilegx-*-linux-gnu): Remove from list of supported
18283 configurations.
18284 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18285 contribution of support for generic Linux kernel syscall
18286 interface.
18287 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18288 tilegx configurations.
18289 (Config.install_linux_headers): Do not handle tile.
18290 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18291 in comment.
18292 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18293 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18294 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18295 conditional undefine and redefine.
18296 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18297 in comment.
18298 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18299 conditional undefine and redefine.
18300
18301 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18302
18303 * signal/tst-sigaction.c: New file to test BZ #23069.
18304 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18305
18306 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18307
18308 [BZ #22766]
18309 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18310 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18311 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18312 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18313
18314 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18315
18316 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18317 _DIRENT_MATCHES_DIRENT64 is not defined.
18318 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18319 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18320 is defined.
18321 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18322 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18323
18324 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18325
18326 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18327 version to GCC 8 branch.
18328
18329 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18330
18331 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18332 (check_no_hidden): Use type of original function when declaring
18333 alias.
18334
18335 * sysdeps/unix/sysv/linux/sys/ptrace.h
18336 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18337 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18338 (struct __ptrace_seccomp_metadata): New type.
18339 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18340 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18341 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18342 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18343 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18344 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18345 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18346 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18347 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18348 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18349 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18350 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18351 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18352 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18353 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18354 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18355
18356 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18357
18358 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18359 defined.
18360 * dirent/versionsort.c (versionsort): Likewise.
18361 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18362 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18363 * dirent/versionsort64.c (versionsort64): Likewise.
18364 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18365 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18366 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18367 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18368 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18369 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18370 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18371 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18372 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18373 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18376 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18377 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18378
18379 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18380
18381 * elf/elf.h (NT_PPC_PKEY): New macro.
18382
18383 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18384
18385 [BZ #23094]
18386 * localedata/locales/hr_HR: fix thousands_sep and
18387 mon_thousands_sep
18388
18389 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18390
18391 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18392 (XTABS): Define to TAB3.
18393
18394 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18395
18396 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18397
18398 * dirent/scandir-tail-common.c: New file.
18399 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18400 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18401 * dirent/scandir.c: Use scandir-tail-common.c.
18402 * dirent/scandirat.c: Likewise.
18403 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18404 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18405 if _DIRENT_MATCHES_DIRENT64 is defined.
18406 * dirent/scandirat64.c (scandirat64): Likewise.
18407 * include/dirent.h (__scandir_tail): Only define iff
18408 _DIRENT_MATCHES_DIRENT64 is not defined.
18409 (__scandir64_tail): Define regardless.
18410 (__scandirat, scandirat64): Remove libc_hidden_proto.
18411 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18412 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18414 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18415 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18416 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18417 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18418
18419 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18420
18421 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18422 New macro.
18423 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18424 Increase to 24.
18425 (_dl_aarch64_cap_flags): Add asimdfhm.
18426
18427 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18428
18429 * sysdeps/nios2/libm-test-ulps: Update.
18430
18431 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18432
18433 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18434 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18435
18436 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18437 requirements.
18438 (_DIRENT_MATCHES_DIRENT64): Undef
18439 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18440 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18441 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18442 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18443 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18444 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18445 use getdents64 syscalls as base.
18446 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18447 symbol if required.
18448 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18449 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18450 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18451 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18452 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18453 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18454 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18455 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18456 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18457 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18458 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18459
18460 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18461
18462 * scripts/test_printers_common.py (init_test): Disable lock elision.
18463
18464 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18465
18466 * math/test-tgmath.c (count_double, count_float,
18467 count_ldouble, count_cdouble, count_cfloat,
18468 count_cldouble): Use volatile int.
18469
18470 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18471
18472 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18473 (conformtest-xfail-conds): Add i386-gnu.
18474 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18475 i386-gnu.
18476 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18477 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18478 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18479 msqid_ds.msg_lrpid): Likewise.
18480 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18481 Likewise.
18482 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18483 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18484 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18485 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18486 unsigned int.
18487 (struct statvfs64): Likewise.
18488 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18489 Likewise.
18490 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18491 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18492 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18493 instead of wait_queue.
18494 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18495 instead of vm_area_struct.
18496 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18497 struct sched_param definition to it.
18498 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18499 * bits/types/struct_sched_param.h: New file.
18500 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18501 <bits/types/struct_sched_param.h> instead of <sched.h>.
18502 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18503 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18504 generic version but include <bits/pthreadtypes.h> to make struct
18505 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18506 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18507 non-compliant.
18508 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18509 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18510 [__USE_XOPEN] (OFDEL): New macro.
18511 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18512 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18513 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18514 prototypes.
18515 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18516 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18517 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18518 non-compliant.
18519 * sysdeps/i386/sys/ucontext.h: Likewise.
18520 * sysdeps/m68k/sys/ucontext.h: Likewise.
18521 * sysdeps/mips/sys/ucontext.h: Likewise.
18522 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18523 * sysdeps/mach/hurd/i386/Makefile
18524 (test-xfail-POSIX/fcntl.h/conform): Add.
18525 (test-xfail-POSIX/signal.h/conform): Add.
18526 (test-xfail-POSIX/semaphore.h/conform): Add.
18527 (test-xfail-POSIX/regex.h/conform): Add.
18528 (test-xfail-POSIX/aio.h/conform): Add.
18529 (test-xfail-POSIX/mqueue.h/conform): Add.
18530 (test-xfail-POSIX/sys/types.h/conform): Add.
18531 (test-xfail-UNIX98/fcntl.h/conform): Add.
18532 (test-xfail-UNIX98/netdb.h/conform): Add.
18533 (test-xfail-UNIX98/signal.h/conform): Add.
18534 (test-xfail-UNIX98/semaphore.h/conform): Add.
18535 (test-xfail-UNIX98/regex.h/conform): Add.
18536 (test-xfail-UNIX98/aio.h/conform): Add.
18537 (test-xfail-UNIX98/ftw.h/conform): Add.
18538 (test-xfail-UNIX98/mqueue.h/conform): Add.
18539 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18540 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18541 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18542 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18543 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18544 (test-xfail-UNIX98/sys/types.h/conform): Add.
18545 (test-xfail-UNIX98/stdlib.h/conform): Add.
18546 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18547 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18548 (test-xfail-POSIX2008/netdb.h/conform): Add.
18549 (test-xfail-POSIX2008/signal.h/conform): Add.
18550 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18551 (test-xfail-POSIX2008/regex.h/conform): Add.
18552 (test-xfail-POSIX2008/aio.h/conform): Add.
18553 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18554 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18555 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18556 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18557 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18558 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18559 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18560 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18561 (test-xfail-XOPEN2K/signal.h/conform): Add.
18562 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18563 (test-xfail-XOPEN2K/regex.h/conform): Add.
18564 (test-xfail-XOPEN2K/aio.h/conform): Add.
18565 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18566 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18567 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18568 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18569 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18570 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18571 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18572 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18573 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18574 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18575 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18576 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18577 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18578 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18579 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18580 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18581 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18582 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18583 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18584 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18585 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18586 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18587 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18588 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18589 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18590 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18591 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18592 i386-gnu.
18593 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18594 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18595
18596 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18597
18598 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18599 --enable-obsolete for powerpc-linux-gnuspe.
18600
18601 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18602
18603 * conform/data/sys/un.h-data: Allow sun_ prefix.
18604 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18605 prototypes.
18606 * sysdeps/mach/include/mach.h: Likewise.
18607 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18608 * sysdeps/mach/include/mach_error.h: Likewise.
18609
18610 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18611
18612 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18613 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18614 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18615 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18616
18617 2018-04-16 Andreas Schwab <schwab@suse.de>
18618
18619 [BZ #19527]
18620 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18621
18622 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18623
18624 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18625 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18626
18627 2018-04-12 DJ Delorie <dj@redhat.com>
18628
18629 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18630 version to 4.16.
18631
18632 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18633
18634 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18635 (struct kernel_sigaction): Use the same definition on 31bit as is used
18636 on 64bit.
18637
18638 2018-04-09 Florian Weimer <fweimer@redhat.com>
18639
18640 [BZ #23037]
18641 * resolv/res_send.c (send_dg): Use designated initializers instead
18642 of assignment to zero-initialize other fields of struct mmsghdr.
18643
18644 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18645
18646 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18647 __READDIR_ALIAS): Undefine after usage.
18648 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18649 __READDIR_R_ALIAS): Likewise.
18650 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18651 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18652 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18653 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18654 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18655 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18656 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18657 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18658 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18659 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18660 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18661 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18662 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18663 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18664 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18665 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18666 * sysdeps/unix/sysv/linux/readdir.c: New file.
18667 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18668 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18669 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18670
18671 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18672
18673 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18674
18675 * manual/charset.texi (Converting a Character): Fix typo.
18676
18677 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18678
18679 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18680
18681 * sysdeps/arm/libm-test-ulps: Update.
18682
18683 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18684 as base implementation.
18685 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18686 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18687 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18688 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18689 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18690 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18691 remove unrequired definitions and update comments.
18692 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18693 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18694 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18695 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18696 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18697 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18698 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18699 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18700 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18701 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18702 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18703 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18704 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18705 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18706 and RESET_SA_RESTORER hooks.
18707
18708 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18709
18710 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18711
18712 2018-04-05 Florian Weimer <fweimer@redhat.com>
18713
18714 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18715 integer overflow, memory leak on error, and indeterminate errno
18716 value. Add a null wide character to terminate the result string.
18717 * manual/charset.texi (Converting a Character): Mention embedded
18718 null bytes in the mbrtowc input string. Explain what happens in
18719 the -2 result case. Do not claim that mbrtowc is simple or
18720 obvious to use. Adjust the description of the code example. Use
18721 @code, not @var, for concrete variables.
18722
18723 2018-04-05 Florian Weimer <fweimer@redhat.com>
18724
18725 * manual/examples/mbstouwcs.c: New file.
18726 * manual/charset.texi (Converting a Character): Include it.
18727
18728 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18729
18730 * include/dirent.h (dirfd): Add hidden proto.
18731 * dirent/dirfd.c (dirfd): Add hidden def.
18732 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18733 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18734
18735 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18736
18737 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18738 sin, cos and sincos to 1 ULP.
18739
18740 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18741
18742 [BZ #19818]
18743 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18744 symbols.
18745 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18746 * elf/tst-absolute-sym.c: New file.
18747 * elf/tst-absolute-sym-lib.c: New file.
18748 * elf/tst-absolute-sym-lib.lds: New file.
18749 * elf/Makefile (tests): Add `tst-absolute-sym'.
18750 (modules-names): Add `tst-absolute-sym-lib'.
18751 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18752 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18753 ($(objpfx)tst-absolute-sym): New dependency.
18754
18755 [BZ #19818]
18756 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18757 parameter.
18758 (SYMBOL_ADDRESS): New macro.
18759 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18760 SYMBOL_ADDRESS for symbol address calculation.
18761 * elf/dl-runtime.c (_dl_fixup): Likewise.
18762 (_dl_profile_fixup): Likewise.
18763 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18764 * elf/rtld.c (dl_main): Likewise.
18765 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18766 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18767 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18768 (elf_machine_rela): Likewise.
18769 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18770 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18771 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18772 (elf_machine_rela): Likewise.
18773 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18774 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18775 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18776 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18777 Likewise.
18778 (elf_machine_reloc): Likewise.
18779 (elf_machine_got_rel): Likewise.
18780 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18781 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18782 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18783 Likewise.
18784 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18785 Likewise.
18786 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18787 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18788 Likewise.
18789 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18790 Likewise.
18791 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18792 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18793 Likewise.
18794 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18795 Likewise.
18796 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18797 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18798
18799 2018-04-04 Zack Weinberg <zackw@panix.com>
18800
18801 * sysdeps/generic/internal-signals.h: Include signal.h,
18802 sigsetops.h, and stdbool.h.
18803 (__libc_signal_block_all): Actually block all signals.
18804 (__libc_signal_block_app): Likewise.
18805 (__libc_signal_restore_set): Actually restore the signal mask.
18806
18807 2018-04-04 Florian Weimer <fweimer@redhat.com>
18808
18809 inet: Actually build and run tst-deadline.
18810 * inet/Makefile (tests-internal): Add tst-deadline and do not
18811 overwrite the variable.
18812 (tests-static-internal): Remove variable.
18813
18814 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18815
18816 [BZ #22947]
18817 * bits/uio-ext.h (RWF_APPEND): New.
18818 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18819 * manual/llio.texi: Document RWF_APPEND.
18820 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18821 (RWF_SUPPORTED): Add RWF_APPEND.
18822
18823 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18824
18825 [BZ #22391]
18826 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18827 check for internal nptl signals.
18828 * nptl/sigaction.c (__sigaction): Likewise.
18829 * signal/sigaddset.c (sigaddset): Likewise.
18830 * signal/sigdelset.c (sigdelset): Likewise.
18831 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18832 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18833 value.
18834 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18835 to filter out internal nptl signals.
18836 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18837 also check realtime signals using standard macros.
18838 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18839 __is_internal_signal, __libc_signal_block_all,
18840 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18841 * sysdeps/nptl/sigfillset.c: Remove file.
18842 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18843 Change return to bool.
18844 (__clear_internal_signals): Remove SIGTIMER clean since it is
18845 equal to SIGCANEL on Linux.
18846 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18847 signal set was constructed using standard functions.
18848
18849 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18850
18851 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18852 ifname is too long.
18853 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18854 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18855 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18856 hidden def.
18857 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18858 * signal/sigaddset.c: Include <sigsetopts.h>.
18859 * signal/sigdelset.c: Likewise.
18860
18861 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18862
18863 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18864 (__cos): Likewise.
18865 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18866 logic as sin and cos.
18867
18868 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18869
18870 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18871 inputs. Return correct sign.
18872 (do_sincos): Remove small input check before do_sin, let do_sin set
18873 the sign.
18874 (__sin): Likewise.
18875 (__cos): Likewise.
18876
18877 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18878
18879 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18880 (do_cos_slow): Likewise.
18881 (do_sin_slow): Likewise.
18882 (reduce_and_compute): Likewise.
18883 (slow): Likewise.
18884 (slow1): Likewise.
18885 (slow2): Likewise.
18886 (sloww): Likewise.
18887 (sloww1): Likewise.
18888 (sloww2): Likewise.
18889 (bslow): Likewise.
18890 (bslow1): Likewise.
18891 (bslow2): Likewise.
18892 (cslow2): Likewise.
18893
18894 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18895
18896 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18897 (do_cos): Remove corp parameter and calculations.
18898 (do_sin): Likewise.
18899 (do_sincos): Remove cor variable.
18900 (__sin): Use do_sincos for huge inputs.
18901 (__cos): Likewise.
18902 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18903 (reduce_and_compute_sincos): Remove unused function.
18904
18905 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18906
18907 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18908 reduce_sincos, improve accuracy to 136 bits.
18909 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18910 (__sin): Use improved reduction and simplified do_sincos calculation.
18911 (__cos): Likewise.
18912 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18913
18914 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18915
18916 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18917 (do_sincos_2): Likewise.
18918 (__sin): Remove middle range reduction case.
18919 (__cos): Likewise.
18920 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18921 reduction case.
18922
18923 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18924
18925 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18926 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18927 inputs.
18928 (__cos): Likewise.
18929 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18930
18931 2018-04-03 Joseph Myers <joseph@codesourcery.com>
18932
18933 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18934 version to 4.16
18935
18936 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18937
18938 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18939 Remove definitions.
18940 (opendir_oflags): Use O_DIRECTORY regardless.
18941 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18942 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18943
18944 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18945
18946 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18947 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18948 macros.
18949 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18950 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18951 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18952 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
18953 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18954 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
18955
18956 * htl/Makefile: Bump licence to LGPL 2.1+.
18957 * htl/alloca_cutoff.c: Likewise.
18958 * htl/cthreads-compat.c: Likewise.
18959 * htl/lockfile.c: Likewise.
18960 * htl/pt-alloc.c: Likewise.
18961 * htl/pt-cancel.c: Likewise.
18962 * htl/pt-cleanup.c: Likewise.
18963 * htl/pt-create.c: Likewise.
18964 * htl/pt-dealloc.c: Likewise.
18965 * htl/pt-detach.c: Likewise.
18966 * htl/pt-exit.c: Likewise.
18967 * htl/pt-getattr.c: Likewise.
18968 * htl/pt-initialize.c: Likewise.
18969 * htl/pt-internal.h: Likewise.
18970 * htl/pt-join.c: Likewise.
18971 * htl/pt-self.c: Likewise.
18972 * htl/pt-setcancelstate.c: Likewise.
18973 * htl/pt-setcanceltype.c: Likewise.
18974 * htl/pt-sigmask.c: Likewise.
18975 * htl/pt-spin-inlines.c: Likewise.
18976 * htl/pt-testcancel.c: Likewise.
18977 * htl/pt-yield.c: Likewise.
18978 * htl/tests/test-1.c: Likewise.
18979 * htl/tests/test-10.c: Likewise.
18980 * htl/tests/test-11.c: Likewise.
18981 * htl/tests/test-12.c: Likewise.
18982 * htl/tests/test-13.c: Likewise.
18983 * htl/tests/test-14.c: Likewise.
18984 * htl/tests/test-15.c: Likewise.
18985 * htl/tests/test-16.c: Likewise.
18986 * htl/tests/test-17.c: Likewise.
18987 * htl/tests/test-2.c: Likewise.
18988 * htl/tests/test-3.c: Likewise.
18989 * htl/tests/test-4.c: Likewise.
18990 * htl/tests/test-5.c: Likewise.
18991 * htl/tests/test-6.c: Likewise.
18992 * htl/tests/test-7.c: Likewise.
18993 * htl/tests/test-8.c: Likewise.
18994 * htl/tests/test-9.c: Likewise.
18995 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18996 * sysdeps/htl/bits/cancelation.h: Likewise.
18997 * sysdeps/htl/bits/pthread-np.h: Likewise.
18998 * sysdeps/htl/bits/pthread.h: Likewise.
18999 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19000 * sysdeps/htl/bits/semaphore.h: Likewise.
19001 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19002 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19003 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19004 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19005 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19006 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19007 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19008 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19009 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19010 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19011 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19012 * sysdeps/htl/old_pt-atfork.c: Likewise.
19013 * sysdeps/htl/pt-atfork.c: Likewise.
19014 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19015 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19016 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19017 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19018 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19019 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19020 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19021 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19022 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19023 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19024 * sysdeps/htl/pt-attr-init.c: Likewise.
19025 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19026 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19027 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19028 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19029 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19030 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19031 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19032 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19033 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19034 * sysdeps/htl/pt-attr.c: Likewise.
19035 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19036 * sysdeps/htl/pt-barrier-init.c: Likewise.
19037 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19038 * sysdeps/htl/pt-barrier.c: Likewise.
19039 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19040 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19041 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19042 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19043 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19044 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19045 * sysdeps/htl/pt-cond-init.c: Likewise.
19046 * sysdeps/htl/pt-cond-signal.c: Likewise.
19047 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19048 * sysdeps/htl/pt-cond-wait.c: Likewise.
19049 * sysdeps/htl/pt-cond.c: Likewise.
19050 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19051 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19052 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19053 * sysdeps/htl/pt-condattr-init.c: Likewise.
19054 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19055 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19056 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19057 * sysdeps/htl/pt-equal.c: Likewise.
19058 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19059 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19060 * sysdeps/htl/pt-getschedparam.c: Likewise.
19061 * sysdeps/htl/pt-getspecific.c: Likewise.
19062 * sysdeps/htl/pt-init-specific.c: Likewise.
19063 * sysdeps/htl/pt-key-create.c: Likewise.
19064 * sysdeps/htl/pt-key-delete.c: Likewise.
19065 * sysdeps/htl/pt-key.h: Likewise.
19066 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19067 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19068 * sysdeps/htl/pt-mutex-init.c: Likewise.
19069 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19070 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19071 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19072 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19073 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19074 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19075 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19076 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19077 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19078 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19079 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19080 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19081 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19082 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19083 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19084 * sysdeps/htl/pt-mutexattr.c: Likewise.
19085 * sysdeps/htl/pt-once.c: Likewise.
19086 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19087 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19088 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19089 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19090 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19091 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19092 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19093 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19094 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19095 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19096 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19097 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19098 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19099 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19100 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19101 * sysdeps/htl/pt-setschedparam.c: Likewise.
19102 * sysdeps/htl/pt-setschedprio.c: Likewise.
19103 * sysdeps/htl/pt-setspecific.c: Likewise.
19104 * sysdeps/htl/pt-spin.c: Likewise.
19105 * sysdeps/htl/pt-startup.c: Likewise.
19106 * sysdeps/htl/pthread.h: Likewise.
19107 * sysdeps/htl/sem-close.c: Likewise.
19108 * sysdeps/htl/sem-destroy.c: Likewise.
19109 * sysdeps/htl/sem-getvalue.c: Likewise.
19110 * sysdeps/htl/sem-init.c: Likewise.
19111 * sysdeps/htl/sem-open.c: Likewise.
19112 * sysdeps/htl/sem-post.c: Likewise.
19113 * sysdeps/htl/sem-timedwait.c: Likewise.
19114 * sysdeps/htl/sem-trywait.c: Likewise.
19115 * sysdeps/htl/sem-unlink.c: Likewise.
19116 * sysdeps/htl/sem-wait.c: Likewise.
19117 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19118 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19119 * sysdeps/mach/htl/pt-block.c: Likewise.
19120 * sysdeps/mach/htl/pt-spin.c: Likewise.
19121 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19122 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19123 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19124 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19125 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19126 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19127 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19128 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19129 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19130 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19131 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19132 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19133 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19134 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19135 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19136 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19137 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19138 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19139 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19140 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19141 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19142 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19143 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19144 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19145 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19146 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19147 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19148 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19149 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19150 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19151 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19152 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19153 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19154 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19155 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19156 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19157 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19158 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19159 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19160 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19161 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19162 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19163 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19164
19165 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19166 * README: Remove the mention of out-of-tree patches needed for
19167 GNU/Hurd.
19168
19169 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19170 (UTIME_NOW, UTIME_OMIT): Define macros.
19171
19172 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19173 instead of pthread_detach.
19174 (__cthread_fork): Call __pthread_create instead of pthread_create.
19175 (__cthread_keycreate): Call __pthread_key_create instead of
19176 pthread_key_create.
19177 (__cthread_getspecific): Call __pthread_getspecific instead of
19178 pthread_getspecific.
19179 (__cthread_setspecific): Call __pthread_setspecific instead of
19180 pthread_setspecific.
19181 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19182 __pthread_mutex_unlock instead of pthread_mutex_lock and
19183 pthread_mutex_unlock.
19184 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19185 ___pthread_get_cleanup_stack.
19186 (__pthread_get_cleanup_stack): New strong alias.
19187 * htl/pt-create.c: Include <pthreadP.h>.
19188 (entry_point): Call __pthread_exit instead of pthread_exit.
19189 (pthread_create): Rename to __pthread_create.
19190 (pthread_create): New strong alias.
19191 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19192 (pthread_detach): New strong alias.
19193 (__pthread_detach): Call __pthread_cond_broadcast instead of
19194 pthread_cond_broadcast.
19195 * htl/pt-exit.c: Include <pthreadP.h>.
19196 (__pthread_exit): Call __pthread_setcancelstate and
19197 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19198 __pthread_get_cleanup_stack.
19199 * htl/pt-testcancel.c: Include <pthreadP.h>.
19200 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19201 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19202 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19203 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19204 pthread_attr_getstacksize.
19205 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19206 Rename to __pthread_attr_getstackaddr.
19207 (pthread_attr_getstackaddr): New strong alias.
19208 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19209 Rename to __pthread_attr_getstacksize.
19210 (pthread_attr_getstacksize): New strong alias.
19211 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19212 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19213 (pthread_attr_setstack): New strong alias.
19214 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19215 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19216 pthread_attr_getstacksize, pthread_attr_setstacksize and
19217 pthread_attr_setstackaddr.
19218 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19219 Rename to __pthread_attr_setstackaddr.
19220 (pthread_attr_setstackaddr): New strong alias.
19221 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19222 Rename to __pthread_attr_setstacksize.
19223 (pthread_attr_setstacksize): New strong alias.
19224 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19225 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19226 pthread_exit.
19227 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19228 (__pthread_key_create): New hidden def.
19229 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19230 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19231 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19232 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19233 __pthread_setspecific, __pthread_setcancelstate,
19234 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19235 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19236 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19237 declarations.
19238 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19239 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19240 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19241 (pthread_attr_setstackaddr): New strong alias.
19242 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19243 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19244 (pthread_attr_setstacksize): New strong alias.
19245 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19246 (call_exit): Call __pthread_exit instead of pthread_exit.
19247 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19248 (_pthread_mutex_init): New hidden definition.
19249 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19250 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19251 instead of pthread_attr_init and pthread_attr_setstack.
19252
19253 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19254 __vm_deallocate instead of vm_allocate and vm_deallocate.
19255 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19256 setenv.
19257 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19258 of geteuid.
19259 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19260 strdup.
19261 * hurd/siginfo.c: Include <libioP.h>.
19262 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19263 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19264 munmap.
19265 * mach/devstream.c: Include <libioP.h>.
19266 (dealloc_ref): Call __mach_port_deallocate instead of
19267 mach_port_deallocate.
19268 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19269 Call __mach_port_deallocate instead of mach_port_deallocate.
19270 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19271 pathconf.
19272 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19273 munmap.
19274 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19275 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19276 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19277 of munmap.
19278 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19279 of close.
19280 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19281 instead of sysconf.
19282 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19283 __clock_gettime instead of clock_gettime.
19284 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19285 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19286 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19287 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19288 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19289 tcgetattr.
19290 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19291 __clock_gettime and __nanosleep instead of clock_gettime and
19292 nanosleep.
19293 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19294 __hurd_catch_signal.
19295 (hurd_catch_signal): New strong alias.
19296 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19297 __hurd_catch_signal instead of hurd_catch_signal.
19298 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19299 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19300 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19301 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19302 (_hurd_thread_sigstate): Add hidden def.
19303 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19304 mutex_unlock.
19305 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19306 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19307 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19308 __hurd_file_name_path_lookup.
19309 (hurd_file_name_path_lookup): New strong alias.
19310 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19311 hurd_file_name_path_lookup.
19312 * mach/errstring.c (mach_error_type): Add hidden def.
19313 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19314 * mach/mutex-init.c (__mutex_init): Add hidden def.
19315 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19316 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19317 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19318 * sysdeps/mach/hurd/getcwd.c
19319 (_hurd_canonicalize_directory_name_internal): Rename to
19320 __hurd_canonicalize_directory_name_internal.
19321 (_hurd_canonicalize_directory_name_internal): New strong alias.
19322 (__canonicalize_directory_name_internal, __getcwd): Call
19323 __hurd_canonicalize_directory_name_internal instead of
19324 _hurd_canonicalize_directory_name_internal.
19325 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19326 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19327 hidden defs.
19328 * sysdeps/hurd/include/hurd.h: New file.
19329 * sysdeps/hurd/include/hurd/fd.h: New file.
19330 * sysdeps/hurd/include/hurd/signal.h: New file.
19331 * sysdeps/mach/include/lock-intern.h: New file.
19332 * sysdeps/mach/include/mach.h: New file.
19333 * sysdeps/mach/include/mach/mig_support.h: New file.
19334 * sysdeps/mach/include/mach_error.h: New file.
19335 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19336 prototype.
19337 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19338 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19339 _HEADER_H_HIDDEN_DEF macro.
19340 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19341 _hurd_fd_error_signal): Add hidden prototype.
19342 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19343 hidden def.
19344 * libio/iolibio.h (_IO_puts): New hidden prototype.
19345 * libio/ioputs.c (_IO_puts): New hidden def.
19346 * sysdeps/mach/hurd/localplt.data: New file.
19347
19348 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19349 Amos Jeffries <squid3@treenet.co.nz>
19350 David Michael <fedora.dm0@gmail.com>
19351 Marco Gerards <marco@gnu.org>
19352 Marcus Brinkmann <marcus@gnu.org>
19353 Neal H. Walfield <neal@gnu.org>
19354 Pino Toscano <toscano.pino@tiscali.it>
19355 Richard Braun <rbraun@sceen.net>
19356 Roland McGrath <roland@gnu.org>
19357 Samuel Thibault <samuel.thibault@ens-lyon.org>
19358 Thomas DiModica <ricinwich@yahoo.com>
19359 Thomas Schwinge <tschwinge@gnu.org>
19360
19361 * htl: New directory.
19362 * sysdeps/htl: New directory.
19363 * sysdeps/hurd/htl: New directory.
19364 * sysdeps/i386/htl: New directory.
19365 * sysdeps/mach/htl: New directory.
19366 * sysdeps/mach/hurd/htl: New directory.
19367 * sysdeps/mach/hurd/i386/htl: New directory.
19368 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19369 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19370 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19371
19372 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19373
19374 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19375 signals in thread created for runing timers.
19376
19377 2018-04-01 Florian Weimer <fweimer@redhat.com>
19378
19379 * support/support_format_addrinfo.c (support_format_addrinfo):
19380 Include unknown error number in formatted result.
19381
19382 2018-03-29 Florian Weimer <fweimer@redhat.com>
19383
19384 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19385 capture SIGBUS.
19386
19387 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19388
19389 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19390 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19391 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19392 (__ASSUME_CLONE_BACKWARDS): Define.
19393
19394 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19395
19396 [BZ #23024]
19397 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19398 early when linux sentinel value is set.
19399
19400 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19401
19402 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19403
19404 2018-03-27 Andreas Schwab <schwab@suse.de>
19405
19406 [BZ #23005]
19407 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19408 allocation of private copy of nsaddr_list fails.
19409
19410 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19411
19412 [BZ #16552]
19413 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19414 * sysdeps/unix/sysv/linux/umount.c: ... here.
19415 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19416 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19417 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19418 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19420 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19421 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19422
19423 2018-03-26 Andreas Schwab <schwab@suse.de>
19424
19425 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19426 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19427 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19428 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19429 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19430 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19431 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19432 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19433 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19434 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19435 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19436 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19437 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19438 (R_RISCV_NUM): Define.
19439
19440 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19441
19442 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19443 TLS declaration of errno.
19444 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19445 __libc_setup_tls.
19446 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19447 (ARCH_SETUP_TLS): Likewise.
19448 * sysdeps/mach/hurd/libc-start.h: New file copied from
19449 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19450 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19451 instead of __libc_setup_tls.
19452 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19453 __libc_setup_tls before initializing libpthread and running _hurd_init
19454 which starts the signal thread.
19455 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19456 Declare function.
19457 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19458
19459 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19460
19461 [BZ #22998]
19462 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19463 after it is defined.
19464
19465 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19466 Max Horn <max@quendi.de>
19467
19468 [BZ #22644]
19469 CVE-2017-18269
19470 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19471 branch conditions.
19472 * string/test-memmove.c (do_test2): New testcase.
19473
19474 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19475
19476 * sysdeps/generic/frame.h: Remove file.
19477 * sysdeps/arm/frame.h: Likewise.
19478 * sysdeps/hppa/frame.h: Likewise.
19479 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19480 macro.
19481 (GET_FRAME): Likewise.
19482 (GET_STACK): Likewise.
19483 (CALL_SIGHANDLER): Likewise.
19484 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19485 Likewise.
19486 (GET_FRAME): Likewise.
19487 (GET_STACK): Likewise.
19488 (CALL_SIGHANDLER): Likewise.
19489 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19490 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19491 (GET_FRAME): Likewise.
19492 (GET_STACK): Likewise.
19493 (CALL_SIGHANDLER): Likewise.
19494 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19495 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19496 (GET_FRAME): Likewise.
19497 (GET_STACK): Likewise.
19498 (ADVANCE_STACK_FRAME): Likewise.
19499 (CALL_SIGHANDLER): Likewise.
19500 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19501 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19502 (GET_FRAME): Likewise.
19503 (GET_STACK): Likewise.
19504 (CALL_SIGHANDLER): Likewise.
19505 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19507 (GET_FRAME): Likewise.
19508 (GET_STACK): Likewise.
19509 (CALL_SIGHANDLER): Likewise.
19510 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19511 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19512 (GET_FRAME): Likewise.
19513 (GET_STACK): Likewise.
19514 (CALL_SIGHANDLER): Likewise.
19515 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19516 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19517 (GET_FRAME): Likewise.
19518 (GET_STACK): Likewise.
19519 (CALL_SIGHANDLER): Likewise.
19520 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19521 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19522 (GET_FRAME): Likewise.
19523 (GET_STACK): Likewise.
19524 (CALL_SIGHANDLER): Likewise.
19525 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19526 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19527 (GET_FRAME): Likewise.
19528 (GET_STACK): Likewise.
19529 (CALL_SIGHANDLER): Likewise.
19530 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19531 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19532 (GET_FRAME): Likewise.
19533 (GET_STACK): Likewise.
19534 (CALL_SIGHANDLER): Likewise.
19535 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19536 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19537 (GET_FRAME): Likewise.
19538 (GET_STACK): Likewise.
19539 (CALL_SIGHANDLER): Likewise.
19540 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19541 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19542 (GET_FRAME): Likewise.
19543 (GET_STACK): Likewise.
19544 (CALL_SIGHANDLER): Likewise.
19545 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19546 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19547 (FIRST_FRAME_POINTER): Likewise.
19548 (ADVANCE_STACK_FRAME): Likewise.
19549 (GET_STACK): Likewise.
19550 (GET_FRAME): Likewise.
19551 (CALL_SIGHANDLER): Likewise.
19552 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19553 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19554 (ADVANCE_STACK_FRAME): Likewise.
19555 (GET_STACK): Likewise.
19556 (GET_FRAME): Likewise.
19557 (CALL_SIGHANDLER): Likewise.
19558 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19559 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19560 (GET_FRAME): Likewise.
19561 (GET_STACK): Likewise.
19562 (CALL_SIGHANDLER): Likewise.
19563 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19564 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19565 (GET_FRAME): Likewise.
19566 (GET_STACK): Likewise.
19567 (CALL_SIGHANDLER): Likewise.
19568
19569 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19570
19571 * sysdeps/x86_64/backtrace.c: Move to ....
19572 * debug/backtrace.c: ... here.
19573 * sysdeps/aarch64/backtrace.c: Remove file.
19574 * sysdeps/alpha/backtrace.c: Likewise.
19575 * sysdeps/hppa/backtrace.c: Likewise.
19576 * sysdeps/ia64/backtrace.c: Likewise.
19577 * sysdeps/mips/backtrace.c: Likewise.
19578 * sysdeps/nios2/backtrace.c: Likewise.
19579 * sysdeps/riscv/backtrace.c: Likewise.
19580 * sysdeps/sh/backtrace.c: Likewise.
19581 * sysdeps/tile/backtrace.c: Likewise.
19582
19583 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19584
19585 [BZ #22987]
19586 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19587 function.
19588 (fdimf): Likewise.
19589 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19590
19591 [BZ #17343]
19592 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19593 possibly overflowing computations.
19594
19595 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19596
19597 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19598 values from Linux-specific section now that it is in the GNU section.
19599 * sysdeps/gnu/errlist.c: Regenerate.
19600
19601 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19602
19603 * math/Makefile (libm-narrow-fns): Add sub.
19604 (libm-test-funcs-narrow): Likewise.
19605 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19606 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19607 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19608 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19609 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19610 (NARROW_SUB_TRIVIAL): Likewise.
19611 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19612 macro.
19613 (__dsubl): Likewise.
19614 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19615 dsub.
19616 (CFLAGS-nldbl-dsub.c): New variable.
19617 (CFLAGS-nldbl-fsub.c): Likewise.
19618 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19619 __nldbl_dsubl.
19620 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19621 prototype.
19622 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19623 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19624 * math/auto-libm-test-in: Add tests of sub.
19625 * math/auto-libm-test-out-narrow-sub: New generated file.
19626 * math/libm-test-narrow-sub.inc: New file.
19627 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19628 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19629 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19630 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19631 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19632 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19633 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19634 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19635 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19636 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19637 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19638 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19639 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19640 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19641 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19642 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19643 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19644 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19645 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19646 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19647 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19648 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19649 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19650 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19651 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19652 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19653 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19654 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19655 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19656 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19657 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19658 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19663 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19664 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19665 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19666 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19667 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19668 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19669 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19670 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19671 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19672 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19673
19674 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19675
19676 [BZ #20079]
19677 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19678
19679 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19680
19681 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19682
19683 2018-03-18 Richard Braun <rbraun@sceen.net>
19684
19685 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19686 thread reference.
19687
19688 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19689
19690 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19691 (__libc_cleanup_fct): Define function.
19692 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19693 __libc_cleanup_end): Rewrite implementation using
19694 __attribute__ ((__cleanup__)).
19695 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19696 * hurd/Makefile (routines): Add hurdlock.
19697 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19698 interface.
19699 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19700 * hurd/hurdpid.c: Include <lowlevellock.h>
19701 (_S_msg_proc_newids): Use lll_wait to synchronize.
19702 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19703 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19704 * mach/Makefile (lock-headers): Remove machine-lock.h.
19705 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19706 <machine-lock.h>.
19707 (__spin_lock_t): New type.
19708 (__SPIN_LOCK_INITIALIZER): New macro.
19709 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19710 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19711 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19712 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19713 (__mutex_init): Initialize with lll.
19714 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19715 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19716 needing lll.
19717 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19718 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19719 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19720 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19721 (__setpgid): Use lll for synchronization.
19722 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19723 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19724 instead of <cthreads.h>.
19725 (_IO_lock_inexpensive): New macro
19726 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19727 (__libc_lock_self0): New declaration.
19728 (__libc_lock_owner_self): New macro.
19729 (__libc_key_t): Remove type.
19730 (_LIBC_LOCK_INITIALIZER): New macro.
19731 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19732 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19733 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19734 __libc_lock_define_initialized_recursive,
19735 __rtld_lock_define_initialized_recursive,
19736 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19737 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19738 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19739 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19740 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19741 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19742 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19743 New macros.
19744 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19745 * hurd/hurdlock.c: New file.
19746 * hurd/hurdlock.h: New file.
19747 * mach/lowlevellock.h: New file
19748
19749 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19750
19751 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19752 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19753 when opening a symlink with O_NOFOLLOW.
19754 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19755 path when flags contains O_NOFOLLOW.
19756 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19757 if flags contains O_DIRECTORY and the result is a directory.
19758 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19759 oneself when the pointer given in D is nul (as set by ext2fs).
19760 * sysdeps/mach/hurd/mlockall.c: New file.
19761 * sysdeps/mach/hurd/munlockall.c: New file.
19762
19763 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19764
19765 * hurd/hurdsig.c: Include <pthread.h>.
19766 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19767 get the signal thread stack layout.
19768 * hurd/Makefile (headers): Remove threadvar.h.
19769 (inline-headers): Remove threadvar.h.
19770 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19771 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19772 __hurd_threadvar_max, __hurd_errno_location.
19773 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19774 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19775 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19776 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19777 unless TLS is not initialized yet, in which case we do not need a
19778 critical section yet anyway.
19779 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19780 <machine-sp.h>.
19781 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19782 declarations.
19783 (__hurd_threadvar_index): Remove enum.
19784 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19785 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19786 inlines.
19787 (__hurd_reply_port0): New variable declaration.
19788 (__hurd_local_reply_port): New macro.
19789 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19790 (interrupted_reply_port_location): Add thread_t parameter. Use it
19791 with THREAD_TCB to access thread-local variables.
19792 (_hurdsig_abort_rpcs): Pass ss->thread to
19793 interrupted_reply_port_location.
19794 (_hurd_internal_post_signal): Likewise.
19795 (_hurdsig_init): Use presence of cthread_fork instead of
19796 __hurd_threadvar_stack_mask to start signal thread by hand.
19797 Remove signal thread threadvar initialization.
19798 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19799 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19800 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19801 of threadvar.
19802 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19803 __libc_lock_self0.
19804 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19805 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19806 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19807 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19808 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19809 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19810 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19811 define variables.
19812 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19813 <hurd/threadvar.h>.
19814 [IS_IN(rtld)] (rtld_errno): New variable.
19815 [IS_IN(rtld)] (__errno_location): New weak function.
19816 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19817 * sysdeps/mach/hurd/errno.c: Remove file.
19818 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19819 (__fork): Remove THREADVAR_SPACE macro and its use.
19820 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19821 variable.
19822 (init): Do not initialize threadvar.
19823 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19824 symbol.
19825 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19826 __hurd_local_reply_port instead of threadvar.
19827 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19828 _hurd_sigstate fields.
19829 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19830 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19831 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19832 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19833 instead of threadvar.
19834 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19835 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19836 (use_threadvar, global_reply_port): Remove variables.
19837 (__hurd_reply_port0): New variable.
19838 (__mig_get_reply_port): Use __hurd_local_reply_port and
19839 __hurd_reply_port0 instead of threadvar.
19840 (__mig_dealloc_reply_port): Likewise.
19841 (__mig_init): Do not initialize threadvar.
19842 * sysdeps/mach/hurd/profil.c: Fix comment.
19843 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19844 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19845 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19846 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19847 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19848 __cthread_setspecific.
19849 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19850 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19851 __cthread_t instead of cthread_fork, cthread_detach,
19852 pthread_getattr_np, pthread_attr_getstack.
19853 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19854 __cthread_keycreate.
19855 (cthread_getspecific): Rename to __cthread_getspecific.
19856 (cthread_setspecific): Rename to __cthread_setspecific.
19857 (__libc_getspecific): Use __cthread_getspecific instead of
19858 cthread_getspecific.
19859 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19860 __cthread_keycreate instead of cthread_keycreate.
19861 (__libc_setspecific): Use __cthread_setspecific instead of
19862 cthread_setspecific.
19863 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19864 Likewise.
19865 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19866 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19867 testing whether it is defined.
19868
19869 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19870
19871 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19872 Define macro.
19873 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19874 * sysdeps/mach/i386/thread_state.h
19875 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19876 i386_THREAD_STATE.
19877 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19878 i386_THREAD_STATE.
19879 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19880
19881 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19882 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19883
19884 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19885 macros.
19886 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19887 descriptor instead of creating a new one.
19888 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19889
19890 * mach/setup-thread.c: Include <ldsodefs.h>.
19891 (__mach_setup_thread): Call _dl_allocate_tls, pass
19892 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19893 MACHINE_THREAD_STATE_FLAVOR, before getting
19894 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19895 MACHINE_THREAD_STATE_FLAVOR with the result.
19896 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19897 MACHINE_THREAD_STATE_FIX_NEW.
19898 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19899 too. Add original thread parameter.
19900
19901 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19902
19903 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19904 Remove inline function.
19905
19906 * sysdeps/i386/fpu/libm-test-ulps: Update.
19907 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19908
19909 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19910
19911 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19912 commit.
19913
19914 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19915
19916 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19917 (__sincos_code): Remove define and undefine.
19918 [__FAST_MATH__] (__sincos): Remove inline function.
19919 [__FAST_MATH__] (__sincosf): Remove inline function.
19920 [__FAST_MATH__] (__sincosl): Remove inline function.
19921 (__atan2l): Remove inline functions.
19922 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19923 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19924 function.
19925 (floor): Remove inline function.
19926 (ceil): Likewise.
19927 [__FAST_MATH__] (__ldexp_code): Remove macro.
19928 [__FAST_MATH__] (ldexp): Remove inline function.
19929 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19930 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19931 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19932 [__USE_ISOC99] (__lrint_code): Remove macro.
19933 [__USE_ISOC99] (__llrint_code): Likewise.
19934 [__USE_ISOC99] (lrintf): Remove inline function.
19935 [__USE_ISOC99] (lrint): Likewise.
19936 [__USE_ISOC99] (lrintl): Likewise.
19937 [__USE_ISOC99] (llrint): Likewise.
19938 [__USE_ISOC99] (llrintf): Likewise.
19939 [__USE_ISOC99] (llrintl): Likewise.
19940
19941 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19942
19943 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19944 (__ieee754_sqrtf): Remove.
19945 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19946 (__ieee754_sqrtf): Remove.
19947 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19948 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19949 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19950 (__ieee754_sqrtf): Remove.
19951 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19952 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19953 (sqrtf): Remove.
19954 (sqrtl): Remove.
19955 (__ieee754_sqrt): Remove.
19956 (__ieee754_sqrtf): Remove.
19957 (__ieee754_sqrtl): Remove.
19958 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19959 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19960 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19961 (__ieee754_sqrtf): Remove.
19962 (__ieee754_sqrtl): Remove.
19963
19964 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19965
19966 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19967 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19968 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19969 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19970 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19971 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19972 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19973 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19974 Likewise.
19975 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19976 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19977 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19978 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19979 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19980 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19981 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19982 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19983 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19984 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19985 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19986 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19987 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19988 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19989 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19990 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19991 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19992 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19993 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19994 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19995 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19996 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19997 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19998 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19999 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20000 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20001 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20002 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20003 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20004 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20005 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20006 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20007 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20008 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20009 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20010 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20011 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20012 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20013 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20014 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20015
20016 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20017
20018 * include/math.h (sqrt): Declare with asm redirect.
20019 (sqrtf): Likewise.
20020 (sqrtl): Likewise.
20021 (sqrtf128): Likewise.
20022 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20023 nonlib and libnldbl with -fmath-errno.
20024 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20025 * math/w_sqrt_template.c: Likewise.
20026 * math/w_sqrtf_compat.c: Likewise.
20027 * math/w_sqrtl_compat.c: Likewise.
20028 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20029 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20030 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20031 complex.h.
20032
20033 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20034
20035 * benchtests/Makefile: Define _ISOMAC.
20036 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20037 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20038 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20039 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20040 * benchtests/bench-timing.h: Define attribute_hidden.
20041
20042 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20043
20044 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20045 mov + lsr.
20046
20047 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20048
20049 [BZ #22963]
20050 * localedata/locales/cs_CZ (mon): Rename to...
20051 (alt_mon): This.
20052 (mon): Import from CLDR (genitive case).
20053
20054 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20055
20056 [BZ #22937]
20057 * localedata/locales/el_CY (abmon): Rename to...
20058 (ab_alt_mon): This.
20059 (abmon): Import from CLDR (abbreviated genitive case).
20060 * localedata/locales/el_GR (abmon): Rename to...
20061 (ab_alt_mon): This.
20062 (abmon): Import from CLDR (abbreviated genitive case).
20063
20064 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20065
20066 [BZ #22932]
20067 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20068
20069 2018-03-15 Robert Buj <robert.buj@gmail.com>
20070
20071 [BZ #22848]
20072 * localedata/locales/ca_ES (abmon): Rename to...
20073 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20074 (mon): Rename to...
20075 (alt_mon): This.
20076 (abmon): Import from CLDR (genitive case, month names preceded by
20077 "de" or "d’").
20078 (mon): Likewise.
20079 (abday): Synchronize with CLDR.
20080 (d_t_fmt): Likewise.
20081 (d_fmt): Likewise.
20082 (am_pm): Likewise.
20083
20084 (LC_TIME): Improve indentation.
20085 (LC_TELEPHONE): Likewise.
20086 (LC_NAME): Likewise.
20087 (LC_ADDRESS): Likewise.
20088
20089 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20090
20091 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20092 (lrintf): Remove definitions used only with old GCC.
20093 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20094 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20095 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20096 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20097 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20098 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20099 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20100 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20101 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20102 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20103 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20104 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20105 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20106 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20107 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20108 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20109 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20110 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20111 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20112 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20113 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20114 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20115 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20116 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20117 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20118 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20119 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20120 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20121
20122 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20123
20124 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20125 instruction to unbreak builds with binutils 2.26 and older.
20126
20127 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20128
20129 * sysdeps/aarch64/strncmp.S (count): New macro.
20130 (strncmp): Store misaligned length in SRC1 in COUNT.
20131 (mutual_align): Adjust.
20132 (misaligned8): Load dword at a time when it is safe.
20133
20134 2018-03-12 Zack Weinberg <zackw@panix.com>
20135
20136 [BZ #1190]
20137 [BZ #19476]
20138 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20139 if the _IO_EOF_SEEN bit is already set; update commentary.
20140 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20141 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20142
20143 * support/support_openpty.c, support/tty.h: New files.
20144 * support/Makefile (libsupport-routines): Add support_openpty.
20145
20146 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20147 New test cases.
20148 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20149 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20150
20151 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20152
20153 * po/pt_BR.po: Update translations.
20154
20155 2018-03-12 David Michael <fedora.dm0@gmail.com>
20156
20157 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20158 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20159 get a port to the startup server.
20160
20161 2018-03-11 Zack Weinberg <zackw@panix.com>
20162
20163 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20164 before nldbl-compat.h.
20165
20166 2018-03-10 Zack Weinberg <zackw@panix.com>
20167
20168 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20169 math.h or math_private.h.
20170
20171 * sysdeps/alpha/fpu/s_isnan.c
20172 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20173 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20174 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20175 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20176 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20177 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20178 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20179 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20180 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20182 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20183 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20184 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20185 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20186 Include math_private.h.
20187
20188 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20189 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20190 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20191 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20192 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20193 * sysdeps/powerpc/power7/fpu/s_logb.c:
20194 Include math.h and math_private.h.
20195
20196 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20197 uses of $at in .set noat / .set at.
20198
20199 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20200
20201 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20202 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20203 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20204 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20205 Likewise.
20206
20207 2018-03-09 Florian Weimer <fweimer@redhat.com>
20208
20209 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20210 in comment.
20211
20212 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20213
20214 [BZ #22919]
20215 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20216 Add nop before __startcontext, add explaining comments.
20217
20218 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20219
20220 [BZ #22926]
20221 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20222 empty for __SPE__.
20223 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20224 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20225 Do not build hardware transactional code for __SPE__.
20226 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20227 (__lll_trylock_elision): Likewise.
20228 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20229 (__lll_unlock_elision): Likewise.
20230
20231 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20232 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20233 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20234 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20235 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20236 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20237 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20238 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20239 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20240 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20241 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20242 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20243 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20244 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20245 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20246 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20247 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20248 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20249 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20250 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20251 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20252 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20253 (__ASSUME_CLONE_BACKWARDS): Define.
20254 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20255 __clone2 if __NR_clone2 is defined.
20256 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20257 (__ASSUME_CLONE_BACKWARDS): Likewise.
20258 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20259 (__ASSUME_CLONE_BACKWARDS): Likewise.
20260 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20261 (__ASSUME_CLONE2): Likewise.
20262 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20263 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20264 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20265 variants and the define architecture can use.
20266 (__ASSUME_CLONE_DEFAULT): Define as default.
20267 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20268 (__ASSUME_CLONE_BACKWARDS): Likewise.
20269 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20270 (__ASSUME_CLONE_BACKWARDS): Likewise.
20271 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20272 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20273
20274 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20275
20276 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20277
20278 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20279 time.
20280
20281 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20282 (do_test_limit): Likewise.
20283
20284 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20285 for every implementation.
20286 (do_test): Likewise.
20287
20288 * benchtests/bench-strncmp.c: Convert output to json.
20289
20290 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20291
20292 * io/futimens.c: Add missing start-of-file descriptive comment.
20293 * io/utime.c: Likewise.
20294 * misc/futimesat.c: Likewise.
20295 * misc/utimes.c: Likewise.
20296 * sysdeps/mach/hurd/futimesat.c: Likewise.
20297 * sysdeps/mach/hurd/utimes.c: Likewise.
20298 * sysdeps/posix/utime.c: Likewise.
20299 * sysdeps/posix/utimes.c: Likewise.
20300 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20301 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20302 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20303 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20304
20305 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20306
20307 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20308 hurd_futimes.
20309 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20310 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20311 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20312 (__futimens): Move implementation to...
20313 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20314 utime_tvalue_from_tspec): ... new helper functions.
20315 (hurd_futimens): New function.
20316 * sysdeps/mach/hurd/futimesat.c: New file.
20317 * sysdeps/mach/hurd/utimensat.c: New file.
20318
20319 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20320
20321 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20322 UTIME_OMIT): New macros.
20323 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20324 before reverting to converting time spec to time value and calling
20325 __file_utimes.
20326 * sysdeps/mach/hurd/utime-helper.c: New file.
20327 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20328 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20329 reverting to utime_tvalue_from_tval and __file_utimes.
20330 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20331 (__lutimes): Just call hurd_futimens after lookup.
20332 * sysdeps/mach/hurd/utimes.c: Likewise.
20333
20334 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20335
20336 * bits/sigaction.h: Add include guard.
20337 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20338 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20339 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20340 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20341 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20342 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20343 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20344 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20345 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20346
20347 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20348
20349 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20350 -Wmaybe-uninitialized for -Os.
20351 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20352 this disabling.
20353
20354 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20355
20356 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20357 __INO_T_MATCHES_INO64_T is defined.
20358 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20359 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20360 of definition.
20361 * dirent/alphasort64.c: Likewise.
20362 * dirent/scandir.c: Likewise.
20363 * dirent/scandir64-tail.c: Likewise.
20364 * dirent/scandir64.c: Likewise.
20365 * dirent/scandirat.c: Likewise.
20366 * dirent/scandirat64.c: Likewise.
20367 * dirent/versionsort.c: Likewise.
20368 * dirent/versionsort64.c: Likewise.
20369 * include/dirent.h: Likewise.
20370
20371 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20372 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20373 for socketpair endpoint.
20374 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20375 WRITE_BUFFER_SIZE as buffer size for sending socket.
20376 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20377 issue on system where send is implemented with sendto syscall.
20378 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20379 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20380 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20381 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20382
20383 [BZ #21269]
20384 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20385 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20386 sa_restorer for vDSO case.
20387 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20388
20389 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20390
20391 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20392 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20393 * hurd/hurd/ioctl.h: Include <mach/port.h>
20394 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20395 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20396 <mach/mach_types.h> and <mach/message.h>.
20397 (headers): Move mach/param.h to bits/mach/param.h.
20398 * sysdeps/mach/i386/mach/param.h: Move file to ...
20399 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20400 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20401 of <mach/param.h>.
20402 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20403 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20404 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20405 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20406 trivial, for C++ conformity.
20407 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20408 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20409 Process mig output through $(migheadersed).
20410 * hurd/Makefile (migheadersed): Define variable.
20411 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20412 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20413 headers.
20414 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20415 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20416 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20417 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20418 <bits/types/sigset_t.h>.
20419 [!defined __USE_GNU]: Do not #error out.
20420 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20421 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20422 Include <stddef.h> and <bits/types/sigset_t.h>
20423 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20424 instead of sighandler_t.
20425 * stdlib/errno.h (error_t): Move definition to...
20426 * bits/types/error_t.h: ... new header.
20427 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20428 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20429 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20430 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20431 * hurd/hurd.h: Include <bits/types/error_t.h>
20432 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20433 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20434 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20435 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20436 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20437 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20438 * sysdeps/mach/hurd/futimens.c: New file.
20439
20440 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20441
20442 [BZ #22918]
20443 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20444 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20445 * nscd/gai.c (__nss_hosts_database): Readd definition.
20446 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20447 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20448 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20449
20450 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20451
20452 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20453 (ifunc_one): Likewise.
20454
20455 2018-03-01 DJ Delorie <dj@delorie.com>
20456
20457 [BZ #22342]
20458 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20459 key value.
20460
20461 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20462
20463 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20464 `match_pid' parameter.
20465 (td_ta_thr_iter): Update accordingly.
20466
20467 2018-03-01 Florian Weimer <fweimer@redhat.com>
20468
20469 * nptl/Makefile (install-lib-ldscripts): Remove.
20470 (install): Remove rule.
20471 ($(inst_libdir)/libpthread.so): Likewise.
20472
20473 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20474
20475 [BZ #22896]
20476 * localedata/locales/an_ES: update month and day names,
20477 improve d_fmt, improve postal_fmt, add country_post,
20478 add country_isbn
20479
20480 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20481
20482 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20483 Ukrainian instead of Bulgarian.
20484
20485 2018-03-01 Florian Weimer <fweimer@redhat.com>
20486
20487 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20488 reference.
20489
20490 2018-03-01 Florian Weimer <fweimer@redhat.com>
20491
20492 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20493 * nptl/Makefile (routines): Add pthread_atfork.
20494 (static-only-routines): Set to pthread_atfork.
20495 (libpthread-routines): Remove pthread_atfork.
20496 (libpthread-static-only-routines): Remove.
20497 (install): Update comment.
20498 (libpthread.so): Do not install libpthread_nonshared.a.
20499 (tests): Do not link with libpthread_nonshared.a.
20500 (generated): Remove libpthread_nonshared.a.
20501 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20502 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20503 with libpthread_nonshared.a.
20504
20505 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20506
20507 [BZ #22902]
20508 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20509 (libc_feholdexcept_setroundf128): New macro.
20510 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20511
20512 [BZ #15105]
20513 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20514 libc_hidden_def.
20515 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20516 * include/inttypes.h: New file.
20517
20518 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20519
20520 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20521 -Os in two more places.
20522
20523 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20524
20525 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20526 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20527 be sorted correctly at the moment because of a bug.
20528
20529 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20530
20531 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20532 treat ñ as a primary different character, sync the collation
20533 for Spanish with CLDR.
20534 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20535 * localedata/Makefile: Add new test files.
20536 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20537 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20538 collation order.
20539 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20540 * localedata/am_ET.UTF-8.in: New test file.
20541 * localedata/az_AZ.UTF-8.in: Likewise.
20542 * localedata/be_BY.UTF-8.in: Likewise.
20543 * localedata/ber_DZ.UTF-8.in: Likewise.
20544 * localedata/ber_MA.UTF-8.in: Likewise.
20545 * localedata/bg_BG.UTF-8.in: Likewise.
20546 * localedata/br_FR.UTF-8.in: Likewise.
20547 * localedata/cmn_TW.UTF-8.in: Likewise.
20548 * localedata/crh_UA.UTF-8.in: Likewise.
20549 * localedata/csb_PL.UTF-8.in: Likewise.
20550 * localedata/cv_RU.UTF-8.in: Likewise.
20551 * localedata/cy_GB.UTF-8.in: Likewise.
20552 * localedata/dz_BT.UTF-8.in: Likewise.
20553 * localedata/eo.UTF-8.in: Likewise.
20554 * localedata/es_ES.UTF-8.in: Likewise.
20555 * localedata/fa_IR.UTF-8.in: Likewise.
20556 * localedata/fi_FI.UTF-8.in: Likewise.
20557 * localedata/fil_PH.UTF-8.in: Likewise.
20558 * localedata/fur_IT.UTF-8.in: Likewise.
20559 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20560 * localedata/ha_NG.UTF-8.in: Likewise.
20561 * localedata/ig_NG.UTF-8.in: Likewise.
20562 * localedata/ik_CA.UTF-8.in: Likewise.
20563 * localedata/kk_KZ.UTF-8.in: Likewise.
20564 * localedata/ku_TR.UTF-8.in: Likewise.
20565 * localedata/ky_KG.UTF-8.in: Likewise.
20566 * localedata/ln_CD.UTF-8.in: Likewise.
20567 * localedata/mi_NZ.UTF-8.in: Likewise.
20568 * localedata/ml_IN.UTF-8.in: Likewise.
20569 * localedata/mn_MN.UTF-8.in: Likewise.
20570 * localedata/mr_IN.UTF-8.in: Likewise.
20571 * localedata/mt_MT.UTF-8.in: Likewise.
20572 * localedata/nb_NO.UTF-8.in: Likewise.
20573 * localedata/om_KE.UTF-8.in: Likewise.
20574 * localedata/os_RU.UTF-8.in: Likewise.
20575 * localedata/ps_AF.UTF-8.in: Likewise.
20576 * localedata/ro_RO.UTF-8.in: Likewise.
20577 * localedata/ru_RU.UTF-8.in: Likewise.
20578 * localedata/sc_IT.UTF-8.in: Likewise.
20579 * localedata/se_NO.UTF-8.in: Likewise.
20580 * localedata/sq_AL.UTF-8.in: Likewise.
20581 * localedata/sv_SE.UTF-8.in: Likewise.
20582 * localedata/szl_PL.UTF-8.in: Likewise.
20583 * localedata/tg_TJ.UTF-8.in: Likewise.
20584 * localedata/tk_TM.UTF-8.in: Likewise.
20585 * localedata/tt_RU.UTF-8.in: Likewise.
20586 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20587 * localedata/ug_CN.UTF-8.in: Likewise.
20588 * localedata/uz_UZ.UTF-8.in: Likewise.
20589 * localedata/vi_VN.UTF-8.in: Likewise.
20590 * localedata/yi_US.UTF-8.in: Likewise.
20591 * localedata/yo_NG.UTF-8.in: Likewise.
20592 * localedata/zh_CN.UTF-8.in: Likewise.
20593 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20594 file and fix bugs in the collation.
20595 * localedata/locales/az_AZ: Likewise.
20596 * localedata/locales/be_BY: Likewise.
20597 * localedata/locales/ber_DZ: Likewise.
20598 * localedata/locales/ber_MA: Likewise.
20599 * localedata/locales/bg_BG: Likewise.
20600 * localedata/locales/br_FR: Likewise.
20601 * localedata/locales/br_FR@euro: Likewise.
20602 * localedata/locales/ca_ES: Likewise.
20603 * localedata/locales/cns11643_stroke: Likewise.
20604 * localedata/locales/crh_UA: Likewise.
20605 * localedata/locales/cs_CZ: Likewise.
20606 * localedata/locales/csb_PL: Likewise.
20607 * localedata/locales/cv_RU: Likewise.
20608 * localedata/locales/cy_GB: Likewise.
20609 * localedata/locales/da_DK: Likewise.
20610 * localedata/locales/dz_BT: Likewise.
20611 * localedata/locales/en_CA: Likewise.
20612 * localedata/locales/eo: Likewise.
20613 * localedata/locales/es_CU: Likewise.
20614 * localedata/locales/es_EC: Likewise.
20615 * localedata/locales/es_ES: Likewise.
20616 * localedata/locales/es_US: Likewise.
20617 * localedata/locales/et_EE: Likewise.
20618 * localedata/locales/fa_IR: Likewise.
20619 * localedata/locales/fi_FI: Likewise.
20620 * localedata/locales/fil_PH: Likewise.
20621 * localedata/locales/fur_IT: Likewise.
20622 * localedata/locales/gez_ER@abegede: Likewise.
20623 * localedata/locales/ha_NG: Likewise.
20624 * localedata/locales/hr_HR: Likewise.
20625 * localedata/locales/hsb_DE: Likewise.
20626 * localedata/locales/hu_HU: Likewise.
20627 * localedata/locales/ig_NG: Likewise.
20628 * localedata/locales/ik_CA: Likewise.
20629 * localedata/locales/is_IS: Likewise.
20630 * localedata/locales/iso14651_t1_pinyin: Likewise.
20631 * localedata/locales/kk_KZ: Likewise.
20632 * localedata/locales/ku_TR: Likewise.
20633 * localedata/locales/ky_KG: Likewise.
20634 * localedata/locales/ln_CD: Likewise.
20635 * localedata/locales/lt_LT: Likewise.
20636 * localedata/locales/lv_LV: Likewise.
20637 * localedata/locales/mi_NZ: Likewise.
20638 * localedata/locales/ml_IN: Likewise.
20639 * localedata/locales/mn_MN: Likewise.
20640 * localedata/locales/mr_IN: Likewise.
20641 * localedata/locales/mt_MT: Likewise.
20642 * localedata/locales/nb_NO: Likewise.
20643 * localedata/locales/om_KE: Likewise.
20644 * localedata/locales/os_RU: Likewise.
20645 * localedata/locales/pl_PL: Likewise.
20646 * localedata/locales/ps_AF: Likewise.
20647 * localedata/locales/ro_RO: Likewise.
20648 * localedata/locales/ru_RU: Likewise.
20649 * localedata/locales/ru_UA: Likewise.
20650 * localedata/locales/sc_IT: Likewise.
20651 * localedata/locales/se_NO: Likewise.
20652 * localedata/locales/si_LK: Likewise.
20653 * localedata/locales/sq_AL: Likewise.
20654 * localedata/locales/sv_FI: Likewise.
20655 * localedata/locales/sv_FI@euro: Likewise.
20656 * localedata/locales/sv_SE: Likewise.
20657 * localedata/locales/szl_PL: Likewise.
20658 * localedata/locales/tg_TJ: Likewise.
20659 * localedata/locales/ti_ER: Likewise.
20660 * localedata/locales/tk_TM: Likewise.
20661 * localedata/locales/tl_PH: Likewise.
20662 * localedata/locales/tr_TR: Likewise.
20663 * localedata/locales/tt_RU: Likewise.
20664 * localedata/locales/tt_RU@iqtelif: Likewise.
20665 * localedata/locales/ug_CN: Likewise.
20666 * localedata/locales/uk_UA: Likewise.
20667 * localedata/locales/uz_UZ: Likewise.
20668 * localedata/locales/uz_UZ@cyrillic: Likewise.
20669 * localedata/locales/vi_VN: Likewise.
20670 * localedata/locales/yi_US: Likewise.
20671 * localedata/locales/yo_NG: Likewise.
20672
20673 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20674
20675 * gen-locales.mk: Make test files which contain @ modifiers in their
20676 name work.
20677 * localedata/gen-locale.sh: Likewise.
20678
20679 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20680
20681 * posix/tst-fnmatch.input: Fix results for range expressions
20682 for non C locales.
20683 * posix/tst-regexloc.c: Do not use a range expression for
20684 de_DE.ISO-8859-1 locale.
20685
20686 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20687
20688 * posix/bug-regex5.c: Fix test case because with the new
20689 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20690 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20691 file.
20692
20693 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20694
20695 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20696 downloaded from ISO, the collation order of @-. and space has changed.
20697 Therefore, this test file needed to be adapted.
20698 * localedata/fr_CA.UTF-8.in: Likewise.
20699 * localedata/fr_FR.UTF-8.in: Likewise.
20700 * localedata/uk_UA.UTF-8.in: Likewise.
20701
20702 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20703
20704 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20705 order of ȥ in the new iso14651_t1_common file.
20706 * localedata/pl_PL.UTF-8.in: Likewise.
20707
20708 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20709
20710 * localedata/locales/iso14651_t1_common: Add sections for various
20711 scripts to the iso14651_t1_common file.
20712
20713 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20714
20715 * localedata/locales/iso14651_t1_common: Use the code point of a
20716 character in the fourth collation level instead of IGNORE for all
20717 entries which have IGNORE on all 4 levels.
20718
20719 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20720
20721 * localedata/locales/iso14651_t1_common: Add some convenient collation
20722 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20723 rules similar to those in CLDR.
20724
20725 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20726
20727 * localedata/locales/iso14651_t1_common: The new version of this
20728 file downloaded from ISO contained several syntax errors which
20729 are fixed by this patch.
20730
20731 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20732
20733 * localedata/locales/iso14651_t1_common: replace all <U.....>
20734 with <U000.....> because glibc understands only 4 digit or 8 digit
20735
20736 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20737
20738 * localedata/locales/iso14651_t1_common: Necessary changes
20739 to make the file downloaded from ISO usable by glibc.
20740
20741 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20742
20743 [BZ #14095]
20744 * localedata/locales/iso14651_t1_common: Update file to
20745 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20746
20747 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20748
20749 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20750 of <nptl/pthreadP.h>
20751 (thread_attr_compare): Move function to...
20752 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20753 * sysdeps/nptl/timer_routines.h: ... new header.
20754 * sysdeps/mach/hurd/gai_misc.h: New file.
20755
20756 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20757
20758 * string/strcoll_l.c: Include <libc-diag.h>.
20759 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20760 declarations of seq1 and seq2.
20761
20762 [BZ #15105]
20763 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20764 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20765
20766 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20767
20768 [BZ #22433]
20769 [BZ #22807]
20770 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20771 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20772 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20773 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20774 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20775 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20776
20777 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20778
20779 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20780 macros used in __ptrace_request.
20781
20782 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20783
20784 [BZ #22792]
20785 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20786 to $(CC).
20787 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20788 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20789 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20790 <tcb-offsets.h>.
20791
20792 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20793
20794 [BZ #15105]
20795 * ctype/ctype.c (tolower): Use libc_hidden_def.
20796 (toupper): Likewise.
20797 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20798 [!_ISOMAC] (toupper): Likewise.
20799
20800 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20801
20802 * localedata/Makefile: Remove --quiet argument when
20803 installing locales
20804
20805 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20806
20807 [BZ #17438]
20808 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20809 in d_fmt.
20810 * localedata/locales/pt_PT (LC_TIME): likewise
20811
20812 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20813
20814 [BZ #22646]
20815 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20816 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20817 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20818
20819 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20820
20821 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20822
20823 * nptl/Makefile (routines): Remove unregister-atfork.
20824 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20825 (fork_handler_alloc): Remove function.
20826 (fork_handlers, fork_handler_init): New variables.
20827 (__fork_lock): Rename to atfork_lock.
20828 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20829 to use a dynamic array to add/remove atfork handlers.
20830 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20831 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20832 Remove declaration.
20833 (fork_handler): Remove next, refcntr, and need_signal member.
20834 (__run_fork_handler_type): New enum.
20835 (__run_fork_handlers): New prototype.
20836 * nptl/register-atfork.c: Remove file.
20837 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20838
20839 * sysdeps/nptl/nptl-signals.h: Move to ...
20840 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20841 comments.
20842 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20843 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20844 unnecessary check for SIGTIMER.
20845 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20846 remove unnecessary removal of SIGTIMER.
20847 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20848 include-signals.h rename.
20849 * nptl/pthreadP.h: Likewise.
20850 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20851 __is_internal_signal instead of __nptl_is_internal_signal.
20852
20853 2018-02-22 Andrew Waterman <andrew@sifive.com>
20854
20855 [BZ # 22884]
20856 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20857 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20858 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20859 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20860
20861 2018-02-22 DJ Delorie <dj@delorie.com>
20862
20863 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20864
20865 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20866
20867 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20868 do_misaligned, not misaligned8.
20869
20870 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20871
20872 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20873 Add memcpy_thunderx2.
20874 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20875 Increment to 4.
20876 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20877 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20878 and IS_THUNDERX2PA checks.
20879 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20880 Use macro to set name appropriately.
20881 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20882 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20883 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20884 New macro.
20885 (IS_THUNDERX2): New macro.
20886
20887 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20888
20889 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20890
20891 2018-02-21 Zack Weinberg <zackw@panix.com>
20892
20893 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20894 Define here, unconditionally.
20895 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20896 * libio/libioP.h: Remove #if 0 blocks.
20897 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20898 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20899 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20900
20901 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20902 Assume weak_alias is always defined.
20903
20904 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20905 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20906 Remove #if 0 and #ifdef TODO blocks.
20907 Assume text_set_element is always defined.
20908
20909 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20910 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20911 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20912
20913 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20914 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20915 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20916 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20917 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20918 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20919 Reformat bit flags for _flags field to make occupancy clearer.
20920 Update commentary.
20921 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20922 Keep definitions consistent with those in libio/libio.h.
20923
20924 * libio/libio.h (_IO_file_flags): Remove macro.
20925 All uses changed to _flags.
20926
20927 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20928 (__HAVE_COLUMN, _IO_BE): Don't define.
20929 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20930 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20931 * libio/libioP.h (EOF): Don't define.
20932 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20933 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20934 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20935 testing _IO_UNIFIED_JUMPTABLES.
20936
20937 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20938 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20939 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20940 (_IO_size_t): Delete; all uses changed to size_t.
20941 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20942 (_IO_off_t): Delete; all uses changed to off_t.
20943 (_IO_off64_t): Delete; all uses changed to off64_t.
20944 (_IO_pid_t): Delete; all uses changed to pid_t.
20945 (_IO_uid_t): Delete; all uses changed to uid_t.
20946 (_IO_wint_t): Delete; all uses changed to wint_t.
20947 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20948 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20949 (_IO_cookie_io_functions_t): Delete; all uses changed to
20950 cookie_io_functions_t.
20951 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20952 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20953 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20954 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20955
20956 * libio/iofopncook.c: Remove unnecessary forward declarations.
20957 * libio/iolibio.h: Correct outdated commentary.
20958 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20959 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20960 Remove unnecessary casts.
20961 * stdio-common/getline.c: Use _IO_getdelim directly.
20962 Don't redefine ssize_t.
20963 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20964 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20965 Remove outdated comments.
20966 * stdio-common/vfscanf.c: Don't redefine va_list.
20967
20968 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20969 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20970 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20971 which are always true, and __cplusplus, which is always false.
20972
20973 2018-02-21 Joseph Myers <joseph@codesourcery.com>
20974
20975 [BZ #15105]
20976 [BZ #19463]
20977 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20978 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20979 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20980 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20981 libc_hidden_proto.
20982 [!_ISOMAC] (putc_unlocked): Likewise.
20983 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20984 define inline if [__USE_EXTERN_INLINES].
20985 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20986 putc_unlocked.
20987
20988 [BZ #15105]
20989 [BZ #19463]
20990 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20991 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20992 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20993 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20994 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20995 getc_unlocked.
20996 * time/tzfile.c (__tzfile_read): Likewise.
20997
20998 2018-02-21 Mike FABIAN <mfabian@redhat.com>
20999
21000 [BZ #22517]
21001 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21002
21003 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21004
21005 * io/fcntl.h: Fix a typo in a comment.
21006
21007 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21008
21009 [BZ #22862]
21010 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21011 define _DEFAULT_SOURCE.
21012 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21013
21014 2018-02-21 Florian Weimer <fweimer@redhat.com>
21015
21016 [BZ #20890]
21017 * elf/cache.c (save_cache): Call fsync on temporary file before
21018 renaming it.
21019 (save_aux_cache): Call fdatasync on temporary file before renaming
21020 it.
21021
21022 2018-02-21 Florian Weimer <fweimer@redhat.com>
21023
21024 [BZ #22787]
21025 * include/caller.h: Remove file.
21026 * elf/dl-caller.c: Likewise.
21027 * elf/Makefile (dl-routines): Remove dl-caller.
21028 (shared-only-routines): Do not add dl-caller.
21029 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21030 __check_caller.
21031 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21032 member.
21033 (dl_open_worker): Do not call __check_caller.
21034 (_dl_open): Do not set caller_dl_open member.
21035 * elf/rtld.c (_rtld_global_ro): Do not initialize
21036 _dl_check_caller member.
21037 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21038 _dl_check_caller member.
21039 (_dl_check_caller): Remove declaration.
21040 * sysdeps/unix/sysv/linux/dl-execstack.c
21041 (_dl_make_stack_executable): Do not call __check_caller.
21042
21043 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21044
21045 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21046 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21047
21048 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21049
21050 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21051 description.
21052
21053 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21054
21055 [BZ #16335]
21056 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21057 of 199606L, 200112L, and 200809L.
21058 (_XOPEN_SOURCE): Document special values of 600 and 700.
21059 (_ISOC11_SOURCE): Document macro.
21060 (_ATFILE_SOURCE): Likewise.
21061 (_FORTIFY_SOURCE): Likewise.
21062
21063 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21064
21065 [BZ #15105]
21066 [BZ #19463]
21067 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21068 and define as weak alias of __ferror_unlocked. Use
21069 libc_hidden_weak.
21070 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21071 libc_hidden_proto.
21072 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21073 function if [__USE_EXTERN_INLINES].
21074 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21075 ferror_unlocked.
21076
21077 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21078
21079 [BZ #6889]
21080 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21081
21082 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21083
21084 [BZ #22818]
21085 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21086 the GLIBC_2.1 version.
21087
21088 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21089
21090 [BZ #21508]
21091 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21092 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21093 intl/tst-gettext-de.po from po/de.po by removing the
21094 POT-Creation-Date line.
21095 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21096 ../po/de.po.
21097 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21098 ../po/de.po.
21099
21100 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21101
21102 * mach/Makefile (headers): Add mach/param.h.
21103 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21104 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21105 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21106 (__ptsname_r): Move implementation to...
21107 (__ptsname_internal): ... new function. Add filling the STP
21108 structure.
21109
21110 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21111
21112 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21113 idouble to 1 ULP.
21114
21115 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21116
21117 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21118 syntax.
21119
21120 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21121
21122 * nptl/Makefile (tst-mutex8-ENV): Delete.
21123 * nptl/tst-mutex8.c (check_type):
21124 Add runtime check if mutex will be elided.
21125
21126 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21127
21128 [BZ #20980]
21129 [BZ #21234]
21130 * manual/install.texi (Configuring and compiling): Describe
21131 passing CC and CFLAGS on configure command line, not as
21132 environment variables. Use @code markup on those variables.
21133 Specify what options go in CC and what go in CFLAGS. Note the
21134 requirement to compile with optimization.
21135 * INSTALL: Regenerated.
21136
21137 [BZ #18124]
21138 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21139 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21140 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21141 __sigprocmask instead of sigprocmask.
21142 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21143 Likewise.
21144 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21145 __sigsetjmp and sigprocmask.
21146
21147 [BZ #15105]
21148 * include/argz.h (argz_next): Use libc_hidden_proto.
21149 (__argz_next): Likewise.
21150 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21151 (argz_next): Use libc_hidden_weak.
21152
21153 [BZ #15105]
21154 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21155 libc_hidden_proto.
21156 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21157 libc_hidden_def.
21158
21159 [BZ #15105]
21160 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21161 libc_hidden_proto.
21162 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21163
21164 [BZ #15105]
21165 [BZ #19463]
21166 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21167 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21168 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21169 (__feof_unlocked): New declaration, and inline function if
21170 [__USE_EXTERN_INLINES].
21171 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21172 instead of feof_unlocked.
21173 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21174 * nss/nsswitch.c (nss_parse_file): Likewise.
21175 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21176 Likewise.
21177 * time/getdate.c (__getdate_r): Likewise.
21178 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21179 Define as macro to call __feof_unlocked.
21180
21181 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21182
21183 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21184
21185 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21186
21187 * math/Makefile: Remove mpexp.c and mplog.c
21188 * sysdeps/i386/fpu/mpexp.c: Delete file.
21189 * sysdeps/i386/fpu/mplog.c: Likewise.
21190 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21191 * sysdeps/ia64/fpu/mplog.c: Likewise.
21192 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21193 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21194 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21195 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21196 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21197 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21198 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21199 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21200 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21201 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21202 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21203 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21204 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21205 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21206 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21207 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21208
21209 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21210
21211 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21212
21213 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21214
21215 * sysdeps/sh/libm-test-ulps: Update.
21216
21217 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21218
21219 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21220 idouble to 1 ULP.
21221
21222 2018-02-12 Zack Weinberg <zackw@panix.com>
21223
21224 [BZ #19239]
21225 * posix/sys/types.h: Don't include sys/sysmacros.h.
21226 * misc/sys/sysmacros.h: Remove the conditional deprecation
21227 warnings for the macros defined by this header.
21228
21229 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21230
21231 * manual/probes.texi: Remove slowexp probes.
21232 * math/Makefile: Remove slowexp.
21233 * sysdeps/generic/math_private.h (__slowexp): Remove.
21234 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21235 document error bounds.
21236 * sysdeps/i386/fpu/slowexp.c: Remove.
21237 * sysdeps/ia64/fpu/slowexp.c: Remove.
21238 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21239 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21240 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21241 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21242 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21243 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21244 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21245 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21246 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21247 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21248 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21249
21250 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21251
21252 [BZ #13932]
21253 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21254 * benchtests/pow-inputs: Update comment for slow path cases.
21255 * manual/probes.texi (slowpow_p10): Delete removed probe.
21256 (slowpow_p10): Likewise.
21257 * math/Makefile: Remove halfulp.c and slowpow.c.
21258 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21259 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21260 (__halfulp): Remove.
21261 (__slowpow): Remove.
21262 * sysdeps/i386/fpu/halfulp.c: Delete file.
21263 * sysdeps/i386/fpu/slowpow.c: Likewise.
21264 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21265 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21266 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21267 improve comments and add error analysis.
21268 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21269 (power1): Remove function:
21270 (log1): Remove error argument, add error analysis.
21271 (my_log2): Remove function.
21272 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21273 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21274 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21275 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21276 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21277 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21278 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21279 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21280 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21281 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21282 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21283 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21284 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21285 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21286
21287 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21288
21289 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21290 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21291
21292 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21293
21294 [BZ #22433]
21295 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21296 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21297 and PTRACE_SETHBPREGS.
21298
21299 2018-02-10 Zack Weinberg <zackw@panix.com>
21300
21301 [BZ #22830]
21302 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21303 correctly.
21304 * malloc/tst-malloc-stats-cancellation.c: New test case.
21305 * malloc/Makefile: Add new test case.
21306
21307 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21308
21309 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21310
21311 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21312
21313 * math/Makefile (libm-narrow-fns): Add add.
21314 (libm-test-funcs-narrow): Likewise.
21315 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21316 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21317 * math/gen-auto-libm-tests.c (test_functions): Add add.
21318 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21319 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21320 (NARROW_ADD_TRIVIAL): Likewise.
21321 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21322 macro.
21323 (__daddl): Likewise.
21324 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21325 dadd.
21326 (CFLAGS-nldbl-dadd.c): New variable.
21327 (CFLAGS-nldbl-fadd.c): Likewise.
21328 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21329 __nldbl_daddl.
21330 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21331 prototype.
21332 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21333 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21334 * math/auto-libm-test-in: Add tests of add.
21335 * math/auto-libm-test-out-narrow-add: New generated file.
21336 * math/libm-test-narrow-add.inc: New file.
21337 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21338 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21339 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21340 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21341 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21342 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21343 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21344 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21345 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21346 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21347 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21348 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21349 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21350 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21351 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21352 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21353 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21354 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21355 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21356 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21357 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21358 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21359 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21360 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21361 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21362 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21363 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21364 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21365 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21366 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21367 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21368 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21373 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21374 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21375 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21376 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21377 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21378 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21379 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21380 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21381 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21382 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21383
21384 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21385 (f128-pairs): New variable.
21386 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21387 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21388 to CFLAGS.
21389 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21390 Also make tests add $(f128-loader-link) to gnulib-tests.
21391
21392 2018-02-09 DJ Delorie <dj@redhat.com>
21393
21394 [BZ #22827]
21395 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21396 64-bit ELF type for 64-bit ELF objects.
21397
21398 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21399
21400 * math/libm-test-driver.c (snan_tests_arg): New variable.
21401 * math/libm-test-support.h (snan_tests_arg): New declaration.
21402 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21403
21404 * math/Makefile (test-type-pairs): New variable.
21405 (test-type-pairs-f64xf128-yes): Likewise.
21406 (tests): Add test-narrow-macros.
21407 (libm-test-funcs-narrow): New variable.
21408 (libm-test-c-narrow): Likewise.
21409 (generated): Add $(libm-test-c-narrow).
21410 (libm-tests-base-narrow): New variable.
21411 (libm-tests-narrow): Likewise.
21412 (libm-tests): Add $(libm-tests-narrow).
21413 (libm-tests-for-type): Handle $(libm-tests-narrow).
21414 (libm-test-c-narrow-obj): New variable.
21415 ($(libm-test-c-narrow-obj)): New rule.
21416 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21417 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21418 $(o-iterator) to set dependencies and CFLAGS.
21419 * math/gen-auto-libm-tests.c: Document use for narrowing
21420 functions.
21421 (output_for_one_input_case): Take argument NARROW.
21422 (generate_output): Likewise. Update call to
21423 output_for_one_input_case.
21424 (main): Take --narrow option. Update call to generate_output.
21425 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21426 (apply_lit): Update call to _apply_lit.
21427 (apply_arglit): New function.
21428 (parse_args): Handle "a" arguments.
21429 (parse_auto_input): Handle format names using ":".
21430 * math/README.libm-test: Document "a" parameter type.
21431 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21432 (ARG_TYPE_TRUE_MIN): Likewise.
21433 (ARG_TYPE_MAX): Likwise.
21434 (ARG_MIN_EXP): Likewise.
21435 (ARG_MAX_EXP): Likewise.
21436 (ARG_MANT_DIG): Likewise.
21437 (TEST_COND_arg_ibm128): Likewise.
21438 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21439 (TEST_COND_arg_fmt): New macro.
21440 (init_max_error): Update prototype.
21441 * math/libm-test-support.c (test_ibm128): New variable.
21442 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21443 instead of using [TEST_COND_ibm128] conditional.
21444 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21445 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21446 [TEST_NARROW] (TEST_MSG): New definition.
21447 (arg_plus_zero): New macro.
21448 (arg_minus_zero): Likewise.
21449 (arg_plus_infty): Likewise.
21450 (arg_minus_infty): Likewise.
21451 (arg_qnan_value_pl): Likewise.
21452 (arg_qnan_value): Likewise.
21453 (arg_snan_value_pl): Likewise.
21454 (arg_snan_value): Likewise.
21455 (arg_max_value): Likewise.
21456 (arg_min_value): Likewise.
21457 (arg_min_subnorm_value): Likewise.
21458 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21459 (RUN_TEST_LOOP_aa_f): New macro.
21460 (TEST_SUFF): New macro.
21461 (TEST_SUFF_STR): Likewise.
21462 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21463 (TEST_COND_any_ibm128): New macro.
21464 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21465 this_func. Update call to init_max_error.
21466 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21467 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21468 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21469 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21470 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21471 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21472 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21473 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21474 * math/test-math-vector.h (TEST_NARROW): Likewise.
21475 * math/test-arg-double.h: New file.
21476 * math/test-arg-float128.h: Likewise.
21477 * math/test-arg-float32x.h: Likewise.
21478 * math/test-arg-float64.h: Likewise.
21479 * math/test-arg-float64x.h: Likewise.
21480 * math/test-arg-ldouble.h: Likewise.
21481 * math/test-math-narrow.h: Likewise.
21482 * math/test-narrow-macros.c: Likewise.
21483 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21484 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21485 test-narrow-macros-ldbl-64.
21486 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21487
21488 * math/bits/mathcalls-narrow.h: New file.
21489 * include/bits/mathcalls-narrow.h: Likewise.
21490 * math/math-narrow.h: Likewise.
21491 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21492 (__MATHCALL_NARROW_ARGS_2): Likewise.
21493 (__MATHCALL_NARROW_ARGS_3): Likewise.
21494 (__MATHCALL_NARROW_NORMAL): Likewise.
21495 (__MATHCALL_NARROW_REDIR): Likewise.
21496 (__MATHCALL_NARROW): Likewise.
21497 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21498 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21499 defined.
21500 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21501 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21502 (libm-narrow-fns): New variable.
21503 (libm-narrow-types-basic): Likewise.
21504 (libm-narrow-types-ldouble-yes): Likewise.
21505 (libm-narrow-types-float128-yes): Likewise.
21506 (libm-narrow-types-float128-alias-yes): Likewise.
21507 (libm-narrow-types): Likewise.
21508 (libm-routines): Add narrowing functions.
21509 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21510 (libc_feholdexcept_setroundf128): New macro.
21511 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21512 * sysdeps/ieee754/float128/float128_private.h: Include
21513 <math/math-narrow.h>.
21514 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21515 Undefine and redefine.
21516 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21517 (libm_alias_float_ldouble): Undefine and redefine.
21518 (libm_alias_double_ldouble): Likewise.
21519
21520 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21521
21522 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21523
21524 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21525 FPCR/FPSR.
21526
21527 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21528
21529 * manual/creature.texi: Convert references to gcc.info to gcc.
21530 * manual/stdio.texi: Likewise.
21531 * manual/string.texi: Likewise.
21532
21533 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21534
21535 [BZ #17979]
21536 * posix/bits/types.h (__int_least8_t): New typedef.
21537 (__uint_least8_t): Likewise.
21538 (__int_least16_t): Likewise.
21539 (__uint_least16_t): Likewise.
21540 (__int_least32_t): Likewise.
21541 (__uint_least32_t): Likewise.
21542 (__int_least64_t): Likewise.
21543 (__uint_least64_t): Likewise.
21544 * sysdeps/generic/stdint.h (int_least8_t): Define using
21545 __int_least8_t.
21546 (int_least16_t): Define using __int_least16_t.
21547 (int_least32_t): Define using __int_least32_t.
21548 (int_least64_t): Define using __int_least64_t.
21549 (uint_least8_t): Define using __uint_least8_t.
21550 (uint_least16_t): Define using __uint_least16_t.
21551 (uint_least32_t): Define using __uint_least32_t.
21552 (uint_least64_t): Define using __uint_least64_t.
21553 * wcsmbs/uchar.h: Include <bits/types.h>.
21554 (char16_t): Define using __uint_least16_t conditional only on
21555 [!__USE_ISOCXX11].
21556 (char32_t): Define using __uint_least32_t conditional only on
21557 [!__USE_ISOCXX11].
21558 * wcsmbs/test-char-types.c: New file.
21559 * wcsmbs/Makefile (tests): Add test-char-types.
21560
21561 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21562 version to 4.0.1.
21563
21564 2018-02-07 Zack Weinberg <zackw@panix.com>
21565
21566 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21567 Delete all contents except for definitions of _G_HAVE_MMAP and
21568 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21569 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21570 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21571 change as above.
21572
21573 * libio/libio.h: Don't include bits/_G_config.h here.
21574 Include stddef.h with __need_wchar_t defined. Include
21575 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21576 Define _IO_iconv_t here, directly.
21577 Don't define _IO_HAVE_ST_BLKSIZE.
21578 * libio/libioP.h: Include _G_config.h here. Move include of
21579 shlib-compat.h up with rest of includes. Simplify conditionals
21580 controlling definition of _IO_JUMPS_OFFSET.
21581
21582 * csu/init.c: Remove always-true #if around entire file.
21583 Don't include stdio.h. Set _IO_stdin_used to hardwired
21584 constant 0x20001, and update commentary.
21585 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21586 Replace all uses of _G_va_list with __gnuc_va_list.
21587 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21588 instead of #if _IO_HAVE_ST_BLKSIZE.
21589 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21590 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21591 not #ifdef.
21592
21593 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21594 multiple-include guard to match.
21595 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21596 into this file.
21597 Remove preprocessor conditionals that are always true and/or
21598 redundant to other preprocessor conditionals in the same nest.
21599 Include shlib-compat.h unconditionally.
21600 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21601 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21602 defined after including stdio.h.
21603 Use __BEGIN_DECLS/__END_DECLS.
21604
21605 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21606 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21607 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21608
21609 2018-02-07 Zack Weinberg <zackw@panix.com>
21610
21611 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21612 New single-type headers split from _G_config.h.
21613 * libio/bits/types/cookie_io_functions_t.h
21614 * libio/bits/types/struct_FILE.h
21615 New single-type headers split from libio.h.
21616
21617 * libio/Makefile: Install the above new headers. Don't install
21618 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21619 bits/libio-ldbl.h.
21620 * libio/_G_config.h, libio/libio.h: Delete file.
21621
21622 * libio/bits/libio.h: Remove improper-inclusion guard.
21623 Include stdio.h and don't repeat anything that it does.
21624 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21625 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21626 __io_read_fn as cookie_read_function_t,
21627 __io_write_fn as cookie_write_function_t,
21628 __io_seek_fn as cookie_seek_function_t,
21629 __io_close_fn as cookie_close_function_t,
21630 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21631 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21632 here, in the "compatibility defines" section. Remove an #if 0
21633 block. Use the "body" macros from bits/types/struct_FILE.h to
21634 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21635 and _IO_ferror_unlocked.
21636 Move prototypes of __uflow and __overflow...
21637
21638 * libio/stdio.h: ...here. Don't include bits/libio.h.
21639 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21640 directly from stdarg.h. Include bits/types/__fpos_t.h,
21641 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21642 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21643 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21644 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21645 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21646 __ssize_t, not _IO_ssize_t. Unconditionally define
21647 BUFSIZ as 8192 and EOF as (-1).
21648
21649 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21650 macros from bits/types/struct_FILE.h instead of _IO_* macros
21651 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21652 instead of _IO_ssize_t.
21653 * libio/bits/stdio2.h: Similarly.
21654
21655 * libio/iolibio.h: Add multiple-include guard.
21656 Include bits/libio.h after stdio.h.
21657 * libio/libioP.h: Add multiple-include guard.
21658 Include stdio.h and bits/libio.h before iolibio.h.
21659
21660 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21661 * include/bits/types/cookie_io_functions_t.h
21662 * include/bits/types/struct_FILE.h: New wrappers.
21663
21664 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21665 Get definitions of _G_fpos_t and _G_fpos64_t from
21666 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21667 respectively. Remove improper-inclusion guards.
21668
21669 * conform/data/stdio.h-data: Update expectations of va_list.
21670 * scripts/check-installed-headers.sh: Remove special case for
21671 libio.h and _G_config.h.
21672
21673 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21674
21675 [BZ #15105]
21676 [BZ #19463]
21677 * include/sys/sysmacros.h [!_ISOMAC]
21678 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21679 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21680 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21681 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21682 libc_hidden_proto.
21683 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21684 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21685 Likewise.
21686 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21687 Undefine and redefine to add use __gnu_dev_ prefix.
21688 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21689 Likewise.
21690 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21691 and define as hidden inline function.
21692 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21693 Likewise.
21694 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21695 Likewise.
21696 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21697 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21698 (gnu_dev_minor): Likewise.
21699 (gnu_dev_makedev): Likewise.
21700 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21701 makedev.
21702 * posix/wordexp.c (exec_comm_child): Likewise.
21703 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21704 instead of minor and __gnu_dev_major instead of major.
21705 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21706 __gnu_dev_major instead of major.
21707 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21708 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21709 instead of gnu_dev_minor.
21710 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21711 (SLAVE_P): Likewise.
21712 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21713 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21714 instead of major.
21715
21716 [BZ #21313]
21717 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21718 in another place.
21719 * locale/weightwc.h (findidx): Likewise.
21720
21721 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21722
21723 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21724 (slowlog_inexact): Likewise
21725 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21726 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21727
21728 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21729
21730 [BZ #22797]
21731 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21732 missing second underscore to parameter name.
21733
21734 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21735
21736 [BZ #14508]
21737 [BZ #15512]
21738 [BZ #17082]
21739 [BZ #20530]
21740 * bits/byteswap.h: Update file comment. Do not include
21741 <bits/byteswap-16.h>.
21742 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21743 constant.
21744 (__bswap_16): Define as inline function.
21745 (__bswap_constant_32): Reformat definition.
21746 (__bswap_32): Always define as inline function, not macro, using
21747 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21748 otherwise __bswap_constant_32.
21749 (__bswap_constant_64): Reformat definition. Do not use
21750 __extension__ here.
21751 (__bswap_64): Always define as inline function, not macro. Use
21752 __extension__ on function definition. Use __builtin_bswap64 if
21753 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21754 * string/test-endian-file-scope.c: New file.
21755 * string/test-endian-sign-conversion.c: Likewise.
21756 * string/Makefile (headers): Remove bits/byteswap-16.h.
21757 (tests): Add test-endian-file-scope and
21758 test-endian-sign-conversion.
21759 (CFLAGS-test-endian-sign-conversion.c): New variable.
21760 * bits/byteswap-16.h: Remove file.
21761 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21762 * sysdeps/ia64/bits/byteswap.h: Likewise.
21763 * sysdeps/m68k/bits/byteswap.h: Likewise.
21764 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21765 * sysdeps/s390/bits/byteswap.h: Likewise.
21766 * sysdeps/tile/bits/byteswap.h: Likewise.
21767 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21768 * sysdeps/x86/bits/byteswap.h: Likewise.
21769
21770 [BZ #17721]
21771 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21772 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21773 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21774 199901L] (__restrict): Define to restrict.
21775
21776 [BZ #19667]
21777 * string/testcopy.c: Include <support/support.h>. Do not include
21778 <malloc.h>. Use <support/test-driver.c>.
21779 (main): Rename to do_test. Make static. Use xmalloc instead of
21780 malloc.
21781
21782 [BZ #13575]
21783 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21784 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21785 (SSIZE_MAX): Define to INT_MAX.
21786 * posix/test-ssize-max.c: New file.
21787 * posix/Makefile (tests): Add test-ssize-max.
21788
21789 [BZ #19668]
21790 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21791 <support/support.h>. Do not include <malloc.h>.
21792 (query_auxv): Use xmalloc instead of malloc.
21793
21794 [BZ #14553]
21795 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21796 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21797 instead of loff_t.
21798
21799 2018-02-06 Florian Weimer <fweimer@redhat.com>
21800
21801 [BZ #18023]
21802 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21803 Use scratch_buffer instead of extend_alloca.
21804
21805 2018-02-06 Zack Weinberg <zackw@panix.com>
21806
21807 * libio/stdio.h: Don't define getc or putc as macros.
21808 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21809 not _IO_getc and _IO_putc.
21810
21811 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21812 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21813
21814 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21815
21816 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21817 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21818
21819 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21820
21821 [BZ #14890]
21822 * elf/elf.h (NT_PRFPREG): New macro.
21823 (NT_S390_VXRS_LOW): Likewise.
21824 (NT_S390_VXRS_HIGH): Likewise.
21825 (NT_S390_GS_CB): Likewise.
21826 (NT_S390_GS_BC): Likewise.
21827 (NT_S390_RI_CB): Likewise.
21828
21829 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21830 (MAP_SYNC): New macro.
21831 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21832 Likewise.
21833 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21834 (MAP_SYNC): Likewise.
21835 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21836 (MAP_SYNC): Likewise.
21837 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21838 (MAP_SYNC): Likewise.
21839 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21840 (MAP_SYNC): Likewise.
21841 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21842 (MAP_SYNC): Likewise.
21843 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21844 (MAP_SYNC): Likewise.
21845 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21846 Likewise.
21847 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21848 Likewise.
21849
21850 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21851 (MAP_SHARED_VALIDATE): New macro.
21852 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21853 (MAP_SHARED_VALIDATE): Likewise.
21854
21855 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21856
21857 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21858 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21859 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21860
21861 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21862
21863 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21864 (DT_NUM): Updated to 35.
21865
21866 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21867
21868 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21869 __builtin_expect with __glibc_likely and __glibc_unlikely.
21870 (elf_machine_rela): Likewise.
21871 (elf_machine_lazy_rel): Likewise.
21872
21873 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21874
21875 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21876 __builtin_expect with __glibc_likely and __glibc_unlikely.
21877 (elf_machine_lazy_rel): Likewise.
21878
21879 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21880
21881 [BZ #22638]
21882 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21883 SHARED.
21884 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21885
21886 2018-02-05 Andreas Schwab <schwab@suse.de>
21887
21888 [BZ #22761]
21889 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21890 string.
21891
21892 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21893
21894 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21895 not check against PTHREAD_STACK_MIN.
21896
21897 2018-02-02 Sean McKean <smckean83@gmail.com>
21898
21899 [BZ #22735]
21900 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21901
21902 2018-02-02 Florian Weimer <fweimer@redhat.com>
21903
21904 [BZ #22753]
21905 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21906 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21907 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21908 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21909 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21910 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21911 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21912 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21913 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21914 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21915 * misc/tst-preadvwritev2.c (do_test): Call it.
21916 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21917
21918 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21919
21920 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21921
21922 * benchtests/bench-memcmp.c: Print json instead of plain text.
21923
21924 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21925 every test run.
21926
21927 2018-02-01 Joseph Myers <joseph@codesourcery.com>
21928
21929 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21930 version to 4.15.
21931 (s390_sthyi): New syscall.
21932
21933 * sysdeps/generic/ldbl-classify-compat.h: New file.
21934 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21935 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21936 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21937 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21938 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21939 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21940 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21941 <ldbl-classify-compat.h>.
21942 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21943 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21944 <ldbl-classify-compat.h>.
21945 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21946 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21947 <ldbl-classify-compat.h>.
21948 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21949 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21950 <ldbl-classify-compat.h>.
21951 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21952 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21953 <ldbl-classify-compat.h>.
21954 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21955 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21956 <ldbl-classify-compat.h>.
21957 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21958 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21959 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21960 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21961 * sysdeps/microblaze/math_private.h: Likewise.
21962 * sysdeps/nios2/math_private.h: Likewise.
21963 * sysdeps/sh/math_private.h: Likewise.
21964
21965 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21966 * sysdeps/m68k/coldfire/math_private.h: ... here.
21967 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21968 * sysdeps/tile/math_private.h: Likewise.
21969 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21970 Remove macro.
21971 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21972 Likewise.
21973
21974 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21975 Remove macro.
21976 (libc_fetestexcept): Likewise.
21977 (libc_feupdateenv_test): Likewise.
21978 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21979 (libc_fetestexcept): Likewise.
21980 (libc_feupdateenv_test): Likewise.
21981 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21982 (libc_fetestexcept): Likewise.
21983 (libc_feupdateenv_test): Likewise.
21984 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21985 (libc_fetestexcept): Likewise.
21986 (libc_feupdateenv_test): Likewise.
21987
21988 * sysdeps/generic/math_private.h
21989 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21990 New inline function.
21991 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21992 Likewise.
21993
21994 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21995 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21996 * sysdeps/generic/math_private.h
21997 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21998 inline function.
21999 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22000 Likewise.
22001 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22002 Likewise.
22003 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22004 Likewise.
22005 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22006 Likewise.
22007 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22008 Likewise.
22009 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22010 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22011 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22012 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22013 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22014 (__fegetenv): Likewise.
22015 (fesetenv): Likewise.
22016 (__fesetenv): Likewise.
22017 (feupdateenv): Likewise.
22018 (__feupdateenv): Likewise.
22019 (fegetround): Likewise.
22020 (__fegetround): Likewise.
22021 (fesetround): Likewise.
22022 (__fesetround): Likewise.
22023
22024 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22025 (feraiseexcept): New macro.
22026 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22027 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22028 Remove macro.
22029 (__feraiseexcept): Likewise.
22030 (feclearexcept): Likewise.
22031 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22032 (__feraiseexcept): Likewise.
22033 (feclearexcept): Likewise.
22034 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22035 (__feraiseexcept): Likewise.
22036 (feclearexcept): Likewise.
22037 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22038 (__feraiseexcept): Likewise.
22039 (feclearexcept): Likewise.
22040 (fetestexcept): Likewise.
22041
22042 * sysdeps/m68k/coldfire/math-tests.h: New file.
22043
22044 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22045 * sysdeps/m68k/bits/fenv.h: ... here.
22046 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22047 not define.
22048 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22049 Likewise.
22050 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22051 Likewise.
22052 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22053 Likewise.
22054 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22055 Likewise.
22056 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22057 Define to 0.
22058 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22059 (__FE_UNDEFINED): New enum constant.
22060 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22061 Do not define.
22062 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22063 Likewise.
22064 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22065 Likewise.
22066 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22067 to match generic bits/fenv.h.
22068 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22069 Do not define.
22070
22071 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22072 packed on bits.
22073 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22074 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22075 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22076 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22077
22078 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22079 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22080 Joseph Myers <joseph@codesourcery.com>
22081
22082 [BZ #21314]
22083 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22084 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22085 computation using c.
22086 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22087 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22088 computation using c.
22089
22090 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22091
22092 * version.h (RELEASE): Set to "development".
22093 (VERSION): Set to "2.27.9000".
22094 * NEWS (2.28): New section.
22095
22096 * version.h (RELEASE): Set to "stable".
22097 (VERSION): Set to "2.27".
22098 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22099
22100 * NEWS: Add the list of bugs fixed in 2.27.
22101
22102 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22103
22104 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22105 against PTHREAD_STACK_MIN.
22106
22107 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22108
22109 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22110 New entries.
22111 (Rafał Lużyński, Andreas Schwab): Update.
22112
22113 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22114
22115 [BZ #10871]
22116 * NEWS: List the languages which actually use the alternative
22117 months feature in this release. Also explain that "alt_mon" and
22118 "ab_alt_mon" are optional.
22119
22120 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22121
22122 [BZ #22765]
22123 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22124
22125 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22126
22127 * manual/install.texi (Tools for Compilation): Update the newest
22128 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22129 * INSTALL: Regenerated.
22130
22131 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22132
22133 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22134 instead of __builtin_expect.
22135
22136 2018-01-30 Florian Weimer <fweimer@redhat.com>
22137
22138 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22139 data.
22140 * nss/tst-nss-getpwent.c (do_test): Likewise.
22141
22142 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22143
22144 [BZ #10871]
22145 * localedata/locales/hr_HR (mon): Rename to...
22146 (alt_mon): This.
22147 (mon): Import from CLDR (genitive case).
22148 (d_t_fmt): Update the comment.
22149
22150 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22151
22152 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22153 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22154 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22155
22156 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22157
22158 * mach/Versions: Fix version when __mach_host_self_ was added.
22159 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22160 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22161 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22162 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22163 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22164 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22165 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22166 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22167 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22168 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22169 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22170 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22171 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22172 || to respect codestyle.
22173 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22174 (do_test_bz20181): Rename accordingly.
22175 * malloc/malloc.c: Include <assert.h>.
22176 (assert): Do not define.
22177 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22178 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22179 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22180 * sysdeps/mach/hurd/hp-timing.h: New file.
22181 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22182
22183 2018-01-29 Darius Rad <darius@bluespec.com>
22184
22185 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22186
22187 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22188
22189 * sysdeps/init_array/crti.S (.section .init_array): Add
22190 PREINIT_FUNCTION when defined.
22191 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22192 * config.h.in: Regenerate.
22193 * manual/platform.texi: Add RISC-V documenation for
22194 __riscv_flush_icache.
22195 * sysdeps/riscv/__longjmp.S: New file.
22196 * sysdeps/riscv/backtrace.c: Likewise.
22197 * sysdeps/riscv/bits/endian.h: Likewise.
22198 * sysdeps/riscv/bits/setjmp.h: Likewise.
22199 * sysdeps/riscv/bits/wordsize.h: Likewise.
22200 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22201 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22202 * sysdeps/riscv/dl-trampoline.S: Likewise.
22203 * sysdeps/riscv/gccframe.h: Likewise.
22204 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22205 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22206 * sysdeps/riscv/machine-gmon.h: Likewise.
22207 * sysdeps/riscv/memusage.h: Likewise.
22208 * sysdeps/riscv/setjmp.S: Likewise.
22209 * sysdeps/riscv/sys/asm.h: Likewise.
22210 * sysdeps/riscv/tls-macros.h: Likewise.
22211 * sysdeps/riscv/dl-tls.h: New file.
22212 * sysdeps/riscv/libc-tls.c: Likewise.
22213 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22214 * sysdeps/riscv/nptl/tls.h: Likewise.
22215 * sysdeps/riscv/stackinfo.h: Likewise.
22216 * sysdeps/riscv/bits/fenv.h: New file.
22217 * sysdeps/riscv/e_sqrtl.c: Likewise.
22218 * sysdeps/riscv/fpu_control.h: Likewise.
22219 * sysdeps/riscv/math-tests.h: Likewise.
22220 * sysdeps/riscv/nofpu/Implies: Likewise.
22221 * sysdeps/riscv/sfp-machine.h: Likewise.
22222 * sysdeps/riscv/tininess.h: Likewise.
22223 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22224 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22225 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22226 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22227 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22228 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22229 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22230 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22231 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22232 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22233 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22234 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22235 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22236 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22237 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22238 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22239 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22240 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22241 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22242 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22243 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22244 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22245 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22246 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22247 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22248 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22249 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22250 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22251 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22252 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22253 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22254 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22255 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22256 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22257 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22258 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22259 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22260 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22261 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22262 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22263 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22264 * sysdeps/riscv/rvf/math_private.h: Likewise.
22265 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22266 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22267 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22268 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22269 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22270 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22271 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22272 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22273 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22274 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22275 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22276 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22277 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22278 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22279 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22280 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22281 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22282 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22283 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22284 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22285 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22286 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22287 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22288 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22289 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22290 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22291 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22292 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22293 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22294 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22295 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22296 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22297 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22298 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22299 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22300 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22301 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22302 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22303 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22304 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22305 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22306 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22307 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22308 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22309 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22310 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22311 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22312 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22313 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22314 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22315 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22316 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22317 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22318 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22319 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22320 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22321 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22322 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22323 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22324 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22325 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22326 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22327 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22328 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22329 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22330 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22331 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22332 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22333 * sysdeps/riscv/Implies: New file.
22334 * sysdeps/riscv/Makefile: Likewise.
22335 * sysdeps/riscv/configure: Likewise.
22336 * sysdeps/riscv/configure.ac: Likewise.
22337 * sysdeps/riscv/nptl/Makefile: Likewise.
22338 * sysdeps/riscv/preconfigure: Likewise.
22339 * sysdeps/riscv/rv64/Implies-after: Likewise.
22340 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22341 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22342 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22343 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22344 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22345 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22346 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22347 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22348 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22349 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22350 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22351 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22352 (Config): Likewise.
22353
22354 2018-01-29 Florian Weimer <fweimer@redhat.com>
22355
22356 [BZ #22701]
22357 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22358 libnsl_hidden_proto.
22359 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22360 libnsl_hidden_proto.
22361 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22362 * nis/Makefile (libnsl-routines): Add nss-default only for
22363 build-obsolete-nsl.
22364 * nis/nis_defaults.c (__nis_default_ttl): Add
22365 libnsl_hidden_nolink_def.
22366 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22367 declaration.
22368 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22369 * nis/ypclnt.c (yp_maplist): Likewise.
22370
22371 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22372
22373 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22374 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22375
22376 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22377
22378 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22379 clean -dxfq for git updates when replacing sources.
22380
22381 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22382 --disable-libcilkrts unconditionally, not just for the final GCC
22383 build for Hurd.
22384
22385 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22386 version to 4.15.
22387
22388 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22389
22390 [BZ #10871]
22391 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22392 case).
22393
22394 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22395
22396 [BZ #10871]
22397 * localedata/locales/be_BY (mon): Rename to...
22398 (alt_mon): This, then synchronize with CLDR (nominative case).
22399 (abmon): Rename to...
22400 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22401 (mon): Import from CLDR (genitive case).
22402 (abmon): Likewise.
22403 * localedata/locales/be_BY@latin (mon): Rename to...
22404 (alt_mon): This.
22405 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22406
22407 * localedata/locales/be_BY@latin (lang_name): Reworded to
22408 "biełaruskaja mova".
22409
22410 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22411
22412 [BZ #10871]
22413 * localedata/locales/el_CY (mon): Renamed to...
22414 (alt_mon): This.
22415 (mon): Import from CLDR (genitive case).
22416 * localedata/locales/el_GR: Likewise.
22417
22418 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22419
22420 [BZ #10871]
22421 * localedata/locales/ru_RU (mon): Rename to...
22422 (alt_mon): This.
22423 (abmon): Rename to...
22424 (ab_alt_mon): This.
22425 (mon): Import from CLDR (genitive case).
22426 (abmon): Copy from the old content except the 5th month which is
22427 now in the genitive case, even when abbreviated.
22428 * localedata/locales/ru_UA: Likewise.
22429 * time/tst-strptime.c (day_tests): Add an actual example of
22430 a difference between %b and %Ob in Russian.
22431
22432 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22433
22434 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22435 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22436 a `c' variable.
22437 * resolv/res-close.c: Include <stdlib.h>.
22438 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22439 <sys/wait.h>, <time.h>, <sys/uio.h>.
22440 (NOT_CANCEL_H): Add inclusion guard.
22441 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22442 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22443 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22444 return 0.
22445 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22446 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22447 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22448 instead of void *.
22449 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22450 timer_ptr2id to cast struct timer_node * to void *.
22451 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22452 --disable-libcilkrts to gcc configure.
22453 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22454 and make them the default for now.
22455 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22456 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22457 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22458 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22459 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22460 MACH_IPC_COMPAT.
22461 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22462 __task_terminate would ever return successfully.
22463 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22464 to global scope.
22465 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22466 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22467 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22468 critical section to make code simpler and avoid warning.
22469 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22470 critical section to make code simpler and avoid warning.
22471 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22472 const char * instead of char *.
22473 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22474 __hurd_file_name_split, hurd_file_name_split,
22475 __hurd_directory_name_split, hurd_directory_name_split,
22476 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22477 hurd_file_name_path_lookup): Make lookup function parameter take a
22478 const char *name instead of char *name.
22479 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22480 __hurd_directory_name_split): Likewise.
22481 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22482 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22483 * sysdeps/mach/hurd/check_native.c: New file.
22484 * sysdeps/mach/hurd/check_pf.c: New file.
22485 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22486 (__freeifaddrs): Define macro to freeifaddrs.
22487 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22488 * sysdeps/mach/libmachuser.abilist: New file.
22489 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22490 (do_test_bz20181): Rename accordingly.
22491 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22492 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22493 <sys/mount.h>.
22494 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22495 version only if __USE_EXTERN_INLINES is defined.
22496 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22497 __hurd_sockfail): Likewise.
22498 (_hurd_fd_get): Always declare functions, and provide inline versions
22499 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22500 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22501 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22502 _hurd_port_set): Always declare functions, and provide inline versions
22503 only if __USE_EXTERN_INLINES and _LIBC are defined and
22504 IS_IN(libc).
22505 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22506 _hurd_critical_section_unlock): Likewise.
22507 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22508 * __hurd_threadvar_location): Likewise.
22509 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22510 _hurd_userlink_clear): Likewise.
22511 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22512 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22513 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22514 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22515 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22516 __spin_lock_locked): Likewise.
22517 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22518 __spin_lock_locked): Likewise.
22519 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22520 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22521 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22522 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22523 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22524 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22525 _POSIX_NO_TRUNC): Define to 0.
22526 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22527 check size against PTHREAD_STACK_MIN.
22528 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22529 IS_IN(libpthread)]: Include <sigsetops.h>.
22530 * mach/Makefile (user-interfaces): Add mach/gnumach.
22531 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22532 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22533 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22534 instead of invalid -1.
22535 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22536 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22537 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22538 <net/ppp_defs.h>.
22539
22540 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22541
22542 * hurd/fcntl-internal.h: New file.
22543
22544 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22545
22546 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22547
22548 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22549
22550 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22551
22552 [BZ #22701]
22553 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22554 Build only shared objects.
22555
22556 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22557
22558 * README: Update for hppa.
22559
22560 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22561
22562 * sysdeps/sparc/fpu/libm-test-ulps: Update
22563 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22564
22565 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22566
22567 Revert:
22568
22569 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22570
22571 [BZ #22563]
22572 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22573 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22574 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22575 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22576 to feature_1.
22577
22578 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22579
22580 [BZ #22563]
22581 * bits/types/__cancel_jmp_buf_tag.h: New file.
22582 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22583 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22584 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22585 * nptl/Makefile (headers): Add
22586 bits/types/__cancel_jmp_buf_tag.h.
22587 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22588 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22589 * sysdeps/nptl/pthread.h: Include
22590 <bits/types/__cancel_jmp_buf_tag.h>.
22591 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22592 __cancel_jmp_buf.
22593 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22594
22595 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22596
22597 [BZ #10871]
22598 * localedata/locales/uk_UA (mon): Renamed to...
22599 (alt_mon): This.
22600 (alt_digits): "0" removed and then renamed to...
22601 (mon): This.
22602 (date_fmt): Definition changed not to use the alternative
22603 digits hack.
22604
22605 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22606
22607 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22608 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22609 * elf/elf.h (EF_RISCV_RVC): New define.
22610 (EF_RISCV_FLOAT_ABI): Likewise.
22611 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22612 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22613 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22614 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22615 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22616 define.
22617 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22618
22619 2018-01-25 Andreas Schwab <schwab@suse.de>
22620
22621 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22622 single quotes.
22623 * sysdeps/gnu/configure: Regenerate.
22624 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22625 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22627 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22628 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22629 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22630 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22631 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22632
22633 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22634
22635 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22636 URL, and run autoconf, make it the default for now.
22637
22638 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22639
22640 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22641 soft-float ColdFire configuration.
22642
22643 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22644 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22645 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22646
22647 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22648 MicroBlaze file.
22649
22650 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22651 ....
22652 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22653 ... here.
22654 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22655 New file.
22656
22657 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22658 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22659 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22660 file.
22661
22662 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22663
22664 [BZ #22742]
22665 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22666 Rename to __reserved and add comment.
22667 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22668 Rename to __reserved.
22669
22670 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22671
22672 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22673 i686-gnu configurations.
22674 (Context.run_builds): Include mig, gnumach and hurd in components
22675 considered.
22676 (Context.checkout): Add mig, gnumach and hurd to components.
22677 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22678 hurd.
22679 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22680 (Config.build): Install gnumach headers, build mig and install
22681 hurd headers for 'gnu' OS.
22682 (Config.install_gnumach_headers): New function.
22683 (Config.install_hurd_headers): Likewise.
22684 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22685 when building for 'gnu' OS.
22686
22687 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22688
22689 * manual/tunables.texi (Hardware Capability Tunables): Fix
22690 spelling.
22691
22692 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22693
22694 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22695 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22696 (ALTMON_11, ALTMON_12): Improve documentation.
22697 * manual/time.texi (strftime): Likewise.
22698
22699 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22700
22701 [BZ #10871]
22702 * localedata/locales/pl_PL: Alternative month names added,
22703 primary month names are genitive now.
22704 * time/tst-strptime.c (day_tests): Actually use a genitive case
22705 of a month name in Polish language.
22706
22707 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22708
22709 [BZ #10871]
22710 * manual/locale.texi: Document ALTMON_1..12 constants for
22711 nl_langinfo. Specify when to use ALTMON instead of MON.
22712 * manual/time.texi (strftime, strptime): Document GNU extension
22713 permitting O modifier with %B and %b. Specify when to use
22714 %OB instead of %B.
22715
22716 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22717
22718 [BZ #10871]
22719 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22720 names, define them as the same as abbreviated month names explicitly.
22721 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22722 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22723 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22724 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22725 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22726 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22727 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22728 _NL_WABALTMON_12): New enum constants.
22729 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22730 wab_alt_mon, and ab_alt_mon_defined members.
22731 (time_output): Output ab_alt_mon and wab_alt_mon members.
22732 (time_read): Read them, initialize them as copies of abmon and wabmon
22733 respectively if they are missing, initialize ab_alt_mon_defined.
22734 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22735 * locale/programs/locfile-kw.h: Regenerate.
22736 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22737 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22738 and ru_RU.UTF-8.
22739 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22740 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22741 (__strftime_internal): Handle %Ob and %Oh formats.
22742 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22743 (__strptime_internal): Handle %Ob and %Oh formats.
22744 * time/tst-strptime.c (day_tests): Add more tests to parse different
22745 forms of month names including the new %Ob format specifier.
22746
22747 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22748
22749 [BZ #10871]
22750 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22751 define them as the same as primary full month names explicitly.
22752 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22753 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22754 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22755 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22756 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22757 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22758 _NL_WALTMON_12): New enum constants.
22759 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22760 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22761 macros.
22762 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22763 walt_mon, and alt_mon_defined members.
22764 (time_output): Output alt_mon and walt_mon members.
22765 (time_read): Read them, initialize them as copies of mon and wmon
22766 respectively if they are missing, initialize alt_mon_defined.
22767 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22768 * locale/programs/locfile-kw.h: Regenerate.
22769 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22770 * localedata/tst-langinfo.c (map): Add tests for the new constants
22771 ALTMON_1 .. ALTMON_12.
22772 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22773 and pl_PL.UTF-8.
22774 * time/strftime_l.c (f_altmonth): New macro.
22775 (__strftime_internal): Handle %OB format.
22776 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22777 (__strptime_internal): Handle %OB format.
22778 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22779 of month names including the new %OB format specifier.
22780
22781 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22782
22783 [BZ #22685]
22784 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22785 from ABORT_TRANSACTION.
22786 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22787 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22788 ABORT_TRANSACTION_IMPL): Likewise.
22789 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22790 Linux code, but remove the code that aborts transactions.
22791
22792 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22793
22794 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22795
22796 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22797
22798 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22799 in date: "2004-14-09" should be "2004-09-14".
22800 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22801 "2003-15-09" should be "2003-09-15".
22802
22803 2018-01-18 Arjun Shankar <arjun@redhat.com>
22804
22805 [BZ #22343]
22806 [BZ #22774]
22807 CVE-2018-6485
22808 CVE-2018-6551
22809 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22810 after padding.
22811 (_int_memalign): check for integer overflow before calling
22812 _int_malloc.
22813 * malloc/tst-malloc-too-large.c: New test.
22814 * malloc/Makefile: Add tst-malloc-too-large.
22815
22816 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22817
22818 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22819 in date: "2017-24-07" should be "2017-07-24".
22820 * localedata/locales/mai_IN: Likewise.
22821 * localedata/locales/mai_NP: Likewise.
22822
22823 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22824
22825 * po/ru.po: Update translations.
22826
22827 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22828
22829 [BZ #22719]
22830 * sysdeps/hppa/backtrace.c: New file.
22831
22832 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22833
22834 [BZ #22715]
22835 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22836 align La_x86_64_retval to VEC_SIZE.
22837
22838 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22839
22840 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22841 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22842
22843 2018-01-16 Florian Weimer <fweimer@redhat.com>
22844
22845 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22846 Move tst-thread-exit-clobber ...
22847 [$(CXX)] (tests-unsupported): ... to here.
22848
22849 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22850
22851 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22852 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22853 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22854 (_dl_aarch64_cap_flags): Update.
22855 (_DL_HWCAP_COUNT): Update.
22856
22857 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22858
22859 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22860 (_DL_HWCAP_LAST): Remove.
22861 (_DL_HWCAP_COUNT): Move to ...
22862 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22863 (_DL_HWCAP_COUNT): ... here.
22864
22865 2018-01-16 Florian Weimer <fweimer@redhat.com>
22866
22867 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22868 mode with GNU extensions.
22869
22870 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22871
22872 * elf/elf.h (NT_ARM_SVE): Define.
22873
22874 2018-01-15 Florian Weimer <fweimer@redhat.com>
22875
22876 [BZ #22636]
22877 * nptl/tst-minstack-throw.cc: New file.
22878 * nptl/Makefile (tests): Add tst-minstack-throw.
22879 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22880 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22881
22882 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22883
22884 * scripts/build-many-glibcs.py (Context.checkout): Default
22885 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22886 version to 1.1.0.
22887
22888 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22889
22890 [BZ #22707]
22891 * elf/elf.h (DF_1_STUB): Define.
22892 (DF_1_PIE): Define.
22893
22894 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22895
22896 [BZ #22697]
22897 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22898 Do not add 0.5 to integer or out-of-range arguments.
22899
22900 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22901
22902 * po/bg.po: Update translations.
22903 * po/cs.po: Likewise.
22904 * po/de.po: Likewise.
22905 * po/ko.po: Likewise.
22906 * po/pl.po: Likewise.
22907 * po/sv.po: Likewise.
22908 * po/uk.po: Likewise.
22909 * po/vi.po: Likewise.
22910
22911 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22912
22913 * aarch64/start.S (_start): Use __wrap_main.
22914 (__wrap_main): New local symbol.
22915
22916 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22917
22918 [BZ #22679]
22919 CVE-2018-1000001
22920 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22921 generic_getcwd if the path returned by getcwd syscall is not absolute.
22922 * io/tst-getcwd-abspath.c: New test.
22923 * io/Makefile (tests): Add tst-getcwd-abspath.
22924
22925 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22926
22927 * malloc/malloc.c (malloc_consolidate): Add size check.
22928
22929 2018-01-12 Florian Weimer <fweimer@redhat.com>
22930
22931 * support/write_message.c (write_message): Preserve errno.
22932 * support/check.c (print_failure): Likewise.
22933 * support/support_test_verify_impl.c (support_test_verify_impl):
22934 Likewise.
22935 * support/support_test_compare_failure.c
22936 (support_test_compare_failure): Likewise.
22937
22938 2018-01-12 Florian Weimer <fweimer@redhat.com>
22939
22940 [BZ #22701]
22941 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22942 Prevent installation of libnsl.so.
22943 (libnsl-inhibit-o): Do not build (or install) static libraries.
22944
22945 2018-01-12 Egmont Koblinger <egmont@gmail.com>
22946
22947 [BZ #22657]
22948 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22949 before the day number which may produce a double space.
22950 (date_fmt): Likewise.
22951
22952 2018-01-12 Joseph Myers <joseph@codesourcery.com>
22953
22954 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22955 instead of fegetenv.
22956
22957 2018-01-11 Joseph Myers <joseph@codesourcery.com>
22958
22959 [BZ #22702]
22960 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22961 comment to say exceptions are discarded.
22962 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22963 __fegetenv.
22964 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22965 be enabled.
22966
22967 2018-01-11 Florian Weimer <fweimer@redhat.com>
22968
22969 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22970 and error message.
22971
22972 2018-01-11 Florian Weimer <fweimer@redhat.com>
22973
22974 [BZ #22636]
22975 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22976 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22977
22978 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22979
22980 [BZ #22693]
22981 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22982 negative arguments in test for NaN or infinity argument.
22983
22984 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22985
22986 * po/libc.pot: Regenerate.
22987
22988 2018-01-10 Florian Weimer <fweimer@redhat.com>
22989
22990 [BZ #22636]
22991 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22992 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22993
22994 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22995
22996 * hurd/hurd/fd.h: Include <fcntl.h>
22997 (__hurd_at_flags): New function.
22998 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22999 with call to __hurd_at_flags.
23000 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23001 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23002 __faccessat
23003 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23004 (__access_noerrno): Use __faccessat_common instead of access_common.
23005 (__access): Likewise.
23006 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23007 with a call to __faccessat.
23008 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23009 (__faccessat_common): ... this. Move implementation of __access into it when
23010 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23011 reauthenticate_cwdir_at helper to implement AT mechanism.
23012 (__faccessat_noerrno): New function, just calls __faccessat_common.
23013 (__faccessat): New function, just calls __faccessat_common.
23014 (faccessat): Define weak alias.
23015
23016 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23017
23018 [BZ #22691]
23019 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23020 (CFLAGS-s_fmaxmagl.c): New variable.
23021 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23022
23023 [BZ #22690]
23024 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23025 long int for arguments of possibly overflowing addition or
23026 subtraction.
23027 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23028
23029 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23030
23031 [BZ #22688]
23032 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23033 (CFLAGS-e_remainderl.c): New variable.
23034
23035 [BZ #22687]
23036 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23037 variable.
23038 (CFLAGS-s_cacoshl.c): Likewise.
23039 (CFLAGS-s_casinhl.c): Likewise.
23040 (CFLAGS-s_catanl.c): Likewise.
23041 (CFLAGS-s_catanhl.c): Likewise.
23042 (CFLAGS-s_cexpl.c): Likewise.
23043 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23044 (CFLAGS-s_csinhl.c): Likewise.
23045 (CFLAGS-s_clogl.c): Likewise.
23046 (CFLAGS-s_clog10l.c): Likewise.
23047 (CFLAGS-s_csinl.c): Likewise.
23048 (CFLAGS-s_csqrtl.c): Likewise.
23049
23050 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23051 2017-01-09 Svante Signell <svante.signell@gmail.com>
23052
23053 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23054 (_hurd_exec_paths): New function.
23055 * hurd/hurd.h (_hurd_exec): Deprecate function.
23056 (_hurd_exec_paths): Declare function.
23057 * hurd/Versions: Export _hurd_exec_paths.
23058 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23059 (__execve): Use __getcwd to build absolute path, and use
23060 _hurd_exec_paths instead of _hurd_exec.
23061 * sysdeps/mach/hurd/spawni.c: Likewise.
23062 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23063 _hurd_exec.
23064
23065 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23066
23067 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23068 test instead of failing in case of ENOENT returned by posix_openpt.
23069
23070 2018-01-08 Florian Weimer <fweimer@redhat.com>
23071
23072 resolv: Support binary labels in test framework.
23073 * support/resolv_test.c (struct to_be_freed): Remove.
23074 (struct compressed_name): New.
23075 (allocate_compressed_name, ascii_tolower)
23076 (compare_compressed_name): New functions.
23077 (struct resolv_response_builder): Update type of
23078 compression_offsets for use with tsearch. Rempve to_be_freed.
23079 (response_push_pointer_to_free): Remove function.
23080 (resolv_response_add_name): Rewrite using struct compressed_name
23081 and tsearch instead of hsearch_r.
23082 (response_builder_allocate): Remove initialization of
23083 compression_offsets.
23084 (response_builder_free): Update for removal of to_be_freed. Use
23085 tdestroy instead of hdestroy_r.
23086 * resolv/Makefile (tests): Add tst-resolv-binary.
23087 (tst-resolv-binary): Link with -lresolv -lpthread.
23088
23089 2018-01-08 Florian Weimer <fweimer@redhat.com>
23090
23091 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23092 time. Pass positive flag instead of negative flag to
23093 support_test_compare_failure.
23094 (support_test_compare_failure): Change negative parameter to
23095 positive.
23096 * support/support_test_compare_failure.c (report)
23097 (support_test_compare_failure): Likewise.
23098 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23099 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23100
23101 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23102
23103 [BZ #22637]
23104 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23105 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23106 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23107 stacksize.
23108 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23109
23110 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23111
23112 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23113 Add s_sincosf-sse2 and s_sincosf-fma.
23114 (CFLAGS-s_sincosf-fma.c): New.
23115 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23116 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23117 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23118 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23119 __sincosf is defined.
23120
23121 2018-01-08 Florian Weimer <fweimer@redhat.com>
23122
23123 * nptl/tst-thread-exit-clobber.cc: New file.
23124 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23125 C++11 mode.
23126 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23127 (tests): Add tst-thread-exit-clobber.
23128 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23129
23130 2018-01-08 Florian Weimer <fweimer@redhat.com>
23131
23132 * support/check.h (support_static_assert): Define.
23133 (TEST_COMPARE): Use it.
23134
23135 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23136
23137 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23138 [!__RLIM_T_MATCHES_RLIM64_T]
23139 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23140 __getrlimit64. Add libc_hidden_weak.
23141
23142 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23143
23144 * elf/elf.h (R_RISCV_NONE): New define.
23145 (R_RISCV_32): Likewise.
23146 (R_RISCV_64): Likewise.
23147 (R_RISCV_RELATIVE): Likewise.
23148 (R_RISCV_COPY): Likewise.
23149 (R_RISCV_JUMP_SLOT): Likewise.
23150 (R_RISCV_TLS_DTPMOD32): Likewise.
23151 (R_RISCV_TLS_DTPMOD64): Likewise.
23152 (R_RISCV_TLS_DTPREL32): Likewise.
23153 (R_RISCV_TLS_DTPREL64): Likewise.
23154 (R_RISCV_TLS_TPREL32): Likewise.
23155 (R_RISCV_TLS_TPREL64): Likewise.
23156 * Makerules (make-link-multidir): Make directories before linking into
23157 them.
23158 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23159 define.
23160 (VDSO_HASH_LINUX_4_15): Likewise.
23161 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23162 in subdirectories of lib.
23163 * nptl/Makefile (/librt.so): Always depend on
23164 "$(shared-thread-library)".
23165
23166 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23167
23168 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23169 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23170 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23171 (___tls_get_addr).
23172 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23173 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23174 "-O2 -march=i686".
23175 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23176 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23177 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23178 * sysdeps/gnu/glob-lstat-compat.c: New file.
23179 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23180 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23181
23182 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23183
23184 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23185 Reserve 16 chars to reloc_addr before calling _itoa_word.
23186
23187 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23188
23189 [BZ #22678]
23190 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23191 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23192
23193 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23194 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23195
23196 * resource/tst-getrlimit.c: Add copyright header.
23197
23198 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23199 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23200
23201 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23202 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23203 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23204 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23205 instead.
23206 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23207 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23208 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23209 RLIM64_INFINITY): Fix values to match the kernel ones.
23210 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23211 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23212 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23213 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23214 getrlimit64@@GLIBC_2_27.
23215 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23216 and setrlimit64.
23217 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23218 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23219 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23220 setrlimit, getrlimit64 and setrlimit64.
23221
23222 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23223
23224 [BZ #22648]
23225 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23226 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23227
23228 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23229
23230 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23231 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23232 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23233
23234 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23235
23236 [BZ #15479]
23237 [BZ #22666]
23238 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23239 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23240
23241 [BZ #15479]
23242 [BZ #22665]
23243 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23244 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23245 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23246 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23247
23248 2018-01-04 Florian Weimer <fweimer@redhat.com>
23249
23250 [BZ #22667]
23251 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23252 Align the stack before calling exit.
23253 * stdlib/tst-makecontext-align.c: New file.
23254 * stdlib/Makefile (tests): Add tst-makecontext-align.
23255
23256 2018-01-04 Florian Weimer <fweimer@redhat.com>
23257
23258 Add support for calling dlvsym from libc.so.
23259 * include/dlfcn.h (__libc_dlvsym): Declare.
23260 * elf/Makefile (tests-static-internal): Add
23261 tst-libc_dlvsym-static.
23262 (tests-internal): Add tst-libc_dlvsym.
23263 (modules-names): Add tst-libc_dlvsym-dso.
23264 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23265 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23266 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23267 object tst-libc_dlvsym-dso.so needs to be built before running
23268 these tests.
23269 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23270 * elf/Versions: Export __libc_dlvsym.
23271 * elf/dl-libc.c (struct do_dlvsym_args): New.
23272 (do_dlvsym, __libc_dlvsym): New functions.
23273 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23274 (_dl_open_hook2): New variable.
23275 (__libc_register_dl_open_hook): Set it.
23276 * elf/tst-libc_dlvsym-dso.c: New file.
23277 * elf/tst-libc_dlvsym-static.c: Likewise.
23278 * elf/tst-libc_dlvsym.c: Likewise.
23279 * elf/tst-libc_dlvsym.h: Likewise.
23280
23281 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23282
23283 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23284 include <sys/mount.h>.
23285
23286 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23287
23288 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23289 Add __NO_MATH_ERRNO__ check.
23290
23291 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23292
23293 * sysdeps/mips/mips32/libm-test-ulps: Update.
23294 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23295
23296 2018-01-02 Florian Weimer <fweimer@redhat.com>
23297
23298 * misc/tst-pselect.c: Add copyright header.
23299
23300 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23301
23302 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23303 comment.
23304 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23305 comment.
23306 (settrlimit): Rename into setrlimit.
23307 (__sttrlimit): Rename into __setrlimit.
23308
23309 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23310 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23311 never defined in that case.
23312
23313 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23314
23315 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23316
23317 * sysdeps/arm/libm-test-ulps: Update.
23318
23319 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23320 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23321
23322 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23323
23324 * NEWS: Add cosf and sincosf to list of optimized functions.
23325
23326 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23327
23328 [BZ #22660]
23329 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23330 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23331 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23332 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23333
23334 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23335
23336 [BZ #22433]
23337 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23338
23339 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23340 making a copy of it.
23341
23342 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23343
23344 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23345 trailing whitespace removed.
23346 * scripts/config.guess: Update to version 2018-01-01.
23347 * scripts/config.sub: Update to version 2018-01-01.
23348 * scripts/move-if-change: Update from gnulib.
23349
23350 * NEWS: Update copyright dates.
23351 * catgets/gencat.c (print_version): Likewise.
23352 * csu/version.c (banner): Likewise.
23353 * debug/catchsegv.sh: Likewise.
23354 * debug/pcprofiledump.c (print_version): Likewise.
23355 * debug/xtrace.sh (do_version): Likewise.
23356 * elf/ldconfig.c (print_version): Likewise.
23357 * elf/ldd.bash.in: Likewise.
23358 * elf/pldd.c (print_version): Likewise.
23359 * elf/sotruss.sh: Likewise.
23360 * elf/sprof.c (print_version): Likewise.
23361 * iconv/iconv_prog.c (print_version): Likewise.
23362 * iconv/iconvconfig.c (print_version): Likewise.
23363 * locale/programs/locale.c (print_version): Likewise.
23364 * locale/programs/localedef.c (print_version): Likewise.
23365 * login/programs/pt_chown.c (print_version): Likewise.
23366 * malloc/memusage.sh (do_version): Likewise.
23367 * malloc/memusagestat.c (print_version): Likewise.
23368 * malloc/mtrace.pl: Likewise.
23369 * manual/libc.texinfo: Likewise.
23370 * nptl/version.c (banner): Likewise.
23371 * nscd/nscd.c (print_version): Likewise.
23372 * nss/getent.c (print_version): Likewise.
23373 * nss/makedb.c (print_version): Likewise.
23374 * posix/getconf.c (main): Likewise.
23375 * scripts/test-installation.pl: Likewise.
23376 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23377
23378 * All files with FSF copyright notices: Update copyright dates
23379 using scripts/update-copyrights.
23380 * locale/programs/charmap-kw.h: Regenerated.
23381 * locale/programs/locfile-kw.h: Likewise.
23382
23383 2017-12-31 Zack Weinberg <zackw@panix.com>
23384
23385 * libio/bits/libio-ldbl.h: Correct check for improper
23386 inclusion. Add own multiple include guard.
23387
23388 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23389 Dmitry V. Levin <ldv@altlinux.org>
23390
23391 [BZ #22625]
23392 CVE-2017-16997
23393 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23394 string token expansion. Check for NULL pointer or empty string possibly
23395 returned by expand_dynamic_string_token.
23396 (decompose_rpath): Check for empty path after dynamic string
23397 token expansion.
23398
23399 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23400
23401 [BZ #22433]
23402 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23403
23404 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23405 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23406 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23407 and PTRACE_SYSCALL.
23408 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23409 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23410 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23411 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23412 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23413 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23414
23415 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23416 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23417 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23418 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23419 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23420 bits/ptrace-shared.h.
23421 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23422 <bits/ptrace-shared.h>.
23423 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23424 __ptrace_peeksiginfo_flags, ptrace): Remove.
23425 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23426 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23427 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23428 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23429 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23430
23431 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23432
23433 [BZ #17804]
23434 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23435 end of the loop. Improve comments.
23436
23437 2017-12-29 Zack Weinberg <zackw@panix.com>
23438
23439 [BZ #22615]
23440 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23441 might be set on success.
23442
23443 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23444
23445 [BZ #22611]
23446 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23447 is unchanged on success.
23448
23449 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23450
23451 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23452 updated.
23453 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23454 expand_dynamic_string_token): Likewise.
23455 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23456 is_path argument.
23457
23458 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23459 contains ':'.
23460
23461 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23462 is set and name contains ':', and all code depending on these checks.
23463
23464 2017-12-24 Zack Weinberg <zackw@panix.com>
23465
23466 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23467 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23468 respectively.
23469 * libio/libio.h: Rename the original version of this file to
23470 libio/bits/libio.h. Error out if not included by stdio.h or the
23471 stub libio.h.
23472 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23473 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23474 if not included by bits/libio.h or the stub _G_config.h.
23475 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23476 sysdeps/unix/sysv/linux/bits. Error out if not included by
23477 bits/libio.h or the stub _G_config.h.
23478 * libio/stdio.h: Include bits/libio.h, not libio.h.
23479 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23480 well as libio.h and _G_config.h.
23481
23482 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23483 * libio/strfile.h, stdio-common/vfscanf.c
23484 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23485 Include stdio.h, not _G_config.h nor libio.h.
23486 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23487 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23488
23489 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23490
23491 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23492
23493 [BZ #22347]
23494 * stdlib/getrandom.c (getrandom): Fix comment.
23495 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23496
23497 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23498
23499 [BZ #21161]
23500 * manual/arith.texi (strtoul): Fix a typo.
23501
23502 [BZ #22596]
23503 * manual/arith.texi (finite): Fix the description of the return
23504 value.
23505
23506 2017-12-22 Eric Blake <ebb9@byu.net>
23507
23508 Avoid gcc warnings on cygwin
23509 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23510 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23511 Avoid unused variable.
23512
23513 2017-12-22 Florian Weimer <fweimer@redhat.com>
23514
23515 * io/Makefile (routines): Add copy_file_range.
23516 (tests): Add tst-copy_file_range.
23517 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23518 * io/Versions (GLIBC_2.27): Export copy_file_range.
23519 * io/copy_file_range-compat.c: New file.
23520 * io/copy_file_range.c: Likewise.
23521 * io/tst-copy_file_range-compat.c: Likewise.
23522 * io/tst-copy_file_range.c: Likewise.
23523 * manual/llio.texi (Copying File Data): New section.
23524 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23525 * support/Makefile (libsupport-routines): Add support-xfstat,
23526 xftruncate, xlseek.
23527 * support/support-xfstat.c: New file.
23528 * support/xftruncate.c: Likewise.
23529 * support/xlseek.c: Likewise.
23530 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23531 * sysdeps/unix/sysv/linux/**.abilist: Update.
23532 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23533
23534 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23535
23536 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23537 disable-multi-arch variant to aarch64-linux-gnu.
23538
23539 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23540
23541 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23542 trailing whitespace removed.
23543 * scripts/config.guess: Update to version 2017-12-17.
23544 * scripts/config.sub: Update to version 2017-11-23.
23545 * scripts/install-sh: Update to version 2017-09-23.17.
23546 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23547
23548 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23549
23550 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23551 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23552 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23553 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23554 * sysdeps/tile/crtn.S: Likewise.
23555 * sysdeps/tile/dl-start.S (_start): Likewise.
23556 * sysdeps/tile/dl-trampoline.S: Likewise.
23557 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23558 * sysdeps/tile/start.S (_start): Likewise.
23559 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23560 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23561 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23562 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23563 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23564 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23565 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23566
23567 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23568 comment.
23569 * sysdeps/tile/preconfigure: Remove tilegx folder.
23570 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23571 * sysdeps/tile/Implies: ... here.
23572 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23573 * sysdeps/tile/Makefile: ... here.
23574 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23575 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23576 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23577 * sysdeps/tile/bits/wordsize.h: ... here.
23578 * sysdeps/tile/tilegx/*: Move to ...
23579 * sysdeps/tile/*: ... here.
23580 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23581 * sysdeps/tile/tilegx32/Implies: ... here.
23582 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23583 * sysdeps/tile/tilegx64/Implies: ... here.
23584 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23585 to ...
23586 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23587 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23588 * sysdeps/unix/sysv/linux/tile/*: ... here.
23589 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23590 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23591 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23592 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23593
23594 * README: Remove tilepro-*-linux-gnu from supported architecture.
23595 * scripts/build-many-glibcs.py: Likewise.
23596 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23597 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23598 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23599 elf_machine_matches_host, elf_machine_dynamic,
23600 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23601 howto, elf_machine_rela): Likewise.
23602 * sysdeps/tile/dl-start.S (_start): Likewise.
23603 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23604 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23605 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23606 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23607 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23608 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23609 Likewise.
23610 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23611 * sysdeps/tile/preconfigure: Likewise.
23612 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23613 POINTER_CHK_GUARD): Likewise.
23614 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23615 * sysdeps/tile/start.S (_start): Likewise.
23616 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23617 Likewise.
23618 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23619 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23620 CMOVNEZ): Remove.
23621 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23622 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23623 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23624 Likewise.
23625 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23626 * sysdeps/tile/tilepro/Implies: Remove file.
23627 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23628 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23629 * sysdeps/tile/tilepro/memchr.c: Likewise.
23630 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23631 * sysdeps/tile/tilepro/memset.c: Likewise.
23632 * sysdeps/tile/tilepro/memusage.h: Likewise.
23633 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23634 * sysdeps/tile/tilepro/strchr.c: Likewise.
23635 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23636 * sysdeps/tile/tilepro/strlen.c: Likewise.
23637 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23638 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23639 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23640 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23641 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23642 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23643 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23644 Likewise.
23645 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23646 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23647 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23648 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23649 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23650 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23651 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23652 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23653 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23654 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23655 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23656 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23657 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23658 tilepro mention in comment.
23659
23660 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23661 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23662 * nptl/pthread_join_common.c: New file: common function used on
23663 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23664 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23665 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23666 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23667 (cleanup): Move definition to pthread_join_common.c.
23668 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23669 Remove superflous checks.
23670 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23671 Likewise.
23672
23673 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23674
23675 * sysdeps/aarch64/libm-test-ulps: Update.
23676
23677 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23678
23679 * sysdeps/aarch64/memset.S (MEMSET): Define.
23680
23681 2017-12-20 Florian Weimer <fweimer@redhat.com>
23682
23683 [BZ #22635]
23684 nptl: Provide full implementation of pthread_self in libc.so.
23685 * nptl/Makefile (routines): Add pthread_self.
23686 (libpthread-routines): Replace pthread_self with
23687 compat-pthread_self.
23688 * nptl/forward.c (pthread_self): Remove.
23689 * nptl/nptl-init.c (pthread_functions): Do not initialize
23690 ptr_pthread_self.
23691 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23692 * nptl/compat-pthread_self.c: New file.
23693 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23694 Remove ptr_pthread_self.
23695
23696 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23697
23698 * posix/regcomp.c: Fix spelling in comments.
23699 * posix/regex.h: Likewise.
23700 * posix/regex_internal.c: Likewise.
23701 * posix/regexec.c: Likewise.
23702
23703 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23704
23705 [BZ #22377]
23706 * math/Makefile [C++] (tests): Add test for iseqsig.
23707 * math/math.h [C++] (iseqsig): New implementation, which does
23708 not rely on __MATH_TG/__builtin_types_compatible_p.
23709 * math/test-math-iseqsig.cc: New file.
23710 * sysdeps/powerpc/powerpc64le/Makefile
23711 (CFLAGS-test-math-iseqsig.cc): New variable.
23712
23713 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23714
23715 * elf/dl-load.c (is_trusted_path): Remove.
23716 (fillin_rpath): Remove check_trusted argument and its use,
23717 all callers changed.
23718
23719 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23720
23721 [BZ #22630]
23722 * Makeconfig (link-pie-before-libc): Replace -pie with
23723 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23724 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23725 (tst-dlopen-aout-no-pie): New.
23726 (LDFLAGS-tst-prelink): Removed.
23727 (tst-prelink-no-pie): New.
23728 (LDFLAGS-tst-main1): Removed.
23729 (tst-main1-no-pie): New.
23730 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23731 (tst-gmon-no-pie): New.
23732
23733 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23734
23735 * manual/install.texi: Document that --enable-static-pie
23736 implies PIE.
23737 * INSTALL: Regenerated.
23738
23739 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23740
23741 [BZ #21309]
23742 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23743 unsigned.
23744
23745 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23746
23747 Revert:
23748
23749 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23750
23751 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23752
23753 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23754
23755 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23756 <errno.h>. Include "eexp.tbl".
23757 (half): New constant.
23758 (one): Likewise.
23759 (__ieee754_exp): Rewrite.
23760 (__slowexp): Remove prototype.
23761 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23762 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23763 * sysdeps/i386/fpu/slowexp.c: Likewise.
23764 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23765 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23766 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23767 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23768 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23769 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23770 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23771 comment.
23772 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23773 (CPPFLAGS-slowexp.c): Remove variable.
23774 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23775 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23776 (CFLAGS-slowexp-fma.c): Remove variable.
23777 (CFLAGS-slowexp-fma4.c): Likewise.
23778 (CFLAGS-slowexp-avx.c): Likewise.
23779 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23780 define as macro.
23781 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23782 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23783 * math/Makefile (type-double-routines): Remove slowexp.
23784 * manual/probes.texi (slowexp_p6): Remove.
23785 (slowexp_p32): Likewise.
23786
23787 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23788
23789 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23790 arithmetic.
23791
23792 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23793
23794 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23795
23796 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23797
23798 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23799
23800 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23801 <errno.h>. Include "eexp.tbl".
23802 (half): New constant.
23803 (one): Likewise.
23804 (__ieee754_exp): Rewrite.
23805 (__slowexp): Remove prototype.
23806 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23807 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23808 * sysdeps/i386/fpu/slowexp.c: Likewise.
23809 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23810 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23811 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23812 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23813 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23814 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23815 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23816 comment.
23817 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23818 (CPPFLAGS-slowexp.c): Remove variable.
23819 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23820 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23821 (CFLAGS-slowexp-fma.c): Remove variable.
23822 (CFLAGS-slowexp-fma4.c): Likewise.
23823 (CFLAGS-slowexp-avx.c): Likewise.
23824 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23825 define as macro.
23826 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23827 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23828 * math/Makefile (type-double-routines): Remove slowexp.
23829 * manual/probes.texi (slowexp_p6): Remove.
23830 (slowexp_p32): Likewise.
23831
23832 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23833 James Clarke <jrtc27@jrtc27.com>
23834
23835 [BZ #22603]
23836 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23837 addition.
23838
23839 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23840
23841 [BZ #22605]
23842 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23843 code.
23844
23845 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23846
23847 [BZ #22563]
23848 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23849 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23850 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23851 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23852 to feature_1.
23853
23854 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23855
23856 [BZ #22563]
23857 * bits/types/__cancel_jmp_buf_tag.h: New file.
23858 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23859 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23860 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23861 * nptl/Makefile (headers): Add
23862 bits/types/__cancel_jmp_buf_tag.h.
23863 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23864 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23865 * sysdeps/nptl/pthread.h: Include
23866 <bits/types/__cancel_jmp_buf_tag.h>.
23867 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23868 __cancel_jmp_buf.
23869 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23870
23871 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23872
23873 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23874 --enable-static-pie variants to x86_64, x32 and i686.
23875
23876 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23877
23878 [BZ #22631]
23879 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23880 argument for attrubutes. All callers changed.
23881 (__inline_mathop1): Likewise. All callers changed.
23882 (__inline_mathop): Likewise. All callers changed.
23883 [__USE_MISC] (scalbn): Use __inline_forward instead of
23884 __inline_forward_c.
23885 [__USE_ISOC99] (scalbln): Likewise.
23886 [__USE_ISOC99] (nearbyint): Likewise.
23887 [__USE_ISOC99] (lrint): Likewise.
23888 [__USE_MISC] (scalbnf): Likewise.
23889 [__USE_ISOC99] (scalblnf): Likewise.
23890 [__USE_ISOC99] (nearbyintf): Likewise.
23891 [__USE_ISOC99] (lrintf): Likewise.
23892 [__USE_MISC] (scalbnl): Likewise.
23893 [__USE_ISOC99] (scalblnl): Likewise.
23894 [__USE_ISOC99] (nearbyintl): Likewise.
23895 [__USE_ISOC99] (lrintl): Likewise.
23896 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23897 __inline_mathop and __m81_defun changed.
23898
23899 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23900 CPU or FPU for ARM hard-float configurations.
23901
23902 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23903
23904 * nptl/tst-attr3.c: Include <libc-diag.h>.
23905 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23906
23907 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23908
23909 * string/tester.c (test_strncat): Also disable -Warray-bounds
23910 warnings for two tests.
23911
23912 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23913
23914 [BZ #22614]
23915 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23916 $(cc-pie-default) == yes.
23917 * config.make.in (cc-pie-default): New.
23918 * configure.ac (libc_cv_pie_default): Renamed to ...
23919 (libc_cv_cc_pie_default): This.
23920 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23921 * configure: Regenerated.
23922
23923 2017-12-18 Florian Weimer <fweimer@redhat.com>
23924
23925 [BZ #20204]
23926 ld.so: Harden dl-libc/libdl hooks.
23927 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23928 (rtld_active): New function.
23929 * dlfcn/dladdr.c (__dladdr): Call it.
23930 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23931 * dlfcn/dlclose.c (__dlcose): Likewise.
23932 * dlfcn/dlerror.c (__dlerror): Likewise.
23933 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23934 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23935 * dlfcn/dlopen.c (__dlopen): Likewise.
23936 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23937 * dlfcn/dlsym.c (__dlsym): Likewise.
23938 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23939 * libio/vtables.c (_IO_vtable_check): Likewise.
23940 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23941 (__libc_dlclose): Likewise.
23942 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23943 assignment.
23944
23945 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23946
23947 [BZ #22446]
23948 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23949 buffers for readlink input and output.
23950
23951 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23952
23953 [BZ #22624]
23954 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23955 inhibit_stack_protector.
23956
23957 [BZ #22624]
23958 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23959 inhibit_stack_protector.
23960
23961 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23962
23963 [BZ #22627]
23964 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23965 code and invocation.
23966
23967 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23968
23969 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23970
23971 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23972
23973 [BZ #22505]
23974 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23975
23976 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23977
23978 * sysdeps/s390/fpu/libm-test-ulps: Update.
23979
23980 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23981
23982 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23983
23984 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23985
23986 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23987 constants to s_sincosf.h file.
23988 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23989 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23990 implementation.
23991 * sysdeps/ieee754/flt-32/s_sincosf.h:
23992 New file.
23993
23994 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23995
23996 [BZ #14681]
23997 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23998 before mtrace.
23999
24000 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24001
24002 [BZ #19574]
24003 * INSTALL: Regenerated.
24004 * Makeconfig (real-static-start-installed-name): New.
24005 (pic-default): Updated for --enable-static-pie.
24006 (pie-default): New for --enable-static-pie.
24007 (default-pie-ldflag): Likewise.
24008 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24009 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24010 Replace $(static-start-installed-name) with
24011 $(real-static-start-installed-name).
24012 (+prectorT): Updated for --enable-static-pie.
24013 (+postctorT): Likewise.
24014 (CFLAGS-.o): Add $(pie-default).
24015 (CFLAGS-.op): Likewise.
24016 * NEWS: Mention --enable-static-pie.
24017 * config.h.in (ENABLE_STATIC_PIE): New.
24018 * configure.ac (--enable-static-pie): New configure option.
24019 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24020 (have-static-pie): Likewise.
24021 Enable static PIE if linker supports --no-dynamic-linker.
24022 (ENABLE_STATIC_PIE): New AC_DEFINE.
24023 (enable-static-pie): New LIBC_CONFIG_VAR.
24024 * configure: Regenerated.
24025 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24026 gr$(start-installed-name) for --enable-static-pie.
24027 (extra-objs): Likewise.
24028 (install-lib): Likewise.
24029 (extra-objs): Add static-reloc.o and static-reloc.os
24030 ($(objpfx)$(start-installed-name)): Also depend on
24031 $(objpfx)static-reloc.o.
24032 ($(objpfx)r$(start-installed-name)): New.
24033 ($(objpfx)g$(start-installed-name)): Also depend on
24034 $(objpfx)static-reloc.os.
24035 ($(objpfx)gr$(start-installed-name)): New.
24036 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24037 in libc.a.
24038 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24039 initimage.
24040 * csu/static-reloc.c: New file.
24041 * elf/Makefile (routines): Add dl-reloc-static-pie.
24042 (elide-routines.os): Likewise.
24043 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24044 (tst-tls1-static-non-pie-no-pie): New.
24045 * elf/dl-reloc-static-pie.c: New file.
24046 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24047 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24048 STATIC_PIE_BOOTSTRAP.
24049 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24050 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24051 (tests-static): Likewise.
24052 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24053 (tst-gmon-static-no-pie): New.
24054 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24055 (CRT-tst-gmon-static-pie): Likewise.
24056 (tst-gmon-static-pie-ENV): Likewise.
24057 (tests-special): Likewise.
24058 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24059 (clean-tst-gmon-static-pie-data): Likewise.
24060 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24061 * gmon/tst-gmon-static-pie.c: New file.
24062 * manual/install.texi: Document --enable-static-pie.
24063 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24064 (_dl_get_dl_main_map): Likewise.
24065 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24066 * sysdeps/x86_64/configure.ac: Likewise.
24067 * sysdeps/i386/configure: Regenerated.
24068 * sysdeps/x86_64/configure: Likewise.
24069 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24070 (ASFLAGS-.op): Likewise.
24071
24072 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24073
24074 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24075 * posix/tst-mmap-offset.c (fname): Use /tmp.
24076 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24077
24078 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24079
24080 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24081
24082 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24083
24084 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24085 errno.
24086
24087 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24088
24089 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24090 --with-float=hard for arm-linux-gnueabihf configurations.
24091
24092 [BZ #14121]
24093 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24094 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24095 ($(mo-installed)): Use $(objpfx)%.mo.
24096 (realclean): Remove rule.
24097
24098 * po/Makefile (linguas): Remove rule and dependencies.
24099 (linguas.mo): Likewise.
24100 (.PHONY): Do not depend on linguas and linguas.mo.
24101 (podir): Remove variable.
24102 (pofiles): Likewise.
24103 [$(pofiles)] (%.po): Remove rule.
24104
24105 * sysdeps/sparc/sparc32/Makefile
24106 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24107 start-of-line whitespace in argument of echo.
24108 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24109 with whitespace. Generate __wrap_.udiv alias.
24110 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24111 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24112 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24113 * sysdeps/sparc/sparc32/urem.S: Likewise.
24114
24115 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24116
24117 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24118 for aligned inputs.
24119
24120 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24121
24122 * benchtests/bench-strcmp.c: Print output in JSON format.
24123
24124 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24125
24126 2017-12-14 Florian Weimer <fweimer@redhat.com>
24127
24128 [BZ #22607]
24129 CVE-2017-1000409
24130 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24131 the expanded path string.
24132
24133 2017-12-14 Florian Weimer <fweimer@redhat.com>
24134
24135 [BZ #22606]
24136 CVE-2017-1000408
24137 * elf/dl-load.c (system_dirs): Update comment.
24138 (nsystem_dirs_len): Use array_length.
24139 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24140
24141 2017-12-14 Florian Weimer <fweimer@redhat.com>
24142
24143 Simplify compiling most of support/ outside of glibc.
24144 * support/check_addrinfo.c: Include <string.h>.
24145 * support/check_dns_packet.c: Likewise.
24146 * support/check_hostent.c: Likewise.
24147 * support/support_can_chroot.c: Include <support/xunistd.h>.
24148 * support/support_format_addrinfo.c: Include <stdlib.h>
24149 * support/support_format_dns_packet.c: Include <stdbool.h>.
24150 * support/support_format_hostent.c: Include <stdlib.h>.
24151 * support/support_format_netent.c: Likewise.
24152 * support/support_write_string.c: Include <support/xunistd.h>.
24153 * support/xdlfcn.c: Include <stddef.h>.
24154
24155 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24156
24157 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24158
24159 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24160 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24161
24162 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24163 (sysdeps_routines): Add memset-niagara7.
24164 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24165 Likewise.
24166 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24167 file.
24168 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24169 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24170 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24171 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24172 Add niagara7 option.
24173 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24174 memset.
24175
24176 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24177 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24178 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24179 Likewise.
24180 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24181 New file.
24182 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24183 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24184 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24185 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24186 and __memmove_niagara7.
24187 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24188 Add niagara7 option.
24189 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24190 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24191 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24192 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24193 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24194
24195 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24196
24197 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24198 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24199 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24200 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24201
24202 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24203 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24204 _dl_sparc_cap_flags array.
24205 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24206
24207 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24208
24209 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24210 time whenever possible.
24211
24212 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24213
24214 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24215 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24216
24217 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24218
24219 * soft-fp/fmadf4.c: Move to ....
24220 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24221 * soft-fp/fmasf4.c: Move to ....
24222 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24223 * soft-fp/fmatf4.c: Move to ....
24224 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24225 * sysdeps/ieee754/soft-fp/Makefile: New file.
24226 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24227 * sysdeps/arm/preconfigure: Regenerated.
24228 * sysdeps/arm/nofpu/Implies: New file.
24229 * sysdeps/arm/s_fma.c: Remove file.
24230 * sysdeps/arm/s_fmaf.c: Likewise.
24231 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24232 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24233 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24234 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24235 * sysdeps/microblaze/s_fma.c: Remove file.
24236 * sysdeps/microblaze/s_fmaf.c: Likewise.
24237 * sysdeps/mips/mips32/nofpu/Implies: New file.
24238 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24239 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24240 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24241 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24242 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24243 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24244 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24245 implementation.
24246 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24247 * sysdeps/nios2/s_fma.c: Remove file.
24248 * sysdeps/nios2/s_fmaf.c: Likewise.
24249 * sysdeps/sh/nofpu/Implies: New file.
24250 * sysdeps/sh/s_fma.c: Remove file.
24251 * sysdeps/sh/s_fmaf.c: Likewise.
24252 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24253 * sysdeps/tile/s_fma.c: Remove file.
24254 * sysdeps/tile/s_fmaf.c: Likewise.
24255
24256 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24257
24258 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24259 Add s_cosf-sse2 and s_cosf-fma.
24260 (CFLAGS-s_cosf-fma.c): New.
24261 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24262 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24263 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24264
24265 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24266
24267 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24268
24269 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24270
24271 * libio/Makefile (tests): Add tst-bz22415.
24272 (tst-bz22415-ENV): New rule.
24273 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24274 (tests-special): Add tst-bz22415-mem.out.
24275 ($(objpfx)tst-bz22415-mem.out): New rule.
24276 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24277 in case of a successful seek operation.
24278 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24279 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24280 buffer is required.
24281 * libio/tst-bz22415.c: New test.
24282
24283 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24284
24285 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24286
24287 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24288 __IPC_64 to 0 to avoid IPC_64 being set.
24289
24290 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24291
24292 [BZ #22593]
24293 * math/bits/mathcalls.h (nextafter): Remove const.
24294 (nexttoward): Likewise.
24295
24296 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24297
24298 * configure.ac (--with-fp): Remove configure option.
24299 (with_fp_cond): New variable.
24300 (libc_cv_with_fp): New configure test. Use this variable instead
24301 of with_fp.
24302 * configure: Regenerated.
24303 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24304 * manual/install.texi (Configuring and compiling): Remove
24305 --without-fp.
24306 * INSTALL: Regenerated.
24307 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24308 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24309 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24310 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24311 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24312 use --without-fp to configure glibc.
24313
24314 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24315
24316 * manual/locale.texi (nl_langinfo): Fix a typo.
24317
24318 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24319
24320 [BZ #22588]
24321 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24322
24323 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24324
24325 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24326 (CFLAGS-argp-parse.c): Likewise.
24327 (CFLAGS-argp-fmtstream.c): Likewise.
24328 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24329 (CPPFLAGS-sha512-crypt.c): Likewise.
24330 (CPPFLAGS-md5-crypt.c): Likewise.
24331 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24332 (CFLAGS-stack_chk_fail_local.c): Likewise.
24333 (CFLAGS-backtrace.c): Likewise.
24334 (CFLAGS-sprintf_chk.c): Likewise.
24335 (CFLAGS-snprintf_chk.c): Likewise.
24336 (CFLAGS-vsprintf_chk.c): Likewise.
24337 (CFLAGS-vsnprintf_chk.c): Likewise.
24338 (CFLAGS-asprintf_chk.c): Likewise.
24339 (CFLAGS-vasprintf_chk.c): Likewise.
24340 (CFLAGS-obprintf_chk.c): Likewise.
24341 (CFLAGS-dprintf_chk.c): Likewise.
24342 (CFLAGS-vdprintf_chk.c): Likewise.
24343 (CFLAGS-printf_chk.c): Likewise.
24344 (CFLAGS-fprintf_chk.c): Likewise.
24345 (CFLAGS-vprintf_chk.c): Likewise.
24346 (CFLAGS-vfprintf_chk.c): Likewise.
24347 (CFLAGS-gets_chk.c): Likewise.
24348 (CFLAGS-fgets_chk.c): Likewise.
24349 (CFLAGS-fgets_u_chk.c): Likewise.
24350 (CFLAGS-fread_chk.c): Likewise.
24351 (CFLAGS-fread_u_chk.c): Likewise.
24352 (CFLAGS-swprintf_chk.c): Likewise.
24353 (CFLAGS-vswprintf_chk.c): Likewise.
24354 (CFLAGS-wprintf_chk.c): Likewise.
24355 (CFLAGS-fwprintf_chk.c): Likewise.
24356 (CFLAGS-vwprintf_chk.c): Likewise.
24357 (CFLAGS-vfwprintf_chk.c): Likewise.
24358 (CFLAGS-fgetws_chk.c): Likewise.
24359 (CFLAGS-fgetws_u_chk.c): Likewise.
24360 (CFLAGS-read_chk.c): Likewise.
24361 (CFLAGS-pread_chk.c): Likewise.
24362 (CFLAGS-pread64_chk.c): Likewise.
24363 (CFLAGS-recv_chk.c): Likewise.
24364 (CFLAGS-recvfrom_chk.c): Likewise.
24365 (CFLAGS-tst-longjmp_chk.c): Likewise.
24366 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24367 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24368 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24369 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24370 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24371 (CFLAGS-tst-chk1.c): Likewise.
24372 (CFLAGS-tst-chk2.c): Likewise.
24373 (CFLAGS-tst-chk3.c): Likewise.
24374 (CFLAGS-tst-chk4.cc): Likewise.
24375 (CFLAGS-tst-chk5.cc): Likewise.
24376 (CFLAGS-tst-chk6.cc): Likewise.
24377 (CFLAGS-tst-lfschk1.c): Likewise.
24378 (CFLAGS-tst-lfschk2.c): Likewise.
24379 (CFLAGS-tst-lfschk3.c): Likewise.
24380 (CFLAGS-tst-lfschk4.cc): Likewise.
24381 (CFLAGS-tst-lfschk5.cc): Likewise.
24382 (CFLAGS-tst-lfschk6.cc): Likewise.
24383 (CFLAGS-tst-ssp-1.c): Likewise.
24384 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24385 (CFLAGS-scandir64.c): Likewise.
24386 (CFLAGS-scandir-tail.c): Likewise.
24387 (CFLAGS-scandir64-tail.c): Likewise.
24388 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24389 (CFLAGS-dl-tunables.c): Likewise.
24390 (CFLAGS-dl-runtime.c): Likewise.
24391 (CFLAGS-dl-lookup.c): Likewise.
24392 (CFLAGS-dl-iterate-phdr.c): Likewise.
24393 (CFLAGS-vismain.c): Likewise.
24394 (CFLAGS-tst-linkall-static.c): Likewise.
24395 (CFLAGS-tst-linkall-static.c): Likewise.
24396 (CPPFLAGS-dl-load.c): Likewise.
24397 (CFLAGS-ldconfig.c): Likewise.
24398 (CFLAGS-dl-cache.c): Likewise.
24399 (CFLAGS-cache.c): Likewise.
24400 (CFLAGS-rtld.c): Likewise.
24401 (CFLAGS-multiload.c): Likewise.
24402 (CFLAGS-filtmod1.c): Likewise.
24403 (CFLAGS-tst-align.c): Likewise.
24404 (CFLAGS-tst-align2.c): Likewise.
24405 (CFLAGS-tst-alignmod.c): Likewise.
24406 (CFLAGS-tst-alignmod2.c): Likewise.
24407 (CPPFLAGS-tst-execstack.c): Likewise.
24408 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24409 (CFLAGS-tst-latepthreadmod.c): Likewise.
24410 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24411 (CFLAGS-getgrnam_r.c): Likewise.
24412 (CFLAGS-getgrent_r.c): Likewise.
24413 (CFLAGS-getgrent.c): Likewise.
24414 (CFLAGS-fgetgrent.c): Likewise.
24415 (CFLAGS-fgetgrent_r.c): Likewise.
24416 (CFLAGS-putgrent.c): Likewise.
24417 (CFLAGS-initgroups.c): Likewise.
24418 (CFLAGS-getgrgid.c): Likewise.
24419 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24420 (CFLAGS-getsgent.c): Likewise.
24421 (CFLAGS-fgetsgent.c): Likewise.
24422 (CFLAGS-fgetsgent_r.c): Likewise.
24423 (CFLAGS-putsgent.c): Likewise.
24424 (CFLAGS-getsgnam.c): Likewise.
24425 (CFLAGS-getsgnam_r.c): Likewise.
24426 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24427 (CFLAGS-iconv_charmap.c): Likewise.
24428 (CFLAGS-dummy-repertoire.c): Likewise.
24429 (CFLAGS-charmap.c): Likewise.
24430 (CFLAGS-linereader.c): Likewise.
24431 (CFLAGS-simple-hash.c): Likewise.
24432 (CFLAGS-gconv_conf.c): Likewise.
24433 (CFLAGS-iconvconfig.c): Likewise.
24434 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24435 (CFLAGS-gethstbyad.c): Likewise.
24436 (CFLAGS-gethstbynm_r.c): Likewise.
24437 (CFLAGS-gethstbynm.c): Likewise.
24438 (CFLAGS-gethstbynm2_r.c): Likewise.
24439 (CFLAGS-gethstbynm2.c): Likewise.
24440 (CFLAGS-gethstent_r.c): Likewise.
24441 (CFLAGS-gethstent.c): Likewise.
24442 (CFLAGS-rcmd.c): Likewise.
24443 (CFLAGS-getnetbynm_r.c): Likewise.
24444 (CFLAGS-getnetbynm.c): Likewise.
24445 (CFLAGS-getnetbyad_r.c): Likewise.
24446 (CFLAGS-getnetbyad.c): Likewise.
24447 (CFLAGS-getnetent_r.c): Likewise.
24448 (CFLAGS-getnetent.c): Likewise.
24449 (CFLAGS-getaliasent_r.c): Likewise.
24450 (CFLAGS-getaliasent.c): Likewise.
24451 (CFLAGS-getrpcent_r.c): Likewise.
24452 (CFLAGS-getrpcent.c): Likewise.
24453 (CFLAGS-getservent_r.c): Likewise.
24454 (CFLAGS-getservent.c): Likewise.
24455 (CFLAGS-getprtent_r.c): Likewise.
24456 (CFLAGS-getprtent.c): Likewise.
24457 (CFLAGS-either_ntoh.c): Likewise.
24458 (CFLAGS-either_hton.c): Likewise.
24459 (CFLAGS-getnetgrent.c): Likewise.
24460 (CFLAGS-getnetgrent_r.c): Likewise.
24461 (CFLAGS-tst-checks-posix.c): Likewise.
24462 (CFLAGS-tst-sockaddr.c): Likewise.
24463 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24464 (CFLAGS-tst-translit.c): Likewise.
24465 (CFLAGS-tst-gettext2.c): Likewise.
24466 (CFLAGS-tst-codeset.c): Likewise.
24467 (CFLAGS-tst-gettext3.c): Likewise.
24468 (CFLAGS-tst-gettext4.c): Likewise.
24469 (CFLAGS-tst-gettext5.c): Likewise.
24470 (CFLAGS-tst-gettext6.c): Likewise.
24471 * io/Makefile (CFLAGS-open.c): Likewise.
24472 (CFLAGS-open64.c): Likewise.
24473 (CFLAGS-creat.c): Likewise.
24474 (CFLAGS-creat64.c): Likewise.
24475 (CFLAGS-fcntl.c): Likewise.
24476 (CFLAGS-poll.c): Likewise.
24477 (CFLAGS-ppoll.c): Likewise.
24478 (CFLAGS-lockf.c): Likewise.
24479 (CFLAGS-statfs.c): Likewise.
24480 (CFLAGS-fstatfs.c): Likewise.
24481 (CFLAGS-statvfs.c): Likewise.
24482 (CFLAGS-fstatvfs.c): Likewise.
24483 (CFLAGS-fts.c): Likewise.
24484 (CFLAGS-fts64.c): Likewise.
24485 (CFLAGS-ftw.c): Likewise.
24486 (CFLAGS-ftw64.c): Likewise.
24487 (CFLAGS-lockf.c): Likewise.
24488 (CFLAGS-posix_fallocate.c): Likewise.
24489 (CFLAGS-posix_fallocate64.c): Likewise.
24490 (CFLAGS-fallocate.c): Likewise.
24491 (CFLAGS-fallocate64.c): Likewise.
24492 (CFLAGS-read.c): Likewise.
24493 (CFLAGS-write.c): Likewise.
24494 (CFLAGS-test-stat.c): Likewise.
24495 (CFLAGS-test-lfs.c): Likewise.
24496 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24497 (CFLAGS-fputc.c): Likewise.
24498 (CFLAGS-fputwc.c): Likewise.
24499 (CFLAGS-freopen64.c): Likewise.
24500 (CFLAGS-freopen.c): Likewise.
24501 (CFLAGS-fseek.c): Likewise.
24502 (CFLAGS-fseeko64.c): Likewise.
24503 (CFLAGS-fseeko.c): Likewise.
24504 (CFLAGS-ftello64.c): Likewise.
24505 (CFLAGS-ftello.c): Likewise.
24506 (CFLAGS-fwide.c): Likewise.
24507 (CFLAGS-genops.c): Likewise.
24508 (CFLAGS-getc.c): Likewise.
24509 (CFLAGS-getchar.c): Likewise.
24510 (CFLAGS-getwc.c): Likewise.
24511 (CFLAGS-getwchar.c): Likewise.
24512 (CFLAGS-iofclose.c): Likewise.
24513 (CFLAGS-iofflush.c): Likewise.
24514 (CFLAGS-iofgetpos64.c): Likewise.
24515 (CFLAGS-iofgetpos.c): Likewise.
24516 (CFLAGS-iofgets.c): Likewise.
24517 (CFLAGS-iofgetws.c): Likewise.
24518 (CFLAGS-iofputs.c): Likewise.
24519 (CFLAGS-iofputws.c): Likewise.
24520 (CFLAGS-iofread.c): Likewise.
24521 (CFLAGS-iofsetpos64.c): Likewise.
24522 (CFLAGS-iofsetpos.c): Likewise.
24523 (CFLAGS-ioftell.c): Likewise.
24524 (CFLAGS-iofwrite.c): Likewise.
24525 (CFLAGS-iogetdelim.c): Likewise.
24526 (CFLAGS-iogetline.c): Likewise.
24527 (CFLAGS-iogets.c): Likewise.
24528 (CFLAGS-iogetwline.c): Likewise.
24529 (CFLAGS-ioputs.c): Likewise.
24530 (CFLAGS-ioseekoff.c): Likewise.
24531 (CFLAGS-ioseekpos.c): Likewise.
24532 (CFLAGS-iosetbuffer.c): Likewise.
24533 (CFLAGS-iosetvbuf.c): Likewise.
24534 (CFLAGS-ioungetc.c): Likewise.
24535 (CFLAGS-ioungetwc.c): Likewise.
24536 (CFLAGS-oldfileops.c): Likewise.
24537 (CFLAGS-oldiofclose.c): Likewise.
24538 (CFLAGS-oldiofgetpos64.c): Likewise.
24539 (CFLAGS-oldiofgetpos.c): Likewise.
24540 (CFLAGS-oldiofsetpos64.c): Likewise.
24541 (CFLAGS-oldiofsetpos.c): Likewise.
24542 (CFLAGS-peekc.c): Likewise.
24543 (CFLAGS-putc.c): Likewise.
24544 (CFLAGS-putchar.c): Likewise.
24545 (CFLAGS-putwc.c): Likewise.
24546 (CFLAGS-putwchar.c): Likewise.
24547 (CFLAGS-rewind.c): Likewise.
24548 (CFLAGS-wfileops.c): Likewise.
24549 (CFLAGS-wgenops.c): Likewise.
24550 (CFLAGS-oldiofopen.c): Likewise.
24551 (CFLAGS-iofopen.c): Likewise.
24552 (CFLAGS-iofopen64.c): Likewise.
24553 (CFLAGS-oldtmpfile.c): Likewise.
24554 (CFLAGS-tst_putwc.c): Likewise.
24555 * locale/Makefile (CFLAGS-md5.c): Likewise.
24556 (CFLAGS-charmap.c): Likewise.
24557 (CFLAGS-locfile.c): Likewise.
24558 (CFLAGS-charmap-dir.c): Likewise.
24559 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24560 (CFLAGS-getpt.c): Likewise.
24561 (CFLAGS-pt_chown.c): Likewise.
24562 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24563 (CFLAGS-obstack.c): Likewise.
24564 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24565 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24566 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24567 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24568 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24569 (CFLAGS-test-tgmath.c): Likewise.
24570 (CFLAGS-test-tgmath2.c): Likewise.
24571 (CFLAGS-test-tgmath-ret.c): Likewise.
24572 (CFLAGS-test-powl.c): Likewise.
24573 (CFLAGS-test-snan.c): Likewise.
24574 (CFLAGS-test-signgam-finite.c): Likewise.
24575 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24576 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24577 (CFLAGS-test-signgam-uchar.c): Likewise.
24578 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24579 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24580 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24581 (CFLAGS-test-signgam-uint.c): Likewise.
24582 (CFLAGS-test-signgam-uint-init.c): Likewise.
24583 (CFLAGS-test-signgam-uint-static.c): Likewise.
24584 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24585 (CFLAGS-test-signgam-ullong.c): Likewise.
24586 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24587 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24588 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24589 (CFLAGS-test-math-cxx11.cc): Likewise.
24590 (CFLAGS-test-math-isinff.cc): Likewise.
24591 (CFLAGS-test-math-iszero.cc): Likewise.
24592 (CFLAGS-test-math-issignaling.cc): Likewise.
24593 (CFLAGS-test-math-iscanonical.cc): Likewise.
24594 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24595 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24596 (CFLAGS-test-flt-eval-method.c): Likewise.
24597 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24598 (CFLAGS-test-finite-macros.c): Likewise.
24599 * misc/Makefile (CFLAGS-select.c): Likewise.
24600 (CFLAGS-tsearch.c): Likewise.
24601 (CFLAGS-lsearch.c): Likewise.
24602 (CFLAGS-pselect.c): Likewise.
24603 (CFLAGS-readv.c): Likewise.
24604 (CFLAGS-writev.c): Likewise.
24605 (CFLAGS-preadv.c): Likewise.
24606 (CFLAGS-preadv64.c): Likewise.
24607 (CFLAGS-pwritev.c): Likewise.
24608 (CFLAGS-pwritev64.c): Likewise.
24609 (CFLAGS-preadv2.c): Likewise.
24610 (CFLAGS-preadv64v2.c): Likewise.
24611 (CFLAGS-pwritev2.c): Likewise.
24612 (CFLAGS-pwritev64v2.c): Likewise.
24613 (CFLAGS-usleep.c): Likewise.
24614 (CFLAGS-syslog.c): Likewise.
24615 (CFLAGS-error.c): Likewise.
24616 (CFLAGS-getpass.c): Likewise.
24617 (CFLAGS-mkstemp.c): Likewise.
24618 (CFLAGS-mkstemp64.c): Likewise.
24619 (CFLAGS-getsysstats.c): Likewise.
24620 (CFLAGS-getusershell.c): Likewise.
24621 (CFLAGS-err.c): Likewise.
24622 (CFLAGS-tst-tsearch.c): Likewise.
24623 (CFLAGS-msync.c): Likewise.
24624 (CFLAGS-fdatasync.c): Likewise.
24625 (CFLAGS-fsync.c): Likewise.
24626 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24627 (CFLAGS-unwind.c): Likewise.
24628 (CFLAGS-unwind-forcedunwind.c): Likewise.
24629 (CFLAGS-pthread_cancel.c): Likewise.
24630 (CFLAGS-pthread_setcancelstate.c): Likewise.
24631 (CFLAGS-pthread_setcanceltype.c): Likewise.
24632 (CFLAGS-cancellation.c): Likewise.
24633 (CFLAGS-libc-cancellation.c): Likewise.
24634 (CFLAGS-pthread_exit.c): Likewise.
24635 (CFLAGS-forward.c): Likewise.
24636 (CFLAGS-pthread_testcancel.c): Likewise.
24637 (CFLAGS-pthread_join.c): Likewise.
24638 (CFLAGS-pthread_timedjoin.c): Likewise.
24639 (CFLAGS-pthread_once.c): Likewise.
24640 (CFLAGS-pthread_cond_wait.c): Likewise.
24641 (CFLAGS-sem_wait.c): Likewise.
24642 (CFLAGS-sem_timedwait.c): Likewise.
24643 (CFLAGS-fcntl.c): Likewise.
24644 (CFLAGS-lockf.c): Likewise.
24645 (CFLAGS-pread.c): Likewise.
24646 (CFLAGS-pread64.c): Likewise.
24647 (CFLAGS-pwrite.c): Likewise.
24648 (CFLAGS-pwrite64.c): Likewise.
24649 (CFLAGS-wait.c): Likewise.
24650 (CFLAGS-waitpid.c): Likewise.
24651 (CFLAGS-sigwait.c): Likewise.
24652 (CFLAGS-msgrcv.c): Likewise.
24653 (CFLAGS-msgsnd.c): Likewise.
24654 (CFLAGS-tcdrain.c): Likewise.
24655 (CFLAGS-open.c): Likewise.
24656 (CFLAGS-open64.c): Likewise.
24657 (CFLAGS-pause.c): Likewise.
24658 (CFLAGS-recv.c): Likewise.
24659 (CFLAGS-send.c): Likewise.
24660 (CFLAGS-accept.c): Likewise.
24661 (CFLAGS-sendto.c): Likewise.
24662 (CFLAGS-connect.c): Likewise.
24663 (CFLAGS-recvfrom.c): Likewise.
24664 (CFLAGS-recvmsg.c): Likewise.
24665 (CFLAGS-sendmsg.c): Likewise.
24666 (CFLAGS-close.c): Likewise.
24667 (CFLAGS-read.c): Likewise.
24668 (CFLAGS-write.c): Likewise.
24669 (CFLAGS-nanosleep.c): Likewise.
24670 (CFLAGS-sigsuspend.c): Likewise.
24671 (CFLAGS-msync.c): Likewise.
24672 (CFLAGS-fdatasync.c): Likewise.
24673 (CFLAGS-fsync.c): Likewise.
24674 (CFLAGS-pt-system.c): Likewise.
24675 (CFLAGS-tst-cleanup2.c): Likewise.
24676 (CFLAGS-tst-cleanupx2.c): Likewise.
24677 (CFLAGS-flockfile.c): Likewise.
24678 (CFLAGS-ftrylockfile.c): Likewise.
24679 (CFLAGS-funlockfile.c): Likewise.
24680 (CFLAGS-tst-initializers1.c): Likewise.
24681 (CFLAGS-tst-initializers1-c89.c): Likewise.
24682 (CFLAGS-tst-initializers1-c99.c): Likewise.
24683 (CFLAGS-tst-initializers1-c11.c): Likewise.
24684 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24685 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24686 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24687 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24688 (CFLAGS-nscd_getgr_r.c): Likewise.
24689 (CFLAGS-nscd_gethst_r.c): Likewise.
24690 (CFLAGS-nscd_getai.c): Likewise.
24691 (CFLAGS-nscd_initgroups.c): Likewise.
24692 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24693 (CFLAGS-pause.c): Likewise.
24694 (CFLAGS-pread.c): Likewise.
24695 (CFLAGS-pread64.c): Likewise.
24696 (CFLAGS-pwrite.c): Likewise.
24697 (CFLAGS-pwrite64.c): Likewise.
24698 (CFLAGS-sleep.c): Likewise.
24699 (CFLAGS-wait.c): Likewise.
24700 (CFLAGS-waitid.c): Likewise.
24701 (CFLAGS-waitpid.c): Likewise.
24702 (CFLAGS-getopt.c): Likewise.
24703 (CFLAGS-wordexp.c): Likewise.
24704 (CFLAGS-sysconf.c): Likewise.
24705 (CFLAGS-pathconf.c): Likewise.
24706 (CFLAGS-fpathconf.c): Likewise.
24707 (CFLAGS-spawn.c): Likewise.
24708 (CFLAGS-spawnp.c): Likewise.
24709 (CFLAGS-spawni.c): Likewise.
24710 (CFLAGS-glob.c): Likewise.
24711 (CFLAGS-glob64.c): Likewise.
24712 (CFLAGS-getconf.c): Likewise.
24713 (CFLAGS-nanosleep.c): Likewise.
24714 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24715 (CFLAGS-getpwent.c): Likewise.
24716 (CFLAGS-getpw.c): Likewise.
24717 (CFLAGS-fgetpwent_r.c): Likewise.
24718 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24719 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24720 (CFLAGS-mq_timedreceive.c): Likewise.
24721 (CFLAGS-mq_timedsend.c): Likewise.
24722 (CFLAGS-clock_nanosleep.c): Likewise.
24723 (CFLAGS-librt-cancellation.c): Likewise.
24724 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24725 (CFLAGS-getspent.c): Likewise.
24726 (CFLAGS-fgetspent.c): Likewise.
24727 (CFLAGS-fgetspent_r.c): Likewise.
24728 (CFLAGS-putspent.c): Likewise.
24729 (CFLAGS-getspnam.c): Likewise.
24730 (CFLAGS-getspnam_r.c): Likewise.
24731 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24732 (CFLAGS-sigsuspend.c): Likewise.
24733 (CFLAGS-sigtimedwait.c): Likewise.
24734 (CFLAGS-sigwait.c): Likewise.
24735 (CFLAGS-sigwaitinfo.c): Likewise.
24736 (CFLAGS-sigreturn.c): Likewise.
24737 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24738 (CFLAGS-vfwprintf.c): Likewise.
24739 (CFLAGS-tmpfile.c): Likewise.
24740 (CFLAGS-tmpfile64.c): Likewise.
24741 (CFLAGS-tempname.c): Likewise.
24742 (CFLAGS-psignal.c): Likewise.
24743 (CFLAGS-vprintf.c): Likewise.
24744 (CFLAGS-cuserid.c): Likewise.
24745 (CFLAGS-errlist.c): Likewise.
24746 (CFLAGS-siglist.c): Likewise.
24747 (CFLAGS-scanf15.c): Likewise.
24748 (CFLAGS-scanf17.c): Likewise.
24749 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24750 (CFLAGS-msort.c): Likewise.
24751 (CFLAGS-qsort.c): Likewise.
24752 (CFLAGS-system.c): Likewise.
24753 (CFLAGS-fmtmsg.c): Likewise.
24754 (CFLAGS-strfmon.c): Likewise.
24755 (CFLAGS-strfmon_l.c): Likewise.
24756 (CFLAGS-strfromd.c): Likewise.
24757 (CFLAGS-strfromf.c): Likewise.
24758 (CFLAGS-strfroml.c): Likewise.
24759 (CFLAGS-tst-bsearch.c): Likewise.
24760 (CFLAGS-tst-qsort.c): Likewise.
24761 (CFLAGS-tst-makecontext2.c): Likewise.
24762 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24763 (CFLAGS-xnlm_prot.c): Likewise.
24764 (CFLAGS-xrstat.c): Likewise.
24765 (CFLAGS-xyppasswd.c): Likewise.
24766 (CFLAGS-xklm_prot.c): Likewise.
24767 (CFLAGS-xrex.c): Likewise.
24768 (CFLAGS-xsm_inter.c): Likewise.
24769 (CFLAGS-xmount.c): Likewise.
24770 (CFLAGS-xrusers.c): Likewise.
24771 (CFLAGS-xspray.c): Likewise.
24772 (CFLAGS-xnfs_prot.c): Likewise.
24773 (CFLAGS-xrquota.c): Likewise.
24774 (CFLAGS-xkey_prot.c): Likewise.
24775 (CFLAGS-auth_unix.c): Likewise.
24776 (CFLAGS-key_call.c): Likewise.
24777 (CFLAGS-pmap_rmt.c): Likewise.
24778 (CFLAGS-clnt_perr.c): Likewise.
24779 (CFLAGS-openchild.c): Likewise.
24780 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24781 (CFLAGS-msgsnd.c): Likewise.
24782 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24783 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24784 (CFLAGS-tzset.c): Likewise.
24785 (CFLAGS-getdate.c): Likewise.
24786 (CFLAGS-test_time.c): Likewise.
24787 (CPPFLAGS-tst-tzname.c): Likewise.
24788 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24789 (CFLAGS-zic.c): Likewise.
24790 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24791 (CFLAGS-wcswidth.c): Likewise.
24792 (CFLAGS-wcstol.c): Likewise.
24793 (CFLAGS-wcstoul.c): Likewise.
24794 (CFLAGS-wcstoll.c): Likewise.
24795 (CFLAGS-wcstoull.c): Likewise.
24796 (CFLAGS-wcstod.c): Likewise.
24797 (CFLAGS-wcstold.c): Likewise.
24798 (CFLAGS-wcstof128.c): Likewise.
24799 (CFLAGS-wcstof.c): Likewise.
24800 (CFLAGS-wcstol_l.c): Likewise.
24801 (CFLAGS-wcstoul_l.c): Likewise.
24802 (CFLAGS-wcstoll_l.c): Likewise.
24803 (CFLAGS-wcstoull_l.c): Likewise.
24804 (CFLAGS-wcstod_l.c): Likewise.
24805 (CFLAGS-wcstold_l.c): Likewise.
24806 (CFLAGS-wcstof128_l.c): Likewise.
24807 (CFLAGS-wcstof_l.c): Likewise.
24808 (CPPFLAGS-tst-wchar-h.c): Likewise.
24809 (CPPFLAGS-wcstold_l.c): Likewise.
24810
24811 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24812
24813 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24814
24815 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24816 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24817
24818 * manual/tunables.texi (Hardware Capability Tunables): Document
24819 glibc.tune.cached_memopt.
24820 * sysdeps/powerpc/cpu-features.c: New file.
24821 * sysdeps/powerpc/cpu-features.h: New file.
24822 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24823 _dl_powerpc_cpu_features.
24824 * sysdeps/powerpc/dl-tunables.list: New file.
24825 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24826 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24827 (INIT_ARCH): Initialize use_aligned_memopt.
24828 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24829 IS_IN(rtld))]: Restrict dl_platform_init availability and
24830 initialize CPU features used by tunables.
24831 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24832 Add memcpy-power8-cached.
24833 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24834 __memcpy_power8_cached.
24835 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24836 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24837 New file.
24838
24839 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24840
24841 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24842 (CFLAGS-noinl-tester.c): Likewise.
24843 (CFLAGS-tst-strlen.c): Likewise.
24844 (CFLAGS-stratcliff.c): Likewise.
24845 (CFLAGS-test-ffs.c): Likewise.
24846 (CFLAGS-tst-inlcall.c): Likewise.
24847 (CFLAGS-tst-xbzero-opt.c): Likewise.
24848 (CFLAGS-memcpy.c): Likewise.
24849 (CFLAGS-wordcopy.c): Likewise.
24850
24851 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24852
24853 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24854 Store r15 on stack and add cfi rule.
24855 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24856 Likewise.
24857
24858 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24859
24860 [BZ #22577]
24861 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24862 call.
24863
24864 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24865
24866 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24867 Add s_sinf-sse2 and s_sinf-fma.
24868 (CFLAGS-s_sinf-fma.c): New.
24869 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24870 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24871 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24872
24873 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24874
24875 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24876
24877 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24878
24879 [BZ #22568]
24880 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24881 part of result to imaginary part of argument if it is zero and the
24882 real part of the argument is not finite.
24883 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24884 of result to real part of argument if it is zero and the imaginary
24885 part of the argument is not finite.
24886
24887 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24888
24889 [BZ #22524]
24890 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24891 and to the list of locales to be built for testing.
24892 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24893 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24894 and build the collation rules upon that.
24895
24896 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24897
24898 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24899 * manual/math.texi (Mathematics): Document support for _Float32.
24900 * math/Makefile (test-types): Add float32.
24901 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24902 * stdlib/Versions (GLIBC_2.27): Likewise.
24903 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24904 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24905 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24906 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24907 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24908 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24909 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24910 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24911 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24912 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24913 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24914 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24915 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24916 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24917 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24918 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24919 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24920 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24921 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24922 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24923 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24924 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24925 Likewise.
24926 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24927 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24928 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24929 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24930 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24932 Likewise.
24933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24934 Likewise.
24935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24936 Likewise.
24937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24938 Likewise.
24939
24940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24941 Likewise.
24942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24943 Likewise.
24944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24945 Likewise.
24946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24947 Likewise.
24948 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24949 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24950 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24951 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24952 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24953 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24954 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24955 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24956 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24957 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24958 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24959 Likewise.
24960 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24961 Likewise.
24962 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24963 Likewise.
24964 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24965 Likewise.
24966 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24967 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24968 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24969 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24970 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24971 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24972 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24973 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24974
24975 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24976
24977 * stdlib/strtof.c: Include <bits/floatn.h>
24978 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24979 and later undefine as macro. Define as weak alias if
24980 [!USE_WIDE_CHAR].
24981 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24982 and later undefine as macro. Define as weak alias if
24983 [USE_WIDE_CHAR].
24984 * stdlib/strtof_l.c: Include <bits/floatn.h>
24985 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24986 and later undefine as macro. Define as weak alias if
24987 [!USE_WIDE_CHAR].
24988 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24989 and later undefine as macro. Define as weak alias if
24990 [USE_WIDE_CHAR].
24991
24992 * stdlib/strfromf.c: Include <bits/floatn.h>.
24993 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24994 and later undefine as macro and define as weak alias.
24995
24996 * math/test-float32.h: New file.
24997
24998 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24999 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25000 (libm_alias_float_other_r): Create f32 alias.
25001 (libm_alias_float_r): Use semicolon before call to
25002 libm_alias_float_other_r.
25003
25004 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25005 second argument to libm_alias_float_other.
25006 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25007 second argument to libm_alias_float_other.
25008 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25009 argument to libm_alias_float_other.
25010
25011 [BZ #22561]
25012 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25013 real part of result for argument 0 + i * NaN.
25014 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25015 results for tests of 0 + i * NaN.
25016
25017 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25018
25019 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25020
25021 2017-12-06 David S. Miller <davem@davemloft.net>
25022
25023 * sysdeps/sparc/fpu/libm-test-ulps: Update
25024 exp_{downward,towardzero,upward} ulps.
25025
25026 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25027
25028 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25029 variables static.
25030
25031 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25032 (Y0_2D): Likewise.
25033 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25034 (Y0_2D): Likewise.
25035 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25036 (Y0_2D): Likewise.
25037 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25038 (Y0_2D): Likewise.
25039
25040 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25041
25042 [BZ #22515]
25043 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25044 and to the list of locales to be built for testing.
25045 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25046 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25047 and build the collation rules upon that.
25048
25049 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25050
25051 * NEWS: Add sinf to list of optimized functions.
25052
25053 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25054
25055 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25056 (__HAVE_FLOAT32X): Likewise.
25057 * manual/math.texi (Mathematics): Document support for _Float64
25058 and _Float32x.
25059 * math/Makefile (test-types): Add float64 and float32x.
25060 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25061 functions.
25062 * stdlib/Versions (GLIBC_2.27): Likewise.
25063 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25064 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25065 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25066 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25067 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25068 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25069 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25070 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25071 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25072 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25073 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25074 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25075 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25076 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25077 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25078 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25079 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25080 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25081 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25082 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25083 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25084 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25085 Likewise.
25086 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25087 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25088 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25089 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25090 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25092 Likewise.
25093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25094 Likewise.
25095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25096 Likewise.
25097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25098 Likewise.
25099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25100 Likewise.
25101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25102 Likewise.
25103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25104 Likewise.
25105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25106 Likewise.
25107 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25108 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25109 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25110 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25111 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25112 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25113 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25115 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25116 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25117 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25118 Likewise.
25119 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25120 Likewise.
25121 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25122 Likewise.
25123 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25124 Likewise.
25125 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25126 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25127 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25128 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25129 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25130 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25131 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25132 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25133
25134 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25135
25136 * bits/floatn-common.h: Include <bits/long-double.h>.
25137 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25138 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25139 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25140 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25141 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25142 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25143 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25144 (__builtin_huge_valf64): Use __builtin_huge_vall.
25145 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25146 (__builtin_inff64): Use __builtin_infl.
25147 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25148 (__builtin_nanf64): Use __builtin_nanl.
25149 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25150 (__builtin_nansf64): Use __builtin_nansl.
25151
25152 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25153 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25154 Carlos O'Donell <carlos@redhat.com>
25155
25156 * elf/dl-tunables.list: Add elision parameters.
25157 * manual/tunables.texi: Add entries about elision tunable.
25158 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25159 Add callback functions to dynamically enable/disable elision.
25160 Add multiple callbacks functions to set elision parameters.
25161 Deleted __libc_enable_secure check.
25162 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25163 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25164 * configure: Regenerated.
25165 * configure.ac: Option enable_lock_elision was deleted.
25166 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25167 * config.make.in: Remove references to enable_lock_elision.
25168 * manual/install.texi: Elision configure option was removed.
25169 * INSTALL: Regenerated to remove enable_lock_elision.
25170 * nptl/Makefile:
25171 Disable elision so it can verify error case for destroying a mutex.
25172 * sysdeps/powerpc/nptl/elide.h:
25173 Cleanup ENABLE_LOCK_ELISION check.
25174 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25175 * sysdeps/s390/configure: Regenerated.
25176 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25177 * nptl/tst-mutex8.c:
25178 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25179 * sysdeps/powerpc/powerpc32/sysdep.h:
25180 Deleted all ENABLE_LOCK_ELISION checks.
25181 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25182 * sysdeps/powerpc/sysdep.h: Likewise.
25183 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25184 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25185 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25186 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25187 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25188 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25189 enable-lock-elision.
25190
25191 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25192
25193 * stdlib/strtod.c: Include <bits/floatn.h>.
25194 (BUILD_DOUBLE): New macro.
25195 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25196 (strtof64): Define and later undefine as macro. Define as weak
25197 alias if [!USE_WIDE_CHAR].
25198 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25199 (wcstof64): Define and later undefine as macro. Define as weak
25200 alias if [USE_WIDE_CHAR].
25201 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25202 (strtof32x): Define and later undefine as macro. Define as weak
25203 alias if [!USE_WIDE_CHAR].
25204 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25205 (wcstof32x): Define and later undefine as macro. Define as weak
25206 alias if [USE_WIDE_CHAR].
25207 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25208 (BUILD_DOUBLE): New macro.
25209 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25210 (strtof64_l): Define and later undefine as macro. Define as weak
25211 alias if [!USE_WIDE_CHAR].
25212 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25213 (wcstof64_l): Define and later undefine as macro. Define as weak
25214 alias if [USE_WIDE_CHAR].
25215 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25216 (strtof32x_l): Define and later undefine as macro. Define as weak
25217 alias if [!USE_WIDE_CHAR].
25218 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25219 (wcstof32x_l): Define and later undefine as macro. Define as weak
25220 alias if [USE_WIDE_CHAR].
25221
25222 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25223
25224 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25225 (reduced): Use ones as double instead of integer.
25226
25227 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25228
25229 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25230
25231 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25232
25233 * stdlib/strfromd.c: Include <bits/floatn.h>.
25234 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25235 and later undefine as macro and define as weak alias.
25236 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25237 Likewise.
25238
25239 * math/test-float32x.h: New file.
25240 * math/test-float64.h: Likewise.
25241
25242 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25243 (libm_alias_double_other_r_f64): New macro.
25244 (libm_alias_double_other_r_f32x): Likewise.
25245 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25246 libm_alias_double_other_r_f32x.
25247 (libm_alias_double_r): Use semicolon before call to
25248 libm_alias_double_other_r.
25249 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25250 <bits/floatn.h>.
25251 (libm_alias_double_other_r_f64): New macro.
25252 (libm_alias_double_other_r_f32x): Likewise.
25253 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25254 libm_alias_double_other_r_f32x.
25255
25256 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25257
25258 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25259 int.
25260 (SINF_FUNC): Likewise. Replace floor with simple casts.
25261
25262 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25263
25264 [BZ #22517]
25265 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25266 and to the list of locales to be built for testing.
25267 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25268 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25269 and build the collation rules upon that.
25270
25271 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25272
25273 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25274 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25275 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25276 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25277 instead of __insn__xxx.
25278 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25279 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25280 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25281 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25282 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25283 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25284
25285 2017-12-05 Florian Weimer <fweimer@redhat.com>
25286
25287 Linux: Implement interfaces for memory protection keys
25288 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25289 xsignal, xsysconf.
25290 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25291 * support/xunistd.h (xsysconf): Declare.
25292 * support/xraise.c: New file.
25293 * support/xsigaction.c: Likewise.
25294 * support/xsignal.c: Likewise.
25295 * support/xsysconf.c: Likewise.
25296 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25297 pkey_set, pkey_get, pkey_mprotect.
25298 [misc] (tests): Add tst-pkey.
25299 (tst-pkey): Link with -lpthread.
25300 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25301 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25302 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25303 (PKEY_DISABLE_WRITE): Define.
25304 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25305 Declare.
25306 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25307 (SEGV_PKUERR): Add.
25308 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25309 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25310 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25311 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25312 Add.
25313 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25314 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25315 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25316 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25317 * sysdeps/unix/sysv/linux/**.abilist: Update.
25318
25319 2017-12-05 Florian Weimer <fweimer@redhat.com>
25320
25321 * support/tst-test_compare.c (subprocess): Use long long instead
25322 of long argument for consistent type width across 32-bit and
25323 64-bit architectures.
25324 (do_test): Adjust expected output.
25325
25326 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25327
25328 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25329 (cosf): Define using libm_alias_float.
25330 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25331 (fabsf): Define using libm_alias_float.
25332 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25333 (fmaf): Define using libm_alias_float.
25334 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25335 (rintf): Define using libm_alias_float.
25336 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25337 (sinf): Define using libm_alias_float.
25338 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25339 <libm-alias-float.h>.
25340 (modff): Define using libm_alias_float.
25341 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25342 <libm-alias-float.h>.
25343 (logbf): Define using libm_alias_float.
25344 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25345 <libm-alias-float.h>.
25346 (ceilf): Define using libm_alias_float.
25347 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25348 <libm-alias-float.h>.
25349 (copysignf): Define using libm_alias_float.
25350 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25351 <libm-alias-float.h>.
25352 (floorf): Define using libm_alias_float.
25353 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25354 <libm-alias-float.h>.
25355 (llrintf): Define using libm_alias_float.
25356 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25357 <libm-alias-float.h>.
25358 (llroundf): Define using libm_alias_float.
25359 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25360 <libm-alias-float.h>.
25361 (lrintf): Define using libm_alias_float.
25362 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25363 <libm-alias-float.h>.
25364 (lroundf): Define using libm_alias_float.
25365 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25366 <libm-alias-float.h>.
25367 (nearbyintf): Define using libm_alias_float.
25368 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25369 <libm-alias-float.h>.
25370 (rintf): Define using libm_alias_float.
25371 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25372 <libm-alias-float.h>.
25373 (roundf): Define using libm_alias_float.
25374 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25375 <libm-alias-float.h>.
25376 (truncf): Define using libm_alias_float.
25377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25378 Include <libm-alias-float.h>.
25379 (ceilf): Define using libm_alias_float.
25380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25381 Include <libm-alias-float.h>.
25382 (copysignf): Define using libm_alias_float.
25383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25384 Include <libm-alias-float.h>.
25385 (floorf): Define using libm_alias_float.
25386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25387 Include <libm-alias-float.h>.
25388 (llrintf): Define using libm_alias_float.
25389 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25390 Include <libm-alias-float.h>.
25391 (llroundf): Define using libm_alias_float.
25392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25393 Include <libm-alias-float.h>.
25394 (logbf): Define using libm_alias_float.
25395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25396 Include <libm-alias-float.h>.
25397 (lrintf): Define using libm_alias_float.
25398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25399 Include <libm-alias-float.h>.
25400 (lroundf): Define using libm_alias_float.
25401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25402 Include <libm-alias-float.h>.
25403 (modff): Define using libm_alias_float.
25404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25405 Include <libm-alias-float.h>.
25406 (roundf): Define using libm_alias_float.
25407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25408 Include <libm-alias-float.h>.
25409 (truncf): Define using libm_alias_float.
25410 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25411 <libm-alias-float.h>.
25412 (llrintf): Define using libm_alias_float.
25413 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25414 <libm-alias-float.h>.
25415 (llroundf): Define using libm_alias_float.
25416 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25417 <libm-alias-float.h>.
25418 (ceilf): Define using libm_alias_float.
25419 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25420 <libm-alias-float.h>.
25421 (floorf): Define using libm_alias_float.
25422 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25423 <libm-alias-float.h>.
25424 (llroundf): Define using libm_alias_float.
25425 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25426 <libm-alias-float.h>.
25427 (lroundf): Define using libm_alias_float.
25428 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25429 <libm-alias-float.h>.
25430 (roundf): Define using libm_alias_float.
25431 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25432 <libm-alias-float.h>.
25433 (truncf): Define using libm_alias_float.
25434 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25435 <libm-alias-float.h>.
25436 (copysignf): Define using libm_alias_float.
25437 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25438 <libm-alias-float.h>.
25439 (llrintf): Define using libm_alias_float.
25440 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25441 <libm-alias-float.h>.
25442 (llroundf): Define using libm_alias_float.
25443 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25444 <libm-alias-float.h>.
25445 (lrintf): Define using libm_alias_float.
25446 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25447 <libm-alias-float.h>.
25448 (lroundf): Define using libm_alias_float.
25449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25450 <libm-alias-float.h>.
25451 (ceilf): Define using libm_alias_float.
25452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25453 <libm-alias-float.h>.
25454 (copysignf): Define using libm_alias_float.
25455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25456 <libm-alias-float.h>.
25457 (cosf): Define using libm_alias_float.
25458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25459 <libm-alias-float.h>.
25460 (floorf): Define using libm_alias_float.
25461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25462 <libm-alias-float.h>.
25463 (llrintf): Define using libm_alias_float.
25464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25465 <libm-alias-float.h>.
25466 (llroundf): Define using libm_alias_float.
25467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25468 <libm-alias-float.h>.
25469 (logbf): Define using libm_alias_float.
25470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25471 <libm-alias-float.h>.
25472 (modff): Define using libm_alias_float.
25473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25474 <libm-alias-float.h>.
25475 (roundf): Define using libm_alias_float.
25476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25477 <libm-alias-float.h>.
25478 (sinf): Define using libm_alias_float.
25479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25480 <libm-alias-float.h>.
25481 (truncf): Define using libm_alias_float.
25482 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25483 <libm-alias-float.h>.
25484 (ceilf): Define using libm_alias_float.
25485 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25486 <libm-alias-float.h>.
25487 (copysignf): Define using libm_alias_float.
25488 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25489 <libm-alias-float.h>.
25490 (floorf): Define using libm_alias_float.
25491 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25492 <libm-alias-float.h>.
25493 (llrintf): Define using libm_alias_float.
25494 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25495 <libm-alias-float.h>.
25496 (llroundf): Define using libm_alias_float.
25497 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25498 <libm-alias-float.h>.
25499 (nearbyintf): Define using libm_alias_float.
25500 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25501 <libm-alias-float.h>.
25502 (rintf): Define using libm_alias_float.
25503 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25504 <libm-alias-float.h>.
25505 (roundf): Define using libm_alias_float.
25506 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25507 <libm-alias-float.h>.
25508 (truncf): Define using libm_alias_float.
25509 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25510 <libm-alias-float.h>.
25511 (ceilf): Define using libm_alias_float.
25512 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25513 <libm-alias-float.h>.
25514 (floorf): Define using libm_alias_float.
25515 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25516 <libm-alias-float.h>.
25517 (llroundf): Define using libm_alias_float.
25518 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25519 <libm-alias-float.h>.
25520 (roundf): Define using libm_alias_float.
25521 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25522 <libm-alias-float.h>.
25523 (truncf): Define using libm_alias_float.
25524 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25525 <libm-alias-float.h>.
25526 (copysignf): Define using libm_alias_float.
25527 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25528 <libm-alias-float.h>.
25529 (llrintf): Define using libm_alias_float.
25530 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25531 <libm-alias-float.h>.
25532 (llroundf): Define using libm_alias_float.
25533 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25534 <libm-alias-float.h>.
25535 (cosf): Define using libm_alias_float.
25536 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25537 <libm-alias-float.h>.
25538 (llrintf): Define using libm_alias_float.
25539 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25540 <libm-alias-float.h>.
25541 (llroundf): Define using libm_alias_float.
25542 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25543 <libm-alias-float.h>.
25544 (sinf): Define using libm_alias_float.
25545
25546 2017-12-04 Florian Weimer <fweimer@redhat.com>
25547
25548 * support/check.h (TEST_COMPARE): Define.
25549 (support_test_compare_failure): Declare.
25550 * support/Makefile (libsupport-routines): Add
25551 support_test_compare_failure.
25552 (tests): Add tst-test_compare.
25553 * support /support_test_compare_failure.c: New file.
25554 * support/tst-test_compare.c: Likewise.
25555
25556 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25557
25558 [BZ #22527]
25559 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25560 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25561 available, this rewrite of the collation rules does reproduce
25562 the test file in the same order.
25563
25564 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25565
25566 [BZ #10580]
25567 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25568 digraphs in the month and day names. Using single code points for
25569 digraphs is deprecated. While there are dedicated Unicode
25570 codepoints, for the digraphs, these are included for backwards
25571 compatibility and modern texts use a sequence of Basic Latin
25572 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25573 This makes the month and day names agree exactly with CLDR now,
25574 CLDR does not use the single code points for the digraphs either.
25575
25576 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25577
25578 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25579
25580 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25581
25582 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25583 of floor.
25584
25585 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25586
25587 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25588 Define only for libc.so.
25589
25590 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25591
25592 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25593 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25594 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25595 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25596 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25597
25598 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25599
25600 [BZ #5997]
25601 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25602
25603 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25604
25605 [BZ libc/19170]
25606 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25607 PREINIT_FUNCTION_WEAK is nonzero.
25608 (gmon_initializer): New function. Put procedure label for it in
25609 .init_array section.
25610 (_init): Don't call PREINIT_FUNCTION.
25611 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25612 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25613 value when map argument is null.
25614
25615 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25616 depi instruction from PIC pc-relative sequence.
25617 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25618 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25619 (elf_machine_load_address): Likewise.
25620 (elf_machine_runtime_setup): Likewise.
25621
25622 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25623
25624 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25625 <libm-alias-double.h>.
25626 (logb): Define using libm_alias_double.
25627 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25628 <libm-alias-double.h>.
25629 (copysign): Define using libm_alias_double.
25630 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25631 <libm-alias-double.h>.
25632 (llrint): Define using libm_alias_double.
25633 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25634 <libm-alias-double.h>.
25635 (llround): Define using libm_alias_double.
25636 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25637 <libm-alias-double.h>.
25638 (lrint): Define using libm_alias_double.
25639 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25640 <libm-alias-double.h>.
25641 (lround): Define using libm_alias_double.
25642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25643 Include <libm-alias-double.h>.
25644 (copysign): Define using libm_alias_double.
25645 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25646 Include <libm-alias-double.h>.
25647 (llrint): Define using libm_alias_double.
25648 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25649 Include <libm-alias-double.h>.
25650 (llround): Define using libm_alias_double.
25651 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25652 <libm-alias-double.h>.
25653 (logb): Define using libm_alias_double.
25654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25655 Include <libm-alias-double.h>.
25656 (lrint): Define using libm_alias_double.
25657 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25658 Include <libm-alias-double.h>.
25659 (lround): Define using libm_alias_double.
25660 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25661 <libm-alias-double.h>.
25662 (llrint): Define using libm_alias_double.
25663 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25664 <libm-alias-double.h>.
25665 (llround): Define using libm_alias_double.
25666 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25667 <libm-alias-double.h>.
25668 (llround): Define using libm_alias_double.
25669 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25670 <libm-alias-double.h>.
25671 (lround): Define using libm_alias_double.
25672 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25673 <libm-alias-double.h>.
25674 (copysign): Define using libm_alias_double.
25675 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25676 <libm-alias-double.h>.
25677 (llrint): Define using libm_alias_double.
25678 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25679 <libm-alias-double.h>.
25680 (llround): Define using libm_alias_double.
25681 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25682 <libm-alias-double.h>.
25683 (lrint): Define using libm_alias_double.
25684 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25685 <libm-alias-double.h>.
25686 (lround): Define using libm_alias_double.
25687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25688 <libm-alias-double.h>.
25689 (copysign): Define using libm_alias_double.
25690 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25691 <libm-alias-double.h>.
25692 (llrint): Define using libm_alias_double.
25693 (lrint): Likewise.
25694 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25695 <libm-alias-double.h>.
25696 (llround): Define using libm_alias_double.
25697 (lround): Likewise.
25698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25699 <libm-alias-double.h>.
25700 (logb): Define using libm_alias_double.
25701 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25702 <libm-alias-double.h>.
25703 (copysign): Define using libm_alias_double.
25704 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25705 <libm-alias-double.h>.
25706 (llrint): Define using libm_alias_double.
25707 (lrint): Likewise.
25708 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25709 <libm-alias-double.h>.
25710 (llround): Define using libm_alias_double.
25711 (lround): Likewise.
25712 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25713 <libm-alias-double.h>.
25714 (llround): Define using libm_alias_double.
25715 (lround): Likewise.
25716 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25717 <libm-alias-double.h>.
25718 (copysign): Define using libm_alias_double.
25719 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25720 <libm-alias-double.h>.
25721 (llrint): Define using libm_alias_double.
25722 (lrint): Likewise.
25723 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25724 <libm-alias-double.h>.
25725 (llround): Define using libm_alias_double.
25726 (lround): Likewise.
25727 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25728 <libm-alias-double.h>.
25729 (llrint): Define using libm_alias_double.
25730 (lrint): Likewise.
25731 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25732 <libm-alias-double.h>.
25733 (llround): Define using libm_alias_double.
25734 (lround): Likewise.
25735
25736 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25737
25738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25739 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25740 compat symbol based on llround.
25741
25742 * sysdeps/powerpc/power7/fpu/s_logb.c
25743 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25744 symbol based on __logb, not on logb.
25745 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25746 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25748 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25749
25750 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25751 (rint): Define using libm_alias_double.
25752 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25753 <libm-alias-double.h>.
25754 (modf): Define using libm_alias_double.
25755 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25756 <libm-alias-double.h>.
25757 (ceil): Define using libm_alias_double.
25758 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25759 <libm-alias-double.h>.
25760 (floor): Define using libm_alias_double.
25761 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25762 <libm-alias-double.h>.
25763 (nearbyint): Define using libm_alias_double.
25764 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25765 <libm-alias-double.h>.
25766 (rint): Define using libm_alias_double.
25767 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25768 <libm-alias-double.h>.
25769 (round): Define using libm_alias_double.
25770 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25771 <libm-alias-double.h>.
25772 (trunc): Define using libm_alias_double.
25773 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25774 <libm-alias-double.h>.
25775 (ceil): Define using libm_alias_double.
25776 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25777 Include <libm-alias-double.h>.
25778 (floor): Define using libm_alias_double.
25779 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25780 <libm-alias-double.h>.
25781 (modf): Define using libm_alias_double.
25782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25783 Include <libm-alias-double.h>.
25784 (round): Define using libm_alias_double.
25785 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25786 Include <libm-alias-double.h>.
25787 (trunc): Define using libm_alias_double.
25788 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25789 <libm-alias-double.h>.
25790 (ceil): Define using libm_alias_double.
25791 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25792 <libm-alias-double.h>.
25793 (floor): Define using libm_alias_double.
25794 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25795 <libm-alias-double.h>.
25796 (round): Define using libm_alias_double.
25797 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25798 <libm-alias-double.h>.
25799 (trunc): Define using libm_alias_double.
25800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25801 <libm-alias-double.h>.
25802 (ceil): Define using libm_alias_double.
25803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25804 <libm-alias-double.h>.
25805 (floor): Define using libm_alias_double.
25806 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25807 <libm-alias-double.h>.
25808 (modf): Define using libm_alias_double.
25809 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25810 <libm-alias-double.h>.
25811 (round): Define using libm_alias_double.
25812 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25813 <libm-alias-double.h>.
25814 (trunc): Define using libm_alias_double.
25815 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25816 <libm-alias-double.h>.
25817 (ceil): Define using libm_alias_double.
25818 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25819 <libm-alias-double.h>.
25820 (floor): Define using libm_alias_double.
25821 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25822 <libm-alias-double.h>.
25823 (nearbyint): Define using libm_alias_double.
25824 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25825 <libm-alias-double.h>.
25826 (rint): Define using libm_alias_double.
25827 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25828 <libm-alias-double.h>.
25829 (round): Define using libm_alias_double.
25830 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25831 <libm-alias-double.h>.
25832 (trunc): Define using libm_alias_double.
25833 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25834 <libm-alias-double.h>.
25835 (ceil): Define using libm_alias_double.
25836 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25837 <libm-alias-double.h>.
25838 (floor): Define using libm_alias_double.
25839 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25840 <libm-alias-double.h>.
25841 (round): Define using libm_alias_double.
25842 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25843 <libm-alias-double.h>.
25844 (trunc): Define using libm_alias_double.
25845
25846 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25847 (fabs): Define using libm_alias_double.
25848 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25849 (fma): Define using libm_alias_double.
25850 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25851 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25852 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25853 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25854
25855 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25856
25857 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25858
25859 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25860 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25861 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25862
25863 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25864 due redirect macro.
25865
25866 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25867
25868 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25869
25870 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25871
25872 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25873 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25874 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25875 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25876
25877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25878 (libm-sysdep_routines): Add s_nearbyintf-generic and
25879 s_nearbyint-generic.
25880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25881 New file.
25882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25884 Likewise.
25885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25886 Likewise.
25887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25888 file.
25889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25890 Likewise.
25891
25892 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25893 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25894 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25895 file.
25896 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25898 Likewise.
25899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25902
25903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25904 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25906 file.
25907 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25909 Likewise.
25910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25912 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25913
25914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25915 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25917 file.
25918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25920 Likewise.
25921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25924
25925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25926 (sysdep_calls): New rule.
25927 (sysdep_routines): Use sysdep_calls as base.
25928 (libm-sysdep_routines): Add generic rule for symbols shared with
25929 libc. Add s_copysign-generic and s_copysign-generic objects.
25930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25931 New file.
25932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25934 Likewise.
25935 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25938
25939 2017-12-01 Mike FABIAN <mfabian@redhat.com>
25940
25941 [BZ #22519]
25942 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25943 the list of locales to be built for testing.
25944 * localedata/is_IS.UTF-8.in: New file.
25945 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25946 on iso14651_t1.
25947
25948 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25949
25950 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25951 <libm-alias-float.h>.
25952 (fabsf): Define using libm_alias_float.
25953
25954 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25955
25956 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25957
25958 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25959
25960 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25961 <libm-alias-float.h>.
25962 (fabsf): Define using libm_alias_float.
25963 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25964 <libm-alias-float.h>.
25965 (lrintf): Define using libm_alias_float.
25966 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25967 <libm-alias-float.h>.
25968 (rintf): Define using libm_alias_float.
25969
25970 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25971 <libm-alias-double.h>.
25972 (fabs): Define using libm_alias_double.
25973 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25974 <libm-alias-double.h>.
25975 (lrint): Define using libm_alias_double.
25976 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25977 <libm-alias-double.h>.
25978 (rint): Define using libm_alias_double.
25979
25980 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25981 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25982 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25983 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25984 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25985 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25986 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25987 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25988 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25989 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25990 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25991 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25992 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25993 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25994 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25995 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25996 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25997 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25998 s_atan_template.c.
25999 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26000 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26001 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26002 s_ceil_template.c.
26003 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26004 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26005 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26006 s_cos_template.c.
26007 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26008 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26009 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26010 s_expm1_template.c.
26011 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26012 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26013 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26014 s_fabs_template.c.
26015 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26016 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26017 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26018 s_floor_template.c.
26019 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26020 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26021 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26022 s_frexp_template.c.
26023 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26024 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26025 s_lrint_template.c.
26026 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26027 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26028 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26029 s_modf_template.c.
26030 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26031 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26032 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26033 s_nearbyint_template.c.
26034 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26035 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26036 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26037 s_remquo_template.c.
26038 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26039 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26040 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26041 s_rint_template.c.
26042 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26043 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26044 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26045 s_sin_template.c.
26046 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26047 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26048 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26049 s_sincos_template.c.
26050 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26051 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26052 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26053 s_tan_template.c.
26054 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26055 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26056 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26057 s_tanh_template.c.
26058 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26059 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26060 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26061 s_trunc_template.c.
26062 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26063 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26064 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26065 s_atan.c instead of including s_atan.c.
26066 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26067 s_atanf.c instead of including s_atanf.c.
26068 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26069 s_atanl.c instead of including s_atanl.c.
26070 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26071 instead of s_atan.c.
26072 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26073 instead of s_atanf.c.
26074 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26075 instead of s_atanl.c.
26076
26077 * scripts/update-copyrights: Do not handle intl/plural.c
26078 specially.
26079
26080 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26081
26082 [BZ #22432]
26083 * configure.ac (BISON): Require to be present.
26084 * configure: Regenerated.
26085 * intl/Makefile (generated): Add plural.c.
26086 [$(BISON) != no]: Make code unconditional.
26087 (plural.c): Change rule to $(objpfx)plural.c.
26088 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26089 * intl/plural.c: Remove.
26090 * manual/install.texi (Tools for Compilation): Document bison as
26091 required.
26092 * INSTALL: Regenerated.
26093
26094 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26095
26096 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26097 <libm-alias-double.h>.
26098 (llrint): Define using libm_alias_double.
26099 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26100 <libm-alias-float.h>.
26101 (llrintf): Define using libm_alias_float.
26102 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26103 <libm-alias-ldouble.h>.
26104 (llrintl): Define using libm_alias_ldouble.
26105
26106 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26107 declare_mgen_alias instead of weak_alias.
26108 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26109 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26110 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26111
26112 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26113
26114 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26115 Add add_n-generic.
26116 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26117 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26118 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26119
26120 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26121 Add submul_1-generic.
26122 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26123 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26124 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26125
26126 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26127 Add addmul_1-generic.
26128 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26129 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26130 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26131
26132 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26133 Add sub_n-generic.
26134 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26135 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26136 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26137
26138 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26139 Add mul_1-generic.
26140 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26141 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26142 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26143
26144 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26145
26146 According to CLDR, collation rules for Serbian and Bosnian
26147 should be the same as for Croatian.
26148
26149 [BZ #22534]
26150 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26151 and to the list of locales to be built for testing.
26152 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26153 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26154 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26155 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26156
26157 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26158
26159 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26160 to make test case pass.
26161 * localedata/hr_HR.UTF-8.in: Add more test strings.
26162
26163 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26164
26165 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26166
26167 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26168
26169 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26170 the list of locales to built for testing.
26171 * localedata/hr_HR.UTF-8.in: New file.
26172
26173 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26174
26175 [BZ #10580]
26176 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26177 iso14651_t1.
26178 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26179 CLDR (except use ligatures for the digraphs, CLDR does not use
26180 the ligatures), add first_workday, some fixes in the date and time
26181 formats.
26182 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26183 for Đ and đ.
26184 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26185 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26186 Add int_p_cs_precedes and int_n_cs_precedes.
26187 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26188 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26189 LC_MONETARY now).
26190 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26191 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26192 name_miss.
26193 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26194 and lang_lib. Change postal_fmt.
26195
26196 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26197
26198 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26199 <setjmp.h>.
26200 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26201 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26202 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26203 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26204 * sysdeps/generic/setjmpP.h: New file.
26205 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26206 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26207 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26208 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26209 Add jmp_buf-ssp.sym.
26210 (tests): Add tst-saved_mask-1.
26211
26212 2017-11-30 Arjun Shankar <arjun@redhat.com>
26213
26214 [BZ #22375]
26215 CVE-2017-17426
26216 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26217 instead of request2size.
26218
26219 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26220
26221 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26222 (__lllrint): Remove alias.
26223 (lllrint): Likewise.
26224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26225 (__lllrintf): Likewise.
26226 (lllrintf): Likewise.
26227
26228 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26229 <libm-alias-float.h>.
26230 (copysignf): Define using libm_alias_float.
26231 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26232 <libm-alias-float.h>.
26233 (fabsf): Define using libm_alias_float.
26234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26235 Include <libm-alias-float.h>.
26236 (copysignf): Define using libm_alias_float.
26237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26238 <libm-alias-float.h>.
26239 (fabsf): Define using libm_alias_float.
26240 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26241 <libm-alias-float.h>.
26242 (fdimf): Define using libm_alias_float.
26243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26244 <libm-alias-float.h>.
26245 (fmaf): Define using libm_alias_float.
26246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26247 <libm-alias-float.h>.
26248 (llrintf): Define using libm_alias_float.
26249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26250 Include <libm-alias-float.h>.
26251 (nearbyintf): Define using libm_alias_float.
26252 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26253 <libm-alias-float.h>.
26254 (rintf): Define using libm_alias_float.
26255 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26256 <libm-alias-float.h>.
26257 (llrintf): Define using libm_alias_float.
26258 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26259 <libm-alias-float.h>.
26260 (lrintf): Define using libm_alias_float.
26261 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26262 <libm-alias-float.h>.
26263 (nearbyintf): Define using libm_alias_float.
26264 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26265 <libm-alias-float.h>.
26266 (rintf): Define using libm_alias_float.
26267 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26268 <libm-alias-float.h>.
26269 (ceilf): Define using libm_alias_float.
26270 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26271 <libm-alias-float.h>.
26272 (floorf): Define using libm_alias_float.
26273 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26274 <libm-alias-float.h>.
26275 (fmaf): Define using libm_alias_float.
26276 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26277 <libm-alias-float.h>.
26278 (lrintf): Define using libm_alias_float.
26279 (llrintf): Likewise.
26280 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26281 <libm-alias-float.h>.
26282 (nearbyintf): Define using libm_alias_float.
26283 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26284 <libm-alias-float.h>.
26285 (rintf): Define using libm_alias_float.
26286 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26287 <libm-alias-float.h>.
26288 (truncf): Define using libm_alias_float.
26289 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26290 <libm-alias-float.h>.
26291 (copysignf): Define using libm_alias_float.
26292 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26293 <libm-alias-float.h>.
26294 (fabsf): Define using libm_alias_float.
26295 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26296 <libm-alias-float.h>.
26297 (lrintf): Define using libm_alias_float.
26298 (llrintf): Likewise.
26299 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26300 <libm-alias-float.h>.
26301 (nearbyintf): Define using libm_alias_float.
26302 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26303 <libm-alias-float.h>.
26304 (rintf): Define using libm_alias_float.
26305
26306 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26307
26308 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26309 <libm-alias-double.h>.
26310 (copysign): Define using libm_alias_double.
26311 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26312 <libm-alias-double.h>.
26313 (fabs): Define using libm_alias_double.
26314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26315 Include <libm-alias-double.h>.
26316 (copysign): Define using libm_alias_double.
26317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26318 <libm-alias-double.h>.
26319 (fabs): Define using libm_alias_double.
26320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26321 <libm-alias-double.h>.
26322 (fdim): Define using libm_alias_double.
26323 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26324 <libm-alias-double.h>.
26325 (fma): Define using libm_alias_double.
26326 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26327 <libm-alias-double.h>.
26328 (llrint): Define using libm_alias_double.
26329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26330 Include <libm-alias-double.h>.
26331 (nearbyint): Define using libm_alias_double.
26332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26333 <libm-alias-double.h>.
26334 (rint): Define using libm_alias_double.
26335 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26336 <libm-alias-double.h>.
26337 (fabs): Define using libm_alias_double.
26338 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26339 <libm-alias-double.h>.
26340 (llrint): Define using libm_alias_double.
26341 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26342 <libm-alias-double.h>.
26343 (nearbyint): Define using libm_alias_double.
26344 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26345 <libm-alias-double.h>.
26346 (rint): Define using libm_alias_double.
26347 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26348 <libm-alias-double.h>.
26349 (ceil): Define using libm_alias_double.
26350 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26351 <libm-alias-double.h>.
26352 (floor): Define using libm_alias_double.
26353 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26354 <libm-alias-double.h>.
26355 (fma): Define using libm_alias_double.
26356 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26357 <libm-alias-double.h>.
26358 (lrint): Define using libm_alias_double.
26359 (llrint): Likewise.
26360 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26361 <libm-alias-double.h>.
26362 (nearbyint): Define using libm_alias_double.
26363 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26364 <libm-alias-double.h>.
26365 (rint): Define using libm_alias_double.
26366 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26367 <libm-alias-double.h>.
26368 (trunc): Define using libm_alias_double.
26369 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26370 <libm-alias-double.h>.
26371 (copysign): Define using libm_alias_double.
26372 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26373 <libm-alias-double.h>.
26374 (fabs): Define using libm_alias_double.
26375 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26376 <libm-alias-double.h>.
26377 (lrint): Define using libm_alias_double.
26378 (llrint): Likewise.
26379 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26380 <libm-alias-double.h>.
26381 (nearbyint): Define using libm_alias_double.
26382 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26383 <libm-alias-double.h>.
26384 (rint): Define using libm_alias_double.
26385
26386 [BZ #22229]
26387 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26388 <math_ldbl_opt.h>.
26389 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26390
26391 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26392 SPARC --disable-multi-arch glibc variants.
26393
26394 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26395 <libm-alias-float.h>.
26396 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26397 if [SHARED].
26398 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26399 <libm-alias-float.h>.
26400 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26401 if [SHARED].
26402 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26403 <libm-alias-float.h>.
26404 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26405 if [SHARED].
26406 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26407 <libm-alias-float.h>.
26408 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26409 if [SHARED].
26410 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26411 <libm-alias-float.h>.
26412 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26413 if [SHARED].
26414 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26415 <libm-alias-float.h>.
26416 (ceilf): Define using libm_alias_float.
26417 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26418 <libm-alias-float.h>.
26419 (floorf): Define using libm_alias_float.
26420 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26421 <libm-alias-float.h>.
26422 (fmaf): Define using libm_alias_float.
26423 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26424 <libm-alias-float.h>.
26425 (nearbyintf): Define using libm_alias_float.
26426 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26427 <libm-alias-float.h>.
26428 (rintf): Define using libm_alias_float.
26429 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26430 <libm-alias-float.h>.
26431 (truncf): Define using libm_alias_float.
26432 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26433 (copysignf): Define using libm_alias_float.
26434 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26435 (cosf): Define using libm_alias_float.
26436 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26437 (fabsf): Define using libm_alias_float.
26438 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26439 (fmaxf): Define using libm_alias_float.
26440 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26441 (fminf): Define using libm_alias_float.
26442 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26443 (llrintf): Define using libm_alias_float.
26444 [!__ILP32__] (lrintf): Likewise.
26445 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26446 (sincosf): Define using libm_alias_float.
26447 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26448 (sinf): Define using libm_alias_float.
26449 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26450 (lrintf): Define using libm_alias_float.
26451
26452 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26453 <libm-alias-double.h>.
26454 (atan): Define using libm_alias_double.
26455 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26456 <libm-alias-double.h>.
26457 (ceil): Define using libm_alias_double.
26458 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26459 <libm-alias-double.h>.
26460 (floor): Define using libm_alias_double.
26461 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26462 <libm-alias-double.h>.
26463 (fma): Define using libm_alias_double.
26464 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26465 <libm-alias-double.h>.
26466 (nearbyint): Define using libm_alias_double.
26467 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26468 <libm-alias-double.h>.
26469 (rint): Define using libm_alias_double.
26470 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26471 <libm-alias-double.h>.
26472 (sin): Define using libm_alias_double.
26473 (cos): Likewise.
26474 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26475 <libm-alias-double.h>.
26476 (tan): Define using libm_alias_double.
26477 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26478 <libm-alias-double.h>.
26479 (trunc): Define using libm_alias_double.
26480 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26481 (copysign): Define using libm_alias_double.
26482 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26483 (fabs): Define using libm_alias_double.
26484 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26485 (fmax): Define using libm_alias_double.
26486 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26487 (fmin): Define using libm_alias_double.
26488 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26489 (llrint): Define using libm_alias_double.
26490 [!__ILP32__] (lrint): Likewise.
26491 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26492 (lrint): Define using libm_alias_double.
26493
26494 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26495
26496 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26497 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26498 objects.
26499 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26500 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26501 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26502 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26503 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26504 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26505
26506 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26507 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26508 objects.
26509 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26510 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26511 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26512 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26513 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26514 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26515
26516 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26517 (libm-sysdep_routines): Add s_nearbyint-generic and
26518 s_nearbyintf-generic objects.
26519 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26520 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26521 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26522 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26523 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26524 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26525
26526 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26527 Add s_finitef-generic and s_finite-generic objects.
26528 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26529 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26530 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26531 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26532 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26533 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26534
26535 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26536 Add s_isinff-generic and s_isinf-generic objects.
26537 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26538 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26539 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26540 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26541 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26542 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26543
26544 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26545 Add s_isnanf-generic and s_isnan-generic objects.
26546 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26547 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26548 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26549 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26550 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26551 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26552
26553 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26554 macro.
26555 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26556 rule.
26557 (sysdep_routines): Use sysdep_calls as base.
26558 (libm-sysdep_routines): Add generic rule for symbols shared with
26559 libc. Add s_signbit-generic and s_signbitf-generic objects.
26560 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26561 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26562 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26563 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26564 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26565 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26566
26567 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26568
26569 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26570 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26571 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26572 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26573 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26574 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26575 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26576 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26577 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26578 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26579 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26580 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26581 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26582 libm_alias_float_r.
26583 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26584 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26585 (logf): Likewise.
26586 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26587 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26588 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26589 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26590 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26591 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26592 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26593 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26594 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26595 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26596 libm_alias_float.
26597 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26598 (cosf): Likewise.
26599 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26600 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26601 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26602 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26603 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26604 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26605 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26606 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26607 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26608 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26609 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26610 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26611 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26612 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26613 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26614 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26615 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26616 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26617 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26618 libm_alias_float.
26619 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26620 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26621 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26622 * sysdeps/ia64/fpu/w_lgammaf_main.c
26623 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26624 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26625
26626 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26627 Alexandre Oliva <aoliva@redhat.com>
26628
26629 [BZ #17750]
26630 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26631 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26632 accents sorting.
26633 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26634 sorting.
26635 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26636 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26637 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26638 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26639 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26640 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26641 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26642 instead of “ifdef DIACRIT_BACKWARD”.
26643
26644 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26645
26646 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26647 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26648 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26649 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26650 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26651 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26652 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26653 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26654 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26655 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26656 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26657 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26658 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26659 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26660 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26661 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26662 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26663 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26664 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26665 ($(have-as-vis3) == yes): Remove conditional.
26666 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26667 Likewise.
26668 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26669 file.
26670 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26671 file.
26672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26673 file.
26674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26675 file.
26676 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26677 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26678 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26679 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26680 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26681 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26682 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26683 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26684
26685 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26686
26687 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26688 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26689 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26690 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26691 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26692 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26693 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26694 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26695 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26696 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26697 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26698 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26699 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26700 libm_alias_double_r.
26701 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26702 (log): Likewise.
26703 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26704 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26705 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26706 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26707 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26708 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26709 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26710 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26711 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26712 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26713 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26714 libm_alias_double.
26715 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26716 (cos): Likewise.
26717 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26718 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26719 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26720 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26721 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26722 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26723 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26724 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26725 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26726 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26727 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26728 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26729 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26730 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26731 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26732 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26733 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26734 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26735 libm_alias_double.
26736 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26737 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26738 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26739 * sysdeps/ia64/fpu/w_lgamma_main.c
26740 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26741 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26742
26743 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26744
26745 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26746 address of $global$ into %dp register earlier. Use pc-relative
26747 instruction sequence for PIC case.
26748
26749 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26750
26751 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26752 (asinhf): Define using libm_alias_float.
26753 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26754 (atanf): Define using libm_alias_float.
26755 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26756 (cbrtf): Define using libm_alias_float.
26757 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26758 (ceilf): Define using libm_alias_float.
26759 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26760 (copysignf): Define using libm_alias_float.
26761 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26762 (expm1f): Define using libm_alias_float.
26763 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26764 (fabsf): Define using libm_alias_float.
26765 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26766 (floorf): Define using libm_alias_float.
26767 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26768 (fmaxf): Define using libm_alias_float.
26769 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26770 (fminf): Define using libm_alias_float.
26771 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26772 (frexpf): Define using libm_alias_float.
26773 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26774 (llrintf): Define using libm_alias_float.
26775 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26776 (logbf): Define using libm_alias_float.
26777 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26778 (lrintf): Define using libm_alias_float.
26779 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26780 (nearbyintf): Define using libm_alias_float.
26781 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26782 (remquof): Define using libm_alias_float.
26783 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26784 (rintf): Define using libm_alias_float.
26785 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26786 (truncf): Define using libm_alias_float.
26787 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26788 <libm-alias-float.h>.
26789 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26790 if [SHARED].
26791 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26792 <libm-alias-float.h>.
26793 (expf): Define using libm_alias_float, or libm_alias_float_other
26794 if [SHARED].
26795 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26796 <libm-alias-float.h>.
26797 (log2f): Define using libm_alias_float, or libm_alias_float_other
26798 if [SHARED].
26799 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26800 <libm-alias-float.h>.
26801 (logf): Define using libm_alias_float, or libm_alias_float_other
26802 if [SHARED].
26803 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26804 <libm-alias-float.h>.
26805 (powf): Define using libm_alias_float, or libm_alias_float_other
26806 if [SHARED].
26807 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26808 <libm-alias-float.h>.
26809 (cosf): Define using libm_alias_float.
26810 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26811 <libm-alias-float.h>.
26812 (sincosf): Define using libm_alias_float.
26813 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26814 <libm-alias-float.h>.
26815 (sinf): Define using libm_alias_float.
26816 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26817 (fmaxf): Define using libm_alias_float.
26818 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26819 (fminf): Define using libm_alias_float.
26820 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26821 <libm-alias-float.h>.
26822 (fmaf): Define using libm_alias_float.
26823
26824 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26825 (asinh): Define using libm_alias_double.
26826 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26827 (atan): Define using libm_alias_double.
26828 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26829 (cbrt): Define using libm_alias_double.
26830 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26831 (ceil): Define using libm_alias_double.
26832 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26833 (copysign): Define using libm_alias_double.
26834 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26835 (expm1): Define using libm_alias_double.
26836 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26837 (fabs): Define using libm_alias_double.
26838 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26839 (fdim): Define using libm_alias_double.
26840 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26841 (floor): Define using libm_alias_double.
26842 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26843 (fmax): Define using libm_alias_double.
26844 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26845 (fmin): Define using libm_alias_double.
26846 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26847 (frexp): Define using libm_alias_double.
26848 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26849 (llrint): Define using libm_alias_double.
26850 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26851 (logb): Define using libm_alias_double.
26852 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26853 (lrint): Define using libm_alias_double.
26854 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26855 (nearbyint): Define using libm_alias_double.
26856 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26857 (remquo): Define using libm_alias_double.
26858 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26859 (rint): Define using libm_alias_double.
26860 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26861 (trunc): Define using libm_alias_double.
26862 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26863 (fmax): Define using libm_alias_double.
26864 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26865 (fmin): Define using libm_alias_double.
26866 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26867 (fma): Define using libm_alias_double.
26868
26869 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26870
26871 [BZ #22370]
26872 * elf/dl-hwcaps.c (ROUND): Removed.
26873 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26874 and ELF_NOTE_NEXT_OFFSET.
26875 * elf/dl-load.c (ROUND): Removed.
26876 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26877 * elf/readelflib.c (ROUND): Removed.
26878 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26879 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26880 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26881 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26882
26883 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26884
26885 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26886 [!__fmaf] (fmaf): Define using libm_alias_float.
26887
26888 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26889 [!__fma] (fma): Define using libm_alias_double.
26890 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26891
26892 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26893
26894 [BZ #22336]
26895 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26896 and implement the collation rules for cs from CLDR on top of that.
26897 * Makefile: Add cs_CZ.UTF-8 to test-input.
26898 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26899
26900 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26901
26902 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26903
26904 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26905 Icarus Sparry <icarus.w.sparry@intel.com>
26906
26907 * benchtests/Makefile:Add BENCHSET to allow subsets of
26908 benchmarks to be run.
26909 * benchtests/README: Add documentation for: Running subsets of
26910 benchmarks.
26911
26912 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26913
26914 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26915 range of tests names.
26916
26917 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26918 result from property and remove "max", min" and "mean" from
26919 required properties based on benchtests/bench-skeleton.c.
26920
26921 2017-11-28 Florian Weimer <fweimer@redhat.com>
26922
26923 [BZ #20826]
26924 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26925 due to Internet requirement.
26926 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26927 tst-getaddrinfo5.
26928 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26929
26930 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26931
26932 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26933 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26934 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26935 (sysdep_routines): Add memset-ultra1.
26936 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26937 file.
26938 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26939 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26940 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26941 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26942 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26943 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26944 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26945 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26946
26947 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26948 file.
26949 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26950 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26951 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26952 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26953 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26954 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26955 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26956 macro.
26957 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26958 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26959 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26960 (sysdep_routines): Add memcpy-ultra1.
26961 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26962 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26963
26964 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26965
26966 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26967 (cfloat_versions): Take function argument without trailing 'f'.
26968 Call libm_alias_float_other.
26969 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26970 * sysdeps/alpha/fpu/cargf.c: Likewise.
26971 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26972 * sysdeps/alpha/fpu/conjf.c: Likewise.
26973 * sysdeps/alpha/fpu/crealf.c: Likewise.
26974 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26975 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26976 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26977 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26978 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26979 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26980 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26981 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26982 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26983 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26984 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26985 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26986 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26987 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26988 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26989 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26990 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26991 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26992 (clog10f): Use libm_alias_float_other.
26993 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26994 (ceilf): Define using libm_alias_float.
26995 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26996 (copysignf): Define using libm_alias_float.
26997 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26998 (fabsf): Define using libm_alias_float.
26999 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27000 (floorf): Define using libm_alias_float.
27001 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27002 (fmaxf): Define using libm_alias_float.
27003 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27004 (fminf): Define using libm_alias_float.
27005 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27006 (lrintf): Define using libm_alias_float.
27007 (llrintf): Likewise.
27008 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27009 (lroundf): Define using libm_alias_float.
27010 (llroundf): Likewise.
27011 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27012 (rintf): Define using libm_alias_float.
27013 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27014 (truncf): Define using libm_alias_float.
27015
27016 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27017 (ceilf): Define using libm_alias_float.
27018 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27019 (floorf): Define using libm_alias_float.
27020 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27021 (fmaf): Define using libm_alias_float.
27022 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27023 (fmaxf): Define using libm_alias_float.
27024 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27025 (fminf): Define using libm_alias_float.
27026 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27027 (llrintf): Define using libm_alias_float.
27028 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27029 (llroundf): Define using libm_alias_float.
27030 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27031 (lrintf): Define using libm_alias_float.
27032 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27033 (lroundf): Define using libm_alias_float.
27034 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27035 <libm-alias-float.h>.
27036 (nearbyintf): Define using libm_alias_float.
27037 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27038 (rintf): Define using libm_alias_float.
27039 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27040 (roundf): Define using libm_alias_float.
27041 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27042 (truncf): Define using libm_alias_float.
27043
27044 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27045 (ceil): Define using libm_alias_double.
27046 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27047 (copysign): Define using libm_alias_double.
27048 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27049 (fabs): Define using libm_alias_double.
27050 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27051 (floor): Define using libm_alias_double.
27052 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27053 (fmax): Define using libm_alias_double.
27054 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27055 (fmin): Define using libm_alias_double.
27056 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27057 (lrint): Define using libm_alias_double.
27058 (llrint): Likewise.
27059 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27060 (lround): Define using libm_alias_double.
27061 (llround): Likewise.
27062 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27063 (rint): Define using libm_alias_double.
27064 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27065 (trunc): Define using libm_alias_double.
27066
27067 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27068 (libm_alias_double_r): Add semicolon after weak_alias call.
27069
27070 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27071
27072 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27073 (ceil): Define using libm_alias_double.
27074 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27075 (floor): Define using libm_alias_double.
27076 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27077 (fma): Define using libm_alias_double.
27078 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27079 (fmax): Define using libm_alias_double.
27080 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27081 (fmin): Define using libm_alias_double.
27082 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27083 (llrint): Define using libm_alias_double.
27084 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27085 (llround): Define using libm_alias_double.
27086 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27087 (lrint): Define using libm_alias_double.
27088 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27089 (lround): Define using libm_alias_double.
27090 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27091 (nearbyint): Define using libm_alias_double.
27092 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27093 (rint): Define using libm_alias_double.
27094 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27095 (round): Define using libm_alias_double.
27096 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27097 (trunc): Define using libm_alias_double.
27098
27099 2017-11-27 Florian Weimer <fweimer@redhat.com>
27100
27101 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27102 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27103 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27104 (tests): Add tst-mlock2.
27105 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27106 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27107 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27108 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27109 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27110 for mlock. Document mlock2.
27111
27112 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27113
27114 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27115 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27116 Likewise.
27117 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27118 Likewise.
27119 * sysdeps/x86/Makeconfig: New file.
27120 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27121 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27122 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27123 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27124 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27125 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27126 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27127 Likewise.
27128 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27129 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27130 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27131 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27132 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27133 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27134 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27135 * manual/math.texi (Mathematics): Document support for _Float64x.
27136 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27137 * stdlib/Versions (GLIBC_2.27): Likewise.
27138 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27139 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27140 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27141 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27142 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27143 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27144 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27145 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27146 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27147 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27148 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27149 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27151 Likewise.
27152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27153 Likewise.
27154 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27155 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27156 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27157 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27158 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27159 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27160 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27161 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27162 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27163 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27164 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27165 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27166 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27167 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27168
27169 2017-11-27 Andreas Schwab <schwab@suse.de>
27170
27171 * elf/Makefile (dl-routines): Add dl-sort-maps.
27172 * elf/dl-sort-maps.c: New file.
27173 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27174 (_dl_sort_maps): Declare.
27175 * elf/dl-fini.c (_dl_sort_fini): Remove.
27176 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27177 * elf/dl-close.c (_dl_close_worker): Likewise.
27178 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27179 open-coding it.
27180 * elf/dl-open.c (dl_open_worker): Likewise.
27181
27182 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27183
27184 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27185 using libm_alias_float128.
27186 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27187 Likewise.
27188 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27189 Likewise.
27190 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27191 (setpayloadsigf128): Likewise.
27192 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27193 Likewise.
27194 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27195 Likewise.
27196
27197 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27198 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27199 -mfloat128 to CFLAGS.
27200 ($(foreach
27201 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27202 Likewise.
27203 (CFLAGS-libm-test-support-float64x.c): New variable.
27204 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27205 $(f128-loader-link) to gnulib-tests.
27206
27207 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27208 (libm_alias_float128_other_r): If
27209 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27210 alias.
27211 (libm_alias_float128_r): Add semicolon after weak_alias call.
27212 * sysdeps/generic/libm-alias-ldouble.h
27213 (libm_alias_ldouble_other_r_f128): New macro.
27214 (libm_alias_ldouble_other_r_f64x): Likewise.
27215 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27216 and libm_alias_ldouble_other_r_f64x.
27217 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27218 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27219 (libm_alias_ldouble_other_r_f128): New macro.
27220 (libm_alias_ldouble_other_r_f64x): Likewise.
27221 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27222 and libm_alias_ldouble_other_r_f64x.
27223
27224 * stdlib/strfroml.c: Always include <stdlib.h>.
27225 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27226 undefine as macro and define as weak alias.
27227 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27228 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27229 <stdlib.h>.
27230 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27231 Define and later undefine as macro and define as weak alias.
27232
27233 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27234 Define and later undefine as macro. Define as weak alias if
27235 [!USE_WIDE_CHAR].
27236 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27237 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27238 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27239 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27240 Define and later undefine as macro. Define as weak alias if
27241 [!USE_WIDE_CHAR].
27242 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27243 Define and later undefine as macro. Define as weak alias if
27244 [USE_WIDE_CHAR].
27245 * sysdeps/ieee754/float128/strtof128_l.c
27246 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27247 Define and later undefine as macro. Define as weak alias if
27248 [!USE_WIDE_CHAR].
27249 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27250 Define and later undefine as macro. Define as weak alias if
27251 [USE_WIDE_CHAR].
27252 * sysdeps/ieee754/ldbl-128/strtold_l.c
27253 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27254 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27255 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27256 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27257 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27258 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27259 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27260 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27261 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27262 * sysdeps/ieee754/ldbl-96/strtold_l.c
27263 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27264 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27265 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27266 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27267
27268 * math/test-float64x.h: New file.
27269 * math/Makefile (type-float64x-yes): New variable.
27270 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27271
27272 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27273 function-like macro.
27274 (min_of_type_): Likewise.
27275 (min_of_type_l): Likewise.
27276 (min_of_type_f128): Likewise.
27277 (min_of_type): Pass () as last argument of __MATH_TG.
27278
27279 * stdlib/tst-strtod-round-skeleton.c
27280 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27281 headers.
27282
27283 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27284 for combinations of long double with _Float64 and _Float64x.
27285
27286 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27287 (__DECL_SIMD_cosf32): Likewise.
27288 (__DECL_SIMD_cosf64): Likewise.
27289 (__DECL_SIMD_cosf32x): Likewise.
27290 (__DECL_SIMD_cosf64x): Likewise.
27291 (__DECL_SIMD_cosf128x): Likewise.
27292 (__DECL_SIMD_sinf16): Likewise.
27293 (__DECL_SIMD_sinf32): Likewise.
27294 (__DECL_SIMD_sinf64): Likewise.
27295 (__DECL_SIMD_sinf32x): Likewise.
27296 (__DECL_SIMD_sinf64x): Likewise.
27297 (__DECL_SIMD_sinf128x): Likewise.
27298 (__DECL_SIMD_sincosf16): Likewise.
27299 (__DECL_SIMD_sincosf32): Likewise.
27300 (__DECL_SIMD_sincosf64): Likewise.
27301 (__DECL_SIMD_sincosf32x): Likewise.
27302 (__DECL_SIMD_sincosf64x): Likewise.
27303 (__DECL_SIMD_sincosf128x): Likewise.
27304 (__DECL_SIMD_logf16): Likewise.
27305 (__DECL_SIMD_logf32): Likewise.
27306 (__DECL_SIMD_logf64): Likewise.
27307 (__DECL_SIMD_logf32x): Likewise.
27308 (__DECL_SIMD_logf64x): Likewise.
27309 (__DECL_SIMD_logf128x): Likewise.
27310 (__DECL_SIMD_expf16): Likewise.
27311 (__DECL_SIMD_expf32): Likewise.
27312 (__DECL_SIMD_expf64): Likewise.
27313 (__DECL_SIMD_expf32x): Likewise.
27314 (__DECL_SIMD_expf64x): Likewise.
27315 (__DECL_SIMD_expf128x): Likewise.
27316 (__DECL_SIMD_powf16): Likewise.
27317 (__DECL_SIMD_powf32): Likewise.
27318 (__DECL_SIMD_powf64): Likewise.
27319 (__DECL_SIMD_powf32x): Likewise.
27320 (__DECL_SIMD_powf64x): Likewise.
27321 (__DECL_SIMD_powf128x): Likewise.
27322
27323 * stdlib/Versions (libc): Move entries for wcstof128 and
27324 wcstof128_l to ....
27325 * wcsmbs/Versions (libc): ... here.
27326 Include <float128-abi.h>.
27327
27328 2017-11-24 Florian Weimer <fweimer@redhat.com>
27329
27330 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27331 bits/mman-shared.h.
27332 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27333 <bits/mman-shared.h>.
27334 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27335 to ...
27336 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27337 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27338 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27339 <bits/mman-shared.h>.
27340
27341 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27342
27343 [BZ #22457]
27344 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27345 posix_memalign/free.
27346 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27347
27348 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27349
27350 [BZ #22469]
27351 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27352 and implement the collation rules for pl from CLDR on top of that.
27353 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27354 of locales to be built for testing.
27355 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27356
27357 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27358
27359 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27360 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27361 libm_alias_ldouble_other.
27362 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27363 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27364 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27365 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27366 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27367 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27368 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27369 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27370 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27371 libm_alias_ldouble_r.
27372 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27373 libm_alias_ldouble_other.
27374 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27375 (log10l): Likewise.
27376 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27377 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27378 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27379 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27380 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27381 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27382 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27383 (atan2l): Likewise.
27384 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27385 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27386 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27387 libm_alias_ldouble.
27388 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27389 (cosl): Likewise.
27390 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27391 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27392 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27393 (expl): Likewise.
27394 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27395 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27396 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27397 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27398 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27399 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27400 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27401 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27402 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27403 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27404 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27405 libm_alias_ldouble.
27406 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27407 libm_alias_ldouble_other.
27408 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27409 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27410 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27411 libm_alias_ldouble.
27412 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27413 libm_alias_ldouble_other.
27414 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27415 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27416 * sysdeps/ia64/fpu/w_lgammal_main.c
27417 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27418 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27419
27420 2017-11-23 Florian Weimer <fweimer@redhat.com>
27421
27422 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27423 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27424 alike. Remove freeres marker.
27425 * malloc/arena.c (arena_thread_freeres): Call
27426 tcache_thread_shutdown.
27427
27428 2017-11-23 Florian Weimer <fweimer@redhat.com>
27429
27430 [BZ #22459]
27431 Export nscd hash function as __nss_hash.
27432 * include/nss.h (__nss_hash): Declare.
27433 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27434 symbol.
27435 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27436 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27437 of __nscd_hash.
27438 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27439 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27440 * nss/Makefiles (routines): Add nss_hash.
27441 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27442 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27443 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27444 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27445
27446 2017-11-23 Florian Weimer <fweimer@redhat.com>
27447
27448 [BZ #22478]
27449 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27450 Return error code, not -1.
27451 * signal/tst-sigwait-eintr.c: New file.
27452 * signal/Makefile (tests): Add tst-sigwait-eintr.
27453
27454 2017-11-23 Florian Weimer <fweimer@redhat.com>
27455
27456 Linux: Add memfd_create system call wrapper
27457 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27458 tst-memfd_create.
27459 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27460 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27461 [__USE_GNU] (memfd_create): Declare.
27462 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27463 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27464 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27465 * sysdeps/unix/sysv/linux/**.abilist: Update.
27466 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27467
27468 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27469
27470 * localedata/gen-locale.sh: Fix typo in variable name.
27471
27472 * resolv/res_debug.c (p_secstodate): Condition definition on
27473 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27474 directly as __p_secstodate, and as a compat symbol. Do not use
27475 libresolv_hidden_def.
27476 * resolv/resolv.h (p_secstodate): Remove macro and function
27477 declaration.
27478 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27479 using p_secstodate.
27480 * include/resolv.h (__p_secstodate): Do not use
27481 libresolv_hidden_proto.
27482 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27483 (tests-internal): ... here.
27484 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27485 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27486 and declare and use __p_secstodate and use compat_symbol_reference
27487 in that case.
27488 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27489 implementation returning 77.
27490
27491 [BZ #22463]
27492 * resolv/res_debug.c: Include <libc-diag.h>.
27493 (p_secstodate): Assert time_t at least as wide as u_long. On
27494 overflow, use integer seconds since the epoch as output, or use
27495 "<overflow>" as output and set errno to EOVERFLOW if integer
27496 seconds since the epoch would be 14 or more characters.
27497 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27498 for sprintf call.
27499 * resolv/tst-p_secstodate.c: New file.
27500 * resolv/Makefile (tests): Add tst-p_secstodate.
27501 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27502
27503 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27504 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27505 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27506
27507 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27508
27509 * posix/regcomp.c (init_word_char): Add comments.
27510
27511 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27512
27513 [BZ #22447]
27514 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27515 strlen to compute length of ut_user and set trailing NUL byte of
27516 result explicitly.
27517
27518 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27519
27520 [BZ #15537]
27521 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27522 using “copy "iso14651_t1"” and then implementing the
27523 collation rules for lv from CLDR on top of that.
27524 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27525 of locales to be built for testing.
27526 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27527 sorting.
27528
27529 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27530
27531 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27532 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27533 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27534 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27535 [__USE_MISC] (MADV_HWPOISON): New macro.
27536 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27537
27538 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27539
27540 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27541 -Wmissing-braces on GCC 4.9.
27542
27543 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27544
27545 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27546 * sysdeps/s390/s390-32/start.S (_start): Likewise
27547 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27548 (thread_start): Likewise.
27549 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27550 (thread_start): Likewise.
27551 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27552 (__makecontext_ret): Likewise.
27553 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27554 (__makecontext_ret): Likewise.
27555
27556 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27557
27558 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27559 __wcschrnul): Remove attribute_hidden.
27560
27561 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27562
27563 regex: don't assume uint64_t or uint32_t
27564 This avoids -Werror=overflow errors for 32-bit systems in
27565 the 64-bit case. Problem reported by Joseph Myers in:
27566 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27567 Also, when this code is used in Gnulib it ports to platforms
27568 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27569 them, and on some 32-bit compilers there is no uint64_t.
27570 Problem reported by Gianluigi Tiesi in:
27571 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27572 * posix/regcomp.c (init_word_char): Don't assume that the types
27573 uint64_t and uint32_t exist. Adapted from Gnulib patch
27574 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27575 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27576
27577 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27578
27579 * sysdeps/aarch64/memset-reg.h: New file.
27580 * sysdeps/aarch64/memset.S: Use it.
27581 (__memset): Rename to MEMSET macro.
27582 [ZVA_MACRO]: Use zva_macro.
27583 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27584 Add memset_generic and memset_falkor.
27585 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27586 (__libc_ifunc_impl_list): Add memset ifuncs.
27587 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27588 local variable zva_size.
27589 * sysdeps/aarch64/multiarch/memset.c: New file.
27590 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27591 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27592 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27593 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27594 (DCZID_DZP_MASK): New macro.
27595 (DCZID_BS_MASK): Likewise.
27596 (init_cpu_features): Read and set zva_size.
27597 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27598 (struct cpu_features): New member zva_size.
27599
27600 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27601 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27602 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27603
27604 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27605 backwards. Fix timing computation.
27606 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27607 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27608 on memset by N at a time. Fix timing computation.
27609
27610 2017-11-20 Florian Weimer <fweimer@redhat.com>
27611
27612 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27613 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27614
27615 2017-11-19 Florian Weimer <fweimer@redhat.com>
27616
27617 manual: Document mprotect
27618 * manual/memory.texi (Memory Protection): New section.
27619 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27620 documentation of PROT_* flags and reference the Memory Protection
27621 section instead.
27622
27623 2017-11-19 Florian Weimer <fweimer@redhat.com>
27624
27625 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27626 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27627 (Scatter-Gather): ... to here. Remove misleading comment.
27628
27629 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27630
27631 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27632 style.
27633
27634 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27635 when /proc/<pid>/setgroups does not exist.
27636
27637 2017-11-18 Florian Weimer <fweimer@redhat.com>
27638
27639 * sysdeps/unix/sysv/linux/tst-ttyname.c
27640 (become_root_in_mount_ns): Remove.
27641 (do_in_chroot_1): Call support_enter_mount_namespace.
27642 (do_in_chroot_2): Likewise.
27643 (do_test): Call support_become_root early.
27644
27645 2017-11-18 Florian Weimer <fweimer@redhat.com>
27646
27647 * support/namespace.h (support_enter_mount_namespace): Declare.
27648 * support/support_enter_mount_namespace.c: New file.
27649 * support/Makefile (libsupport-routines): Add
27650 support_enter_mount_namespace.
27651
27652 2017-11-18 Florian Weimer <fweimer@redhat.com>
27653
27654 * support/temp_file.c (support_create_temp_directory): Use
27655 test_dir and do not rely on the presence of the XXXXXX suffix.
27656 * support/temp_file.h (support_create_temp_directory): Update
27657 comment.
27658 * support/tst-xreadlink.c (do_test): Adjust.
27659 * support/support_chroot.c (support_chroot_create): Likewise.
27660
27661 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27662
27663 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27664 macro.
27665 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27666 htm-no-suspend.
27667
27668 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27669
27670 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27671 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27672 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27673 (ceill): Define using libm_alias_ldouble.
27674 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27675 <libm-alias-ldouble.h>.
27676 (copysignl): Define using libm_alias_ldouble.
27677 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27678 (fabsl): Define using libm_alias_ldouble.
27679 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27680 (floorl): Define using libm_alias_ldouble.
27681 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27682 (fmaxl): Define using libm_alias_ldouble.
27683 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27684 (fminl): Define using libm_alias_ldouble.
27685 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27686 (llrintl): Define using libm_alias_ldouble.
27687 (lrintl): Likewise.
27688 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27689 <libm-alias-ldouble.h>.
27690 (nearbyintl): Define using libm_alias_ldouble.
27691 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27692 (truncl): Define using libm_alias_ldouble.
27693 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27694 <libm-alias-ldouble.h>.
27695 (lrintl): Define using libm_alias_ldouble.
27696
27697 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27698 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27699 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27700 (asinhl): Define using libm_alias_ldouble.
27701 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27702 (atanl): Define using libm_alias_ldouble.
27703 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27704 (cbrtl): Define using libm_alias_ldouble.
27705 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27706 (ceill): Define using libm_alias_ldouble.
27707 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27708 (copysignl): Define using libm_alias_ldouble.
27709 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27710 (fabsl): Define using libm_alias_ldouble.
27711 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27712 (floorl): Define using libm_alias_ldouble.
27713 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27714 (fmaxl): Define using libm_alias_ldouble.
27715 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27716 (fminl): Define using libm_alias_ldouble.
27717 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27718 (frexpl): Define using libm_alias_ldouble.
27719 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27720 (llrintl): Define using libm_alias_ldouble.
27721 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27722 (logbl): Define using libm_alias_ldouble.
27723 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27724 (lrintl): Define using libm_alias_ldouble.
27725 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27726 (nearbyintl): Define using libm_alias_ldouble.
27727 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27728 (nextafterl): Define using libm_alias_ldouble.
27729 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27730 (remquol): Define using libm_alias_ldouble.
27731 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27732 (rintl): Define using libm_alias_ldouble.
27733 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27734 (truncl): Define using libm_alias_ldouble.
27735 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27736 (fmaxl): Define using libm_alias_ldouble.
27737 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27738 (fminl): Define using libm_alias_ldouble.
27739
27740 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27741 to C syntax instead of availability and properties of types.
27742 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27743 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27744 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27745 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27746 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27747 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27748
27749 2017-11-17 Florian Weimer <fweimer@redhat.com>
27750
27751 support_become_root: Enable file creation in namespaces.
27752 * support/support_become_root.c (setup_mapping): New function.
27753 (support_become_root): Call it.
27754
27755 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27756
27757 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27758 macro.
27759
27760 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27761
27762 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27763 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27764
27765 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27766
27767 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27768
27769 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27770 version to 4.14.
27771
27772 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27773
27774 * INSTALL: Fix botched up regeneration.
27775
27776 * NEWS: Update sourceare link to https.
27777 * configure.ac: Likewise.
27778 * crypt/md5test-giant.c: Likewise.
27779 * dlfcn/bug-atexit1.c: Likewise.
27780 * dlfcn/bug-atexit2.c: Likewise.
27781 * localedata/README: Likewise.
27782 * malloc/tst-mallocfork.c: Likewise.
27783 * manual/install.texi: Likewise.
27784 * nptl/tst-pthread-getattr.c: Likewise.
27785 * stdio-common/tst-fgets.c: Likewise.
27786 * stdio-common/tst-fwrite.c: Likewise.
27787 * sunrpc/Makefile: Likewise.
27788 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27789 * wcsmbs/tst-mbrtowc2.c: Likewise.
27790 * configure: Regenerate.
27791 * INSTALL: Regenerate.
27792
27793 2017-11-15 Martin Sebor <msebor@redhat.com>
27794
27795 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27796 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27797 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27798
27799 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27800
27801 [BZ #22145]
27802 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27803 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27804
27805 [BZ #22145]
27806 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27807 Defer is_pty check until end of the function.
27808 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27809
27810 [BZ #22145]
27811 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27812 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27813 (ttyname): Likewise.
27814 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27815 (__ttyname_r): Likewise.
27816
27817 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27818 int to bool.
27819
27820 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27821
27822 * manual/terminal.texi (Is It a Terminal):
27823 Mention ENODEV for ttyname and ttyname_r.
27824
27825 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27826
27827 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27828 constant and macro.
27829
27830 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27831 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27832 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27833 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27834 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27835 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27836
27837 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27838
27839 * signal/sigrelse.c (sigrelse): Optimize implementation.
27840
27841 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27842 (__sigpause): Rely on __sigsuspend to implement single thread
27843 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27844
27845 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27846
27847 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27848 kernel version to 4.14.
27849
27850 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27851
27852 [BZ #22442]
27853 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27854 Check if ifname is too long.
27855
27856 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27857
27858 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27859
27860 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27861
27862 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27863 was accidentally lost.
27864
27865 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27866
27867 * localedata/locales/az_IR: Add standard copyright header.
27868
27869 2017-11-15 Florian Weimer <fweimer@redhat.com>
27870
27871 [BZ #22439]
27872 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27873 not just the top one. Output a new "subheaps" statistic.
27874
27875 2017-11-15 Florian Weimer <fweimer@redhat.com>
27876
27877 [BZ #22408]
27878 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27879 under the per-arena lock.
27880 * malloc/Makefile (tests): Add tst-malloc_info.
27881 (tst-malloc_info): Link with libpthread.
27882 * malloc/tst-malloc_info.c: New file.
27883
27884 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27885
27886 [BZ #21660]
27887 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27888 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27889 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27890 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27891 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27892 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27893 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27894 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27895 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27896 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27897 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27898 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27899 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27900 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27901 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27902 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27903 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27904 (__floating_type): Likewise.
27905 (__real_integer_type): Likewise.
27906 (__complex_integer_type): Likewise.
27907 (__expr_is_real): Likewise.
27908 (__tgmath_real_type_sub): Likewise.
27909 (__tgmath_real_type): Likewise.
27910 (__tgmath_complex_type_sub): Likewise.
27911 (__tgmath_complex_type): Likewise.
27912 (__TGMATH_F128): Likewise.
27913 (__TGMATH_CF128): Likewise.
27914 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27915 new macros.
27916 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27917 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27918 Likewise.
27919 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27920 Likewise.
27921 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27922 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27923 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27924 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27925 Likewise.
27926 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27927 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27928 Likewise.
27929 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27930 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27931 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27932 Likewise.
27933 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27934 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27935 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27936 (cimag): Likewise.
27937 (creal): Likewise.
27938
27939 2017-11-14 Joseph Myers <joseph@codesourcery.com>
27940
27941 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27942 for stpncpy calls for GCC 8.
27943 (test_strncat): Disable -Wstringop-truncation warning for strncat
27944 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27945 strncat call for GCC 7.
27946 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27947 calls for GCC 8.
27948 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27949 trailing NUL.
27950
27951 * string/bug-strncat1.c: Include <libc-diag.h>.
27952 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27953
27954 2017-11-13 Claude Paroz <claude@2xlibre.net>
27955
27956 [BZ #22387]
27957 * localedata/locales/aa_DJ: Improved readibility by replacing
27958 <Uxxxx> sequences in the ASCII printable range by their ASCII
27959 character equivalents.
27960 * localedata/locales/aa_ER: Likewise.
27961 * localedata/locales/aa_ER@saaho: Likewise.
27962 * localedata/locales/aa_ET: Likewise.
27963 * localedata/locales/af_ZA: Likewise.
27964 * localedata/locales/agr_PE: Likewise.
27965 * localedata/locales/ak_GH: Likewise.
27966 * localedata/locales/am_ET: Likewise.
27967 * localedata/locales/anp_IN: Likewise.
27968 * localedata/locales/ar_AE: Likewise.
27969 * localedata/locales/ar_BH: Likewise.
27970 * localedata/locales/ar_DZ: Likewise.
27971 * localedata/locales/ar_EG: Likewise.
27972 * localedata/locales/ar_IN: Likewise.
27973 * localedata/locales/ar_IQ: Likewise.
27974 * localedata/locales/ar_JO: Likewise.
27975 * localedata/locales/ar_KW: Likewise.
27976 * localedata/locales/ar_LB: Likewise.
27977 * localedata/locales/ar_LY: Likewise.
27978 * localedata/locales/ar_MA: Likewise.
27979 * localedata/locales/ar_OM: Likewise.
27980 * localedata/locales/ar_QA: Likewise.
27981 * localedata/locales/ar_SA: Likewise.
27982 * localedata/locales/ar_SD: Likewise.
27983 * localedata/locales/ar_SS: Likewise.
27984 * localedata/locales/ar_SY: Likewise.
27985 * localedata/locales/ar_TN: Likewise.
27986 * localedata/locales/ar_YE: Likewise.
27987 * localedata/locales/as_IN: Likewise.
27988 * localedata/locales/ast_ES: Likewise.
27989 * localedata/locales/ayc_PE: Likewise.
27990 * localedata/locales/az_AZ: Likewise.
27991 * localedata/locales/az_IR: Likewise.
27992 * localedata/locales/be_BY: Likewise.
27993 * localedata/locales/be_BY@latin: Likewise.
27994 * localedata/locales/bem_ZM: Likewise.
27995 * localedata/locales/ber_DZ: Likewise.
27996 * localedata/locales/ber_MA: Likewise.
27997 * localedata/locales/bg_BG: Likewise.
27998 * localedata/locales/bhb_IN: Likewise.
27999 * localedata/locales/bho_IN: Likewise.
28000 * localedata/locales/bi_VU: Likewise.
28001 * localedata/locales/bn_BD: Likewise.
28002 * localedata/locales/bn_IN: Likewise.
28003 * localedata/locales/bo_CN: Likewise.
28004 * localedata/locales/bo_IN: Likewise.
28005 * localedata/locales/br_FR: Likewise.
28006 * localedata/locales/brx_IN: Likewise.
28007 * localedata/locales/bs_BA: Likewise.
28008 * localedata/locales/byn_ER: Likewise.
28009 * localedata/locales/ca_AD: Likewise.
28010 * localedata/locales/ca_ES: Likewise.
28011 * localedata/locales/ca_FR: Likewise.
28012 * localedata/locales/ca_IT: Likewise.
28013 * localedata/locales/ce_RU: Likewise.
28014 * localedata/locales/chr_US: Likewise.
28015 * localedata/locales/cmn_TW: Likewise.
28016 * localedata/locales/crh_UA: Likewise.
28017 * localedata/locales/cs_CZ: Likewise.
28018 * localedata/locales/csb_PL: Likewise.
28019 * localedata/locales/cv_RU: Likewise.
28020 * localedata/locales/cy_GB: Likewise.
28021 * localedata/locales/da_DK: Likewise.
28022 * localedata/locales/de_AT: Likewise.
28023 * localedata/locales/de_BE: Likewise.
28024 * localedata/locales/de_CH: Likewise.
28025 * localedata/locales/de_DE: Likewise.
28026 * localedata/locales/de_IT: Likewise.
28027 * localedata/locales/de_LI: Likewise.
28028 * localedata/locales/de_LU: Likewise.
28029 * localedata/locales/doi_IN: Likewise.
28030 * localedata/locales/dv_MV: Likewise.
28031 * localedata/locales/dz_BT: Likewise.
28032 * localedata/locales/el_CY: Likewise.
28033 * localedata/locales/el_GR: Likewise.
28034 * localedata/locales/en_AG: Likewise.
28035 * localedata/locales/en_AU: Likewise.
28036 * localedata/locales/en_BW: Likewise.
28037 * localedata/locales/en_CA: Likewise.
28038 * localedata/locales/en_DK: Likewise.
28039 * localedata/locales/en_GB: Likewise.
28040 * localedata/locales/en_HK: Likewise.
28041 * localedata/locales/en_IE: Likewise.
28042 * localedata/locales/en_IL: Likewise.
28043 * localedata/locales/en_IN: Likewise.
28044 * localedata/locales/en_NG: Likewise.
28045 * localedata/locales/en_NZ: Likewise.
28046 * localedata/locales/en_PH: Likewise.
28047 * localedata/locales/en_SG: Likewise.
28048 * localedata/locales/en_US: Likewise.
28049 * localedata/locales/en_ZA: Likewise.
28050 * localedata/locales/en_ZM: Likewise.
28051 * localedata/locales/en_ZW: Likewise.
28052 * localedata/locales/eo: Likewise.
28053 * localedata/locales/es_AR: Likewise.
28054 * localedata/locales/es_BO: Likewise.
28055 * localedata/locales/es_CL: Likewise.
28056 * localedata/locales/es_CO: Likewise.
28057 * localedata/locales/es_CR: Likewise.
28058 * localedata/locales/es_CU: Likewise.
28059 * localedata/locales/es_DO: Likewise.
28060 * localedata/locales/es_EC: Likewise.
28061 * localedata/locales/es_ES: Likewise.
28062 * localedata/locales/es_GT: Likewise.
28063 * localedata/locales/es_HN: Likewise.
28064 * localedata/locales/es_MX: Likewise.
28065 * localedata/locales/es_NI: Likewise.
28066 * localedata/locales/es_PA: Likewise.
28067 * localedata/locales/es_PE: Likewise.
28068 * localedata/locales/es_PR: Likewise.
28069 * localedata/locales/es_PY: Likewise.
28070 * localedata/locales/es_SV: Likewise.
28071 * localedata/locales/es_US: Likewise.
28072 * localedata/locales/es_UY: Likewise.
28073 * localedata/locales/es_VE: Likewise.
28074 * localedata/locales/et_EE: Likewise.
28075 * localedata/locales/eu_ES: Likewise.
28076 * localedata/locales/eu_ES@euro: Likewise.
28077 * localedata/locales/fa_IR: Likewise.
28078 * localedata/locales/ff_SN: Likewise.
28079 * localedata/locales/fi_FI: Likewise.
28080 * localedata/locales/fil_PH: Likewise.
28081 * localedata/locales/fo_FO: Likewise.
28082 * localedata/locales/fr_BE: Likewise.
28083 * localedata/locales/fr_CA: Likewise.
28084 * localedata/locales/fr_CH: Likewise.
28085 * localedata/locales/fr_FR: Likewise.
28086 * localedata/locales/fr_LU: Likewise.
28087 * localedata/locales/fur_IT: Likewise.
28088 * localedata/locales/fy_DE: Likewise.
28089 * localedata/locales/fy_NL: Likewise.
28090 * localedata/locales/ga_IE: Likewise.
28091 * localedata/locales/gd_GB: Likewise.
28092 * localedata/locales/gez_ER: Likewise.
28093 * localedata/locales/gez_ET: Likewise.
28094 * localedata/locales/gl_ES: Likewise.
28095 * localedata/locales/gu_IN: Likewise.
28096 * localedata/locales/gv_GB: Likewise.
28097 * localedata/locales/ha_NG: Likewise.
28098 * localedata/locales/hak_TW: Likewise.
28099 * localedata/locales/he_IL: Likewise.
28100 * localedata/locales/hi_IN: Likewise.
28101 * localedata/locales/hif_FJ: Likewise.
28102 * localedata/locales/hne_IN: Likewise.
28103 * localedata/locales/hr_HR: Likewise.
28104 * localedata/locales/hsb_DE: Likewise.
28105 * localedata/locales/ht_HT: Likewise.
28106 * localedata/locales/hu_HU: Likewise.
28107 * localedata/locales/hy_AM: Likewise.
28108 * localedata/locales/i18n: Likewise.
28109 * localedata/locales/ia_FR: Likewise.
28110 * localedata/locales/id_ID: Likewise.
28111 * localedata/locales/ig_NG: Likewise.
28112 * localedata/locales/ik_CA: Likewise.
28113 * localedata/locales/is_IS: Likewise.
28114 * localedata/locales/it_CH: Likewise.
28115 * localedata/locales/it_IT: Likewise.
28116 * localedata/locales/iu_CA: Likewise.
28117 * localedata/locales/ja_JP: Likewise.
28118 * localedata/locales/ka_GE: Likewise.
28119 * localedata/locales/kk_KZ: Likewise.
28120 * localedata/locales/kl_GL: Likewise.
28121 * localedata/locales/kn_IN: Likewise.
28122 * localedata/locales/ko_KR: Likewise.
28123 * localedata/locales/kok_IN: Likewise.
28124 * localedata/locales/ks_IN: Likewise.
28125 * localedata/locales/ks_IN@devanagari: Likewise.
28126 * localedata/locales/ku_TR: Likewise.
28127 * localedata/locales/kw_GB: Likewise.
28128 * localedata/locales/ky_KG: Likewise.
28129 * localedata/locales/lb_LU: Likewise.
28130 * localedata/locales/lg_UG: Likewise.
28131 * localedata/locales/li_BE: Likewise.
28132 * localedata/locales/li_NL: Likewise.
28133 * localedata/locales/lij_IT: Likewise.
28134 * localedata/locales/ln_CD: Likewise.
28135 * localedata/locales/lo_LA: Likewise.
28136 * localedata/locales/lt_LT: Likewise.
28137 * localedata/locales/lv_LV: Likewise.
28138 * localedata/locales/lzh_TW: Likewise.
28139 * localedata/locales/mag_IN: Likewise.
28140 * localedata/locales/mai_IN: Likewise.
28141 * localedata/locales/mg_MG: Likewise.
28142 * localedata/locales/mhr_RU: Likewise.
28143 * localedata/locales/mi_NZ: Likewise.
28144 * localedata/locales/mk_MK: Likewise.
28145 * localedata/locales/ml_IN: Likewise.
28146 * localedata/locales/mn_MN: Likewise.
28147 * localedata/locales/mni_IN: Likewise.
28148 * localedata/locales/mr_IN: Likewise.
28149 * localedata/locales/ms_MY: Likewise.
28150 * localedata/locales/mt_MT: Likewise.
28151 * localedata/locales/my_MM: Likewise.
28152 * localedata/locales/nan_TW: Likewise.
28153 * localedata/locales/nan_TW@latin: Likewise.
28154 * localedata/locales/nb_NO: Likewise.
28155 * localedata/locales/nds_DE: Likewise.
28156 * localedata/locales/nds_NL: Likewise.
28157 * localedata/locales/ne_NP: Likewise.
28158 * localedata/locales/nhn_MX: Likewise.
28159 * localedata/locales/niu_NU: Likewise.
28160 * localedata/locales/niu_NZ: Likewise.
28161 * localedata/locales/nl_AW: Likewise.
28162 * localedata/locales/nl_BE: Likewise.
28163 * localedata/locales/nl_NL: Likewise.
28164 * localedata/locales/nn_NO: Likewise.
28165 * localedata/locales/nr_ZA: Likewise.
28166 * localedata/locales/nso_ZA: Likewise.
28167 * localedata/locales/oc_FR: Likewise.
28168 * localedata/locales/om_ET: Likewise.
28169 * localedata/locales/om_KE: Likewise.
28170 * localedata/locales/or_IN: Likewise.
28171 * localedata/locales/os_RU: Likewise.
28172 * localedata/locales/pa_IN: Likewise.
28173 * localedata/locales/pa_PK: Likewise.
28174 * localedata/locales/pap_AW: Likewise.
28175 * localedata/locales/pap_CW: Likewise.
28176 * localedata/locales/pl_PL: Likewise.
28177 * localedata/locales/ps_AF: Likewise.
28178 * localedata/locales/pt_BR: Likewise.
28179 * localedata/locales/pt_PT: Likewise.
28180 * localedata/locales/quz_PE: Likewise.
28181 * localedata/locales/raj_IN: Likewise.
28182 * localedata/locales/ro_RO: Likewise.
28183 * localedata/locales/ru_RU: Likewise.
28184 * localedata/locales/ru_UA: Likewise.
28185 * localedata/locales/rw_RW: Likewise.
28186 * localedata/locales/sa_IN: Likewise.
28187 * localedata/locales/sat_IN: Likewise.
28188 * localedata/locales/sc_IT: Likewise.
28189 * localedata/locales/sd_IN: Likewise.
28190 * localedata/locales/sd_IN@devanagari: Likewise.
28191 * localedata/locales/se_NO: Likewise.
28192 * localedata/locales/sgs_LT: Likewise.
28193 * localedata/locales/shs_CA: Likewise.
28194 * localedata/locales/si_LK: Likewise.
28195 * localedata/locales/sid_ET: Likewise.
28196 * localedata/locales/sk_SK: Likewise.
28197 * localedata/locales/sl_SI: Likewise.
28198 * localedata/locales/sm_WS: Likewise.
28199 * localedata/locales/so_DJ: Likewise.
28200 * localedata/locales/so_ET: Likewise.
28201 * localedata/locales/so_KE: Likewise.
28202 * localedata/locales/so_SO: Likewise.
28203 * localedata/locales/sq_AL: Likewise.
28204 * localedata/locales/sq_MK: Likewise.
28205 * localedata/locales/sr_ME: Likewise.
28206 * localedata/locales/sr_RS: Likewise.
28207 * localedata/locales/sr_RS@latin: Likewise.
28208 * localedata/locales/ss_ZA: Likewise.
28209 * localedata/locales/st_ZA: Likewise.
28210 * localedata/locales/sv_FI: Likewise.
28211 * localedata/locales/sv_SE: Likewise.
28212 * localedata/locales/sw_KE: Likewise.
28213 * localedata/locales/sw_TZ: Likewise.
28214 * localedata/locales/szl_PL: Likewise.
28215 * localedata/locales/ta_IN: Likewise.
28216 * localedata/locales/ta_LK: Likewise.
28217 * localedata/locales/tcy_IN: Likewise.
28218 * localedata/locales/te_IN: Likewise.
28219 * localedata/locales/tg_TJ: Likewise.
28220 * localedata/locales/th_TH: Likewise.
28221 * localedata/locales/the_NP: Likewise.
28222 * localedata/locales/ti_ER: Likewise.
28223 * localedata/locales/ti_ET: Likewise.
28224 * localedata/locales/tig_ER: Likewise.
28225 * localedata/locales/tk_TM: Likewise.
28226 * localedata/locales/tl_PH: Likewise.
28227 * localedata/locales/tn_ZA: Likewise.
28228 * localedata/locales/to_TO: Likewise.
28229 * localedata/locales/tpi_PG: Likewise.
28230 * localedata/locales/tr_CY: Likewise.
28231 * localedata/locales/tr_TR: Likewise.
28232 * localedata/locales/ts_ZA: Likewise.
28233 * localedata/locales/tt_RU: Likewise.
28234 * localedata/locales/tt_RU@iqtelif: Likewise.
28235 * localedata/locales/ug_CN: Likewise.
28236 * localedata/locales/uk_UA: Likewise.
28237 * localedata/locales/unm_US: Likewise.
28238 * localedata/locales/ur_IN: Likewise.
28239 * localedata/locales/ur_PK: Likewise.
28240 * localedata/locales/uz_UZ: Likewise.
28241 * localedata/locales/uz_UZ@cyrillic: Likewise.
28242 * localedata/locales/ve_ZA: Likewise.
28243 * localedata/locales/vi_VN: Likewise.
28244 * localedata/locales/wa_BE: Likewise.
28245 * localedata/locales/wae_CH: Likewise.
28246 * localedata/locales/wal_ET: Likewise.
28247 * localedata/locales/wo_SN: Likewise.
28248 * localedata/locales/xh_ZA: Likewise.
28249 * localedata/locales/yi_US: Likewise.
28250 * localedata/locales/yo_NG: Likewise.
28251 * localedata/locales/yue_HK: Likewise.
28252 * localedata/locales/yuw_PG: Likewise.
28253 * localedata/locales/zh_CN: Likewise.
28254 * localedata/locales/zh_HK: Likewise.
28255 * localedata/locales/zh_SG: Likewise.
28256 * localedata/locales/zh_TW: Likewise.
28257 * localedata/locales/zu_ZA: Likewise.
28258
28259 2017-11-13 Florian Weimer <fweimer@redhat.com>
28260
28261 * support/next_to_fault.h, support/next_to_fault.c: New files.
28262 * support/Makefile (libsupport-routines): Add next_to_fault.
28263 * resolv/tst-inet_pton.c (struct next_to_fault)
28264 (next_to_fault_allocate, next_to_fault_free): Remove.
28265 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28266
28267 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28268
28269 * elf/dl-support.c: Include <dl-procruntime.c>.
28270 * include/link.h: Include <link_map.h>.
28271 * sysdeps/generic/dl-procruntime.c: New file.
28272 * sysdeps/generic/link_map.h: Likewise.
28273 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28274 the writable ld.so namespace.
28275
28276 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28277
28278 timezone: pacify GCC -Wstringop-truncation
28279 Problem reported by Martin Sebor in:
28280 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28281 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28282
28283 2017-11-12 Florian Weimer <fweimer@redhat.com>
28284
28285 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28286 tst-xreadlink.
28287 (tests): Add tst-xreadlink.
28288 * support/support.h (xstrndup): Declare.
28289 * support/xunistd.h (xunlink, xreadlink): Declare.
28290 * support/temp_file.h (support_create_temp_directory): Declare.
28291 * support/temp_file.c (support_create_temp_directory): New function.
28292 * support/support_chroot.c (support_chroot_create): Use it.
28293 * support/xreadlink.c: New file.
28294 * support/xstrndup.c: Likewise.
28295 * support/xunlink.c: Likewise.
28296 * support/tst-xreadlink.c: Likewise.
28297
28298 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28299
28300 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28301
28302 2017-11-11 Florian Weimer <fweimer@redhat.com>
28303
28304 [BZ #22409]
28305 [BZ #22412]
28306 * resolv/res_comp.c (printable_string, binary_hnok)
28307 (binary_leading_dash): New functions.
28308 (res_hnok): Reimplement using these functions and ns_name_pton.
28309 (res_ownok): Likewise.
28310 (res_mailok): Reimplement using printable_string, ns_name_pton and
28311 binary_hnok.
28312 (res_dnok): Reimplement using printable_string and ns_name_pton.
28313 * resolv/tst-res_hnok.c (tests): Add additional tests.
28314 (LETTERDIGITS, PRINTABLE): Define.
28315 (do_test): Adjust one_char results.
28316
28317 2017-11-11 Florian Weimer <fweimer@redhat.com>
28318
28319 [BZ #22413]
28320 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28321 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28322
28323 2017-11-11 Florian Weimer <fweimer@redhat.com>
28324
28325 * resolv/tst-ns_name_pton.c: New file.
28326 * resolv/Makefile (tests): Add tst-ns_name_pton.
28327 (tst-ns_name_pton): Link against libresolv.
28328
28329 2017-11-11 Florian Weimer <fweimer@redhat.com>
28330
28331 * resolv/tst-res_hnok.c: New file.
28332 * resolv/Makefile (tests): Add tst-res_hnok.
28333 (tst-res_hnok): Link against libresolv.
28334
28335 2017-11-11 Florian Weimer <fweimer@redhat.com>
28336
28337 * resolv/tst-resolv-network.c: Use test framework instead explicit
28338 main function.
28339
28340 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28341
28342 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28343 <jmp_buf-macros.h>.
28344 [!_ISOMAC] (STR_HELPER): New.
28345 [!_ISOMAC] (STR): Likewise.
28346 [!_ISOMAC] (TEST_SIZE): Likewise.
28347 [!_ISOMAC] (TEST_ALIGN): Likewise.
28348 [!_ISOMAC] (TEST_OFFSET): Likewise.
28349 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28350 field offsets of jmp_buf as well as sigjmp_buf.
28351 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28352 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28353 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28354 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28355 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28356 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28357 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28358 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28359 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28360 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28361 Likewise.
28362 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28363 Likewise.
28364 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28366 Likewise.
28367 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28368 Likewise.
28369 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28370 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28371 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28372 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28373 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28374 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28375 Likewise.
28376 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28377 Likewise.
28378 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28379 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28380 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28381
28382 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28383
28384 * include/float.h
28385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28386 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28388 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28390 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28392 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28394 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28396 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28398 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28400 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28402 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28404 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28405 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28406 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28407 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28408 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28409 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28410 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28411 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28412 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28413 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28414 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28415 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28416 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28417 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28418 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28419 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28420 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28421 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28422 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28423 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28424 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28425 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28426 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28427 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28428 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28429 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28430 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28431 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28432 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28433 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28434 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28435 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28436 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28437 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28438 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28439 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28440 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28441 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28442 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28443 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28444 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28445 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28446 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28447 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28448 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28449 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28450 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28451 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28452 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28453 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28454 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28455 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28456 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28457 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28458 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28459 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28460 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28461 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28462 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28463 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28464 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28465 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28466 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28467 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28468 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28469 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28470 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28471 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28472 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28473
28474 * stdlib/tst-strtod.h (F16): New macro.
28475 (F32): Likewise.
28476 (F64): Likewise.
28477 (F32X): Likewise.
28478 (F64X): Likewise.
28479 (F128X): Likewise.
28480 (IF_FLOAT16): Likewise.
28481 (IF_FLOAT32): Likewise.
28482 (IF_FLOAT64): Likewise.
28483 (IF_FLOAT32X): Likewise.
28484 (IF_FLOAT64X): Likewise.
28485 (IF_FLOAT128X): Likewise.
28486 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28487 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28488 (STRTOD_TEST_FOREACH): Likewise.
28489 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28490 (CHOOSE_f64): Likewise.
28491 (CHOOSE_f32x): Likewise.
28492 (CHOOSE_f64x): Likewise.
28493
28494 2017-11-07 Andreas Schwab <schwab@suse.de>
28495
28496 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28497
28498 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28499
28500 [BZ #22403]
28501 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28502 to be escaped.
28503 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28504 to be escaped.
28505
28506 2017-11-07 Claude Paroz <claude@2xlibre.net>
28507
28508 [BZ #22403]
28509 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28510 to be escaped.
28511 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28512 to be escaped.
28513 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28514 to be escaped.
28515
28516 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28517
28518 [BZ #22298]
28519 * nptl/allocatestack.c (allocate_stack): Check if
28520 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28521 __PTHREAD_MUTEX_HAVE_PREV is defined.
28522 * nptl/descr.h (pthread): Likewise.
28523 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28524 Likewise.
28525 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28526 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28527 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28528 * sysdeps/nptl/bits/thread-shared-types.h
28529 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28530 defines.
28531 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28532 of __WORDSIZE for internal layout.
28533 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28534 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28535 instead of __WORDSIZE whether to use an union for __spins and __list
28536 fields.
28537 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28538 case.
28539 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28540 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28541 defines.
28542 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28543 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28544 Likewise.
28545 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28546 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28547 Likewise.
28548 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28549 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28550 Likewise.
28551 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28552 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28553 Likewise.
28554 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28555 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28556 Likewise.
28557 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28558 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28559 Likewise.
28560 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28561 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28562 Likewise.
28563 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28564 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28565 Likewise.
28566 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28567 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28568 Likewise.
28569 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28570 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28571 Likewise.
28572 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28573 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28574 Likewise.
28575 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28576 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28577 Likewise.
28578 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28579 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28580 Likewise.
28581 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28582 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28583 Likewise.
28584
28585 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28586 New macros.
28587 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28588 checks for expected input type size.
28589 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28590 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28591 Likewise.
28592 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28593 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28594 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28595 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28596 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28597 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28598 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28599 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28600 superflous runtime assert check.
28601 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28602 Likewise.
28603 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28604 Likewise.
28605 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28606 Likewise.
28607 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28608 Likewise.
28609 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28610 Likewise.
28611 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28612 Likewise.
28613 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28614 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28615 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28616 Likewise.
28617 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28618 Likewise.
28619 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28620 Likewise.
28621 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28622 Likewise.
28623 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28624 Likewise.
28625 * nptl/pthread_attr_setinheritsched.c
28626 (__pthread_attr_setinheritsched): Likewise.
28627 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28628 Likewise.
28629 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28630 Likewise.
28631 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28632 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28633 __old_pthread_attr_setstack): Likewise.
28634 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28635 Likewise.
28636 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28637 Likewise.
28638 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28639 Likewise.
28640 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28641 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28642 Likewise.
28643 * nptl/tst-typesizes.c: Remove file.
28644
28645 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28646 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28647 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28648 checks for internal pthread_mutex_t offsets.
28649 * sysdeps/aarch64/nptl/pthread-offsets.h
28650 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28651 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28652 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28653 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28654 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28655 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28656 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28657 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28658 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28659 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28660 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28661 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28662 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28663 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28664 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28665 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28666 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28667 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28668
28669 2017-11-07 Florian Weimer <fweimer@redhat.com>
28670
28671 * bits/mman-linux.h: Move ...
28672 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28673 comment.
28674 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28675 outdated comment.
28676
28677 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28678
28679 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28680 Redefine STRNLEN as __strnlen_power8.
28681
28682 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28683
28684 * signal/sighold.c (sighold): Optimize implementation.
28685
28686 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28687 __NR_rt_sigqueueinfo.
28688
28689 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28690 __sigtimedwait.
28691 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28692 assume __NR_rt_sigtimedwait.
28693 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28694 and add LIBC_CANCEL_HANDLED for cancellation marking.
28695 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28696
28697 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28698 (sysdeps_routines): Add memchr_noneon.
28699 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28700 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28701 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28702 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28703 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28704 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28705 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28706
28707 * sysdeps/arm/arm-ifunc.h: New file.
28708 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28709 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28710 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28711 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28712 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28713 (__memcpy_neon): Avoid create hidden alias.
28714 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28715 (__memcpy_vfp): Likewise.
28716 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28717 (sysdep_routines): Add memcpy_arm.
28718 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28719
28720 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28721
28722 [BZ #22362]
28723 * Makerules (make-link-multidir): New.
28724 * config.make.in (multidir): New.
28725 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28726 * configure: Regenerated.
28727 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28728 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28729 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28730 New target.
28731
28732 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28733
28734 [BZ #22402]
28735 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28736 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28737
28738 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28739
28740 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28741 to be escaped.
28742
28743 2017-11-04 Florian Weimer <fweimer@redhat.com>
28744
28745 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28746
28747 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28748
28749 * math/math.h [__HAVE_DISTINCT_FLOAT16
28750 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28751 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28752 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28753 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28754 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28755 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28756 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28757 (__MATH_TG_F32): New macro.
28758 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28759 (__MATH_TG_F64X): Likewise.
28760 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28761 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28762
28763 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28764
28765 * po/de.po: Update translations.
28766 * po/ru.po: Likewise.
28767
28768 2017-11-03 Florian Weimer <fweimer@redhat.com>
28769
28770 * manual/filesys.texi (Hard Links): Document linkat.
28771
28772 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28773
28774 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28775 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28776 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28777 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28778 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28779 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28780 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28781 the same as _Float128.
28782 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28783 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28784 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28785
28786 * stdlib/stdlib.h
28787 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28788 Declare.
28789 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28790 Likewise.
28791 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28792 Likewise.
28793 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28794 (strtof32x): Likewise.
28795 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28796 (strtof64x): Likewise.
28797 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28798 (strtof128x): Likewise.
28799 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28800 (strfromf16): Likewise.
28801 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28802 (strfromf32): Likewise.
28803 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28804 (strfromf64): Likewise.
28805 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28806 (strfromf32x): Likewise.
28807 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28808 (strfromf64x): Likewise.
28809 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28810 (strfromf128x): Likewise.
28811 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28812 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28813 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28814 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28815 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28816 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28817
28818 2017-11-03 Richard Henderson <rth@twiddle.net>
28819
28820 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28821
28822 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28823
28824 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28825
28826 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28827
28828 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28829 DT_TLSDESC_GOT initialization.
28830 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28831 (_dl_tlsdesc_resolve_hold): Likewise.
28832 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28833 (_dl_tlsdesc_resolve_hold): Likewise.
28834 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28835 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28836
28837 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28838
28839 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28840
28841 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28842
28843 [BZ #18572]
28844 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28845 non-lazily for R_ARM_TLS_DESC.
28846
28847 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28848
28849 [BZ #17078]
28850 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28851 R_ARM_TLS_DESC case.
28852 (elf_machine_lazy_rel): Remove the prelink check.
28853
28854 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28855
28856 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28857 DT_TLSDESC_GOT initialization.
28858 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28859 (_dl_tlsdesc_resolve_rela): Likewise.
28860 (_dl_tlsdesc_resolve_hold): Likewise.
28861 (_dl_tlsdesc_undefweak): Remove ldar.
28862 (_dl_tlsdesc_dynamic): Likewise.
28863 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28864 (_dl_tlsdesc_resolve_rela): Likewise.
28865 (_dl_tlsdesc_resolve_hold): Likewise.
28866 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28867 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28868 (_dl_tlsdesc_resolve_rela): Likewise.
28869 (_dl_tlsdesc_resolve_hold): Likewise.
28870
28871 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28872
28873 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28874 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28875
28876 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28877
28878 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28879 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28880
28881 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28882
28883 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28884 Declare.
28885 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28886 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28887 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28888 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28889 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28890 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28891 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28892 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28893 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28894 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28895 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28896
28897 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28898
28899 [BZ #22382]
28900 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28901 * localedata/locales/tpi_PG: Add standard header.
28902
28903 2017-11-02 Florian Weimer <fweimer@redhat.com>
28904
28905 test-errno-linux: quotactl can fail with EPERM in containers.
28906 * sysdeps/unix/sysv/linux/test-errno-linux.c
28907 (LIST, LIST_FORWARD): New macros.
28908 (check_error_in_list): New function.
28909 (test_wrp_rv): Accept list of permitted error codes.
28910 (test_wrp_rv2): Remove.
28911 (test_wrp): Call test_wrp_rv with list of error codes.
28912 (test_wrp2): Accept list of error codes.
28913 (do_test): Adjust. Allow EPERM for quotactl.
28914
28915 2017-11-02 Florian Weimer <fweimer@redhat.com>
28916
28917 * stdio-common/bug16.c (do_test): Use array_length.
28918 * stdio-common/errlist.c (_sys_nerr): Likewise.
28919 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28920 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28921 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28922 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28923 (do_test): Use array_length.
28924 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28925 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28926 * stdio-common/tst-printf-round.c (do_test): Likewise.
28927 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28928 (CHECK): Use array_length.
28929 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28930 * stdio-common/tstscanf.c (main): Likewise.
28931 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28932
28933 2017-11-02 Florian Weimer <fweimer@redhat.com>
28934
28935 Add array_length and array_end macros.
28936 * include/array_length.h: New file.
28937
28938 2017-11-02 Florian Weimer <fweimer@redhat.com>
28939
28940 [BZ #22332]
28941 * posix/tst-glob-tilde.c (do_noescape): New variable.
28942 (one_test): Process it.
28943 (do_test): Set do_noescape. Add unescaping test case.
28944
28945 2017-11-01 Joseph Myers <joseph@codesourcery.com>
28946
28947 * math/complex.h
28948 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28949 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28950 with appropriate macros defined and undefined.
28951 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28952 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28953 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28954 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28955 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28956 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28957 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28958 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28959 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28960 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28961
28962 * math/complex.h
28963 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28964 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28965 that for long double. Do not condition define and undefine of
28966 _Mdouble_complex_ on [__CFLOAT128].
28967
28968 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28969
28970 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28971 of <sysdeps/generic/sysdep.h>.
28972 (ALIGNARG): Removed.
28973 (ASM_SIZE_DIRECTIVE): Likewise.
28974 (ENTRY): Likewise.
28975 (END): Likewise.
28976 (ENTRY_CHK): Likewise.
28977 (END_CHK): Likewise.
28978 (syscall_error): Likewise.
28979 (mcount): Likewise.
28980 (PSEUDO_END): Likewise.
28981 (L): Likewise.
28982 (atom_text_section): Likewise.
28983 * sysdeps/x86/sysdep.h: New file.
28984 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28985 of <sysdeps/generic/sysdep.h>.
28986 (ALIGNARG): Removed.
28987 (ASM_SIZE_DIRECTIVE): Likewise.
28988 (ENTRY): Likewise.
28989 (END): Likewise.
28990 (ENTRY_CHK): Likewise.
28991 (END_CHK): Likewise.
28992 (syscall_error): Likewise.
28993 (mcount): Likewise.
28994 (PSEUDO_END): Likewise.
28995 (L): Likewise.
28996 (atom_text_section): Likewise.
28997
28998 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
28999
29000 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29001 category of LC_CTYPE set to "i18n:2012".
29002 * localedata/locales/i18n_ctype: Regenerate.
29003
29004 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29005
29006 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29007 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29008 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29009 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29010
29011 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29012 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29013 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29014 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29015
29016 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29017
29018 * math/complex.h
29019 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29020 New macro.
29021 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29022 Likewise.
29023 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29024 Likewise.
29025 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29026 (CMPLXF32X): Likewise.
29027 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29028 (CMPLXF64X): Likewise.
29029 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29030 (CMPLXF128X): Likewise.
29031
29032 * math/math.h
29033 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29034 (__MATH_EVAL_FMT2): Define to add 0.0f.
29035
29036 2017-10-31 Alan Modra <amodra@gmail.com>
29037
29038 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29039 include sysdep.h.
29040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29054 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29055 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29056 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29057 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29058 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29059 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29060 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29061 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29062 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29063 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29064 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29065 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29066 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29067 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29068 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29069 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29070 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29071 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29072 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29073 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29074 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29075 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29076 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29077 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29078 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29079 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29080 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29081 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29082 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29083 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29084 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29085 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29086 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29087 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29088 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29089 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29090 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29091 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29092 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29093 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29094 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29095 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29096 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29097 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29098 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29099 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29100 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29101 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29102 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29103 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29104 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29105 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29106 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29107 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29108 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29109
29110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29111 include sysdep.h and math_ldbl_opt.h.
29112
29113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29114 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29139
29140 2017-10-31 Alan Modra <amodra@gmail.com>
29141
29142 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29143 string/strncase_l.c, not string/strncase.c.
29144 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29145 (libc_hidden_def): Redefine.
29146
29147 2017-10-31 Alan Modra <amodra@gmail.com>
29148
29149 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29150 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29151 (__strcasecmp): Don't define.
29152
29153 2017-10-31 Alan Modra <amodra@gmail.com>
29154
29155 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29156 IS_IN (libc).
29157 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29158 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29159 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29160
29161 2017-10-31 Alan Modra <amodra@gmail.com>
29162
29163 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29164 USE_AS_STPNCPY.
29165
29166 2017-10-31 Alan Modra <amodra@gmail.com>
29167
29168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29169 Redefine only when SHARED.
29170
29171 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29172
29173 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29174 Include <bits/math-finite.h> with appropriate macros defined and
29175 undefined.
29176 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29177 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29178 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29179 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29180 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29181
29182 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29183 [!_Mlong_double_] (_Mlong_double_): Likewise.
29184 [!_Mfloat16_] (_Mfloat16_): Likewise.
29185 [!_Mfloat32_] (_Mfloat32_): Likewise.
29186 [!_Mfloat64_] (_Mfloat64_): Likewise.
29187 [!_Mfloat128_] (_Mfloat128_): Likewise.
29188 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29189 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29190 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29191 (_Mdouble_): Define without indirection through those macros.
29192 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29193 [!_Mfloat128_] (_Mfloat128_): Likewise.
29194 [_Mlong_double_] (_Mlong_double_): Likewise.
29195 (_Mdouble_): Define without indirection through those macros.
29196 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29197 not add -D_Mlong_double_=double.
29198 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29199 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29200
29201 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29202
29203 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29204
29205 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29206
29207 * sysdeps/x86/libc-start.c: Reformat.
29208
29209 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29210
29211 [BZ #22353]
29212 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29213 (1): Renamed to ...
29214 (L(Src0)): This.
29215 (L(Src1)): New.
29216 (L(Src2)): Likewise.
29217 (L(1)): Renamed to ...
29218 (L(Src3)): This.
29219
29220 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29221
29222 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29223 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29224 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29225 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29226 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29227 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29228 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29229 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29230 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29231 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29232 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29233 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29234 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29235 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29236 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29237 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29238 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29239 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29240 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29241 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29242 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29243 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29244 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29245 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29246 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29247 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29248 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29249 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29250 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29251 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29252 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29253 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29254 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29255 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29256 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29257 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29258 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29259 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29260 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29261 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29262 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29263 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29264 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29265 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29266 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29267 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29268 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29269 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29270 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29271 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29272 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29273 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29274 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29275 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29276 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29277 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29278 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29279 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29280 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29281 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29282 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29283 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29284 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29285 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29286 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29287 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29288
29289 2017-10-30 Florian Weimer <fweimer@redhat.com>
29290
29291 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29292 always defined.
29293 * io/tst-mkdirat.c (do_test): Likewise.
29294 * io/tst-mkfifoat.c (do_test): Likewise.
29295 * io/tst-mknodat.c (do_test): Likewise.
29296 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29297 * locale/programs/locale.c (select_dirs): Likewise.
29298 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29299 * posix/bug-glob2.c (my_readdir): Likewise.
29300 * posix/tst-dir.c (main): Likewise.
29301 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29302 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29303
29304 2017-10-30 Florian Weimer <fweimer@redhat.com>
29305
29306 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29307 just __USE_GNU.
29308
29309 2017-10-30 Florian Weimer <fweimer@redhat.com>
29310
29311 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29312 Convert to support/test-driver.c.
29313 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29314 New macro parameters.
29315 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29316 * posix/tst-gnuglob.c: New file.
29317 * posix/tst-gnuglob64.c: Likewise.
29318 * posix/Makefile (tests): Add tst-gnuglob64.
29319
29320 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29321
29322 [BZ #19485]
29323 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29324 and use a better translation for March in “mon”.
29325 * localedata/locales/csb_PL: Use more ASCII to improve the
29326 readability of the source.
29327
29328 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29329
29330 [BZ #13953]
29331 * localedata/locales/km_KH: Use ASCII as much
29332 as possible for better readability of the source and
29333 remove useless comments.
29334 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29335 was commented out and apparently wrong anyway because it was
29336 using Lao characters. If Buddhist era should be used
29337 for km_KH, a native speaker should write the correct formaat
29338 for Khmer.
29339 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29340 (According to CLDR, the first weekday for Cambodia is Sunday).
29341 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29342 (These were using Lao characters which must be wrong. If we get
29343 the correct data from a native speaker, we could add it back, until
29344 then it is better not to have name_mr and name_mrs at all than
29345 having it wrong).
29346
29347 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29348
29349 * locale/loadlocale.c: Correct size of
29350 _nl_value_type_LC_<category> arrays.
29351
29352 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29353
29354 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29355 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29356 with appropriate macros defined and undefined.
29357 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29358 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29359 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29360 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29361 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29362
29363 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29364
29365 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29366 "-O2 -march=i586".
29367
29368 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29369
29370 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29371 with lowercase letters to make it agree with CLDR.
29372
29373 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29374
29375 [BZ #15260]
29376 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29377 first letters of yesstr and nostr in yesexpr and noexpr,
29378 not for the full words.
29379 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29380 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29381 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29382 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29383 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29384 first letters of yesstr and nostr in yesexpr and noexpr,
29385 until now only English was matched in yesexpr and noexpr.
29386 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29387 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29388 fil but not for tl. As tl and fil are very similar, using fil
29389 is probably better than using English.
29390
29391 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29392
29393 [BZ #21706]
29394 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29395 in yesstr and nostr.
29396
29397 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29398
29399 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29400 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29401 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29402 Likewise.
29403 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29404 Likewise.
29405 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29406 Likewise.
29407 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29408 Likewise.
29409 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29410 (SNANF128X): Likewise.
29411
29412 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29413 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29414 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29415 (HUGE_VAL_F32): Likewise.
29416 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29417 (HUGE_VAL_F64): Likewise.
29418 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29419 (HUGE_VAL_F32X): Likewise.
29420 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29421 (HUGE_VAL_F64X): Likewise.
29422 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29423 (HUGE_VAL_F128X): Likewise.
29424
29425 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29426
29427 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29428 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29429 for the br_FR locale.
29430
29431 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29432
29433 [BZ #21706]
29434 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29435
29436 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29437
29438 * locale/programs/record-status.h: Define globals, and function
29439 prototypes. Move function bodies...
29440 * locale/programs/record-status.c: ... to here. New file.
29441 * iconv/Makefile (iconv_prog-modules): Add record-status.
29442 * locale/Makefile (lib-modules): Likewise.
29443 * iconv/iconv_prog.c: Remove verbose.
29444 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29445 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29446 record a warning about ASCII compatibility.
29447 * locale/programs/ld-monetary.c (monetary_finish): If
29448 warn_int_curr_symbol is true then record a warning about the symbol
29449 not being in our ISO 4217 list.
29450 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29451 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29452 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29453 (OPT_NO_WARN): Define.
29454 (OPT_WARN): Define.
29455 (options): Add entry for --no-warnings, and --warnings.
29456 (set_warnings): New function to enable/disable warnings.
29457 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29458 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29459 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29460 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29461 Pass flags to generate_locale.
29462 (generate_locale): Accept new flag argument and pass it to localedef
29463 invocation.
29464 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29465 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29466
29467 * localedata/Makefile (test-input-data): Use full file name.
29468 * localedata/da_DK.in: Rename to...
29469 * localedata/da_DK.ISO-8859-1.in: ...this.
29470 * localedata/de_DE.in: Rename to...
29471 * localedata/de_DE.ISO-8859-1.in: ...this.
29472 * localedata/en_US.in: Rename to...
29473 * localedata/en_US.ISO-8859-1.in: ...this.
29474 * localedata/fr_FR.in: Rename to...
29475 * localedata/fr_FR.UTF-8.in: ... this.
29476 * localedata/hr_HR.in: Rename to...
29477 * localedata/hr_HR.ISO-8859-2.in: ...this.
29478 * localedata/hu_HU.in: Rename to...
29479 * localedata/hu_HU.UTF-8.in: ...this.
29480 * localedata/si_LK.in: Rename to...
29481 * localedata/si_LK.UTF-8.in: ...this.
29482 * localedata/sv_SE.in: Rename to...
29483 * localedata/sv_SE.ISO-8859-1.in: ...this.
29484 * localedata/tr_TR.in: Rename to...
29485 * localedata/tr_TR.UTF-8.in: ...this.
29486 * localedata/uk_UA.in: Rename to...
29487 * localedata/uk_UA.UTF-8.in: ...this.
29488 * localedata/sort-test.sh: Test file is locale name with the
29489 suffix.
29490
29491 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29492 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29493 file.
29494 * localedata/locales/i18n_ctype: Regenerate.
29495 * localedata/locales/tr_TR: Likewise.
29496 * localedata/locales/translit_circle: Likewise.
29497 * localedata/locales/translit_cjk_compat: Likewise.
29498 * localedata/locales/translit_combining: Likewise.
29499 * localedata/locales/translit_compat: Likewise.
29500 * localedata/locales/translit_font: Likewise.
29501 * localedata/locales/translit_fraction: Likewise.
29502
29503 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29504
29505 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29506 lxvd2x/stxvd2x with lvx/stvx.
29507 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29508
29509 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29510
29511 * include/alloc_buffer.h: Replace "if if " with "if " in
29512 comments.
29513 * sysdeps/mips/memcpy.S: Likkewise.
29514 * sysdeps/mips/memset.S: Likewise.
29515 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29516 Likewise.
29517 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29518 Likewise.
29519 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29520 Likewise.
29521
29522 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29523
29524 [BZ #15261]
29525 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29526 yesexpr and noexpr.
29527 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29528 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29529 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29530 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29531 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29532 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29533 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29534
29535 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29536
29537 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29538 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29539 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29540 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29541 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29542 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29543 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29544 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29545 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29546 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29547 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29548 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29549
29550 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29551
29552 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29553 as possible for better readability of the source.
29554 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29555 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29556 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29557 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29558 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29559 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29560 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29561 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29562 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29563 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29564 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29565 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29566 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29567 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29568 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29569 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29570 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29571 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29572 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29573 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29574 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29575 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29576 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29577 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29578 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29579 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29580 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29581 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29582 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29583 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29584 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29585 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29586 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29587 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29588 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29589 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29590 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29591 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29592 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29593 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29594 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29595 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29596 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29597 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29598 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29599 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29600 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29601 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29602 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29603 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29604 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29605 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29606 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29607 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29608 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29609 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29610 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29611 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29612 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29613 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29614 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29615 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29616 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29617 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29618 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29619 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29620 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29621 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29622 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29623 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29624 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29625 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29626 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29627 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29628 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29629 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29630 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29631 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29632 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29633 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29634 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29635 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29636 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29637 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29638 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29639 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29640 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29641 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29642 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29643 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29644 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29645 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29646 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29647 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29648 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29649 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29650 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29651 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29652 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29653 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29654 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29655 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29656 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29657 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29658 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29659 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29660 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29661 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29662 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29663 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29664 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29665 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29666 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29667 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29668 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29669 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29670 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29671 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29672 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29673 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29674 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29675 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29676 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29677 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29678 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29679 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29680 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29681 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29682 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29683 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29684 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29685 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29686 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29687 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29688 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29689 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29690 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29691 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29692 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29693 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29694 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29695 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29696 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29697 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29698 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29699 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29700 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29701 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29702 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29703 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29704 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29705 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29706 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29707 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29708 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29709 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29710 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29711 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29712 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29713 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29714 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29715 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29716 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29717 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29718 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29719 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29720 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29721 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29722 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29723 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29724 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29725 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29726 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29727 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29728
29729 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29730
29731 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29732 (Use first letters of yesstr and nostr correctly instead of using
29733 full words).
29734
29735 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29736
29737 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29738 (Use first letters of yesstr and nostr correctly).
29739
29740 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29741
29742 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29743 also check for the first characters of yesstr and nostr.
29744 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29745 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29746
29747 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29748
29749 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29750 also check for Chinese characters.
29751
29752 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29753
29754 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29755 match also for the contents of yesstr and nostr. As the first letter
29756 of yesstr and nostr is equal, checking only for the first letter
29757 is not enough.
29758
29759 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29760
29761 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29762 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29763
29764 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29765
29766 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29767 of main contributor.
29768
29769 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29770
29771 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29772 instead of using English.
29773
29774 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29775
29776 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29777 by including the first letters of nostr and yesexpr in the regexp.
29778 Also make it more readable by using ASCII where possible.
29779
29780 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29781
29782 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29783 the first letter of nostr in the regexp. It agrees with CLDR now.
29784 Also make it more readable by using ASCII where possible.
29785
29786 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29787
29788 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29789 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29790 these strings contain a U+17D6 (which somewhat looks like a colon)
29791 instead of a real colon to separate the full words for “yes”
29792 and “no” from the single letter responses.
29793
29794 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29795
29796 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29797 it agree with CLDR (include the first letter of yesstr).
29798 Also make it more readable by using ASCII where possible.
29799
29800 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29801
29802 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29803 and improve yesexpr and noexpr. The yesstr and nostr apparently
29804 came from CLDR. And CLDR has a bug there: these strings contain
29805 a U+0903 (which looks like a colon) instead of a real colon
29806 to separate the full words for “yes” and “no” from the single
29807 letter responses.
29808
29809 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29810
29811 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29812 letters of the full yesstr and nostr in yesexpr and noexpr.
29813
29814 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29815
29816 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29817 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29818 * localedata/locales/an_ES: Make source more readable by using ASCII
29819 where possible.
29820
29821 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29822
29823 [BZ #20952]
29824 * localedata/locales/yuw_PG: New file.
29825 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29826 * locale/iso-639.def: Add Yau (Uruwa).
29827
29828 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29829
29830 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29831
29832 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29833
29834 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29835 (__libc_realloc): Likewise.
29836 (_mid_memalign): Likewise.
29837 (__libc_calloc): Likewise.
29838
29839 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29840
29841 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29842 by adding the generic +1 and -0 as in all other locales.
29843 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29844 day names and make it more readable by using ASCII where possible.
29845
29846 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29847
29848 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29849 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29850
29851 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29852
29853 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29854 WNOHANG in waitpid call.
29855
29856 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29857
29858 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29859 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29860
29861 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29862 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29863 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29864 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29865 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29866 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29867 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29868 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29869 variables.
29870
29871 2017-10-23 Michael Collison <michael.collison@arm.com>
29872
29873 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29874 with __builtin_sqrt.
29875 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29876 with __builtin_sqrtf.
29877 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29878 with __builtin_ceil.
29879 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29880 with __builtin_ceilf.
29881 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29882 with __builtin_floor.
29883 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29884 with __builtin_floorf.
29885 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29886 with __builtin_fma.
29887 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29888 with __builtin_fmaf.
29889 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29890 with __builtin_fmax.
29891 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29892 with __builtin_fmaxf.
29893 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29894 with __builtin_fmin.
29895 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29896 with __builtin_fminf.
29897 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29898 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29899 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29900 with builtin_rint and conversion to int.
29901 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29902 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29903 with builtin_llround.
29904 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29905 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29906 with builtin_rint and conversion to long int.
29907 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29908 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29909 with builtin_lround.
29910 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29911 with builtin_lroundf.
29912 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29913 statements with __builtin_nearbyint.
29914 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29915 statements with __builtin_nearbyintf.
29916 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29917 with __builtin_rint.
29918 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29919 with __builtin_rintf.
29920 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29921 with __builtin_round.
29922 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29923 with __builtin_roundf.
29924 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29925 with __builtin_trunc.
29926 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29927 with __builtin_truncf.
29928 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29929 and s_l[l]round[f].c too.
29930
29931 2017-10-23 Alan Modra <amodra@gmail.com>
29932
29933 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29934 Adjust stack after restoring regs. Add missing LR cfi_restore.
29935
29936 2017-10-23 Alan Modra <amodra@gmail.com>
29937
29938 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29939 Move LR save and frame setup/teardown and LR restore to
29940 immediately around memset call. Provide cfi.
29941
29942 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29943
29944 * sysdeps/i386/fpu/e_powf.S: Removed.
29945 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29946 * sysdeps/i386/fpu/w_powf.c: Likewise.
29947 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29948 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29949 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29950 Add e_powf-sse2.
29951 (CFLAGS-e_powf-sse2.c): New.
29952 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29953 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29954
29955 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29956
29957 * sysdeps/i386/fpu/e_log2f.S: Removed.
29958 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29959 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29960 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29961 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29962 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29963 Add e_log2f-sse2.
29964 (CFLAGS-e_log2f-sse2.c): New.
29965 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29966 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29967
29968 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29969
29970 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29971 Add e_powf-fma.
29972 (CFLAGS-e_powf-fma.c): New.
29973 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29974 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29975
29976 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29977
29978 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29979 Add e_log2f-fma.
29980 (CFLAGS-e_log2f-fma.c): New.
29981 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29982 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29983
29984 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29985
29986 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29987 Add e_logf-fma.
29988 (CFLAGS-e_logf-fma.c): New.
29989 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29990 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29991
29992 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29993
29994 * sysdeps/i386/fpu/e_logf.S: Removed.
29995 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29996 * sysdeps/i386/fpu/w_logf.c: Likewise.
29997 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29998 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29999 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30000 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30001 Add e_logf-sse2.
30002 (CFLAGS-e_logf-sse2.c): New.
30003 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30004 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30005
30006 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30007
30008 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30009 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30010 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30011 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30012 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30013 Add e_exp2f-sse2.
30014 (CFLAGS-e_exp2f-sse2.c): New.
30015 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30016 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30017
30018 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30019
30020 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30021 Add e_exp2f-fma.
30022 (CFLAGS-e_exp2f-fma.c): New.
30023 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30024 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30025
30026 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30027
30028 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30029 * sysdeps/i386/fpu/e_expf.S: Likewise.
30030 * sysdeps/i386/fpu/math_errf.c: Likewise.
30031 * sysdeps/i386/fpu/w_expf.c: Likewise.
30032 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30033 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30034 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30035 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30036 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30037 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30038 Remove e_expf-ia32.
30039 (CFLAGS-e_expf-sse2.c): New.
30040 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30041 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30042
30043 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30044
30045 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30046 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30047 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30048 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30049 e_expf.c.
30050 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30051 New.
30052 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30053 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30054 Renamed to ...
30055 (__redirect_expf): This.
30056 (SYMBOL_NAME): Changed to expf.
30057 (__ieee754_expf): Renamed to ...
30058 (__expf): This.
30059 (__GI___expf): This.
30060 (__ieee754_expf): Add strong_alias.
30061 (__expf_finite): Likewise.
30062 (__expf): New.
30063 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30064
30065 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30066
30067 [BZ #22332]
30068 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30069 unescaping.
30070
30071 2017-10-21 Florian Weimer <fweimer@redhat.com>
30072
30073 * posix/Makefile (tests): Add tst-glob-tilde.
30074 (tests-special): Add tst-glob-tilde-mem.out
30075 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30076 (tst-glob-tilde-mem.out): Add mtrace check.
30077 * posix/tst-glob-tilde.c: New file.
30078
30079 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30080
30081 * bits/floatn-common.h: New file.
30082 * math/Makefile (headers): Add bits/floatn-common.h.
30083 * bits/floatn.h: Include <bits/floatn-common.h>.
30084 * sysdeps/ia64/bits/floatn.h: Likewise.
30085 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30086 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30087 * sysdeps/powerpc/bits/floatn.h: Likewise.
30088 * sysdeps/x86/bits/floatn.h: Likewise.
30089
30090 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30091
30092 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30093 indicates whether compiler emits an warning for alias for
30094 functions with incompatible types.
30095
30096 [BZ #22273]
30097 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30098 the auxiliary process is terminated by a signal before calling _exit
30099 or execve.
30100
30101 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30102
30103 [BZ #21265]
30104 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30105 New.
30106 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30107 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30108 and bit_arch_XSAVEC_Usable if needed.
30109 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30110 and bit_arch_Use_dl_runtime_resolve_opt.
30111 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30112 Removed.
30113 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30114 (bit_arch_Prefer_No_AVX512): Updated.
30115 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30116 (bit_arch_XSAVEC_Usable): New.
30117 (STATE_SAVE_OFFSET): Likewise.
30118 (STATE_SAVE_MASK): Likewise.
30119 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30120 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30121 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30122 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30123 (index_arch_XSAVEC_Usable): New.
30124 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30125 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30126 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30127 is enabled.
30128 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30129 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30130 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30131 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30132 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30133 _dl_runtime_resolve_xsavec.
30134 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30135 Removed.
30136 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30137 instead of VEC_SIZE.
30138 (REGISTER_SAVE_BND0): Removed.
30139 (REGISTER_SAVE_BND1): Likewise.
30140 (REGISTER_SAVE_BND3): Likewise.
30141 (REGISTER_SAVE_RAX): Always defined to 0.
30142 (VMOV): Removed.
30143 (_dl_runtime_resolve_avx): Likewise.
30144 (_dl_runtime_resolve_avx_slow): Likewise.
30145 (_dl_runtime_resolve_avx_opt): Likewise.
30146 (_dl_runtime_resolve_avx512): Likewise.
30147 (_dl_runtime_resolve_avx512_opt): Likewise.
30148 (_dl_runtime_resolve_sse): Likewise.
30149 (_dl_runtime_resolve_sse_vex): Likewise.
30150 (USE_FXSAVE): New.
30151 (_dl_runtime_resolve_fxsave): Likewise.
30152 (USE_XSAVE): Likewise.
30153 (_dl_runtime_resolve_xsave): Likewise.
30154 (USE_XSAVEC): Likewise.
30155 (_dl_runtime_resolve_xsavec): Likewise.
30156 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30157 Removed.
30158 (_dl_runtime_resolve_avx512_opt): Likewise.
30159 (_dl_runtime_resolve_avx): Likewise.
30160 (_dl_runtime_resolve_avx_opt): Likewise.
30161 (_dl_runtime_resolve_sse): Likewise.
30162 (_dl_runtime_resolve_sse_vex): Likewise.
30163 (_dl_runtime_resolve_fxsave): New.
30164 (_dl_runtime_resolve_xsave): Likewise.
30165 (_dl_runtime_resolve_xsavec): Likewise.
30166
30167 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30168
30169 [BZ #22320]
30170 CVE-2017-15670
30171 * posix/glob.c (__glob): Fix one-byte overflow.
30172
30173 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30174
30175 * malloc/malloc.c (sysdep-cancel.h): Add include.
30176
30177 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30178
30179 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30180
30181 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30182
30183 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30184 (tests): Remove $(objpfx)ga_test depdendency.
30185 * resolv/ga_test.c: Remove file.
30186
30187 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30188
30189 [BZ #18812]
30190 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30191 * localedata/locales/kab_DZ: New file.
30192
30193 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30194
30195 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30196 _dl_relocate_static_pie instead of _dl_start to compute load
30197 address in static PIE.
30198
30199 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30200
30201 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30202
30203 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30204
30205 [BZ #13605]
30206 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30207 * localedata/locales/shn_MM: New file.
30208
30209 2017-10-20 Florian Weimer <fweimer@redhat.com>
30210
30211 [BZ #22321]
30212 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30213 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30214 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30215 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30216 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30217 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30218
30219 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30220
30221 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30222
30223 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30224
30225 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30226
30227 [BZ #22322]
30228 * sysdeps/mips/bits/long-double.h: Move to ....
30229 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30230
30231 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30232
30233 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30234
30235 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30236 H.J. Lu <hongjiu.lu@intel.com>
30237
30238 [BZ #22299]
30239 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30240 GLRO(dl_platform) to NULL.
30241 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30242 (modules-names): Add tst-platformmod-1 and
30243 x86_64/tst-platformmod-2.
30244 (CFLAGS-tst-platform-1.c): New.
30245 (CFLAGS-tst-platformmod-1.c): Likewise.
30246 (CFLAGS-tst-platformmod-2.c): Likewise.
30247 (LDFLAGS-tst-platformmod-2.so): Likewise.
30248 ($(objpfx)tst-platform-1): Likewise.
30249 ($(objpfx)tst-platform-1.out): Likewise.
30250 (tst-platform-1-ENV): Likewise.
30251 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30252 * sysdeps/x86_64/tst-platform-1.c: New file.
30253 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30254 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30255
30256 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30257
30258 [BZ #13994]
30259 * locale/iso-639.def: Add Karbi.
30260 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30261 * localedata/locales/mjw_IN: New file.
30262
30263 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30264
30265 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30266 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30267 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30268 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30269 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30270 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30271 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30272 <bits/floatn.h>.
30273 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30274 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30275 * manual/math.texi (Mathematics): Document additional architecture
30276 support for _Float128.
30277 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30278 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30279 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30280 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30281 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30282 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30283 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30284 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30285 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30286 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30287 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30288 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30289 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30290 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30291 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30292
30293 2017-10-18 Renlin Li <renlin.li@arm.com>
30294
30295 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30296 _DYNAMIC symbol to calculate load address.
30297
30298 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30299
30300 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30301 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30302 summary bits.
30303 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30304 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30305
30306 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30307
30308 [BZ #16777]
30309 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30310 and improve readability by using more ASCII.
30311 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30312 and improve readability by using more ASCII.
30313
30314 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30315
30316 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30317 not all targets support atomics on bool.
30318
30319 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30320
30321 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30322 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30323 __f128.
30324 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30325 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30326 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30327 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30328 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30329 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30330
30331 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30332
30333 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30334 defines.
30335
30336 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30337
30338 [BZ #22159]
30339 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30340 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30341 (do_check_remalloced_chunk): Fix build bug.
30342 (do_check_malloc_state): Add assert that checks arena->top.
30343 (malloc_consolidate): Remove initialization.
30344 (int_mallinfo): Remove call to malloc_consolidate.
30345 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30346
30347 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30348
30349 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30350 (have_fastchunks): Remove.
30351 (clear_fastchunks): Remove.
30352 (set_fastchunks): Remove.
30353 (malloc_state): Add have_fastchunks.
30354 (malloc_init_state): Use have_fastchunks.
30355 (do_check_malloc_state): Remove incorrect invariant checks.
30356 (_int_malloc): Use have_fastchunks.
30357 (_int_free): Likewise.
30358 (malloc_consolidate): Likewise.
30359
30360 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30361
30362 * malloc/malloc.c (tcache_put): Inline.
30363 (tcache_get): Inline.
30364
30365 2017-10-17 Jordi Mallach <jordi@gnu.org>
30366
30367 Aurelien Jarno <aurelien@aurel32.net>
30368 [BZ #2522]
30369 * localedata/locales/ca_ES@valencia: New file.
30370 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30371
30372 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30373
30374 [BZ #22296]
30375 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30376 < 6.x
30377
30378 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30379
30380 * scripts/build-many-glibcs.py (Context.add_all_configs):
30381 Add arm-linux-gnueabihf multiarch extra_glibcs.
30382
30383 * sysdeps/generic/ifunc-init.h: New file.
30384 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30385
30386 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30387
30388 [BZ #22019]
30389 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30390 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30391 * stdlib/tst-strfmon_l.c: adapt test case.
30392
30393 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30394
30395 * sysdeps/generic/float128-abi.h: New file.
30396 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30397 non-__prefixed symbols to ....
30398 * math/Versions: ... here. Include <float128-abi.h>.
30399 * stdlib/Versions ... and here. Include <float128-abi.h>
30400
30401 2017-10-16 Florian Weimer <fweimer@redhat.com>
30402
30403 * version.h (VERSION): Switch to ".9000" as the development
30404 version suffix.
30405
30406 2017-10-16 Florian Weimer <fweimer@redhat.com>
30407
30408 [BZ #22050]
30409 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30410 compat_symbol_reference to access non-default version.
30411
30412 2017-10-16 Florian Weimer <fweimer@redhat.com>
30413
30414 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30415
30416 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30417
30418 * include/shlib-compat.h (compat_symbol_reference): Update
30419 comment.
30420
30421 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30422
30423 * math/Makefile (test-types): Add
30424 $(type-float128-$(float128-alias-fcts)).
30425 * math/test-float128.h (TYPE_STR): Define conditional on
30426 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30427 (ULP_IDX): Likewise.
30428 (ULP_I_IDX): Likewise.
30429
30430 * stdlib/strtold.c: Include <bits/floatn.h>
30431 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30432 and later undefine as macro. Define as weak alias if
30433 [!USE_WIDE_CHAR].
30434 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30435 and later undefine as macro. Define as weak alias if
30436 [USE_WIDE_CHAR].
30437 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30438 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30439 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30440 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30441 Define and later undefine as macro. Define as weak alias if
30442 [USE_WIDE_CHAR].
30443 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30444 <bits/floatn.h>.
30445 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30446 Define and later undefine as macro. Define as weak alias if
30447 [!USE_WIDE_CHAR].
30448 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30449 Define and later undefine as macro. Define as weak alias if
30450 [USE_WIDE_CHAR].
30451
30452 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30453
30454 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30455 record_verbose messages.
30456
30457 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30458
30459 [BZ #22052]
30460 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30461 to silence -O3 -Wall warning with GCC 7.
30462
30463 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30464
30465 * Makeconfig (+link-static-before-libc): Use the first of
30466 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30467 * gmon/Makefile (tests): Add tst-gmon-static.
30468 (tests-static): Likewise.
30469 (CFLAGS-tst-gmon-static.c): New.
30470 (CRT-tst-gmon-static): Likewise.
30471 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30472 (tst-gmon-static-ENV): Likewise.
30473 (tests-special): Likewise.
30474 ($(objpfx)tst-gmon-static.out): Likewise.
30475 (clean-tst-gmon-static-data): Likewise.
30476 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30477 * gmon/tst-gmon-static-gprof.sh: New file.
30478 * gmon/tst-gmon-static.c: Likewise.
30479
30480 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30481
30482 [BZ #22295]
30483 * locale/programs/linereader.c (get_string): Don't warn on
30484 non-symbolic character.
30485
30486 [BZ #22294]
30487 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30488 int_curr_symbol.
30489
30490 [BZ #22292]
30491 * locale/programs/record-status.h: New file
30492 * locale/programs/locale.c: Add comment.
30493 * locale/programs/charmap-dir.c: Don't include error.h.
30494 (charmap_opendir): Use record_error.
30495 * locale/programs/charmap.c: Don't include error.h.
30496 (charmap_read): Use record_error, and record_warning.
30497 (parse_charmap): Likewise.
30498 * locale/programs/ld-address.c: Don't include error.h.
30499 (address_finish): Use record_error, and record_warning.
30500 * locale/programs/ld-collate.c: Don't include error.h.
30501 (collate_finish): Use record_error, and record_error_at_line.
30502 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30503 (ctype_class_new): Likewise.
30504 (ctype_map_new): Likewise.
30505 (set_one_default): Likewise.
30506 (set_class_defaults): Likewise.
30507 (translit_flatten): Likewise.
30508 (allocate_arrays): Use record_error, and record_verbose.
30509 * locale/programs/ld-identification.c: Don't include error.h.
30510 (indentation_finish): Use record_error and record_warning.
30511 * locale/programs/ld-measurement.c: Don't include error.h.
30512 (measurement_finish): Use record_error.
30513 * locale/programs/ld-messages.c
30514 (message_finish): Likewise.
30515 * locale/programs/ld-monetary.c
30516 (monetary_finish): Likewise.
30517 * locale/programs/ld-name.c (name_finish): Use record_error
30518 and record_warning.
30519 * locale/programs/ld-numeric.c
30520 (numeric_finish): Use record_error.
30521 * locale/programs/ld-paper.c: Don't include error.h.
30522 (paper_finish): Use record_error.
30523 * locale/programs/ld-telephone.c: Don't include error.h.
30524 (telephone_finish): Use record_error.
30525 * locale/programs/ld-time.c (time_finish): Likewise.
30526 * locale/programs/linereader.h (lr_error): Make inline func.
30527 * locale/programs/localedef.c: Define recorded_warning_count,
30528 and recorded_error_count.
30529 (main): Use record_error. Use recorded_error_count and
30530 recorded_warning_count to issue correct error returns.
30531 (add_to_readlist): Use record_error.
30532 (find_locale): Likewise.
30533 (load_locale): Likewise.
30534 * locale/programs/localedef.h: Remove be_quiet
30535 and WITH_CUR_LOCALE.
30536 * locale/programs/locarchive.c (compare_from_file): Use
30537 record_error.
30538 * locale/programs/locfile.c (write_locale_data): Use
30539 record_error.
30540 * locale/programs/repertoire.c: Dont include error.h.
30541 (repertoire_complain): Use record_error.
30542 * localedata/tst-fmon.sh: Expect failures from localedef.
30543 * localedata/tst-locale.sh: Likewise.
30544 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30545
30546 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30547 (REPORTS): Likewise.
30548 (check): Likewise.
30549 (i18n): Rename to...
30550 (i18n_ctype): ...this.
30551 (i18n-report): Rename to...
30552 (i18n_ctype-report): ...this.
30553 * localedata/locales/i18n_ctype: Regenerate.
30554 * localedata/locales/i18n: copy i18n_ctype.
30555
30556 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30557
30558 * stdlib/strfroml.c: Include <bits/floatn.h>.
30559 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30560 Define before include of <stdlib.h> and undefine afterwards, then
30561 define as weak alias.
30562
30563 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30564 Undefine and restore default definition. Use
30565 libm_alias_ldouble_other.
30566
30567 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30568
30569 [BZ #22153]
30570 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30571 in coredumps.
30572
30573 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30574
30575 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30576 Assign sym_map to be map for local symbols, as TLS relocations
30577 use sym_map to determine whether the symbol is defined and to
30578 extract the TLS information.
30579 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30580 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30581
30582 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30583
30584 [BZ #22189]
30585 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30586 (math_force_eval): Add powerpc version.
30587
30588 [BZ #22142]
30589 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30590 -DBL_MAX.
30591 (do_test): Likewise.
30592 * stdio-common/tst-printf.sh: Likewise.
30593 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30594 ifdef clause in order to set the carry bit right. Replace r0 by
30595 0 without changing the behavior.
30596
30597 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30598
30599 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30600 <libm-alias-ldouble.h>.
30601 (fabsl): Define using libm_alias_ldouble.
30602 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30603 <libm-alias-ldouble.h>.
30604 (fabsl): Define using libm_alias_ldouble.
30605
30606 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30607 Remove conditional code.
30608
30609 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30610 Rename to __clog10_internal_l.
30611 (__clog10_internal_l): Define aliases using
30612 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30613 with __clog10.
30614
30615 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30616
30617 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30618 * benchtests/sincosf-inputs: New file.
30619 * benchtests/cosf-inputs: New file.
30620 * benchtests/sinf-inputs: New file.
30621
30622 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30623
30624 * posix/tst-spawn.c (do_test): Wait for both children.
30625
30626 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30627
30628 [BZ #22284]
30629 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30630 tests-pie): Add tst-gmon-pie.
30631 (CFLAGS-tst-gmon-pie.c): New.
30632 (CRT-tst-gmon-pie): Likewise.
30633 (tst-gmon-pie-ENV): Likewise.
30634 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30635 ($(objpfx)tst-gmon-pie.out): Likewise.
30636 (clean-tst-gmon-pie-data): Likewise.
30637 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30638 * gmon/gmon.c [PIC]: Include <link.h>.
30639 [PIC] (callback): New function.
30640 (write_hist): Add an argument for load address. Subtract load
30641 address from PCs.
30642 (write_call_graph): Likewise.
30643 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30644 it to write_hist and write_call_graph.
30645 * gmon/tst-gmon-pie.c: New file.
30646
30647 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30648
30649 * math/Makefile (test-types-basic): New variable.
30650 (test-types): Likewise.
30651 (libm-test-support): Use $(test-types) instead of $(types).
30652 (libm-tests-base-normal): Likewise.
30653 (libm-tests-base-finite): Likewise.
30654 (libm-tests-base-inline): Likewise.
30655 (generated): Likewise.
30656 ($(objpfx)libm-test-support-$(t).c): Likewise.
30657 (libm-tests-for-type iterator): Likewise.
30658 (libm-test-support iterator): Likewise.
30659 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30660 (ulp_idx): Use ULP_IDX.
30661 * math/test-ldouble.h: Include <float.h>.
30662 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30663 (ULP_IDX): New macro.
30664 (ULP_I_IDX): Likewise.
30665 * math/test-double.h (ULP_IDX): Likewise.
30666 (ULP_I_IDX): Likewise.
30667 * math/test-float.h (ULP_IDX): Likewise.
30668 (ULP_I_IDX): Likewise.
30669 * math/test-float128.h (ULP_IDX): Likewise.
30670 (ULP_I_IDX): Likewise.
30671
30672 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30673
30674 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30675 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30676 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30677 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30678 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30679 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30680 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30681 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30682 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30683 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30684 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30685 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30686 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30687 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30688 (SINGLE_THREAD_BY_GLOBAL): Define.
30689 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30690 Likewise.
30691 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30692 Likewise.
30693 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30694 Likewise.
30695 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30696 Likewise.
30697 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30698 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30699 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30700 Likewise.
30701
30702 2017-10-11 Andreas Schwab <schwab@suse.de>
30703
30704 * nis/Makefile (aux): Remove.
30705 * nscd/Makefile (aux): Add nscd_hash.
30706 (nscd-modules): Likewise.
30707 ($(objpfx)nscd): Don't depend on libnsl.
30708 * nscd/nscd_hash.c: New file.
30709 * nscd/nscd_hash.h: Likewise.
30710 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30711 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30712 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30713 instead of <nis/rpcsvc/nis.h>.
30714 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30715
30716 2017-10-11 Florian Weimer <fweimer@redhat.com>
30717
30718 [BZ #22078]
30719 Avoid large NSS buffers with many addresses, aliases.
30720 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30721 using dynarrays and struct alloc_buffer.
30722 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30723 (tst-nss-files-hosts-multi): Link with -ldl.
30724 * nss/tst-nss-files-hosts-multi.c: New file.
30725
30726 2017-10-11 Florian Weimer <fweimer@redhat.com>
30727
30728 [BZ #18023]
30729 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30730 scratch_buffer. Eliminate gotos.
30731
30732 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30733
30734 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30735 libm_alias_ldouble_other.
30736 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30737 undefine and redefine.
30738 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30739 (exp10l): Do not define here.
30740 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30741 (weak_alias): Undefine and redefine.
30742 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30743 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30744 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30745 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30746
30747 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30748 [!__fma] (fma): Define using libm_alias_double.
30749 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30750 [!__fmaf] (fmaf): Define using libm_alias_float.
30751 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30752 (fmal): Define using libm_alias_ldouble.
30753
30754 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30755
30756 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30757 New macro.
30758 (libm_alias_double_other): Likewise.
30759 (libm_alias_double_r): Use libm_alias_double_other_r.
30760 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30761 New macro.
30762 (libm_alias_float_other): Likewise.
30763 (libm_alias_float_r): Use libm_alias_float_other_r.
30764 * sysdeps/generic/libm-alias-float128.h
30765 (libm_alias_float128_other_r): New macro.
30766 (libm_alias_float128_other): Likewise.
30767 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30768 * sysdeps/generic/libm-alias-ldouble.h
30769 (libm_alias_ldouble_other_r): New macro.
30770 (libm_alias_ldouble_other): Likewise.
30771 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30772 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30773 (libm_alias_double_other_r): New macro.
30774 (libm_alias_double_other): Likewise.
30775 (libm_alias_double_r): Use libm_alias_double_other_r.
30776 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30777 (libm_alias_ldouble_other_r): New macro.
30778 (libm_alias_ldouble_other): Likewise.
30779 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30780 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30781 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30782 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30783 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30784 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30785 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30786 * math/w_exp2f.c: Use libm_alias_float_other.
30787 * math/w_expf.c: Likewise.
30788 * math/w_log2f.c: Likewise.
30789 * math/w_logf.c: Likewise.
30790 * math/w_powf.c: Likewise.
30791 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30792 [!__exp2f]: Use libm_alias_float_other.
30793 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30794 [!__expf]: Use libm_alias_float_other.
30795 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30796 [!__log2f]: Use libm_alias_float_other.
30797 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30798 [!__logf]: Use libm_alias_float_other.
30799 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30800 [!__powf]: Use libm_alias_float_other.
30801
30802 2017-10-10 Florian Weimer <fweimer@redhat.com>
30803
30804 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30805 function.
30806 (_nss_files_gethostbyname3_r): Call it.
30807
30808 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30809
30810 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30811 error. Remove default definition of declare_mgen_alias.
30812 [!declare_mgen_alias_r]: Likewise.
30813 * sysdeps/generic/math-type-macros-double.h
30814 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30815 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30816 (declare_mgen_alias_r): Likewise.
30817 * sysdeps/generic/math-type-macros-float128.h
30818 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30819 * sysdeps/generic/math-type-macros-ldouble.h
30820 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30821 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30822 macro.
30823 (declare_mgen_alias_r_s): Likewise.
30824 (declare_mgen_alias_r): Likewise.
30825 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30826 (lgamma_r): Define using libm_alias_double_r.
30827 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30828 (lgammaf_r): Define using libm_alias_float_r.
30829 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30830 (lgammal_r): Define using libm_alias_ldouble_r.
30831 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30832 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30833
30834 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30835
30836 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30837 extern declaration.
30838
30839 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30840
30841 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30842
30843 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30844
30845 [BZ #21326]
30846 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30847 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30848 * math/Makefile (test-math-cxx11): New test.
30849 * math/test-math-cxx11.cc: New file.
30850
30851 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30852
30853 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30854
30855 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30856 call to allocate the slave pty file descriptor.
30857
30858 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30859
30860 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30861 [!__fma] (fma): Define using libm_alias_double.
30862 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30863 [!__fma] (fma): Define using libm_alias_double.
30864
30865 * sysdeps/ieee754/float128/float128_private.h: Include
30866 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30867 (libm_alias_ldouble_r): Undefine and redefine.
30868 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30869 <libm-alias-ldouble.h>.
30870 (asinhl): Define using libm_alias_ldouble.
30871 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30872 <libm-alias-ldouble.h>.
30873 (atanl): Define using libm_alias_ldouble.
30874 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30875 <libm-alias-ldouble.h>.
30876 (cbrtl): Define using libm_alias_ldouble.
30877 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30878 <libm-alias-ldouble.h>.
30879 (ceill): Define using libm_alias_ldouble.
30880 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30881 <libm-alias-ldouble.h>.
30882 (copysignl): Define using libm_alias_ldouble.
30883 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30884 <libm-alias-ldouble.h>.
30885 (cosl): Define using libm_alias_ldouble.
30886 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30887 <libm-alias-ldouble.h>.
30888 (erfl): Define using libm_alias_ldouble.
30889 (erfcl): Likewise.
30890 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30891 <libm-alias-ldouble.h>.
30892 (expm1l): Define using libm_alias_ldouble.
30893 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30894 <libm-alias-ldouble.h>.
30895 (fabsl): Define using libm_alias_ldouble.
30896 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30897 <libm-alias-ldouble.h>.
30898 (floorl): Define using libm_alias_ldouble.
30899 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30900 <libm-alias-ldouble.h>.
30901 (fmal): Define using libm_alias_ldouble.
30902 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30903 <libm-alias-ldouble.h>.
30904 (frexpl): Define using libm_alias_ldouble.
30905 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30906 libm_alias_ldouble.
30907 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30908 <libm-alias-ldouble.h>.
30909 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30910 libm_alias_ldouble.
30911 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30912 <libm-alias-ldouble.h>.
30913 (getpayloadl): Define using libm_alias_ldouble.
30914 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30915 <libm-alias-ldouble.h>.
30916 (llrintl): Define using libm_alias_ldouble.
30917 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30918 <libm-alias-ldouble.h>.
30919 (llroundl): Define using libm_alias_ldouble.
30920 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30921 <libm-alias-ldouble.h>.
30922 (logbl): Define using libm_alias_ldouble.
30923 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30924 <libm-alias-ldouble.h>.
30925 (lrintl): Define using libm_alias_ldouble.
30926 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30927 <libm-alias-ldouble.h>.
30928 (lroundl): Define using libm_alias_ldouble.
30929 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30930 <libm-alias-ldouble.h>.
30931 (modfl): Define using libm_alias_ldouble.
30932 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30933 <libm-alias-ldouble.h>.
30934 (nearbyintl): Define using libm_alias_ldouble.
30935 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30936 <libm-alias-ldouble.h>.
30937 (nextafterl): Define using libm_alias_ldouble.
30938 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30939 <libm-alias-ldouble.h>.
30940 (nextupl): Define using libm_alias_ldouble.
30941 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30942 <libm-alias-ldouble.h>.
30943 (remquol): Define using libm_alias_ldouble.
30944 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30945 <libm-alias-ldouble.h>.
30946 (rintl): Define using libm_alias_ldouble.
30947 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30948 <libm-alias-ldouble.h>.
30949 (roundevenl): Define using libm_alias_ldouble.
30950 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30951 <libm-alias-ldouble.h>.
30952 (roundl): Define using libm_alias_ldouble.
30953 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30954 using libm_alias_ldouble.
30955 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30956 <libm-alias-ldouble.h>.
30957 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30958 Define using libm_alias_ldouble.
30959 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30960 <libm-alias-ldouble.h>.
30961 (sincosl): Define using libm_alias_ldouble.
30962 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30963 <libm-alias-ldouble.h>.
30964 (sinl): Define using libm_alias_ldouble.
30965 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30966 <libm-alias-ldouble.h>.
30967 (tanhl): Define using libm_alias_ldouble.
30968 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30969 <libm-alias-ldouble.h>.
30970 (tanl): Define using libm_alias_ldouble.
30971 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30972 <libm-alias-ldouble.h>.
30973 (totalorderl): Define using libm_alias_ldouble.
30974 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30975 <libm-alias-ldouble.h>.
30976 (totalordermagl): Define using libm_alias_ldouble.
30977 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30978 <libm-alias-ldouble.h>.
30979 (truncl): Define using libm_alias_ldouble.
30980 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30981 libm_alias_ldouble.
30982 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30983 libm_alias_ldouble.
30984 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30985 <libm-alias-ldouble.h>.
30986 (weak_alias): Do not undefine and redefine.
30987 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30988 (copysignl): Define with long_double_symbol only if [IS_IN
30989 (libc)].
30990 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30991 <libm-alias-ldouble.h>.
30992 (weak_alias): Do not undefine and redefine.
30993 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30994 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30995 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30996 <libm-alias-ldouble.h>.
30997 (weak_alias): Do not undefine and redefine.
30998 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30999 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31000 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31001 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31002 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31003 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31004 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31005 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31006 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31007 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31008 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31009 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31010 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31011 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31012 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31013 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31014 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31015 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31016 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31017 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31018 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31019 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31020 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31021 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31022 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31023 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31024
31025 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31026
31027 [BZ #22111]
31028 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31029 (tcache_thread_freeres): Set tcache_shutting_down before
31030 freeing the tcache.
31031 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31032 * malloc/tst-malloc-tcache-leak.c: New file.
31033
31034 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31035
31036 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31037 back to powerpc32 file.
31038 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31039 (memrchr): Add __memrchr_power8 to ifunc list.
31040 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31041 extra bytes for unaligned inputs.
31042
31043 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31044
31045 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31046 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31047 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31048 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31049 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31050
31051 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31052
31053 * sysdeps/arm/libm-test-ulps: Update.
31054
31055 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31056 <libm-alias-ldouble.h>.
31057 (asinhl): Define using libm_alias_ldouble.
31058 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31059 <libm-alias-ldouble.h>.
31060 (cbrtl): Define using libm_alias_ldouble.
31061 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31062 <libm-alias-ldouble.h>.
31063 (copysignl): Define using libm_alias_ldouble.
31064 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31065 <libm-alias-ldouble.h>.
31066 (cosl): Define using libm_alias_ldouble.
31067 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31068 <libm-alias-ldouble.h>.
31069 (erfl): Define using libm_alias_ldouble.
31070 (erfcl): Likewise.
31071 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31072 <libm-alias-ldouble.h>.
31073 (fmal): Define using libm_alias_ldouble.
31074 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31075 <libm-alias-ldouble.h>.
31076 (frexpl): Define using libm_alias_ldouble.
31077 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31078 libm_alias_ldouble.
31079 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31080 <libm-alias-ldouble.h>.
31081 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31082 libm_alias_ldouble.
31083 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31084 <libm-alias-ldouble.h>.
31085 (getpayloadl): Define using libm_alias_ldouble.
31086 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31087 <libm-alias-ldouble.h>.
31088 (llrintl): Define using libm_alias_ldouble.
31089 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31090 <libm-alias-ldouble.h>.
31091 (llroundl): Define using libm_alias_ldouble.
31092 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31093 <libm-alias-ldouble.h>.
31094 (lrintl): Define using libm_alias_ldouble.
31095 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31096 <libm-alias-ldouble.h>.
31097 (lroundl): Define using libm_alias_ldouble.
31098 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31099 <libm-alias-ldouble.h>.
31100 (modfl): Define using libm_alias_ldouble.
31101 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31102 <libm-alias-ldouble.h>.
31103 (nextupl): Define using libm_alias_ldouble.
31104 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31105 <libm-alias-ldouble.h>.
31106 (remquol): Define using libm_alias_ldouble.
31107 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31108 <libm-alias-ldouble.h>.
31109 (roundevenl): Define using libm_alias_ldouble.
31110 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31111 <libm-alias-ldouble.h>.
31112 (roundl): Define using libm_alias_ldouble.
31113 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31114 using libm_alias_ldouble.
31115 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31116 <libm-alias-ldouble.h>.
31117 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31118 <libm-alias-ldouble.h>.
31119 (setpayloadsigl): Define using libm_alias_ldouble.
31120 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31121 <libm-alias-ldouble.h>.
31122 (sincosl): Define using libm_alias_ldouble.
31123 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31124 <libm-alias-ldouble.h>.
31125 (sinl): Define using libm_alias_ldouble.
31126 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31127 <libm-alias-ldouble.h>.
31128 (tanhl): Define using libm_alias_ldouble.
31129 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31130 <libm-alias-ldouble.h>.
31131 (tanl): Define using libm_alias_ldouble.
31132 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31133 <libm-alias-ldouble.h>.
31134 (totalorderl): Define using libm_alias_ldouble.
31135 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31136 <libm-alias-ldouble.h>.
31137 (totalordermagl): Define using libm_alias_ldouble.
31138 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31139 libm_alias_ldouble.
31140 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31141 libm_alias_ldouble.
31142
31143 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31144
31145 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31146 memmove_falkor.
31147 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31148 (__libc_ifunc_impl_list): Likewise.
31149 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31150 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31151
31152 * benchtests/bench-memmove-walk.c: New file.
31153 * benchtests/Makefile (string-benchset): Add it.
31154
31155 * benchtests/bench-memset-walk.c: New file.
31156 * benchtests/Makefile (string-benchset): Add it.
31157
31158 * benchtests/bench-memcpy-walk.c: New file.
31159 * benchtests/Makefile (string-benchset): Add it.
31160
31161 2017-10-05 Florian Weimer <fweimer@redhat.com>
31162
31163 nscd: Eliminate compilation time dependency in the build output.
31164 * nscd/nscd_stat.c (STATDATA_VERSION)
31165 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31166 (STATDATA_VERSION_FULL): New macro definitions.
31167 (compilation): Remove.
31168 (struct statdata): Adjust version member.
31169 (send_stats): Set version from STATDATA_VERSION_FULL.
31170 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31171
31172 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31173
31174 * configure.ac (--enable-add-ons): Remove option.
31175 (machine): Do not mention add-ons in comment.
31176 (LIBC_PRECONFIGURE): Likewise.
31177 (add_ons): Remove variable and sanity checks and logic to locate
31178 add-ons.
31179 (add_ons_automatic): Remove variable.
31180 (configured_add_ons): Likewise.
31181 (add_ons_sfx): Likewise.
31182 (add_ons_pfx): Likewise.
31183 (add_on_subdirs): Likewise.
31184 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31185 consideration of add-ons in Implies handling.
31186 (sysdeps_add_ons): Likewise.
31187 * configure: Regenerated.
31188 * libidn/configure.ac: Remove.
31189 * libidn/configure: Likewise.
31190 * sysdeps/unix/inet/configure.ac: New file.
31191 * sysdeps/unix/inet/configure: New generated file.
31192 * sysdeps/unix/inet/Subdirs: Add libidn.
31193 * Makeconfig (sysdeps-srcdirs): Remove variable.
31194 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31195 ($(common-objpfx)config.status): Do not depend on add-on files.
31196 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31197 comment.
31198 (all-subdirs): Do not include $(add-on-subdirs).
31199 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31200 * config.make.in (add-ons): Remove variable.
31201 (add-on-subdirs): Likewise.
31202 (sysdeps-add-ons): Likewise.
31203 * manual/Makefile (add-chapters): Remove.
31204 ($(objpfx)texis): Do not depend on $(add-chapters).
31205 (nonexamples): Do not handle $(add-chapters).
31206 (examples): Do not handle $(add-ons).
31207 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31208 libc-texinfo.sh.
31209 * manual/install.texi (Installation): Do not mention add-ons.
31210 (--enable-add-ons): Do not document configure option.
31211 * INSTALL: Regenerated.
31212 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31213 * manual/maint.texi (Hierarchy Conventions): Do not mention
31214 add-ons.
31215 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31216 --enable-add-ons.
31217 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31218 add-ons.
31219 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31220 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31221
31222 2017-10-05 Andreas Schwab <schwab@suse.de>
31223
31224 [BZ #15142]
31225 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31226 (_IO_flush_all_lockp): Always lock list_all_lock.
31227 (_IO_flush_all_linebuffered): Likewise.
31228 (_IO_unbuffer_all): Likewise.
31229
31230 2017-10-05 Florian Weimer <fweimer@redhat.com>
31231
31232 [BZ #15436]
31233 Do not flush stdio streams on abort.
31234 * stdlib/abort.c (fflush): Remove macro definition.
31235 (abort): Remove stages related to stdio flushing.
31236
31237 2017-10-05 Florian Weimer <fweimer@redhat.com>
31238
31239 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31240
31241 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31242
31243 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31244
31245 2017-10-05 Florian Weimer <fweimer@redhat.com>
31246
31247 * support/support_format_hostent.c (support_format_hostent): Add
31248 more error information for NETDB_INTERNAL.
31249
31250 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31251
31252 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31253 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31254 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31255 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31256 AC_DEFINE if multi-arch is enabled.
31257 * sysdeps/i386/configure: Regenerated.
31258
31259 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31260
31261 * Makeconfig (+link-static-before-libc): Use
31262 $(DEFAULT-LDFLAGS-$(@F)).
31263 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31264 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31265 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31266
31267 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31268
31269 * elf/Makefile (tests): Add tst-main1.
31270 (modules-names): Add tst-main1mod.
31271 ($(objpfx)tst-main1): New.
31272 (CRT-tst-main1): Likewise.
31273 (LDFLAGS-tst-main1): Likewise.
31274 (LDLIBS-tst-main1): Likewise.
31275 (tst-main1mod.so-no-z-defs): Likewise.
31276 * elf/tst-main1.c: New file.
31277 * elf/tst-main1mod.c: Likewise.
31278
31279 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31280
31281 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31282
31283 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31284
31285 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31286 (fma): Define using libm_alias_double.
31287 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31288 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31289 <math_ldbl_opt.h>.
31290 (fmal): Do not define as compat symbol here.
31291 * sysdeps/alpha/fpu/s_fma.c: New file.
31292
31293 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31294
31295 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31296
31297 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31298
31299 [BZ #22229]
31300 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31301 <math_ldbl_opt.h>
31302 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31303 and libc.
31304 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31305 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31306 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31307 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31308 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31309 Include <math_ldbl_opt.h>
31310 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31311 and libc.
31312 (compat_symbol): Undefine and redefine.
31313 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31314 <math_ldbl_opt.h>
31315 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31316 (compat_symbol): Undefine and redefine.
31317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31318 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31319 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31320 GLIBC_2_1 for libm.
31321 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31322 GLIBC_2.0 copysignl symbol.
31323 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31324 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31325
31326 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31327
31328 2017-10-04 Florian Weimer <fweimer@redhat.com>
31329
31330 * scripts/check-local-headers.sh: Ignore nspr4 header file
31331 directory in addition to nspr.
31332
31333 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31334
31335 [BZ #17956]
31336 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31337 * configure: Regenerate.
31338 * crypt/Makefile (nss-cpp-flags): New variable.
31339 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31340 (CPPFLAGS-md5-crypt.c): Use it.
31341 * scripts/check-local-headers.sh: Ignore nspr header file
31342 directory.
31343
31344 2017-10-04 Andreas Schwab <schwab@suse.de>
31345
31346 * nis/Makefile (services): Remove compat.
31347 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31348 ($(objpfx)libnss_compat.so): Remove rule.
31349 * nis/Versions (libnss_compat): Remove.
31350 * nss/Makefile (services): Add compat.
31351 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31352 * nss/Versions (libnss_compat): Define.
31353 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31354 Don't include <rpc/types.h>. Replace bool_t by bool.
31355 * nss/nss_compat/compat-initgroups.c: Likewise.
31356 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31357 instead of <rpcsrv/ypclnt.h>.
31358 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31359 yp_get_default_domain.
31360 * nss/nss_compat/compat-pwd.c: Likewise.
31361 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31362 yp_get_default_domain.
31363 * nss/nss_compat/nisdomain.c: New file.
31364 * nss/nss_compat/nisdomain.h: Likewise.
31365
31366 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31367
31368 [BZ #22244]
31369 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31370 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31371
31372 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31373
31374 [BZ #22243]
31375 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31376 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31377
31378 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31379
31380 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31381 "movl main@GOTOFF(%ebx), %eax".
31382
31383 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31384
31385 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31386 allow undefined _DYNAMIC in PIE libc.a.
31387 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31388 Likewse.
31389
31390 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31391
31392 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31393 check _DYNAMIC.
31394
31395 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31396
31397 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31398 check _DYNAMIC.
31399
31400 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31401
31402 * math/test-math-iscanonical.cc (error): Replace bool with int.
31403
31404 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31405
31406 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31407 (modf): Define using libm_alias_double, only if [!__modf].
31408 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31409 <libm-alias-double.h>.
31410 (modf): Define using libm_alias_double, only if [!__modf].
31411 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31412 compat symbol here.
31413 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31414 (weak_alias): Do not undefine and redefine.
31415 (strong_alias): Likewise.
31416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31417 (weak_alias): Likewise.
31418 (strong_alias): Likewise.
31419
31420 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31421 (logb): Define using libm_alias_double, only if [!__logb].
31422 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31423 <libm-alias-double.h>.
31424 (logb): Define using libm_alias_double, only if [!__logb].
31425 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31426 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31427 (weak_alias): Do not undefine and redefine.
31428 (strong_alias): Likewise.
31429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31430 (weak_alias): Likewise.
31431 (strong_alias): Likewise.
31432
31433 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31434
31435 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31436 Check SHARED instead PIC.
31437
31438 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31439
31440 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31441 [!__fmaf] (fmaf): Define using libm_alias_float.
31442
31443 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31444 (frexp): Define using libm_alias_double.
31445 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31446 <libm-alias-double.h>.
31447 (frexp): Define using libm_alias_double.
31448 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31449 compat symbol here.
31450
31451 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31452
31453 [BZ #22235]
31454 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31455 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31456 (CFLAGS-test-math-iscanonical.cc): New variable.
31457 * math/test-math-iscanonical.cc: New file.
31458 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31459 Provide a C++ implementation based on function overloading,
31460 rather than using __MATH_TG, which uses C-only builtins.
31461 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31462 Likewise.
31463 * sysdeps/powerpc/powerpc64le/Makefile
31464 (CFLAGS-test-math-iscanonical.cc): New variable.
31465
31466 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31467
31468 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31469 (ceil): Define using libm_alias_double.
31470 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31471 (floor): Define using libm_alias_double.
31472 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31473 <libm-alias-double.h>.
31474 (llround): Define using libm_alias_double.
31475 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31476 <libm-alias-double.h>.
31477 (lround): Define using libm_alias_double.
31478 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31479 <libm-alias-double.h>.
31480 (nearbyint): Define using libm_alias_double.
31481 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31482 <libm-alias-double.h>.
31483 (remquo): Define using libm_alias_double.
31484 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31485 (rint): Define using libm_alias_double.
31486 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31487 (round): Define using libm_alias_double.
31488 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31489 (trunc): Define using libm_alias_double.
31490 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31491 <libm-alias-double.h>.
31492 (ceil): Define using libm_alias_double.
31493 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31494 <libm-alias-double.h>.
31495 (floor): Define using libm_alias_double.
31496 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31497 <libm-alias-double.h>.
31498 (llround): Define using libm_alias_double.
31499 [_LP64] (lround): Likewise.
31500 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31501 <libm-alias-double.h>.
31502 [!_LP64] (lround): Define using libm_alias_double.
31503 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31504 <libm-alias-double.h>.
31505 (nearbyint): Define using libm_alias_double.
31506 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31507 <libm-alias-double.h>.
31508 (remquo): Define using libm_alias_double.
31509 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31510 <libm-alias-double.h>.
31511 (rint): Define using libm_alias_double.
31512 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31513 <libm-alias-double.h>.
31514 (round): Define using libm_alias_double.
31515 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31516 <libm-alias-double.h>.
31517 (trunc): Define using libm_alias_double.
31518 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31519 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31520 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31521 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31522 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31523 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31524 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31525 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31526 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31527
31528 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31529
31530 * math/w_remainder.c: New file.
31531 * math/w_remainderf.c: New file.
31532 * math/w_remainderl.c: New file.
31533
31534 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31535
31536 * elf/rtld.c (BOOTSTRAP_MAP): New.
31537 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31538 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31539 Likewise.
31540 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31541 Likewise.
31542 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31543 Likewise.
31544
31545 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31546
31547 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31548 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31549 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31550 rtld_hidden_data_ver): Define to empty.
31551 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31552 __assert_perror_fail): Likewise.
31553 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31554 (__rewinddir): Likewise.
31555 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31556 (__profile_frequency): Likewise.
31557 * include/setjmp.h (__sigsetjmp): Likewise.
31558 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31559 __libc_sigaction): Likewise.
31560 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31561 not set hidden attribute.
31562 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31563 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31564 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31565 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31566 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31567 __fxstatat64): Likewise.
31568 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31569 (__uname): Likewise.
31570 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31571 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31572 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31573 (NO_RTLD_HIDDEN): Set.
31574 * sysdeps/mach/hurd/configure: Refresh.
31575 * config.h.in: Refresh.
31576
31577 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31578
31579 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31580 (atan): Define using libm_alias_double.
31581 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31582 (tan): Define using libm_alias_double.
31583 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31584 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31585
31586 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31587 define as weak alias of __atan. Do not define any aliases if
31588 [__atan].
31589 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31590 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31591 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31592 as weak alias of __tan. Do not define any aliases if [__tan].
31593 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31594 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31595 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31596 __atan.
31597 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31598 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31599 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31600 and define as weak alias of __atan.
31601 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31602 __atan.
31603 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31604 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31605 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31606 define as weak alias of __tan.
31607
31608 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31609
31610 * math/w_lgamma.c: New file.
31611 * math/w_lgammaf.c: New file.
31612 * math/w_lgammal.c: New file.
31613
31614 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31615
31616 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31617 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31618 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31619 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31620 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31621 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31622 * sysdeps/i386/fpu/w_log2f.c: New file.
31623 * sysdeps/i386/fpu/w_logf.c: New file.
31624 * sysdeps/i386/fpu/w_powf.c: New file.
31625 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31626 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31627 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31628
31629 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31630 H.J. Lu <hongjiu.lu@intel.com>
31631
31632 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31633 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31634 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31635 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31636 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31637 the new expf code.
31638 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31639 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31640 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31641 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31642 * sysdeps/i386/fpu/w_exp2f.c: New file.
31643 * sysdeps/i386/fpu/w_expf.c: New file.
31644 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31645 * sysdeps/x86_64/fpu/w_expf.c: New file.
31646
31647 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31648
31649 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31650 (log2f): Likewise.
31651 (powf): Likewise.
31652 * math/w_log2f.c: New file.
31653 * math/w_logf.c: New file.
31654 * math/w_powf.c: New file.
31655 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31656 * math/w_logf_compat.c (__logf_compat): Likewise.
31657 * math/w_powf_compat.c (__powf_compat): Likewise.
31658 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31659 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31660 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31661 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31662 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31663 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31664 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31665 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31666 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31667 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31668 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31669 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31670 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31671 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31672 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31674 Likewise.
31675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31676 Likewise.
31677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31678 Likewise.
31679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31680 Likewise.
31681 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31682 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31683 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31684 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31685 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31686 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31687 Likewise.
31688 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31689 Likewise.
31690 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31691 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31692 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31693
31694 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31695
31696 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31697 (sysdep_routines): Add memrchr_power8.
31698 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31699 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31700 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31701 New file.
31702 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31703 (memrchr): Add __memrchr_power8 to ifunc list.
31704 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31705
31706 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31707
31708 [BZ #18822]
31709 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31710 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31711 libc_hidden_def.
31712 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31713 (__posix_fallocate64_l64): Likewise.
31714
31715 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31716
31717 [BZ #18822]
31718 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31719 (__sched_setaffinity_new): Add libc_hidden_proto and
31720 libc_hidden_def.
31721
31722 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31723
31724 [BZ #18822]
31725 * include/glob.h (__glob64): Add libc_hidden_proto.
31726 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31727 libc_hidden_def.
31728
31729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31730
31731 [BZ #18822]
31732 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31733 attribute_hidden.
31734
31735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31736
31737 [BZ #18822]
31738 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31739
31740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31741
31742 [BZ #18822]
31743 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31744 libc_hidden_def.
31745
31746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31747
31748 [BZ #18822]
31749 * csu/version.c (__libc_print_version): Add attribute_hidden.
31750
31751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31752
31753 [BZ #18822]
31754 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31755
31756 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31757
31758 [BZ #18822]
31759 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31760
31761 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31762
31763 [BZ #18822]
31764 * nscd/nscd_helper.c (__nis_hash): New prototype.
31765
31766 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31767
31768 [BZ #18822]
31769 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31770 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31771 libc_hidden_def.
31772 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31773 * termios/tcgetattr.c (__tcgetattr): Likewise.
31774
31775 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31776
31777 [BZ #18822]
31778 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31779 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31780 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31781 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31782 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31783
31784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31785
31786 [BZ #18822]
31787 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31788
31789 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31790
31791 [BZ #18822]
31792 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31793 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31794
31795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31796
31797 [BZ #18822]
31798 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31799
31800 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31801
31802 [BZ #18822]
31803 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31804 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31805
31806 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31807
31808 [BZ #18822]
31809 * include/ifreq.h: New file.
31810 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31811 (__ifreq): Likewise.
31812 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31813 (__ifreq): Likewise.
31814
31815 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31816
31817 [BZ #18822]
31818 * include/idna.h: New file.
31819 * inet/getnameinfo.c: Include <idna.h> instead of
31820 <libidn/idna.h>.
31821 (__idna_to_unicode_lzlz): Removed.
31822 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31823 <libidn/idna.h>.
31824 (__idna_to_ascii_lz): Removed.
31825 (__idna_to_unicode_lzlz): Likewise.
31826
31827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31828
31829 [BZ #18822]
31830 * include/plural-exp.h: New file.
31831 * intl/plural-exp.c: Include <plural-exp.h> instead of
31832 "plural-exp.h".
31833
31834 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31835
31836 [BZ #18822]
31837 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31838 "getsourcefilter.h".
31839 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31840 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31841 "getsourcefilter.h".
31842 (__get_sol): Removed.
31843
31844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31845
31846 [BZ #18822]
31847 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31848 to ...
31849 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31850
31851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31852
31853 [BZ #18822]
31854 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31855 attribute_hidden.
31856
31857 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31858
31859 [BZ #18822]
31860 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31861
31862 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31863
31864 [BZ #18822]
31865 * include/search.h (__tdestroy): Add libc_hidden_proto.
31866 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31867
31868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31869
31870 [BZ #18822]
31871 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31872
31873 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31874
31875 [BZ #18822]
31876 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31877 attribute_hidden.
31878
31879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31880
31881 [BZ #18822]
31882 * include/signal.h (__kill): Add libc_hidden_proto.
31883 (__sigblock): Likewise.
31884 (__sigprocmask): Likewise.
31885 (__sigaltstack): Likewise.
31886 * signal/kill.c (__kill): Add libc_hidden_def.
31887 * signal/sigblock.c (__sigblock): Likewise.
31888 * signal/sigprocmask.c (__sigprocmask): Likewise.
31889 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31890 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31891 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31892 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31893 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31894 Likewise.
31895 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31896 Likewise.
31897 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31898 (__sigprocmask): Likewise.
31899 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31900 Likewise.
31901 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31902 (__sigprocmask): Likewise.
31903 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31904 Likewise.
31905
31906 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31907
31908 [BZ #18822]
31909 * include/string.h (__strsep): Add libc_hidden_proto.
31910 * string/strsep.c (__strsep): Add libc_hidden_def.
31911
31912 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31913
31914 [BZ #18822]
31915 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31916 attribute_hidden.
31917 (__spawni): Likewise.
31918
31919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31920
31921 [BZ #18822]
31922 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31923 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31924 libc_hidden_def.
31925
31926 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31927
31928 [BZ #18822]
31929 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31930
31931 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31932
31933 [BZ #18822]
31934 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31935 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31936 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31937 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31938 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31939 Likewise.
31940 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31941 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31942
31943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31944
31945 [BZ #18822]
31946 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31947 (__dcigettext): Likewise.
31948
31949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 [BZ #18822]
31952 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31953 libc_hidden_proto.
31954 (__get_nprocs): Likewise.
31955 (__get_phys_pages): Likewise.
31956 (__get_avphys_pages): Likewise.
31957 (__get_child_max): Add attribute_hidden.
31958 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31959 (__get_nprocs): Likewise.
31960 (__get_phys_pages): Likewise.
31961 (__get_avphys_pages): Likewise.
31962 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31963 libc_hidden_def.
31964 (__get_nprocs): Likewise.
31965 (__get_phys_pages): Likewise.
31966 (__get_avphys_pages): Likewise.
31967 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31968 libc_hidden_def.
31969 (__get_nprocs_conf): Likewise.
31970 (__get_phys_pages): Likewise.
31971 (__get_avphys_pages): Likewise.
31972
31973 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31974
31975 [BZ #18822]
31976 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31977 attribute_hidden.
31978 (__netlink_close): Likewise.
31979 (__netlink_free_handle): Likewise.
31980 (__netlink_request): Likewise.
31981
31982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 [BZ #18822]
31985 * include/rpc/rpc.h (__rpc_thread_variables): Add
31986 attribute_hidden.
31987 (__rpc_thread_svc_cleanup): Likewise.
31988 (__rpc_thread_clnt_cleanup): Likewise.
31989 (__rpc_thread_key_cleanup): Likewise.
31990
31991 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31992
31993 [BZ #18822]
31994 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31995 (__writev): Likewise.
31996 * misc/readv.c (__readv): Add libc_hidden_def.
31997 * misc/writev.c (__writev): Likewise.
31998 * sysdeps/posix/readv.c (__readv): Likewise.
31999 * sysdeps/posix/writev.c (__writev): Likewise.
32000 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32001 (__readv): Likewise.
32002 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32003 (__writev): Likewise.
32004
32005 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32006
32007 [BZ #18822]
32008 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32009 (__regcomp): Add libc_hidden_proto.
32010 (__regexec): Likewise.
32011 (__regfree): Likewise.
32012 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32013 (__regfree): Likewise.
32014 * posix/regexec.c (__regexec): Likewise.
32015
32016 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32017
32018 [BZ #18822]
32019 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32020 (__getutent): Likewise.
32021 (__getutid): Likewise.
32022 (__getutline): Likewise.
32023 (__pututline): Likewise.
32024 (__getutent_r): Likewise.
32025 (__getutid_r): Likewise.
32026 (__getutline_r): Likewise.
32027 (__utmpname): Add attribute_hidden.
32028 (__setutent): Likewise.
32029 (__endutent): Likewise.
32030 * login/getutent.c (__getutent): Add libc_hidden_def.
32031 * login/getutent_r.c (__getutent_r): Likewise.
32032 (__pututline): Likewise.
32033 * login/getutid.c (__getutid): Likewise.
32034 * login/getutid_r.c (__getutid_r): Likewise.
32035 * login/getutline.c (__getutline): Likewise.
32036 * login/getutline_r.c (__getutline_r): Likewise.
32037 * login/updwtmp.c (__updwtmp): Likewise.
32038
32039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32040
32041 [BZ #18822]
32042 * include/dirent.h (__opendir): Always add attribute_hidden.
32043 (__fdopendir): Likewise.
32044 (__closedir): Likewise.
32045 (__readdir): Likewise.
32046 (__readdir64): Add libc_hidden_proto.
32047 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32048 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32049 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32050 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32051 New alias.
32052
32053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32054
32055 [BZ #18822]
32056 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32057 * include/netdb.h (__gethostbyaddr_r): Likewise.
32058 (__gethostbyname_r): Likewise.
32059 (__gethostbyname2_r): Likewise.
32060 (__getnetbyaddr_r): Likewise.
32061 (__getnetbyname_r): Likewise.
32062 (__getservbyname_r): Likewise.
32063 (__getservbyport_r): Likewise.
32064 (__getprotobyname_r): Likewise.
32065 (__getprotobynumber_r): Likewise.
32066 (__getnetgrent_r): Likewise.
32067 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32068 (__getrpcbynumber_r): Likewise.
32069 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32070
32071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32072
32073 [BZ #18822]
32074 * include/stdio.h (__fcloseall): Add attribute_hidden.
32075 (__getline): Likewise.
32076 (__path_search): Likewise.
32077 (__gen_tempname): Likewise.
32078 (__libc_message): Likewise.
32079 (__flockfile): Likewise.
32080 (__funlockfile): Likewise.
32081 (__fxprintf): Likewise.
32082 (__fxprintf_nocancel): Likewise.
32083
32084 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32085
32086 [BZ #18822]
32087 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32088 (__sgetsgent_r): Likewise.
32089
32090 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32091
32092 [BZ #18822]
32093 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32094 (__statfs64): Likewise.
32095 (__fstatfs64): Likewise.
32096 * include/sys/statvfs.h (__statvfs64): Likewise.
32097 (__fstatvfs64): Likewise.
32098 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32099 (__statfs_filesize_max): Likewise.
32100 (__statfs_symlinks): Likewise.
32101 (__statfs_chown_restricted): Likewise.
32102
32103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32104
32105 [BZ #18822]
32106 * include/time.h (__tzstring): Add attribute_hidden.
32107 (__tzfile_read): Likewise.
32108 (__tzfile_compute): Likewise.
32109 (__tzfile_default): Likewise.
32110 (__tzset_parse_tz): Likewise.
32111 (__offtime): Likewise.
32112 (__asctime_r): Likewise.
32113 (__tzset): Likewise.
32114 (__tz_convert): Likewise.
32115 (__getdate_r): Likewise.
32116 (__getclktck): Likewise.
32117
32118 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32119
32120 [BZ #18822]
32121 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32122 (__nscd_unmap): Likewise.
32123 (__nscd_cache_search): Likewise.
32124 (__nscd_get_nl_timestamp): Likewise.
32125 (__nscd_getpwnam_r): Likewise.
32126 (__nscd_getpwuid_r): Likewise.
32127 (__nscd_getgrnam_r): Likewise.
32128 (__nscd_getgrgid_r): Likewise.
32129 (__nscd_gethostbyname_r): Likewise.
32130 (__nscd_gethostbyname2_r): Likewise.
32131 (__nscd_gethostbyaddr_r): Likewise.
32132 (__nscd_getai): Likewise.
32133 (__nscd_getgrouplist): Likewise.
32134 (__nscd_getservbyname_r): Likewise.
32135 (__nscd_getservbyport_r): Likewise.
32136 (__nscd_innetgr): Likewise.
32137 (__nscd_setnetgrent): Likewise.
32138
32139 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32140
32141 [BZ #18822]
32142 * include/gmp.h: Declare internal functions only if _ISOMAC is
32143 undefined.
32144 (__mpn_extract_double): Add attribute_hidden.
32145 (__mpn_extract_long_double): Likewise.
32146 (__mpn_extract_float128): Likewise.
32147 (__mpn_construct_float): Likewise.
32148 (__mpn_construct_double): Likewise.
32149 (__mpn_construct_long_double): Likewise.
32150 (__mpn_construct_float128): Likewise.
32151 (mpn_add_1): Likewise.
32152 (mpn_addmul_1): Likewise.
32153 (mpn_add_n): Likewise.
32154 (mpn_cmp): Likewise.
32155 (mpn_divrem): Likewise.
32156 (mpn_lshift): Likewise.
32157 (mpn_mul): Likewise.
32158 (mpn_mul_1): Likewise.
32159 (mpn_rshift): Likewise.
32160 (mpn_sub_1): Likewise.
32161 (mpn_submul_1): Likewise.
32162 (mpn_sub_n): Likewise.
32163
32164 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32165
32166 [BZ #18822]
32167 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32168 (__wcscat): Likewise.
32169 (__btowc): Likewise.
32170 (__wcrtomb): Likewise.
32171 (__mbsrtowcs): Likewise.
32172 (__wcsrtombs): Likewise.
32173 (__mbsnrtowcs): Likewise.
32174 (__wcsnrtombs): Likewise.
32175 (__wcsncpy): Likewise.
32176 (__wcpncpy): Likewise.
32177 (__wmemcpy): Likewise.
32178 (__wmempcpy): Likewise.
32179 (__wmemmove): Likewise.
32180 (__wcschrnul): Likewise.
32181 (__vfwscanf): Likewise.
32182 (__vswprintf): Likewise.
32183 (__fwprintf): Likewise.
32184 (__vfwprintf): Likewise.
32185
32186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32187
32188 [BZ #18822]
32189 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32190 (__getgrgid_r): Likewise.
32191 (__getgrnam_r): Likewise.
32192 * include/pwd.h (__getpwuid_r): Likewise.
32193 (__getpwnam_r): Likewise.
32194 (__fgetpwent_r): Likewise.
32195 * include/shadow.h (__getspnam_r): Likewise.
32196 (__sgetspent_r): Likewise.
32197 (__fgetspent_r): Likewise.
32198
32199 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32200
32201 [BZ #18822]
32202 * include/unistd.h (__access): Add attribute_hidden.
32203 (__lseek64): Likewise.
32204 (__libc_pread64): Likewise.
32205 (__pipe2): Likewise.
32206 (__sleep): Likewise.
32207 (__chdir): Likewise.
32208 (__fchdir): Likewise.
32209 (__getcwd): Likewise.
32210 (__rmdir): Likewise.
32211 (__execvpe): Likewise.
32212 (__execve): Likewise.
32213 (__setsid): Likewise.
32214 (__getuid): Likewise.
32215 (__geteuid): Likewise.
32216 (__getgid): Likewise.
32217 (__getegid): Likewise.
32218 (__getgroups): Likewise.
32219 (__group_member): Likewise.
32220 (__ttyname_r): Likewise.
32221 (__isatty): Likewise.
32222 (__readlink): Likewise.
32223 (__unlink): Likewise.
32224 (__gethostname): Likewise.
32225 (__profil): Likewise.
32226 (__getdtablesize): Likewise.
32227 (__brk): Likewise.
32228 (__ftruncate): Likewise.
32229 (__ftruncate64): Likewise.
32230
32231 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32232
32233 [BZ #18822]
32234 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32235 * argp/argp-fs-xinl.c: Likewise.
32236 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32237 * argp/argp-parse.c: Include <argp.h>.
32238 * argp/argp-xinl.c: Likewise.
32239 * include/argp-fmtstream.h: New file.
32240 * include/argp.h (__argp_error): Add attribute_hidden.
32241 (__argp_failure): Likewise.
32242 (__argp_input): Likewise.
32243 (__argp_state_help): Likewise.
32244
32245 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32246
32247 [BZ #18822]
32248 * include/wchar.h (____wcstof_l_internal): New prototype.
32249 (____wcstod_l_internal): Likewise.
32250 (____wcstold_l_internal): Likewise.
32251 (____wcstol_l_internal): Likewise.
32252 (____wcstoul_l_internal): Likewise.
32253 (____wcstoll_l_internal): Likewise.
32254 (____wcstoull_l_internal): Likewise.
32255 (____wcstof128_l_internal): Likewise.
32256 * sysdeps/ieee754/float128/wcstof128.c
32257 (____wcstof128_l_internal): Removed.
32258 * sysdeps/ieee754/float128/wcstof128_l.c
32259 (____wcstof128_l_internal): Likewise.
32260 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32261 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32262 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32263 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32264 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32265 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32266 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32267 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32268 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32269 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32270
32271 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32272
32273 [BZ #18822]
32274 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32275 instead of <sys/statvfs.h>.
32276 (__internal_statvfs): Removed.
32277 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32278 instead of <sys/statvfs.h>.
32279 (__internal_statvfs64): Removed.
32280 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32281 "internal_statvfs.h" instead of <sys/statvfs.h>.
32282 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32283 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32284 instead of <sys/statvfs.h>.
32285 (__internal_statvfs): Removed.
32286 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32287 instead of <sys/statvfs.h>.
32288 (__internal_statvfs64): Removed.
32289
32290 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32291
32292 [BZ #18822]
32293 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32294 (__gconv_close): Likewise.
32295 (__gconv): Likewise.
32296 (__gconv_find_transform): Likewise.
32297 (__gconv_lookup_cache): Likewise.
32298 (__gconv_compare_alias_cache): Likewise.
32299 (__gconv_load_cache): Likewise.
32300 (__gconv_get_path): Likewise.
32301 (__gconv_close_transform): Likewise.
32302 (__gconv_release_cache): Likewise.
32303 (__gconv_find_shlib): Likewise.
32304 (__gconv_release_shlib): Likewise.
32305 (__gconv_get_builtin_trans): Likewise.
32306 (__gconv_compare_alias): Likewise.
32307 * include/dlfcn.h (_dlerror_run): Likewise.
32308 * include/stdio.h (__fortify_fail_abort): Likewise.
32309 * include/time.h (__tz_compute): Likewise.
32310 (__strptime_internal): Likewise.
32311 * intl/gettextP.h (_nl_find_domain): Likewise.
32312 (_nl_load_domain): Likewise.
32313 (_nl_find_msg): Likewise.
32314 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32315 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32316 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32317 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32318 (__gai_find_request): Likewise.
32319 (__gai_remove_request): Likewise.
32320 (__gai_notify): Likewise.
32321 (__gai_notify_only): Likewise.
32322 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32323 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32324 (_dl_non_dynamic_init): Likewise.
32325 (_dl_aux_init): Likewise.
32326 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32327 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32328 Likewise.
32329 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32330 (__wcsmbs_clone_conv): Likewise.
32331 (__wcsmbs_named_conv): Likewise.
32332
32333 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32334
32335 [BZ #18822]
32336 * include/stdlib.h (__random): Add attribute_hidden.
32337 (__random_r): Likewise.
32338 (__srandom_r): Likewise.
32339 (__initstate_r): Likewise.
32340 (__setstate_r): Likewise.
32341 (__erand48_r): Likewise.
32342 (__nrand48_r): Likewise.
32343 (__jrand48_r): Likewise.
32344 (__srand48_r): Likewise.
32345 (__seed48_r): Likewise.
32346 (__lcong48_r): Likewise.
32347 (__drand48_iterate): Likewise.
32348 (__setenv): Likewise.
32349 (__unsetenv): Likewise.
32350 (__clearenv): Likewise.
32351 (__ptsname_r): Likewise.
32352 (__posix_openpt): Likewise.
32353 (__add_to_environ): Likewise.
32354 (__realpath): Add libc_hidden_proto.
32355 (__ecvt_r): Likewise.
32356 (__fcvt_r): Likewise.
32357 (__qecvt_r): Likewise.
32358 (__qfcvt_r): Likewise.
32359 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32360 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32361
32362 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32363
32364 [BZ #18822]
32365 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32366 * include/time.h (__mktime_internal): Likewise.
32367 * libio/iolibio.h (__fopen_internal): Likewise.
32368
32369 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32370
32371 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32372 pointer in frame.
32373 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32374 Correct offset used to restore PIC register.
32375
32376 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32377
32378 [BZ libc/22165]
32379 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32380 code to load address of __getcontext_ret when generating PIC code.
32381
32382 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32383
32384 * elf/Makefile (tests-static-internal): Add
32385 tst-tls1-static-non-pie.
32386 (LDFLAGS-tst-tls1-static-non-pie): New.
32387 * elf/tst-tls1-static-non-pie.c: New file.
32388
32389 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32390
32391 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32392 (asinh): Define using libm_alias_double.
32393 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32394 (cbrt): Define using libm_alias_double.
32395 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32396 <libm-alias-double.h>.
32397 (copysign): Define using libm_alias_double.
32398 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32399 (erf): Define using libm_alias_double.
32400 (erfc): Likewise.
32401 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32402 (expm1): Define using libm_alias_double.
32403 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32404 (fabs): Define using libm_alias_double.
32405 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32406 libm_alias_double.
32407 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32408 <libm-alias-double.h>.
32409 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32410 libm_alias_double.
32411 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32412 <libm-alias-double.h>.
32413 (getpayload): Define using libm_alias_double.
32414 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32415 <libm-alias-double.h>.
32416 (llrint): Define using libm_alias_double.
32417 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32418 (lrint): Define using libm_alias_double.
32419 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32420 <libm-alias-double.h>.
32421 (nextup): Define using libm_alias_double.
32422 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32423 <libm-alias-double.h>.
32424 (roundeven): Define using libm_alias_double.
32425 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32426 libm_alias_double.
32427 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32428 <libm-alias-double.h>.
32429 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32430 using libm_alias_double.
32431 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32432 (cos): Define using libm_alias_double.
32433 (sin): Likewise.
32434 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32435 <libm-alias-double.h>.
32436 (sincos): Define using libm_alias_double.
32437 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32438 (tanh): Define using libm_alias_double.
32439 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32440 <libm-alias-double.h>.
32441 (totalorder): Define using libm_alias_double.
32442 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32443 <libm-alias-double.h>.
32444 (totalordermag): Define using libm_alias_double.
32445 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32446 libm_alias_double.
32447 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32448 libm_alias_double.
32449 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32450 <libm-alias-double.h>.
32451 (getpayload): Define using libm_alias_double.
32452 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32453 <libm-alias-double.h>.
32454 (roundeven): Define using libm_alias_double.
32455 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32456 <libm-alias-double.h>.
32457 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32458 <libm-alias-double.h>.
32459 (totalorder): Define using libm_alias_double.
32460 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32461 <libm-alias-double.h>.
32462 (totalordermag): Define using libm_alias_double.
32463 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32464 libc compat symbol here.
32465 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32466 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32467 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32468 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32469 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32470 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32471 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32472 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32473 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32474 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32475
32476 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32477
32478 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32479 _dl_relocate_static_pie instead of _dl_start to compute load
32480 address in static PIE. Return 0 if _DYNAMIC is undefined for
32481 static executable.
32482
32483 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32484
32485 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32486 _DYNAMIC is undefined for static executable.
32487
32488 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32489
32490 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32491
32492 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32493
32494 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32495
32496 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32497
32498 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32499 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32500 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32501 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32502 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32503 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32504 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32505 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32506 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32507 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32508 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32509 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32510 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32511 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32512 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32513 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32514 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32515
32516 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32517
32518 * math/bits/cmathcalls.h (cimag): Remove inline.
32519 (creal): Remove inline.
32520 (conj): Remove inline.
32521
32522 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32523
32524 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32525 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32526 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32527 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32528 (issignalingf_inline): Likewise.
32529 (POWF_LOG2_TABLE_BITS): Likewise.
32530 (POWF_LOG2_POLY_ORDER): Likewise.
32531 (POWF_SCALE_BITS): Likewise.
32532 (POWF_SCALE): Likewise.
32533 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32534 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32535 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32536
32537 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32538
32539 * math/Makefile (type-float-routines): Add e_log2f_data.
32540 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32541 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32542 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32543 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32544 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32545 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32546 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32547
32548 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32549
32550 * math/Makefile (type-float-routines): Add e_logf_data.
32551 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32552 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32553 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32554 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32555 * sysdeps/i386/fpu/e_logf_data.c: New file.
32556 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32557 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32558
32559 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32560
32561 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32562 undefined _DYNAMIC in PIE libc.a.
32563 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32564 Likewse.
32565
32566 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32567
32568 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32569 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32570 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32571 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32572 (__signbit): Remove.
32573 (__signbitl): Remove.
32574 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32575 (__signbit): Remove.
32576 (__signbitl): Remove.
32577 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32578 (__signbit): Remove.
32579 (__signbitl): Remove.
32580 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32581 (__signbit): Remove.
32582 (__signbitl): Remove.
32583 * sysdeps/tile/bits/mathinline.h: Delete file.
32584 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32585 (__signbit): Remove.
32586 (__signbitl): Remove.
32587
32588 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32589
32590 * math/math.h: Improve handling of C99 isgreater macros.
32591 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32592 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32593 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32594 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32595 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32596
32597 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32598
32599 * sysdeps/aarch64/libm-test-ulps: Update.
32600
32601 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32602
32603 [BZ #22225]
32604 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32605 math_opt_barrier on argument when doing arithmetic on it.
32606 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32607 Likewise. Use math_force_eval not math_opt_barrier after
32608 arithmetic.
32609 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32610 math_opt_barrier on argument when doing arithmetic on it.
32611 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32612 Likewise.
32613
32614 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32615
32616 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32617 libc_hidden_def.
32618 (__freeifaddrs): Likewise.
32619
32620 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32621
32622 * include/dirent.h (__dirfd): New declaration.
32623 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32624 alias.
32625 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32626 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32627 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32628 * include/unistd.h (__revoke): New declaration.
32629 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32630 alias.
32631 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32632 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32633 revoke.
32634 * include/dirent.h (__seekdir): New declaration.
32635 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32636 redefine as weak alias.
32637 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32638 of seekdir.
32639 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32640 and use libc_hidden_def on them.
32641 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32642 them.
32643 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32644 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32645 instead of getifaddrs and freeifaddrs.
32646
32647 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32648
32649 [BZ #18822]
32650 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32651 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32652 (__dso_handle): Remove declaration.
32653 * dlfcn/tstatexit.c (__dso_handle): Removed.
32654 (main): Don't check __dso_handle.
32655 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32656 (main): Don't check __dso_handle.
32657 * include/dso_handle.h: New file.
32658 * malloc/mtrace.c: Include <dso_handle.h>.
32659 (mtrace): Pass __dso_handle directly.
32660 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32661 (__dso_handle): Remove declaration.
32662 (__pthread_atfork): Pass __dso_handle directly.
32663 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32664 (__dso_handle): Removed.
32665 * posix/wordexp-test.c: Include <dso_handle.h>.
32666 (__dso_handle): Remove declaration.
32667 (__app_register_atfork): Pass __dso_handle directly.
32668 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32669 (__dso_handle): Remove declaration.
32670 (at_quick_exit): Pass __dso_handle directly.
32671 * stdlib/atexit.c: Include <dso_handle.h>.
32672 (__dso_handle): Remove declaration.
32673 (atexit): Pass __dso_handle directly.
32674 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32675 (__dso_handle): Removed.
32676
32677 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32678
32679 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32680 using VDSO.
32681
32682 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32683
32684 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32685 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32686 values to correct default value for given type.
32687
32688 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32689
32690 [BZ #22101]
32691 * elf/Makefile (tests): Add tst-debug1.
32692 ($(objpfx)tst-debug1): New.
32693 ($(objpfx)tst-debug1.out): Likewise.
32694 ($(objpfx)tst-debug1mod1.so): Likewise.
32695 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32696 with p_filesz == 0.
32697 * elf/tst-debug1.c: New file.
32698
32699 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32700
32701 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32702 Define using __ifunc.
32703
32704 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32705
32706 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32707 exp2f() values.
32708
32709 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32710
32711 [BZ #22156]
32712 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32713
32714 2017-09-26 Florian Weimer <fweimer@redhat.com>
32715
32716 * resolv/Makefile (tests-internal): Fix typo in comment.
32717
32718 2017-09-26 Florian Weimer <fweimer@redhat.com>
32719
32720 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32721
32722 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32723
32724 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32725 Use an union instead of a max_align_t array for __space,
32726 so that __space is the same size on all platforms.
32727 * malloc/scratch_buffer_grow_preserve.c
32728 (__libc_scratch_buffer_grow_preserve): Likewise.
32729
32730 [BZ #22183]
32731 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32732 version to 2.
32733 * posix/Makefile (routines): Add glob-lstat-compat and
32734 glob64-lstat-compat.
32735 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32736 * posix/glob-lstat-compat.c: New file.
32737 * posix/glob64-lstat-compat.c: Likewise.
32738 * posix/tst-glob_lstat_compat.c: Likewise.
32739 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32740 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32741 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32742 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32743 Likewise.
32744 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32745 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32746 * posix/glob.c (glob_lstat): New function.
32747 (glob): Rename to __glob and add versioned symbol to 2.27.
32748 (glob_in_dir): Use glob_lstat.
32749 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32750 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32751 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32752 2.27.
32753 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32754 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32755 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32756 gl_lstat on glob call.
32757 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32758 and glob64 symbols.
32759 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32760 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32761 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32762 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32763 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32764 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32765 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32766 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32767 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32768 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32769 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32770 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32772 Likewise.
32773 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32775 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32776 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32777 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32778 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32779 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32780 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32781 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32782 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32783 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32784 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32785
32786 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32787
32788 * configure.ac (AS): Require binutils 2.25 or later.
32789 * configure: Regenerated.
32790
32791 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32792
32793 [BZ #22207]
32794 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32795 VM size.
32796
32797 2017-09-25 DJ Delorie <dj@redhat.com>
32798
32799 [BZ #22161]
32800 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32801 resetting timeout.
32802
32803 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32804
32805 * sysdeps/ieee754/dbl-64/sincos32.h
32806 [SINCCOS32_H]: Remove define.
32807 [SINCOS32_H]: Define.
32808
32809 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32810
32811 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32812 (exp2f): Likewise.
32813 * math/w_exp2f.c: New file.
32814 * math/w_expf.c: New file.
32815 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32816 * math/w_expf_compat.c (__expf_compat): Likewise.
32817 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32818 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32819 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32820 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32821 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32822 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32823 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32824 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32825 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32826 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32827 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32828 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32829 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32830 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32832 Likewise.
32833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32834 Likewise.
32835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32836 Likewise.
32837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32838 Likewise.
32839 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32840 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32841 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32842 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32843 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32844 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32845 Likewise.
32846 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32847 Likewise.
32848 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32849 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32850 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32851
32852 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32853
32854 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32855 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32856 (roundtoint, converttoint): Likewise.
32857 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32858 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32859 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32860 * sysdeps/ieee754/flt-32/math_config.h: New file.
32861 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32862 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32863 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32864 * sysdeps/i386/fpu/math_errf.c: New file.
32865 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32866 * sysdeps/ia64/fpu/math_errf.c: New file.
32867 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32868 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32869
32870 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32871
32872 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32873 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32874 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32875 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32876 to make sure that these symbols are defined.
32877 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32878 of <limits.h>
32879 (__need_NULL): Do not define.
32880 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32881 alignment.
32882 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32883 CMGROUP_MAX, cmsgcred): Do not define.
32884 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32885 NULL.
32886 * bits/socket.h: Likewise.
32887 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32888 __gettimeofday instead of gettimeofday.
32889 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32890 instead of settimeofday.
32891
32892 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32893
32894 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32895 (asinhf): Define using libm_alias_float.
32896 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32897 (atanf): Define using libm_alias_float.
32898 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32899 (cbrtf): Define using libm_alias_float.
32900 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32901 (ceilf): Define using libm_alias_float.
32902 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32903 <libm-alias-float.h>.
32904 (copysignf): Define using libm_alias_float.
32905 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32906 (cosf): Define using libm_alias_float.
32907 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32908 (erff): Define using libm_alias_float.
32909 (erfcf): Likewise.
32910 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32911 (expm1f): Define using libm_alias_float.
32912 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32913 (fabsf): Define using libm_alias_float.
32914 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32915 (floorf): Define using libm_alias_float.
32916 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32917 (frexpf): Define using libm_alias_float.
32918 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32919 libm_alias_float.
32920 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32921 <libm-alias-float.h>.
32922 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32923 libm_alias_float.
32924 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32925 <libm-alias-float.h>.
32926 (getpayloadf): Define using libm_alias_float.
32927 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32928 <libm-alias-float.h>.
32929 (llrintf): Define using libm_alias_float.
32930 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32931 <libm-alias-float.h>.
32932 (llroundf): Define using libm_alias_float.
32933 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32934 (logbf): Define using libm_alias_float.
32935 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32936 (lrintf): Define using libm_alias_float.
32937 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32938 (lroundf): Define using libm_alias_float.
32939 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32940 (modff): Define using libm_alias_float.
32941 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32942 <libm-alias-float.h>.
32943 (nearbyintf): Define using libm_alias_float.
32944 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32945 <libm-alias-float.h>.
32946 (nextafterf): Define using libm_alias_float.
32947 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32948 <libm-alias-float.h>.
32949 (nextupf): Define using libm_alias_float.
32950 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32951 <libm-alias-float.h>.
32952 (remquof): Define using libm_alias_float.
32953 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32954 (rintf): Define using libm_alias_float.
32955 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32956 <libm-alias-float.h>.
32957 (roundevenf): Define using libm_alias_float.
32958 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32959 (roundf): Define using libm_alias_float.
32960 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32961 using libm_alias_float.
32962 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32963 <libm-alias-float.h>.
32964 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32965 Define using libm_alias_float.
32966 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32967 <libm-alias-float.h>.
32968 (sincosf): Define using libm_alias_float.
32969 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32970 (sinf): Define using libm_alias_float.
32971 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32972 (tanf): Define using libm_alias_float.
32973 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32974 (tanhf): Define using libm_alias_float.
32975 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32976 <libm-alias-float.h>.
32977 (totalorderf): Define using libm_alias_float.
32978 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32979 <libm-alias-float.h>.
32980 (totalordermagf): Define using libm_alias_float.
32981 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32982 (truncf): Define using libm_alias_float.
32983 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32984 libm_alias_float.
32985 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32986 libm_alias_float.
32987
32988 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32989
32990 [BZ #22146]
32991 math/math.h: Let fpclassify use the builtin in C++ mode, even
32992 when optimazing for size.
32993
32994 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32995
32996 * csu/Makefile (generated): Do not add version-info.h.
32997 (before-compile): Likewise.
32998 (all-Banner-files): Remove variable.
32999 ($(objpfx)version-info.h): Remove rule.
33000 * csu/version.c (banner): Do not include "version-info.h".
33001 * libidn/Banner: Remove.
33002 * manual/contrib.texi (Simon Josefsson): New entry.
33003
33004 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33005
33006 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33007 Remove conditionals on LDBL_MANT_DIG.
33008 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33009 (__ieee754_lgammal_r): Likewise.
33010
33011 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33012
33013 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33014 _Float128 and L().
33015 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33016 _Float128 and L(). Replace _Float128 with long double and L(x)
33017 with xL, throughout the file.
33018 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33019 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33020 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33021 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33022
33023 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33024
33025 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33026 sysdeps/ieee754/ldbl-128ibm.
33027 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33028 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33029 of including it. Keep _Float128 and L() intact. These will be
33030 reviewed by a separate patch.
33031 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33032 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33033 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33034 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33035
33036 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33037
33038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33039 (__finitef128): Define to __redirect___finitef128.
33040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33041 (__isinff128): Define to __redirect___isinff128.
33042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33043 (__isnanf128): Define to __redirect___isnanf128.
33044
33045 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33046
33047 * sysdeps/powerpc/powerpc64le/Makefile
33048 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33049 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33050
33051 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33052 Carlos O'Donell <carlos@redhat.com>
33053
33054 [BZ #22180]
33055 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33056 * stdlib/test-dlclose-exit-race.c: New file.
33057 * stdlib/test-dlclose-exit-race-helper.c: New file.
33058 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33059
33060 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33061
33062 * crypt/Banner: Remove file.
33063 * nptl/Banner: Likewise.
33064 * resolv/Banner: Likewise.
33065 * soft-fp/Banner: Likewise.
33066 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33067 ($(objpfx)version.d): Remove dependency on banner.h.
33068 ($(objpfx)version.os): Likewise.
33069 * nptl/version.c (banner): Do not include banner.h.
33070 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33071 Jelinek and BIND code.
33072
33073 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33074 Carlos O'Donell <carlos@redhat.com>
33075
33076 * support/xdlfcn.h: New file.
33077 * support/xdlfcn.c: New file.
33078 * support/Makefile (libsupport-routines): Add xdlfcn.
33079 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33080
33081 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33082
33083 [BZ #20142]
33084 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33085 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33086 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33087 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33088 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33089 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33090 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33091 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33092
33093 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33094 Ricky Zhou <rickyz@google.com>
33095 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33096
33097 [BZ #14333]
33098 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33099 Remove atomics.
33100 (__new_exitfn): Fail registration when we finished at_exit processing.
33101 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33102 * stdlib/on_exit.c (__on_exit): Likewise.
33103 * stdlib/exit.c (__exit_funcs_done): New variable.
33104 (__run_exit_handlers): Use __exit_funcs_lock.
33105 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33106 declarations.
33107 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33108 (test-cxa_atexit-race, test-on_exit-race): New tests.
33109 * stdlib/test-atexit-race-common.c: New file.
33110 * stdlib/test-atexit-race.c: New file.
33111 * stdlib/test-at_quick_exit-race.c: New file.
33112 * stdlib/test-cxa_atexit-race.c: New file.
33113 * stdlib/test-on_exit-race.c: New file.
33114
33115 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33116
33117 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33118 * benchtests/exp2f-inputs: Copy of expf-inputs.
33119 * benchtests/log2f-inputs: Copy of logf-inputs.
33120
33121 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33122
33123 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33124 Explicitly take address of first element of array arguments in
33125 call to INLINE_SYSCALL.
33126
33127 2017-09-19 Andreas Schwab <schwab@suse.de>
33128
33129 [BZ #22134]
33130 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33131 execveat first.
33132 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33133 unimplemented.
33134 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33135 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33136 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33137 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33138 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33139 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33140 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33141 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33142 * posix/Makefile (tests): Add tst-fexecve.
33143 * posix/tst-fexecve.c: New file.
33144
33145 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33146
33147 * benchtests/Makefile: Add logf benchmark.
33148 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33149
33150 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33151
33152 * benchtests/Makefile: Add expf benchmark.
33153 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33154
33155 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33156
33157 * csu/Makefile: Add -funwind-tables to libc-start.c.
33158 * debug/Makefile: Add -funwind-tables to backtrace.c.
33159 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33160 * sysdeps/arm/Makefile: Likewise.
33161 * sysdeps/i386/Makefile: Likewise.
33162 * sysdeps/m68k/Makefile: Likewise.
33163 * sysdeps/mips/Makefile: Likewise.
33164 * sysdeps/nios2/Makefile: Likewise.
33165 * sysdeps/sh/Makefile: Likewise.
33166 * sysdeps/sparc/Makefile: Likewise.
33167
33168 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33169
33170 * benchtests/Makefile (bench-math): Add trunc and truncf.
33171 (CFLAGS-bench-trunc.c): New variable.
33172 (CFLAGS-bench-truncf.c): Likewise.
33173 * benchtests/trunc-inputs: New file.
33174 * benchtests/truncf-inputs: Likewise.
33175
33176 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33177
33178 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33179
33180 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33181
33182 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33183 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33184 redefine.
33185 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33186 (exp10l): Define as weak alias.
33187 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33188 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33189 and redefine.
33190 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33191 (remainderl): Define as weak alias.
33192
33193 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33194 (fmal): Define using libm_alias_ldouble.
33195 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33196 (acoshl): Define using libm_alias_ldouble.
33197 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33198 (acosl): Define using libm_alias_ldouble.
33199 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33200 (asinl): Define using libm_alias_ldouble.
33201 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33202 (atan2l): Define using libm_alias_ldouble.
33203 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33204 (atanhl): Define using libm_alias_ldouble.
33205 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33206 (coshl): Define using libm_alias_ldouble.
33207 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33208 (exp10l): Define using libm_alias_ldouble.
33209 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33210 (exp2l): Define using libm_alias_ldouble.
33211 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33212 (expl): Define using libm_alias_ldouble.
33213 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33214 (fmodl): Define using libm_alias_ldouble.
33215 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33216 (hypotl): Define using libm_alias_ldouble.
33217 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33218 (j0l): Define using libm_alias_ldouble.
33219 (y0l): Likewise.
33220 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33221 (j1l): Define using libm_alias_ldouble.
33222 (y1l): Likewise.
33223 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33224 (jnl): Define using libm_alias_ldouble.
33225 (ynl): Likewise.
33226 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33227 (log10l): Define using libm_alias_ldouble.
33228 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33229 (log2l): Define using libm_alias_ldouble.
33230 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33231 (logl): Define using libm_alias_ldouble.
33232 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33233 (powl): Define using libm_alias_ldouble.
33234 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33235 (remainderl): Define using libm_alias_ldouble.
33236 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33237 (sinhl): Define using libm_alias_ldouble.
33238 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33239 (sqrtl): Define using libm_alias_ldouble.
33240 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33241 (tgammal): Define using libm_alias_ldouble.
33242 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33243 (exp10l): Do not use long_double_symbol here.
33244 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33245 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33246 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33247 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33248 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33249 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33250 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33251 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33252 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33253 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33254 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33255 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33256 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33257 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33258 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33259 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33260 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33261 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33262 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33263 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33264 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33265 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33266
33267 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33268
33269 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33270 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33271
33272 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33273
33274 * io/read.c (read): Add libc_hidden_weak.
33275 * sysdeps/mach/hurd/read.c (read): Likewise.
33276 * io/write.c (write): Likewise.
33277 * sysdeps/mach/hurd/write.c (write): Likewise.
33278 * io/pread64.c (__pread64): Likewise.
33279 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33280 * posix/pread64.c (__pread64): Add libc_hidden_def.
33281
33282 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33283
33284 * benchtests/scripts/compare_strings.py: New option -g.
33285 (draw_graph): Print a message that a graph is being generated.
33286 (process_results): Generate graph only if -g is passed.
33287 (main): Process option -g.
33288
33289 * benchtests/scripts/compare_strings.py (process_results):
33290 Better spacing for output.
33291
33292 * benchtests/scripts/compare_strings.py: Use argparse.
33293 * benchtests/README: Document existence of compare_strings.py.
33294
33295 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33296
33297 * math/s_fma.c: Include <libm-alias-double.h>.
33298 (fma): Define using libm_alias_double.
33299 * math/s_nextafter.c: Include <libm-alias-double.h>.
33300 (nextafter): Define using libm_alias_double.
33301 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33302 (acos): Define using libm_alias_double.
33303 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33304 (aocsh): Define using libm_alias_double.
33305 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33306 (asin): Define using libm_alias_double.
33307 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33308 (atan2): Define using libm_alias_double.
33309 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33310 (atanh): Define using libm_alias_double.
33311 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33312 (cosh): Define using libm_alias_double.
33313 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33314 (exp10): Define using libm_alias_double.
33315 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33316 (exp2): Define using libm_alias_double.
33317 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33318 (exp): Define using libm_alias_double.
33319 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33320 (fmod): Define using libm_alias_double.
33321 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33322 (hypot): Define using libm_alias_double.
33323 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33324 (j0): Define using libm_alias_double.
33325 (y0): Likewise.
33326 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33327 (j1): Define using libm_alias_double.
33328 (y1): Likewise.
33329 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33330 (jn): Define using libm_alias_double.
33331 (yn): Likewise.
33332 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33333 (log10): Define using libm_alias_double.
33334 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33335 (log2): Define using libm_alias_double.
33336 * math/w_log_compat.c: Include <libm-alias-double.h>.
33337 (log): Define using libm_alias_double.
33338 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33339 (pow): Define using libm_alias_double.
33340 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33341 (remainder): Define using libm_alias_double.
33342 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33343 (sinh): Define using libm_alias_double.
33344 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33345 (sqrt): Define using libm_alias_double.
33346 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33347 (tgamma): Define using libm_alias_double.
33348 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33349 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33350 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33351 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33352 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33353 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33354 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33355 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33356 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33357 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33358 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33359 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33360 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33361 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33362 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33363 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33364 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33365 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33366 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33367 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33368 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33369 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33370 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33371 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33372 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33373
33374 * math/e_acoshl.c: Remove.
33375 * math/e_acosl.c: Likewise.
33376 * math/e_asinl.c: Likewise.
33377 * math/e_atan2l.c: Likewise.
33378 * math/e_atanhl.c: Likewise.
33379 * math/e_coshl.c: Likewise.
33380 * math/e_expl.c: Likewise.
33381 * math/e_fmodl.c: Likewise.
33382 * math/e_gammal_r.c: Likewise.
33383 * math/e_hypotl.c: Likewise.
33384 * math/e_j0l.c: Likewise.
33385 * math/e_j1l.c: Likewise.
33386 * math/e_jnl.c: Likewise.
33387 * math/e_lgammal_r.c: Likewise.
33388 * math/e_log10l.c: Likewise.
33389 * math/e_log2l.c: Likewise.
33390 * math/e_logl.c: Likewise.
33391 * math/e_powl.c: Likewise.
33392 * math/e_rem_pio2l.c: Likewise.
33393 * math/e_sinhl.c: Likewise.
33394 * math/e_sqrtf128.c: Likewise.
33395 * math/e_sqrtl.c: Likewise.
33396 * math/k_cosl.c: Likewise.
33397 * math/k_sinl.c: Likewise.
33398 * math/k_tanl.c: Likewise.
33399 * math/s_asinhl.c: Likewise.
33400 * math/s_atanl.c: Likewise.
33401 * math/s_cbrtl.c: Likewise.
33402 * math/s_erfl.c: Likewise.
33403 * math/s_expm1l.c: Likewise.
33404 * math/s_log1pl.c: Likewise.
33405 * math/s_tanhl.c: Likewise.
33406
33407 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33408
33409 [BZ #21745]
33410 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33411 [$(subdir) = math] (sysdep_calls): New variable. Has the
33412 previous contents of sysdep_routines, but re-sorted..
33413 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33414 sysdep_calls.
33415 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33416 defined in sysdep_calls and replace by the respective m_* names.
33417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33418 (compat_symbol): Undefine to avoid duplicated compat symbols in
33419 libc.
33420
33421 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33422
33423 * math/s_fmaf.c: Include <libm-alias-float.h>.
33424 (fmaf): Define using libm_alias_float.
33425 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33426 (acosf): Define using libm_alias_float.
33427 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33428 (acoshf): Define using libm_alias_float.
33429 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33430 (asinf): Define using libm_alias_float.
33431 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33432 (atan2f): Define using libm_alias_float.
33433 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33434 (atanhf): Define using libm_alias_float.
33435 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33436 (coshf): Define using libm_alias_float.
33437 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33438 (exp10f): Define using libm_alias_float.
33439 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33440 (fmodf): Define using libm_alias_float.
33441 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33442 (hypotf): Define using libm_alias_float.
33443 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33444 (j0f): Define using libm_alias_float.
33445 (y0f): Likewise.
33446 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33447 (j1f): Define using libm_alias_float.
33448 (y1f): Likewise.
33449 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33450 (jnf): Define using libm_alias_float.
33451 (ynf): Likewise.
33452 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33453 (log10f): Define using libm_alias_float.
33454 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33455 (log2f): Define using libm_alias_float.
33456 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33457 (logf): Define using libm_alias_float.
33458 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33459 (powf): Define using libm_alias_float.
33460 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33461 (remainderf): Define using libm_alias_float.
33462 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33463 (sinhf): Define using libm_alias_float.
33464 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33465 (sqrtf): Define using libm_alias_float.
33466 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33467 (tgammaf): Define using libm_alias_float.
33468
33469 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33470
33471 * include/math.h (roundeven): Change hidden_proto call to
33472 __roundeven.
33473 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33474 alias.
33475 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33476 (y0): Rename to __y0 and define as weak alias.
33477 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33478 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33479 alias.
33480 (y0f): Rename to __y0f and define as weak alias.
33481 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33482 alias.
33483 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33484 (y1): Rename to __y1 and define as weak alias.
33485 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33486 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33487 alias.
33488 (y1f): Rename to __y1f and define as weak alias.
33489 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33490 alias.
33491 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33492 (yn): Rename to __yn and define as weak alias.
33493 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33494 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33495 alias.
33496 (ynf): Rename to __ynf and define as weak alias.
33497 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33498 (fromfp): Define as weak alias.
33499 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33500 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33501 (fromfpx): Define as weak alias.
33502 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33503 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33504 __getpayload and define as weak alias.
33505 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33506 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33507 __roundeven and define as weak alias.
33508 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33509 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33510 __setpayload.
33511 (setpayload): Define as weak alias.
33512 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33513 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33514 __setpayloadsig.
33515 (setpayloadsig): Define as weak alias.
33516 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33517 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33518 __totalorder and define as weak alias.
33519 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33520 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33521 to __totalordermag and define as weak alias.
33522 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33523 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33524 (ufromfp): Define as weak alias.
33525 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33526 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33527 __ufromfpx.
33528 (ufromfpx): Define as weak alias.
33529 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33530 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33531 Rename to __getpayload and define as weak alias.
33532 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33533 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33534 Rename to __roundeven and define as weak alias.
33535 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33536 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33537 Rename to __totalorder and define as weak alias.
33538 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33539 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33540 (totalordermag): Rename to __totalordermag and define as weak
33541 alias.
33542 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33543 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33544 macro.
33545 (__roundevenl): Likewise.
33546 (__totalorderl): Likewise.
33547 (__totalordermagl): Likewise
33548 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33549 __fromfpf128.
33550 (fromfpf128): Define as weak alias.
33551 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33552 __fromfpxf128.
33553 (fromfpxf128): Define as weak alias.
33554 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33555 __setpayloadf128.
33556 (setpayloadf128): Define as weak alias.
33557 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33558 __setpayloadsigf128.
33559 (setpayloadsigf128): Define as weak alias.
33560 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33561 __ufromfpf128.
33562 (ufromfpf128): Define as weak alias.
33563 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33564 __ufromfpxf128.
33565 (ufromfpxf128): Define as weak alias.
33566 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33567 (fromfpf): Define as weak alias.
33568 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33569 __fromfpxf.
33570 (fromfpxf): Define as weak alias.
33571 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33572 __getpayloadf and define as weak alias.
33573 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33574 __roundevenf and define as weak alias.
33575 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33576 __setpayloadf.
33577 (setpayloadf): Define as weak alias.
33578 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33579 __setpayloadsigf.
33580 (setpayloadsigf): Define as weak alias.
33581 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33582 __totalorderf and define as weak alias.
33583 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33584 Rename to __totalordermagf and define as weak alias.
33585 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33586 __ufromfpf.
33587 (ufromfpf): Define as weak alias.
33588 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33589 __ufromfpxf.
33590 (ufromfpxf): Define as weak alias.
33591 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33592 __fromfpl.
33593 (fromfpl): Define as weak alias.
33594 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33595 __fromfpxl.
33596 (fromfpxl): Define as weak alias.
33597 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33598 to __getpayloadl and define as weak alias.
33599 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33600 __roundevenl and define as weak alias.
33601 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33602 __setpayloadl.
33603 (setpayloadl): Define as weak alias.
33604 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33605 __setpayloadsigl.
33606 (setpayloadsigl): Define as weak alias.
33607 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33608 to __totalorderl and define as weak alias.
33609 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33610 Rename to __totalordermagl and define as weak alias.
33611 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33612 __ufromfpl.
33613 (ufromfpl): Define as weak alias.
33614 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33615 __ufromfpxl.
33616 (ufromfpxl): Define as weak alias.
33617 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33618 __fromfpl.
33619 (fromfpl): Define as weak alias.
33620 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33621 __fromfpxl.
33622 (fromfpxl): Define as weak alias.
33623 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33624 Rename to __getpayloadl and define as weak alias.
33625 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33626 to __roundevenl and define as weak alias. Call __roundeven
33627 instead of roundeven.
33628 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33629 __setpayloadl.
33630 (setpayloadl): Define as weak alias.
33631 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33632 __setpayloadsigl.
33633 (setpayloadsigl): Define as weak alias.
33634 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33635 Rename to __totalorderl and define as weak alias.
33636 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33637 Rename to __totalordermagl and define as weak alias.
33638 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33639 __ufromfpl.
33640 (ufromfpl): Define as weak alias.
33641 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33642 __ufromfpxl.
33643 (ufromfpxl): Define as weak alias.
33644 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33645 __fromfpl.
33646 (fromfpl): Define as weak alias.
33647 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33648 __fromfpxl.
33649 (fromfpxl): Define as weak alias.
33650 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33651 __getpayloadl and define as weak alias.
33652 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33653 __roundevenl and define as weak alias.
33654 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33655 __setpayloadl.
33656 (setpayloadl): Define as weak alias.
33657 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33658 __setpayloadsigl.
33659 (setpayloadsigl): Define as weak alias.
33660 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33661 __totalorderl and define as weak alias.
33662 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33663 Rename to __totalordermagl and define as weak alias.
33664 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33665 __ufromfpl.
33666 (ufromfpl): Define as weak alias.
33667 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33668 __ufromfpxl.
33669 (ufromfpxl): Define as weak alias.
33670
33671 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33672
33673 * benchtests/bench-string.h (realloc_bufs): New function.
33674 (test_init): Call it.
33675 * benchtests/bench-memset-large.c (do_test): Likewise.
33676 * benchtests/bench-memset.c (do_test): Likewise.
33677
33678 * benchtests/bench-memset-large.c: Print output in JSON
33679 format.
33680 * benchtests/bench-memset.c: Likewise.
33681
33682 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33683
33684 [BZ #21084]
33685 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33686 * iconvdata/Makefile: Add IBM858.
33687 * iconvdata/gconv-modules: Likewise.
33688 * iconvdata/tst-tables.sh: Likewise.
33689 * iconvdata/ibm858.c: New file.
33690 * localedata/charmaps/IBM858: Likewise.
33691
33692 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33693
33694 [BZ #22023]
33695 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33696 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33697
33698 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33699
33700 [BZ #22112]
33701 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33702 and add tel_int_fmt.
33703
33704 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33705
33706 * sysdeps/generic/libm-alias-float128.h: New file.
33707 * sysdeps/generic/math-type-macros-float128.h: Include
33708 <libm-alias-float128.h>.
33709 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33710
33711 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33712
33713 * sysdeps/generic/libm-alias-ldouble.h: New file.
33714 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33715 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33716 * sysdeps/generic/math-type-macros-ldouble.h: Include
33717 <libm-alias-ldouble.h>.
33718 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33719 libm_alias_ldouble.
33720
33721 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33722
33723 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33724 * math/w_exp_compat.c: ... here.
33725 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33726 * math/w_expf_compat.c: ... here.
33727 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33728 * math/w_expl_compat.c: ... here.
33729 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33730 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33731 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33732 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33733
33734 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33735
33736 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33737 redefine.
33738 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33739 macro.
33740 (ldexpl): Only define as compat symbol for libc, not libm.
33741 (scalbnl): Define as compat symbol for libc here.
33742 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33743 define for [IS_IN (libc)].
33744 (__ldexpl_2): Remove alias.
33745 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33746 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33747 name in long_double_symbol call.
33748 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33749 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33750 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33751 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33752 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33753 Remove macro.
33754 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33755 Define as compat symbol.
33756
33757 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33758
33759 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33760 * sysdeps/unix/sysv/linux/alpha/Makefile
33761 [$(subdir) = csu] (sysdep_routines): Remove rule.
33762
33763 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33764
33765 * sysdeps/generic/libm-alias-double.h: New file.
33766 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33767 * sysdeps/generic/math-type-macros-double.h: Include
33768 <libm-alias-double.h>.
33769 [declare_mgen_alias] (declare_mgen_alias): Define to use
33770 libm_alias_double.
33771 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33772 (M_LIBM_NEED_COMPAT): Remove macro.
33773 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33774 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33775 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33776 code.
33777 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33778 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33779 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33780 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33781 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33782 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33783 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33784 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33785 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33786 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33787 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33788 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33789 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33790 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33791 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33792 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33793 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33794 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33795 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33796 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33797 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33798 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33799 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33800 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33801 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33802 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33803 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33804 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33805 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33806 macro.
33807 (declare_mgen_alias): New macro.
33808 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33809 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33811 (M_LIBM_NEED_COMPAT): Remove macro.
33812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33813 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33814 <first-versions.h>.
33815 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33816 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33817
33818 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33819
33820 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33821 (declare_mgen_alias_2): Remove.
33822 * sysdeps/generic/math-type-macros-double.h
33823 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33824 Likewise.
33825 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33826 alias.
33827 (ldexp): Define with declare_mgen_alias.
33828 (scalbn): Likewise.
33829
33830 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33831
33832 * grp/initgroups.c: Include config.h.
33833 (DEFAULT_CONFIG): New macro.
33834 (internal_getgrouplist): Use DEFAULT_CONFIG.
33835 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33836 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33837 (DEFAULT_DEFCONFIG): New macro.
33838 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33839 * nss/grp-lookup.c: Include config.h
33840 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33841 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33842 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33843 * manual/nss.texi: Update default values section.
33844
33845 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33846
33847 [BZ #21967]
33848 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33849 New.
33850 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33851 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33852 Handle MathVec_Prefer_No_AVX512.
33853 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33854 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33855 is set.
33856
33857 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33858
33859 * posix/sched_primax.c (__sched_get_priority_max): Add
33860 libc_hidden_def.
33861 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33862 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33863 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33864 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33865 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33866 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33867 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33868 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33869 Add aliases.
33870
33871 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33872
33873 * sysdeps/generic/libm-alias-float.h: New file.
33874 * sysdeps/generic/math-type-macros-float.h: Include
33875 <libm-alias-float.h>.
33876 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33877
33878 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33879
33880 [BZ #22093]
33881 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33882 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33883 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33884 (HWCAP_IMPORTANT): Likewise.
33885 (HWCAP_X86_64): New enum.
33886 (HWCAP_X86_AVX512_1): Updated.
33887 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33888 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33889 (modules-names): Add x86_64/tst-x86_64mod-1.
33890 (LDFLAGS-tst-x86_64mod-1.so): New.
33891 ($(objpfx)tst-x86_64-1): Likewise.
33892 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33893 (tst-x86_64-1-clean): Likewise.
33894 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33895 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33896
33897 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33898
33899 * po/sv.po: Update translations.
33900 * po/fr.po: Likewise.
33901
33902 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33903
33904 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33905 seconds.
33906 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33907 seconds.
33908 * elf/rtld-Rules: Fix $(error) use.
33909
33910 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33911
33912 [BZ #14925]
33913 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33914 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33915 * localedata/locales/bn_BD: “Bengali” was still used in some
33916 comments. Change it to “Bangla”.
33917
33918 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33919
33920 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33921
33922 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33923
33924 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33925 thunderx2t99p1 to list of cpu names.
33926 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33927 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33928
33929 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33930
33931 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33932 Use strcmp instead of tunable_is_name.
33933
33934 2017-09-08 Joseph Myers <joseph@codesourcery.com>
33935
33936 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33937 (F_GET_RW_HINT): New macro.
33938 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33939 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33940 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33941 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33942 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33943 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33944 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33945 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33946 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33947
33948 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33949 (F_ADD_SEALS): New macro.
33950 [__USE_GNU] (F_GET_SEALS): Likewise.
33951 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33952 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33953 [__USE_GNU] (F_SEAL_GROW): Likewise.
33954 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33955
33956 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33957
33958 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33959 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33960 * posix/glob_internal.h (__glob_pattern_type):
33961 * posix/glob.c (glob):
33962 * posix/glob_pattern_p.c (__glob_pattern_p):
33963 Use them.
33964
33965 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33966 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33967 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33968 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33969 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33971 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33972 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33973 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33974 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33975 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33976 * sysdeps/wordsize-64/glob.c: Likewise.
33977 * sysdeps/wordsize-64/glob64.c: Likewise.
33978 * sysdeps/wordsize-64/globfree.c: Likewise.
33979 * sysdeps/wordsize-64/globfree64.c: Likewise.
33980 * sysdeps/unix/sysv/linux/glob.c: New file.
33981 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33982 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33983 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33984 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33985 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33986 adds !GLOB_NO_OLD_VERSION as an extra condition.
33987 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33988 using relative path instead of absolute one.
33989 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33990 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33991 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33992 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33993 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33994 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33995
33996 [BZ #1062]
33997 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33998 (glob): Use the same scratch buffer for both getlogin_r and
33999 getpwnam_r. Don’t require preallocation of the login name. This
34000 simplifies storage allocation, and corrects the handling of
34001 long login names.
34002
34003 [BZ #1062]
34004 * posix/glob.c (glob): Port recent patches to platforms
34005 lacking getpwnam_r.
34006 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34007 returns an error number rather than setting errno.
34008
34009 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34010 instead of GCC extension.
34011 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34012 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34013 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34014
34015 [BZ #866]
34016 [BZ #1062]
34017 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34018 * posix/bug-glob1.c: Remove file.
34019 * posix/tst-glob_symlinks.c: New file.
34020 * posix/glob.c (__lstat64): New macro.
34021 (is_dir): New function.
34022 (glob, glob_in_dir): Match symlinks even if they are dangling.
34023 (link_stat, link_exists_p): Remove. All uses removed.
34024
34025 [BZ #1062]
34026 [BZ #19971]
34027 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34028 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34029 All uses removed.
34030
34031 [BZ #1062]
34032 CVE-2017-15671
34033 * posix/Makefile (routines): Add globfree, globfree64, and
34034 glob_pattern_p.
34035 * posix/flexmember.h: New file.
34036 * posix/glob_internal.h: Likewise.
34037 * posix/glob_pattern_p.c: Likewise.
34038 * posix/globfree.c: Likewise.
34039 * posix/globfree64.c: Likewise.
34040 * sysdeps/gnu/globfree64.c: Likewise.
34041 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34042 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34043 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34044 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34045 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34046 * sysdeps/wordsize-64/globfree.c: Likewise.
34047 * sysdeps/wordsize-64/globfree64.c: Likewise.
34048 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34049 [NDEBUG): Remove comments.
34050 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34051 (dirent_type): New type. Use uint_fast8_t not
34052 uint8_t, as C99 does not require uint8_t.
34053 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34054 (struct readdir_result): Use dirent_type. Do not define skip_entry
34055 unless it is needed; this saves a byte on platforms lacking d_ino.
34056 (readdir_result_type, readdir_result_skip_entry):
34057 New functions, replacing ...
34058 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34059 these functions, which were removed. This makes the callers
34060 easier to read. All callers changed.
34061 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34062 (size_add_wrapv, glob_use_alloca): New static functions.
34063 (glob, glob_in_dir): Check for size_t overflow in several places,
34064 and fix some size_t checks that were not quite right.
34065 Remove old code using SHELL since Bash no longer
34066 uses this.
34067 (glob, prefix_array): Separate MS code better.
34068 (glob_in_dir): Remove old Amiga and VMS code.
34069 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34070 separate files.
34071 (glob_in_dir): Do not rely on undefined behavior in accessing
34072 struct members beyond their bounds. Use a flexible array member
34073 instead
34074 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34075 0/1. Caller changed.
34076 (glob): Fix memory leaks.
34077 * posix/glob64 (globfree64): Move to separate file.
34078 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34079 (globfree64): Remove hidden alias.
34080 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34081 oldglob.
34082 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34083 separate file.
34084 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34085 define.
34086 Move compat code to separate file.
34087 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34088 separate file.
34089
34090 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34091
34092 * resolv/tst-resolv-qtypes.c (domain): Changed to
34093 "const char domain[] =".
34094
34095 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34096
34097 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34098 version to 3.1.6.
34099
34100 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34101 (TCP_MD5SIG_EXT): Likewise.
34102 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34103 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34104 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34105
34106 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34107
34108 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34109
34110 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34111
34112 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34113
34114 [BZ #22100]
34115 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34116
34117 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34118
34119 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34120 before assuming that the file is empty. Avoid testing buffer content
34121 when nread == 0.
34122
34123 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34124
34125 [BZ #18858]
34126 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34127 Remove define.
34128 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34129 Likewise.
34130 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34131 Likewise.
34132 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34133 Likewise.
34134 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34135 Likewise.
34136 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34137 Likewise.
34138 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34139 Likewise.
34140
34141 2017-09-06 Florian Weimer <fweimer@redhat.com>
34142
34143 * malloc/dynarray_emplace_enlarge.c
34144 (__libc_dynarray_emplace_enlarge): Add missing else.
34145
34146 2017-09-06 Florian Weimer <fweimer@redhat.com>
34147
34148 [BZ #22096]
34149 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34150 case of failure to obtain the global conf object.
34151
34152 2017-09-06 Florian Weimer <fweimer@redhat.com>
34153
34154 [BZ #22095]
34155 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34156 dynarray allocation failure.
34157
34158 2017-09-06 Florian Weimer <fweimer@redhat.com>
34159
34160 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34161 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34162 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34163 New functions.
34164 (response): Call them. Add 'p', '6' flag processing.
34165 (test_reverse): New function.
34166 (test_get2_any): Call it.
34167 (test_no_inet6): Add 'p' test.
34168 (test_inet6): Likewise.
34169
34170 2017-09-06 Florian Weimer <fweimer@redhat.com>
34171
34172 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34173 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34174 the QNAME.
34175 (test_gai): Adjust query names. Add additional tests.
34176 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34177 test_get2. Adjust query names. Add additional tests.
34178 (test_no_inet6): New function, extracted from threadfunc.
34179 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34180 Add additional tests.
34181
34182 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34183
34184 [BZ #22070]
34185 * localedata/unicode-gen/utf8_gen.py: Set the width for
34186 characters with Prepended_Concatenation_Mark property to 1
34187 * localedata/charmaps/UTF-8: Updated using the improved script.
34188
34189 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34190
34191 [BZ #21750]
34192 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34193 use the range notation for all ranges of neighbouring characters
34194 with the same width.
34195
34196 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34197
34198 * sysdeps/generic/math-type-macros-double.h: Include
34199 <math-svid-compat.h>.
34200 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34201 * sysdeps/generic/math-type-macros-float.h: Include
34202 <math-svid-compat.h>.
34203 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34204 * sysdeps/generic/math-type-macros-ldouble.h: Include
34205 <math-svid-compat.h>.
34206 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34207 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34208 condition.
34209 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34210 * math/w_acosf_compat.c: Likewise.
34211 * math/w_acosh_compat.c: Likewise.
34212 * math/w_acoshf_compat.c: Likewise.
34213 * math/w_acoshl_compat.c: Likewise.
34214 * math/w_acosl_compat.c: Likewise.
34215 * math/w_asin_compat.c: Likewise.
34216 * math/w_asinf_compat.c: Likewise.
34217 * math/w_asinl_compat.c: Likewise.
34218 * math/w_atan2_compat.c: Likewise.
34219 * math/w_atan2f_compat.c: Likewise.
34220 * math/w_atan2l_compat.c: Likewise.
34221 * math/w_atanh_compat.c: Likewise.
34222 * math/w_atanhf_compat.c: Likewise.
34223 * math/w_atanhl_compat.c: Likewise.
34224 * math/w_cosh_compat.c: Likewise.
34225 * math/w_coshf_compat.c: Likewise.
34226 * math/w_coshl_compat.c: Likewise.
34227 * math/w_exp10_compat.c: Likewise.
34228 * math/w_exp10f_compat.c: Likewise.
34229 * math/w_exp10l_compat.c: Likewise.
34230 * math/w_exp2_compat.c: Likewise.
34231 * math/w_exp2f_compat.c: Likewise.
34232 * math/w_exp2l_compat.c: Likewise.
34233 * math/w_fmod_compat.c: Likewise.
34234 * math/w_fmodf_compat.c: Likewise.
34235 * math/w_fmodl_compat.c: Likewise.
34236 * math/w_hypot_compat.c: Likewise.
34237 * math/w_hypotf_compat.c: Likewise.
34238 * math/w_hypotl_compat.c: Likewise.
34239 * math/w_j0_compat.c: Likewise.
34240 * math/w_j0f_compat.c: Likewise.
34241 * math/w_j0l_compat.c: Likewise.
34242 * math/w_j1_compat.c: Likewise.
34243 * math/w_j1f_compat.c: Likewise.
34244 * math/w_j1l_compat.c: Likewise.
34245 * math/w_jn_compat.c: Likewise.
34246 * math/w_jnf_compat.c: Likewise.
34247 * math/w_jnl_compat.c: Likewise.
34248 * math/w_lgamma_r_compat.c: Likewise.
34249 * math/w_lgammaf_r_compat.c: Likewise.
34250 * math/w_lgammal_r_compat.c: Likewise.
34251 * math/w_log10_compat.c: Likewise.
34252 * math/w_log10f_compat.c: Likewise.
34253 * math/w_log10l_compat.c: Likewise.
34254 * math/w_log2_compat.c: Likewise.
34255 * math/w_log2f_compat.c: Likewise.
34256 * math/w_log2l_compat.c: Likewise.
34257 * math/w_log_compat.c: Likewise.
34258 * math/w_logf_compat.c: Likewise.
34259 * math/w_logl_compat.c: Likewise.
34260 * math/w_pow_compat.c: Likewise.
34261 * math/w_powf_compat.c: Likewise.
34262 * math/w_powl_compat.c: Likewise.
34263 * math/w_remainder_compat.c: Likewise.
34264 * math/w_remainderf_compat.c: Likewise.
34265 * math/w_remainderl_compat.c: Likewise.
34266 * math/w_sinh_compat.c: Likewise.
34267 * math/w_sinhf_compat.c: Likewise.
34268 * math/w_sinhl_compat.c: Likewise.
34269 * math/w_sqrt_compat.c: Likewise.
34270 * math/w_sqrtf_compat.c: Likewise.
34271 * math/w_sqrtl_compat.c: Likewise.
34272 * math/w_tgamma_compat.c: Likewise.
34273 * math/w_tgammaf_compat.c: Likewise.
34274 * math/w_tgammal_compat.c: Likewise.
34275 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34276 [LIBM_SVID_COMPAT].
34277 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34278 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34279 [LIBM_SVID_COMPAT].
34280 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34281 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34282 [LIBM_SVID_COMPAT].
34283 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34284 * sysdeps/i386/fpu/w_sqrt.c: New file.
34285 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34286 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34287 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34288 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34289 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34290 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34291 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34292 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34293 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34294 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34295 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34296 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34297 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34298 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34299 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34300 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34301 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34302 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34303 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34304 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34305 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34306 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34307 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34308 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34309 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34310 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34311 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34312 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34313 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34314 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34315 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34316 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34317 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34318 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34319 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34320 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34321 * sysdeps/ia64/fpu/w_log.c: Likewise.
34322 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34323 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34324 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34325 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34326 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34327 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34328 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34329 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34330 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34331 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34332 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34333 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34334 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34335 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34336 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34337 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34338 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34339 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34340 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34341 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34342 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34343 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34344 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34345 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34346 [LIBM_SVID_COMPAT].
34347 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34348 * sysdeps/ieee754/k_standard.c: Likewise.
34349 * sysdeps/ieee754/k_standardf.c: Likewise.
34350 * sysdeps/ieee754/k_standardl.c: Likewise.
34351 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34352 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34353 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34354 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34355 long_double_symbol call on [LIBM_SVID_COMPAT].
34356 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34357 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34358 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34359 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34360 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34361 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34362 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34363 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34364 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34365 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34366 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34367 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34368 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34369 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34370 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34371 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34372 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34373 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34374 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34375 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34376 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34377 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34378
34379 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34380
34381 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34382 * malloc/tst-mallocstate.c: Convert from test-skeleton
34383 to test-driver. Ifdef code using TEST_COMPAT macro.
34384 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34385 * math/test-matherr.c: Likewise.
34386
34387 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34388
34389 [BZ #22086]
34390 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34391 comparing word with byte-swapped constant.
34392
34393 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34394
34395 [BZ #20498]
34396 * locale/iso-639.def: add Miskito.
34397 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34398 * localedata/locales/miq_NI: New file.
34399
34400 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34401
34402 [BZ #18822]
34403 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34404 (__mkdir): Likewise.
34405 * io/chmod.c (__chmod): Add libc_hidden_def.
34406 * io/mkdir.c (__mkdir): Likewise.
34407 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34408 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34409 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34410 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34411
34412 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34413
34414 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34415 version to 4.13.
34416
34417 [BZ #22082]
34418 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34419 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34420
34421 2017-09-04 Florian Weimer <fweimer@redhat.com>
34422
34423 * math/math.h: Issue warning if log is defined.
34424
34425 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34426
34427 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34428 kernel version to 4.13.
34429
34430 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34431
34432 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34433 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34434 parameter.
34435 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34436 just <bits/types.h>.
34437 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34438 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34439 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34440 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34441 * misc/preadv2.c: Include <errno.h>.
34442 * misc/preadv64v2.c: Include <errno.h>.
34443 * misc/pwritev2.c: Include <errno.h>.
34444 * misc/pwritev64v2.c: Include <errno.h>.
34445 * sysdeps/posix/preadv2.c: Include <errno.h>.
34446 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34447 Fix <unistd.h> inclusion.
34448 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34449 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34450 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34451 __strtoul_internal): New functions.
34452 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34453 * sysdeps/posix/system.c: Include <sigsetops.h>.
34454 * sysdeps/mach/hurd/i386/Makefile
34455 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34456 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34457 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34458 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34459 __feraiseexcept_renamed to feraiseexcept instead of
34460 __GI_feraiseexcept.
34461 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34462 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34463 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34464 RWF_NOWAIT): Define to 0 if undefined already.
34465 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34466 boils down to 0.
34467 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34468 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34469
34470 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34471
34472 * manual/math.texi (pow10): Do not document.
34473 (pow10f): Likewise.
34474 (pow10l): Likewise.
34475 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34476 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34477 * math/libm-test-exp10.inc (pow10_test): Remove.
34478 (do_test): Do not call pow10.
34479 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34480 [NO_LONG_DOUBLE] (pow10l): Likewise.
34481 * math/w_exp10f_compat.c (pow10f): Likewise.
34482 * math/w_exp10l_compat.c (pow10l): Likewise.
34483 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34484 (pow10): Make into compat symbol.
34485 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34486 (pow10f): Make into compat symbol.
34487 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34488 (pow10l): Make into compat symbol.
34489 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34490 pow10.
34491 (CFLAGS-nldbl-pow10.c): Remove variable..
34492 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34493 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34494 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34495 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34496 Undefine and redefine.
34497 (pow10l): Make into compat symbol.
34498 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34499 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34500 * sysdeps/arm/libm-test-ulps: Likewise.
34501 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34502 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34503 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34504 * sysdeps/microblaze/libm-test-ulps: Likewise.
34505 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34506 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34507 * sysdeps/nios2/libm-test-ulps: Likewise.
34508 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34509 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34510 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34511 * sysdeps/sh/libm-test-ulps: Likewise.
34512 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34513 * sysdeps/tile/libm-test-ulps: Likewise.
34514 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34515
34516 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34517
34518 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34519
34520 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34521
34522 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34523 "../ChangeLog.old/ChangeLog.8".
34524 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34525 "../ChangeLog.old/ChangeLog.14".
34526
34527 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34528
34529 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34530 Threads Library.
34531
34532 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34533
34534 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34535
34536 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34537
34538 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34539 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34540
34541 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34542
34543 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34544 32 atexit handlers.
34545
34546 2017-09-01 Zack Weinberg <zackw@panix.com>
34547
34548 * math/math.h (HUGE_VAL): Improve commentary.
34549
34550 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34551 Andreas Schwab <schwab@suse.de>
34552
34553 [BZ #21530]
34554 * include/stdio.h (__gen_tempfd): New function.
34555 * stdio-common/Makefile (routines): Add gentempfd.
34556 * stdio-common/gentempfd.c: New file.
34557 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34558 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34559 unnamed file first.
34560
34561 2017-09-01 Florian Weimer <fweimer@redhat.com>
34562
34563 [BZ #21915]
34564 [BZ #21922]
34565 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34566 result to determine success or failure, not the errno value.
34567 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34568 (tst-nss-files-hosts-erange): Link with -ldl.
34569 * nss/tst-nss-files-hosts-erange.c: New file.
34570 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34571 (do_test): Add NO_DATA tests.
34572 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34573 (do_test): Call it.
34574
34575 2017-09-01 Florian Weimer <fweimer@redhat.com>
34576
34577 [BZ #21922]
34578 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34579 coming from gethostbyname2_r.
34580
34581 2017-09-01 Florian Weimer <fweimer@redhat.com>
34582
34583 * support/namespace.h (struct support_chroot_configuration): Add
34584 hosts, host_conf.
34585 (struct support_chroot): Add path_hosts, path_host_conf.
34586 * support/support_chroot.c (write_file): New function.
34587 (support_chroot_create): Call it to process /etc/resolv.conf,
34588 /etc/hosts, /etc/host.conf.
34589 (support_chroot_free): Update.
34590
34591 2017-09-01 Florian Weimer <fweimer@redhat.com>
34592
34593 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34594 status indicates it is set.
34595
34596 2017-09-01 Florian Weimer <fweimer@redhat.com>
34597
34598 [BZ #20532]
34599 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34600 function lookup failures more reliable.
34601
34602 2017-09-01 Florian Weimer <fweimer@redhat.com>
34603
34604 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34605 (getcanonname): Likewise.
34606 (gaih_inet): Likewise.
34607
34608 2017-09-01 Florian Weimer <fweimer@redhat.com>
34609
34610 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34611 (getcanonname): Likewise.
34612 (gaih_inet): Likewise.
34613
34614 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34615 Richard Henderson <rth@twiddle.net>
34616
34617 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34618 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34619 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34620 (IREG_SIZE, OREG_SIZE): New macros.
34621 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34622 (IREG_SIZE, OREG_SIZE): New macros.
34623 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34624 (IREG_SIZE): New macro.
34625 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34626 (IREG_SIZE): New macro.
34627 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34628 New includes.
34629 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34630 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34631 (__CONCATX): Handle exceptions correctly on large values that may
34632 set FE_INVALID.
34633 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34634 Initialize if not already set.
34635 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34636
34637 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34638
34639 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34640 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34641 Likewise.
34642 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34643 Likewise.
34644 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34645 Likewise.
34646 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34647 Likewise.
34648 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34649 Likewise.
34650 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34651 Likewise.
34652 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34653 Likewise.
34654 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34655 (NO_CANCELLATION): Likewise.
34656 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34657 Likewise.
34658 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34659 Likewise.
34660 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34661 Likewise.
34662 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34663 (NO_CANCELLATION): Likewise.
34664 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34665 (NO_CANCELLATION): Likewise.
34666 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34667 Likewise
34668 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34669 Likewise.
34670 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34671 Likewise.
34672 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34673 Likewise.
34674 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34675 hidden prototype.
34676 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34677 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34678
34679 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34680
34681 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34682 in resolver call.
34683
34684 2017-08-31 Florian Weimer <fweimer@redhat.com>
34685
34686 * include/libc-symbols.h (internal_function): Remove.
34687
34688 2017-08-31 Florian Weimer <fweimer@redhat.com>
34689
34690 * stdlib/fmtmsg.c (internal_addseverity): Remove
34691 internal_function.
34692
34693 2017-08-31 Florian Weimer <fweimer@redhat.com>
34694
34695 * stdio-common/printf_fp.c (group_number): Remove
34696 internal_function.
34697 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34698
34699 2017-08-31 Florian Weimer <fweimer@redhat.com>
34700
34701 * posix/fnmatch.c (internal_function): Remove definition.
34702 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34703 * posix/regcomp.c (peek_token, init_word_char)
34704 (duplicate_node_closure, fetch_token, peek_token)
34705 (peek_token_bracket, build_range_exp, build_collating_symbol):
34706 Likewise.
34707 * posix/regex_internal.c (re_string_construct_common)
34708 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34709 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34710 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34711 (re_string_translate_buffer, re_string_reconstruct)
34712 (re_string_peek_byte_case, re_string_fetch_byte_case)
34713 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34714 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34715 (re_node_set_add_intersect, re_node_set_init_union)
34716 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34717 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34718 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34719 (re_acquire_state_context): Likewise.
34720 * posix/regex_internal.h (internal_function): Remove definition.
34721 (re_string_realloc_buffers, build_wcs_buffer)
34722 (build_wcs_upper_buffer, build_upper_buffer)
34723 (re_string_translate_buffer, re_string_context_at)
34724 (re_string_char_size_at, re_string_wchar_at)
34725 (re_string_elem_size_at): Likewise.
34726 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34727 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34728 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34729 (re_search_internal, re_search_2_stub, re_search_stub)
34730 (re_copy_regs, prune_impossible_nodes, check_matching)
34731 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34732 (free_fail_stack_return, sift_states_iter_mb)
34733 (sift_states_backward, build_sifted_states)
34734 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34735 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34736 (check_subexp_limits, sift_states_bkref, merge_state_array)
34737 (find_recover_state, transit_state, merge_state_with_log)
34738 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34739 (transit_state_mb, transit_state_bkref, get_subexp)
34740 (get_subexp_sub, find_subexp_node, check_arrival)
34741 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34742 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34743 (check_node_accept_bytes, find_collation_sequence_value)
34744 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34745 (acquire_init_state_context, check_halt_node_context)
34746 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34747 (sub_epsilon_src_nodes): Likewise.
34748 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34749 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34750 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34751 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34752 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34753 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34754 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34755 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34756 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34757 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34758 (PREADV): Likewise.
34759 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34760 (PREADV): Likewise.
34761 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34762 (PWRITEV): Likewise.
34763 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34764 (PWRITEV): Likewise.
34765 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34766 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34767
34768 2017-08-31 Florian Weimer <fweimer@redhat.com>
34769
34770 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34771 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34772 Remove internal_function.
34773 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34774 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34775 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34776 (__deallocate_stack, __libc_pthread_init)
34777 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34778 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34779 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34780 Likewise.
34781 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34782 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34783 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34784 Likewise.
34785 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34786 (__pthread_mutex_unlock_usercnt): Likewise.
34787
34788 2017-08-31 Florian Weimer <fweimer@redhat.com>
34789
34790 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34791 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34792 (fts_safe_changedir): Remove internal_function.
34793 * io/ftw.c (internal_function): Remove definition.
34794 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34795
34796 2017-08-31 Florian Weimer <fweimer@redhat.com>
34797
34798 * inet/deadline.c (__deadline_current_time)
34799 (__deadline_from_timeval, __deadline_to_ms): Remove
34800 internal_function.
34801 * inet/getnameinfo.c (nrl_domainname): Likewise.
34802 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34803 * inet/inet6_option.c (add_pad): Likewise.
34804 * inet/net-internal.h (__deadline_current_time)
34805 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34806 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34807 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34808 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34809
34810 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34811
34812 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34813 include <bits/nan.h>.
34814 * math/Makefile (headers): Remove bits/nan.h.
34815 * bits/nan.h: Remove.
34816 * sysdeps/ieee754/bits/nan.h: Likewise.
34817 * sysdeps/mips/bits/nan.h: Likewise.
34818
34819 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34820 not include <bits/inf.h>.
34821 * math/Makefile (headers): Remove bits/inf.h.
34822 * bits/inf.h: Remove.
34823 * sysdeps/ieee754/bits/inf.h: Likewise.
34824
34825 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34826 bits/huge_vall.h or bits/huge_val_flt128.h.
34827 (HUGE_VAL): Define directly here.
34828 [__USE_ISOC99] (HUGE_VALF): Likewise.
34829 [__USE_ISOC99] (HUGE_VALL): Likewise.
34830 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34831 (HUGE_VAL_F128): Likewise.
34832 * math/Makefile (headers): Remove bits/huge_val.h,
34833 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34834 * bits/huge_val.h: Remove.
34835 * bits/huge_val_flt128.h: Likewise.
34836 * bits/huge_valf.h: Likewise.
34837 * bits/huge_vall.h: Likewise.
34838 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34839 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34840 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34841 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34842 * sysdeps/sh/bits/huge_val.h: Likewise.
34843 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34844 * sysdeps/x86/bits/huge_vall.h: Likewise.
34845
34846 2017-08-31 Florian Weimer <fweimer@redhat.com>
34847
34848 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34849 internal_function.
34850 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34851 Likewise.
34852 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34853 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34854 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34855 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34856 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34857 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34858 * elf/dl-libc.c (dlerror_run): Likewise.
34859 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34860 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34861 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34862 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34863 Likewise.
34864 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34865 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34866 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34867 * elf/dl-profile.c (_dl_start_profile): Likewise.
34868 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34869 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34870 Likewise.
34871 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34872 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34873 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34874 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34875 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34876 (_dl_allocate_tls_storage): Likewise.
34877 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34878 (_dl_check_all_versions): Likewise.
34879 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34880 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34881 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34882 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34883 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34884 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34885 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34886 internal_function from __dl_start.
34887 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34888 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34889 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34890 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34891 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34892 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34893 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34894 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34895 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34896 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34897 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34898 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34899 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34900 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34901 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34902 Likewise.
34903 (struct rtld_global_ro): Remove internal_function from the
34904 _dl_lookup_symbol_x member.
34905 (_dl_symbol_value): Remove. No longer defined anywhere.
34906 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34907 internal_function.
34908 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34909 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34910 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34911 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34912 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34913 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34914 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34915 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34916 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34917 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34918 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34919 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34920
34921 2017-08-31 Florian Weimer <fweimer@redhat.com>
34922
34923 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34924 Remove internal_function.
34925 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34926 Likewise.
34927 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34928 Likewise.
34929
34930 2017-08-31 Florian Weimer <fweimer@redhat.com>
34931
34932 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34933 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34934 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34935
34936 2017-08-31 Florian Weimer <fweimer@redhat.com>
34937
34938 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34939 (__gai_enqueue_request): Remove internal_function.
34940 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34941 (__gai_remove_request, __gai_notify, __gai_notify_only)
34942 (__gai_sigqueue): Likewise.
34943 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34944 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34945 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34946 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34947 Likewise.
34948
34949 2017-08-31 Florian Weimer <fweimer@redhat.com>
34950
34951 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34952 * include/dirent.h (__opendirat, __getdents, __getdents64)
34953 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34954 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34955 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34956 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34957 Likewise.
34958 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34959
34960 2017-08-31 Florian Weimer <fweimer@redhat.com>
34961
34962 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34963 internal_function.
34964 (GETCWD_RETURN_TYPE): Likewise.
34965
34966 2017-08-31 Florian Weimer <fweimer@redhat.com>
34967
34968 * include/time.h (__tz_compute, __strptime_internal): Remove
34969 internal_function.
34970 * time/strptime_l.c (__strptime_internal): Likewise.
34971 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34972
34973 2017-08-31 Florian Weimer <fweimer@redhat.com>
34974
34975 * iconv/gconv.c (__gconv): Remove internal_function.
34976 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34977 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34978 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34979 (__gconv_release_cache): Likewise.
34980 * iconv/gconv_close.c (__gconv_close): Likewise.
34981 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34982 (read_conf_file, __gconv_get_path): Likewise.
34983 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34984 (__gconv_release_step, gen_steps, increment_counter)
34985 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34986 (__gconv_close_transform, free_modules_db): Likewise.
34987 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34988 Likewise.
34989 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34990 (__gconv_find_transform, __gconv_lookup_cache)
34991 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34992 (__gconv_close_transform, __gconv_release_cache)
34993 (__gconv_loaded_object, __gconv_release_shlib)
34994 (__gconv_compare_alias): Likewise.
34995 * iconv/gconv_open.c (__gconv_open): Likewise.
34996 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34997 * iconv/iconvconfig.c (add_module): Likewise.
34998 * intl/dcigettext.c (plural_lookup, guess_category_value)
34999 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35000 * intl/eval-plural.h (plural_eval): Likewise.
35001 * intl/finddomain.c (_nl_find_domain): Likewise.
35002 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35003 (_nl_load_domain, _nl_find_msg): Likewise.
35004 (internal_function): Remove definition.
35005 * intl/loadinfo.h (internal_function): Likewise.
35006 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35007 internal_function.
35008 * intl/localealias.c (internal_function): Remove definition.
35009 (read_alias_file): Remove internal_function.
35010 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35011 * intl/plural-exp.h (internal_function): Remove definition.
35012 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35013 internal_function.
35014 * intl/plural.c: Regenerate.
35015 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35016 * locale/coll-lookup.c (__collidx_table_lookup)
35017 (__collseq_table_lookup): Likewise.
35018 * locale/coll-lookup.h (__collidx_table_lookup)
35019 (__collseq_table_lookup): Likewise.
35020 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35021 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35022 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35023 (_nl_unload_locale): Likewise.
35024 * locale/localeinfo.h (struct __locale_data): Remove
35025 internal_function from cleanup member.
35026 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35027 (_nl_remove_locale, _nl_load_locale_from_archive)
35028 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35029 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35030 (_nl_cleanup_time): Remove internal_function.
35031 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35032 (_nl_parse_alt_digit): Likewise.
35033 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35034 (_nl_select_era_entry): Likewise.
35035 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35036 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35037 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35038 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35039 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35040
35041 2017-08-31 Florian Weimer <fweimer@redhat.com>
35042
35043 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35044 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35045 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35046 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35047 Likewise.
35048 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35049 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35050 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35051 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35052 Likewise.
35053 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35054
35055 2017-08-31 Florian Weimer <fweimer@redhat.com>
35056
35057 * misc/getttyent.c (skip, value): Remove internal_function.
35058 * misc/syslog.c (openlog_internal): Likewise.
35059 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35060
35061 2017-08-31 Florian Weimer <fweimer@redhat.com>
35062
35063 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35064 (__nss_rewrite_field): Remove internal_function.
35065 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35066 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35067 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35068 * nss/nsswitch.c (nss_parse_file, nss_getline)
35069 (nss_parse_service_list, nss_new_service): Likewise.
35070 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35071 * nss/valid_field.c (__nss_valid_field): Likewise.
35072 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35073
35074 2017-08-31 Florian Weimer <fweimer@redhat.com>
35075
35076 * malloc/arena.c (__malloc_fork_lock_parent)
35077 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35078 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35079 internal_function from defintions.
35080 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35081 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35082 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35083 internal_function from declarations.
35084 * malloc/malloc.c (internal_function): Do not define.
35085 (mem2mem_check): Remove internal_function from declaration.
35086 (munmap_chunk, mremap_chunk): Remove internal_function.
35087 * malloc/mtrace.c (tr_where): Likewise.
35088
35089 2017-08-31 Florian Weimer <fweimer@redhat.com>
35090
35091 * include/rpc/pmap_clnt.h (__get_socket): Remove
35092 internal_function.
35093 * sunrpc/auth_des.c (synchronize): Likewise.
35094 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35095 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35096 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35097 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35098 (key_call): Likewise.
35099 * sunrpc/pm_getport.c (__get_socket): Likewise.
35100 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35101 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35102 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35103 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35104 (invalidate): Likewise.
35105 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35106 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35107 (set_input_fragment, get_input_bytes): Likewise.
35108
35109 2017-08-31 Florian Weimer <fweimer@redhat.com>
35110
35111 * malloc/malloc.c (_int_free): Remove locked variable and related
35112 asserts.
35113
35114 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35115
35116 [BZ #22051]
35117 * Makerules (build-module-helper-objlist): Filter out
35118 $(elf-objpfx)sofini.os.
35119 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35120 needed.
35121
35122 2017-08-31 Florian Weimer <fweimer@redhat.com>
35123
35124 * libio/fcloseall.c: Assume weak_alias is defined.
35125 * libio/feof.c: Likewise.
35126 * libio/fileno.c: Likewise.
35127 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35128 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35129 definitions.
35130 (_IO_file_open): Call __open directly.
35131 (_IO_new_file_sync): Assume ESPIPE is defined.
35132 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35133 (_IO_new_file_write): Call __write directly.
35134 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35135 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35136 * libio/genops.c: Assume _LIBC is defined.
35137 (save_for_backup): Remove internal_function.
35138 * libio/getc.c: Assume weak_alias is defined.
35139 * libio/getwc.c: Likewise.
35140 * libio/iofclose.c: Assume _LIBC is defined.
35141 * libio/iofdopen.c: Likewise.
35142 (_IO_fcntl): Remove macro definition.
35143 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35144 Call __fcntl directly.
35145 * libio/iofflush.c: Assume weak_alias is defined.
35146 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35147 defined.
35148 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35149 * libio/iofgets.c: Likewise.
35150 * libio/iofopen.c: Assume _LIBC is defined.
35151 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35152 * libio/iofputs.c: Assume weak_alias is defined.
35153 * libio/iofread.c: Likewise.
35154 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35155 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35156 * libio/ioftell.c: Assume weak_alias is defined.
35157 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35158 * libio/iofwide.c: Assume _LIBC is defined.
35159 (_IO_fwide): Drop SHARED conditional because it is implied by
35160 SHLIB_COMPAT.
35161 * libio/iofwrite.c: Assume weak_alias is defined.
35162 * libio/iogetdelim.c: Likewise.
35163 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35164 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35165 (_IO_getwline): Call __wmemcpy directly.
35166 * libio/iopopen.c: Assume _LIBC is defined.
35167 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35168 (_IO_close): Remove macro definitions.
35169 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35170 _exit directly.
35171 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35172 directly.
35173 * libio/ioputs.c: Assume weak_alias is defined.
35174 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35175 * libio/iosetbuffer.c: Assume weak_alias is defined.
35176 * libio/iosetvbuf.c: Likewise.
35177 * libio/ioungetc.c: Likewise.
35178 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35179 libc_hidden_def, libc_hidden_weak, NULL are defined.
35180 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35181 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35182 defined.
35183 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35184 definitions.
35185 (_IO_old_file_init_internal): Drop SHARED conditional because it
35186 is implied by SHLIB_COMPAT.
35187 (_IO_old_file_fopen): Call __open directly.
35188 (_IO_old_file_sync): Assume ESPIPE is defined.
35189 (_IO_old_file_write): Call __write directly.
35190 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35191 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35192 Call __fcntl directly.
35193 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35194 (_IO_old_fgetpos): Assume EIO is defined.
35195 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35196 (_IO_old_fgetpos64): Assume EIO is defined.
35197 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35198 (_IO_old_fsetpos): Assume EIO is defined.
35199 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35200 (_IO_old_fsetpos64): Assume EIO is defined.
35201 * libio/oldiopopen.c: Assume _LIBC is defined.
35202 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35203 (_IO_close): Remove macro definitions.
35204 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35205 directly.
35206 (_IO_old_proc_close): Call __close, __waitpid directly.
35207 * libio/put.c: Assume weak_alias is defined.
35208 * libio/stdfiles.c: Assume _LIBC is defined.
35209 * libio/stdio.c: Likewise.
35210 * libio/wfileops.c: Likewise.
35211 (_IO_wfile_sync): Assume ESPIPE is defined.
35212 * libio/wgenops.c: Assume _LIBC is defined.
35213 (save_for_wbackup): Remove internal_function.
35214
35215 2017-08-31 Florian Weimer <fweimer@redhat.com>
35216
35217 * malloc/malloc.c (top_check): Change return type to void. Remove
35218 internal_function.
35219 * malloc/hooks.c (top_check): Likewise.
35220 (malloc_check, realloc_check, memalign_check): Adjust.
35221
35222 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35223
35224 [BZ #21457]
35225 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35226 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35227 sigcontext and namespace requirements.
35228 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35229 * sysdeps/m68k/sys/ucontext.h: Likewise.
35230 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35231 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35232 <bits/sigcontext.h>.
35233 (__ctx): Define earlier.
35234 (mcontext_t): Define structure contents rather than using struct
35235 sigcontext.
35236 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35237 __glibc_reserved1 instead of __reserved.
35238 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35239 <bits/sigcontext.h>.
35240 (__ctx): Define earlier.
35241 (mcontext_t): Define structure contents rather than using struct
35242 sigcontext.
35243 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35244 mcontext_t instead of struct sigcontext.
35245 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35246 <bits/sigcontext.h>.
35247 (__ctx): Define earlier.
35248 (mcontext_t): Define structure contents rather than using struct
35249 sigcontext.
35250 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35251 <bits/sigcontext.h>.
35252 (__ctx): Define earlier.
35253 (mcontext_t): Define structure contents rather than using struct
35254 sigcontext.
35255 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35256 mcontext_t instead of struct sigcontext.
35257 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35258 mcontext_t instead of struct sigcontext.
35259 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35260 <bits/sigcontext.h>.
35261 (__ctx): New macro.
35262 (struct __ia64_fpreg_mcontext): New type.
35263 (mcontext_t): Define structure contents rather than using struct
35264 sigcontext.
35265 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35266 (uc_sigmask): Define using __ctx.
35267 (uc_stack): Likewise.
35268 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35269 <bits/sigcontext.h>.
35270 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35271 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35272 <bits/sigcontext.h>.
35273 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35274 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35275 <bits/sigcontext.h>.
35276 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35277 <bits/sigcontext.h>.
35278 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35279 <bits/sigcontext.h>.
35280 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35281 <bits/sigcontext.h>.
35282 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35283 <bits/sigcontext.h>.
35284 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35285 <bits/sigcontext.h>.
35286 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35287 <bits/sigcontext.h>.
35288 (__ctx): Define earlier.
35289 (mcontext_t): Define structure contents rather than using struct
35290 sigcontext.
35291 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35292 <bits/sigcontext.h>. Include <bits/types.h>.
35293 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35294 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35295 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35296 (test-xfail-UNIX98/signal.h/conform): Likewise.
35297 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35298 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35299 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35300 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35301 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35302 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35303 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35304 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35305 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35306
35307 2017-08-30 Florian Weimer <fweimer@redhat.com>
35308
35309 * malloc/dynarray_emplace_enlarge.c
35310 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35311 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35312 * malloc/tst-dynarray.c (test_long_overflow): New function.
35313 (do_test): Call it.
35314
35315 2017-08-30 Florian Weimer <fweimer@redhat.com>
35316
35317 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35318 (set_arena_corrupt): Remove definitions.
35319 (mtrim): Do not check for corrupt arena.
35320 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35321 Likewise.
35322
35323 2017-08-30 Florian Weimer <fweimer@redhat.com>
35324
35325 [BZ #21754]
35326 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35327 check_action.
35328 (ptmalloc_init): Do not set or use check_action.
35329 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35330 call to malloc_printerr. Remove return statement.
35331 (free_check): Likewise. Remove arena unlock.
35332 (top_check): Update comment. Adjust call to malloc_printerr.
35333 Remove heap repair code.
35334 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35335 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35336 (sysmalloc): Adjust call to malloc_printerr.
35337 (munmap_chunk, __libc_realloc): Likewise. Remove return
35338 statement.
35339 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35340 Remove errout label and corresponding gotos.
35341 (_int_free): Likewise. Remove arena unlock.
35342 (do_set_mallopt_check): Do not set check_action.
35343 (malloc_printerr): Adjust parameter list. Do not mark arena as
35344 corrupt.
35345 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35346 comment.
35347 * manual/probes.texi (Memory Allocation Probes): Remove
35348 memory_mallopt_check_action.
35349
35350 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35351
35352 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35353 Use pointer to uint64_t instead of long int for sp.
35354
35355 2017-08-30 Florian Weimer <fweimer@redhat.com>
35356
35357 [BZ #21754]
35358 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35359 without printing a backtrace. Do not leak any information in the
35360 error message.
35361 * manual/memory.texi (Heap Consistency Checking): Update.
35362 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35363
35364 2017-08-30 Florian Weimer <fweimer@redhat.com>
35365
35366 Do not scale NPTL tests with available number of CPUs.
35367 * nptl/tst-cond16.c (count): Set to constant value of 8.
35368 * nptl/tst-cond18.c (count): Likewise.
35369
35370 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35371
35372 [BZ #22035]
35373 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35374 Define to take a second argument that is a macro that
35375 concatentates a suffix, not the suffix itself.
35376 (__CONCAT_d): New macro.
35377 (__CONCAT_f): Likewise.
35378 (__CONCAT_l): Likewise.
35379
35380 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35381
35382 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35383 by child.
35384
35385 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35386 Aurelien Jarno <aurelien@aurel32.net>
35387 Maciej W. Rozycki <macro@imgtec.com>
35388
35389 [BZ #21956]
35390 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35391 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35392 `mips16-syscall6' and `mips16-syscall7'.
35393 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35394 (CFLAGS-mips16-syscall7.c): Remove.
35395 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35396 Remove `__mips16_syscall5', `__mips16_syscall6' and
35397 `__mips16_syscall7'.
35398 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35399 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35400 `__mips_syscall_return'.
35401 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35402 (__mips16_syscall1): Likewise.
35403 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35404 (__mips16_syscall2): Likewise.
35405 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35406 (__mips16_syscall3): Likewise.
35407 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35408 (__mips16_syscall4): Likewise.
35409 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35410 Remove.
35411 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35412 Remove.
35413 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35414 Remove.
35415 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35416 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35417 `__mips16_syscall5'. Remove prototype.
35418 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35419 `__mips16_syscall6'. Remove prototype.
35420 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35421 `__mips16_syscall7'. Remove prototype.
35422 (__nomips16, __mips16_syscall_return): Move to...
35423 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35424 (__nomips16, __mips_syscall_return): ... here.
35425 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35426 `__mips16_syscall_return' to `__mips_syscall_return'.
35427 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35428 `internal_syscall##nr'.
35429 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35430 `internal_syscall##nr'.
35431 (FORCE_FRAME_POINTER): Remove.
35432 (__mips_syscall5): New prototype.
35433 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35434 (__mips_syscall6): New prototype.
35435 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35436 (__mips_syscall7): New prototype.
35437 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35438 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35439 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35440 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35441 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35442 (sysdep_routines): Add libc-do-syscall.
35443 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35444 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35445
35446 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35447
35448 [BZ #21672]
35449 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35450 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35451 (advise_stack_range): New function.
35452 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35453 stack non required to advise_stack_range at allocatestack.c
35454
35455 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35456
35457 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35458
35459 2017-08-29 Florian Weimer <fweimer@redhat.com>
35460
35461 [BZ #22026]
35462 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35463 __end_fct. Mangle __end_fct after setting it to NULL.
35464 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35465 (modules-names, modules-names-tests): Add
35466 tst-gconv-init-failure-mod.
35467 (gconv-modules): New target.
35468 (tst-gconv-init-failure-mod.so): Link against libsupport.
35469 (tst-gconv-init-failure): Depend on gconv-modules,
35470 tst-gconv-init-failure-mod.so.
35471 * iconv/tst-gconv-init-failure-mod.c: New file.
35472 * iconv/tst-gconv-init-failure.c: Likewise.
35473 * iconv/test-gconv-modules: Likewise.
35474
35475 2017-08-29 Florian Weimer <fweimer@redhat.com>
35476
35477 [BZ #22025]
35478 * iconv/gconv_db.c (free_derivation): Remove redundant
35479 parentheses.
35480 (gen_steps): Unconditionally mangle __btowc_fct after
35481 initialization.
35482 (increment_counter): Likewise. Do not call init_fct for internal
35483 modules.
35484
35485 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35486
35487 [BZ #22028]
35488 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35489 (_MSUF_): Remove macro.
35490 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35491 Likewise.
35492 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35493 (__REDIRFROM_X): New macro.
35494 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35495 Likewise.
35496 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35497 (__REDIRTO_X): Likewise.
35498 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35499 arguments.
35500 (__MATH_REDIRCALL_2): Likewise.
35501 (__MATH_REDIRCALL_INTERNAL): Likewise.
35502 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35503 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35504 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35505 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35506 * math/test-finite-macros.c: New file.
35507 * math/Makefile (tests): Add test-finite-macros.
35508 (CFLAGS-test-finite-macros.c): New variable.
35509
35510 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35511 Jeff Law <law@redhat.com>
35512
35513 [BZ #22025]
35514 Mangle NULL pointers in iconv/gconv.
35515 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35516 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35517 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35518 is non-NULL before demangling the end_fct. Check for NULL
35519 end_fct after demangling.
35520 (__gconv_release_step): Demangle the end_fct before checking
35521 it for NULL. Remove assert on __shlibc_handle != NULL.
35522 (gen_steps): Don't check btowc_fct for NULL before mangling.
35523 Demangle init_fct before checking for NULL.
35524 (increment_counter): Likewise.
35525 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35526 end_fct for NULL before mangling.
35527 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35528 for NULL.
35529
35530 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35531
35532 [BZ #21971]
35533 * locale/iso-639.def: add Morisyen.
35534
35535 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35536
35537 [BZ #21930]
35538 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35539 (iszero): New C++ implementation that does not use
35540 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35541 signaling nans are enabled, since __builtin_types_compatible_p
35542 is a C-only feature.
35543 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35544 defined, include ieee754_float128.h for access to the union and
35545 member ieee854_float128.ieee.
35546 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35547 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35548 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35549 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35550 options of test-math-zero on powerpc64le.
35551
35552 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35553
35554 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35555 Change double to float.
35556
35557 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35558
35559 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35560 unconditional.
35561 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35562 conditional code; define contents only for [LIBM_SVID_COMPAT].
35563
35564 2017-08-28 Florian Weimer <fweimer@redhat.com>
35565
35566 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35567 (abi-lp64_be-options): Remove.
35568 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35569 (abi-hard-options): Likewise.
35570 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35571 (abi-o32_hard-options, abi-o32_soft_2008-options)
35572 (abi-o32_hard_2008-options, abi-n32_soft-options)
35573 (abi-n32_hard-options, abi-n32_soft_2008-options)
35574 (abi-n32_hard_2008-options, abi-n64_soft-options)
35575 (abi-n64_hard-options, abi-n64_soft_2008-options)
35576 (abi-n64_hard_2008-options): Likewise.
35577 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35578 (abi-64-v1-options, abi-64-v2-options): Likewise.
35579 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35580 (abi-64-options): Likewise.
35581 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35582 (abi-64-options): Likewise.
35583 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35584 (abi-64-options): Likewise.
35585 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35586 (abi-64-options, abi-x32-options): Likewise.
35587
35588 2017-08-28 Florian Weimer <fweimer@redhat.com>
35589
35590 Store supported list of SYS_* system calls in the source tree.
35591 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35592 (bits/syscall.h): Generate from list file.
35593 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35594 [$(subdir) = misc] (tests): Add tst-syscall-list.
35595 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35596 [$(subdir) = misc] (tst-syscall-list-macros.list)
35597 [$(subdir) = misc] (tst-syscall-list-nr.list)
35598 (tst-syscall-list-sys.list): Helper targets for new
35599 tst-syscall-list test.
35600 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35601 tst-syscall-list.sh.
35602 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35603 target. Do not include bits/syscall.d.
35604 [$(subdir) = misc] (generated): Do not update.
35605 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35606 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35607 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35608 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35609
35610 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35611
35612 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35613 (tst-cxa_atexit, tst-on_exit): Likewise.
35614 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35615 tst-cxa_atexit, and tst-on_exit.
35616 * stdlib/tst-atexit-common.c: New file.
35617 * stdlib/tst-atexit.c: New file.
35618 * stdlib/tst-at_quick_exit.c: New file.
35619 * stdlib/tst-cxa_atexit.c: New file.
35620 * stdlib/tst-on_exit.c: New file.
35621
35622 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35623
35624 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35625 * mach/stack_chk_fail_local.c: New file.
35626 * hurd/stack_chk_fail_local.c: New file.
35627 * mach/Machrules ($(interface-library)-routines): Add
35628 stack_chk_fail_local.
35629 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35630 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35631 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35632 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35633 * hurd/Makefile (CFLAGS-hurdstartup.o,
35634 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35635
35636 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35637
35638 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35639 (index_cpu_*, index_arch_*): Removed.
35640
35641 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35642
35643 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35644 Use uint64_t instead of unsigned long.
35645
35646 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35647
35648 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35649 [__HAVE_DISTINCT_FLOAT128].
35650
35651 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35652 of <bits/math-finite.h>.
35653 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35654 inclusion of <bits/math-finite.h>.
35655 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35656 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35657 __NO_LONG_DOUBLE_MATH].
35658 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35659 (__MATH_REDIRCALL_2): Likewise.
35660 (__MATH_REDIRCALL_INTERNAL): Likewise.
35661 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35662 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35663 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35664
35665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35666 Remove file.
35667 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35668 Likewise.
35669 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35670 Likewise.
35671 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35672 Likewise.
35673 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35674 Likewise.
35675 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35676 Likewise.
35677 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35678 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35679 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35680 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35681 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35682 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35683 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35684 w_sqrtf_compat-ppc32.
35685
35686 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35687
35688 * math/math.h [defined __cplusplus] (issignaling): In the long
35689 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35690 is not defined. Call __issignaling, otherwise.
35691
35692 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35693
35694 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35695 syscall definitions and replace __builtin_expect with __glibc_likely.
35696 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35697 syscall.
35698 (SYSCALL_CANCELLABLE): Removedefinition
35699 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35700 definition.
35701 (PSEUDO_END): Likewise.
35702 [IS_IN (libpthread)] (CENABLE): Likewise.
35703 [IS_IN (libpthread)] (CDISABLE): Likewise.
35704 [IS_IN (libc)] (CENABLE): Likewise.
35705 [IS_IN (libc)] (CENABLE): Likewise.
35706 [IS_IN (librt)] (CDISABLE): Likewise.
35707 [IS_IN (librt)] (CDISABLE): Likewise.
35708 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35709 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35710 definition.
35711 (PSEUDO_END): Likewise.
35712 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35713 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35714 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35715 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35716 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35717 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35718 (CENABLE): Likewise.
35719 (CDISABLE): Likewise.
35720 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35721 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35722 defintion.
35723 (PSEUDO_END): Likewise.
35724 [IS_IN (libpthread)] (CENABLE): Likewise.
35725 [IS_IN (libpthread)] (CDISABLE): Likewise.
35726 [IS_IN (libc)] (CENABLE): Likewise.
35727 [IS_IN (libc)] (CENABLE): Likewise.
35728 [IS_IN (librt)] (CDISABLE): Likewise.
35729 [IS_IN (librt)] (CDISABLE): Likewise.
35730 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35731 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35732 definition.
35733 (PSEUDO_END): Likewise.
35734 [IS_IN (libpthread)] (CENABLE): Likewise.
35735 [IS_IN (libpthread)] (CDISABLE): Likewise.
35736 [IS_IN (libc)] (CENABLE): Likewise.
35737 [IS_IN (libc)] (CENABLE): Likewise.
35738 [IS_IN (librt)] (CDISABLE): Likewise.
35739 [IS_IN (librt)] (CDISABLE): Likewise.
35740 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35741 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35742 definition.
35743 (PSEUDO_END): Likewise.
35744 [IS_IN (libpthread)] (CENABLE): Likewise.
35745 [IS_IN (libpthread)] (CDISABLE): Likewise.
35746 [IS_IN (libc)] (CENABLE): Likewise.
35747 [IS_IN (libc)] (CENABLE): Likewise.
35748 [IS_IN (librt)] (CDISABLE): Likewise.
35749 [IS_IN (librt)] (CDISABLE): Likewise.
35750 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35751 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35752 definition.
35753 (PSEUDO_END): Likewise.
35754 [IS_IN (libpthread)] (CENABLE): Likewise.
35755 [IS_IN (libpthread)] (CDISABLE): Likewise.
35756 [IS_IN (libc)] (CENABLE): Likewise.
35757 [IS_IN (libc)] (CENABLE): Likewise.
35758 [IS_IN (librt)] (CDISABLE): Likewise.
35759 [IS_IN (librt)] (CDISABLE): Likewise.
35760 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35761 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35762 definition.
35763 (PSEUDO_END): Likewise.
35764 [IS_IN (libpthread)] (CENABLE): Likewise.
35765 [IS_IN (libpthread)] (CDISABLE): Likewise.
35766 [IS_IN (libc)] (CENABLE): Likewise.
35767 [IS_IN (libc)] (CENABLE): Likewise.
35768 [IS_IN (librt)] (CDISABLE): Likewise.
35769 [IS_IN (librt)] (CDISABLE): Likewise.
35770 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35771 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35772 definition.
35773 (PSEUDO_END): Likewise.
35774 [IS_IN (libpthread)] (CENABLE): Likewise.
35775 [IS_IN (libpthread)] (CDISABLE): Likewise.
35776 [IS_IN (libc)] (CENABLE): Likewise.
35777 [IS_IN (libc)] (CENABLE): Likewise.
35778 [IS_IN (librt)] (CDISABLE): Likewise.
35779 [IS_IN (librt)] (CDISABLE): Likewise.
35780 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35781 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35782 Remove definition.
35783 (PSEUDO_END): Likewise.
35784 [IS_IN (libpthread)] (CENABLE): Likewise.
35785 [IS_IN (libpthread)] (CDISABLE): Likewise.
35786 [IS_IN (libc)] (CENABLE): Likewise.
35787 [IS_IN (libc)] (CENABLE): Likewise.
35788 [IS_IN (librt)] (CDISABLE): Likewise.
35789 [IS_IN (librt)] (CDISABLE): Likewise.
35790 (SINGLE_THREAD_P): Likewise.
35791 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35792 definition.
35793 (PSEUDO_END): Likewise.
35794 [IS_IN (libpthread)] (CENABLE): Likewise.
35795 [IS_IN (libpthread)] (CDISABLE): Likewise.
35796 [IS_IN (libc)] (CENABLE): Likewise.
35797 [IS_IN (libc)] (CENABLE): Likewise.
35798 [IS_IN (librt)] (CDISABLE): Likewise.
35799 [IS_IN (librt)] (CDISABLE): Likewise.
35800 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35801 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35802 definition.
35803 (PSEUDO_END): Likewise.
35804 [IS_IN (libpthread)] (CENABLE): Likewise.
35805 [IS_IN (libpthread)] (CDISABLE): Likewise.
35806 [IS_IN (libc)] (CENABLE): Likewise.
35807 [IS_IN (libc)] (CENABLE): Likewise.
35808 [IS_IN (librt)] (CDISABLE): Likewise.
35809 [IS_IN (librt)] (CDISABLE): Likewise.
35810 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35811 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35812 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35813 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35814 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35815 definition.
35816 (PSEUDO_END): Likewise.
35817 [IS_IN (libpthread)] (CENABLE): Likewise.
35818 [IS_IN (libpthread)] (CDISABLE): Likewise.
35819 [IS_IN (libc)] (CENABLE): Likewise.
35820 [IS_IN (libc)] (CENABLE): Likewise.
35821 [IS_IN (librt)] (CDISABLE): Likewise.
35822 [IS_IN (librt)] (CDISABLE): Likewise.
35823 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35824 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35825 definition.
35826 (PSEUDO_END): Likewise.
35827 [IS_IN (libpthread)] (CENABLE): Likewise.
35828 [IS_IN (libpthread)] (CDISABLE): Likewise.
35829 [IS_IN (libc)] (CENABLE): Likewise.
35830 [IS_IN (libc)] (CENABLE): Likewise.
35831 [IS_IN (librt)] (CDISABLE): Likewise.
35832 [IS_IN (librt)] (CDISABLE): Likewise.
35833 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35834 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35835 definition.
35836 (PSEUDO_END): Likewise.
35837 [IS_IN (libpthread)] (CENABLE): Likewise.
35838 [IS_IN (libpthread)] (CDISABLE): Likewise.
35839 [IS_IN (libc)] (CENABLE): Likewise.
35840 [IS_IN (libc)] (CENABLE): Likewise.
35841 [IS_IN (librt)] (CDISABLE): Likewise.
35842 [IS_IN (librt)] (CDISABLE): Likewise.
35843 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35844 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35845 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35846 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35847 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35848 definition.
35849 (PSEUDO_END): Likewise.
35850 [IS_IN (libpthread)] (CENABLE): Likewise.
35851 [IS_IN (libpthread)] (CDISABLE): Likewise.
35852 [IS_IN (libc)] (CENABLE): Likewise.
35853 [IS_IN (libc)] (CENABLE): Likewise.
35854 [IS_IN (librt)] (CDISABLE): Likewise.
35855 [IS_IN (librt)] (CDISABLE): Likewise.
35856 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35857 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35858 definition.
35859 (PSEUDO_END): Likewise.
35860 [IS_IN (libpthread)] (CENABLE): Likewise.
35861 [IS_IN (libpthread)] (CDISABLE): Likewise.
35862 [IS_IN (libc)] (CENABLE): Likewise.
35863 [IS_IN (libc)] (CENABLE): Likewise.
35864 [IS_IN (librt)] (CDISABLE): Likewise.
35865 [IS_IN (librt)] (CDISABLE): Likewise.
35866 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35867
35868 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35869
35870 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35871
35872 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35873
35874 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35875
35876 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35877
35878 [BZ #21982]
35879 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35880 middle and outer with size_t instead of int. Repleace %d and
35881 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35882 "MAX (outer, nchars - 64)" to support unsigned outer and
35883 nchars. Also exit loop when outer == 0.
35884
35885 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35886
35887 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35888 * include/signal.h (__sigsuspend_nocancel): Likewise.
35889 * include/time.h (__nanosleep_nocancel): Likewise.
35890 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35891 * login/utmp_file.c: Include non cancellable syscall header.
35892 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35893 prototype.
35894
35895 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35896
35897 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35898 .byte sequences with AVX512F instructions.
35899 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35900 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35901 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35902 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35903 Likewise.
35904 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35905 Likewise.
35906
35907 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35908 Steve Ellcey <sellcey@cavium.com>
35909
35910 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35911 Use PTR_REG macro in cmp instruction.
35912
35913 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35914
35915 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35916 Change the return type of the ifunc resolver to match the return
35917 type of the target function.
35918
35919 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35920
35921 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35922 (preadv64): Likewise.
35923 (pwrite64(: Likewise.
35924 (pwritev64): Likewise.
35925
35926 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35927 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35928 (LOAD_ARGS_0): Likewise.
35929 (LOAD_ARGS_1): Likewise.
35930 (LOAD_ARGS_2): Likewise.
35931 (LOAD_ARGS_3): Likewise.
35932 (LOAD_ARGS_4): Likewise.
35933 (LOAD_ARGS_5): Likewise.
35934 (LOAD_ARGS_6): Likewise.
35935 (LOAD_REGS_0): Likewise.
35936 (LOAD_REGS_1): Likewise.
35937 (LOAD_REGS_2): Likewise.
35938 (LOAD_REGS_3): Likewise.
35939 (LOAD_REGS_4): Likewise.
35940 (LOAD_REGS_5): Likewise.
35941 (LOAD_REGS_6): Likewise.
35942 (ASM_ARGS_0): Likewise.
35943 (ASM_ARGS_1): Likewise.
35944 (ASM_ARGS_2): Likewise.
35945 (ASM_ARGS_3): Likewise.
35946 (ASM_ARGS_4): Likewise.
35947 (ASM_ARGS_5): Likewise.
35948 (ASM_ARGS_6): Likewise.
35949 (LOAD_ARGS_TYPES_1): Likewise.
35950 (LOAD_ARGS_TYPES_2): Likewise.
35951 (LOAD_ARGS_TYPES_3): Likewise.
35952 (LOAD_ARGS_TYPES_4): Likewise.
35953 (LOAD_ARGS_TYPES_5): Likewise.
35954 (LOAD_ARGS_TYPES_6): Likewise.
35955 (LOAD_REGS_TYPES_1): Likewise.
35956 (LOAD_REGS_TYPES_2): Likewise.
35957 (LOAD_REGS_TYPES_3): Likewise.
35958 (LOAD_REGS_TYPES_4): Likewise.
35959 (LOAD_REGS_TYPES_5): Likewise.
35960 (LOAD_REGS_TYPES_6): Likewise.
35961 (TYPEFY): New define.
35962 (ARGIFY): Likewise.
35963 (internal_syscall0): Likewise.
35964 (internal_syscall1): Likewise.
35965 (internal_syscall2): Likewise.
35966 (internal_syscall3): Likewise.
35967 (internal_syscall4): Likewise.
35968 (internal_syscall5): Likewise.
35969 (internal_syscall6): Likewise.
35970 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35971 (INTERNAL_SYSCALL_NCS): Remove define.
35972 (internal_syscall1): Add define.
35973
35974 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35975
35976 * math/w_remainder_compat.c: Remove duplicate inclusion of
35977 math-svid-compat.h.
35978 * math/w_remainderf_compat.c: Likewise.
35979 * math/w_remainderl_compat.c: Likewise.
35980
35981 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35982
35983 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35984
35985 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35986
35987 [BZ #21684]
35988 * math/tgmath.h (__floating_type): Simplify definitions.
35989 (__real_integer_type): New macro.
35990 (__complex_integer_type): Likewise.
35991 (__expr_is_real): Likewise.
35992 (__tgmath_real_type_sub): Update comment to describe handling of
35993 complex types.
35994 (__tgmath_complex_type_sub): New macro.
35995 (__tgmath_complex_type): Likewise.
35996 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35997 (__TGMATH_CF128): Use __expr_is_real.
35998 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35999 __expr_is_real.
36000 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36001 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36002 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36003 integer types.
36004
36005 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36006
36007 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36008 macro.
36009 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36010 alias.
36011 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36012 Likewise.
36013
36014 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36015 nanosleep_not_cancel with __nanosleep_nocancel.
36016 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36017 (__nanosleep_nocancel): New macro.
36018 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36019 function.
36020 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36021 macro.
36022 (__nanosleep_nocancel): New prototype.
36023
36024 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36025 pause_not_cancel with __pause_nocancel.
36026 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36027 (__pause_nocancel): New macro.
36028 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36029 macro.
36030 (__pause_nocancel): New prototype.
36031 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36032
36033 2017-08-22 Martin Sebor <msebor@redhat.com>
36034
36035 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36036 to return a pointer to the same type as the target function.
36037
36038 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36039
36040 [BZ #18822]
36041 [BZ #21986]
36042 * include/printf.h (__printf_fphex): Add attribute_hidden.
36043 (__guess_grouping): New prototype.
36044 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36045 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36046 libc_hidden_proto and libc_hidden_def.
36047 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36048 (__vstrfmon_l): Remove the third argument passed to
36049 __guess_grouping.
36050
36051 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36052
36053 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36054 definition for issignaling that does not rely on __MATH_TG,
36055 since __MATH_TG uses __builtin_types_compatible_p, which is only
36056 available in C mode.
36057 (CFLAGS-test-math-issignaling.cc): New variable.
36058 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36059 * math/test-math-issignaling.cc: New test for C++ implementation
36060 of type-generic issignaling.
36061 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36062 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36063 options of test-math-issignaling on powerpc64le.
36064
36065 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36066
36067 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36068 building libc.a.
36069 (hidden_proto): Likewise.
36070 (hidden_tls_proto): Likewise.
36071 (__hidden_proto): Likewise.
36072
36073 2017-08-22 Florian Weimer <fweimer@redhat.com>
36074
36075 math: Statically link tests of internal functionality.
36076 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36077 atest-exp2.
36078 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36079 (gmp-objs): Remove assignment.
36080 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36081
36082 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36083
36084 [BZ #21987]
36085 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36086 and copy to ...
36087 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36088 ... here.
36089 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36090 ... and here.
36091
36092 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36093 variable definitions above inclusion of ../Rules.
36094
36095 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36096
36097 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36098 case calling __builtin_unreachable.
36099
36100 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36101
36102 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36103 __waitpid_nocancel.
36104 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36105 (__waitpid_nocancel): New macro.
36106 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36107 macro.
36108 (__waitpid_nocancel): Replace macro with a function.
36109 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36110 function.
36111
36112 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36113 __fcntl_nocancel.
36114 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36115 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36116
36117 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36118 __writev_nocancel_nostatus.
36119 (write_call_graph): Likewise.
36120 (write_bb_counts): Likewise.
36121 * resolv/herror.c (herror): Likewise.
36122 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36123 macro.
36124 (__writev_nocancel_nostatus): New macro.
36125 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36126 Remove macro.
36127 (__writev_nocancel_nostatus): New function.
36128
36129 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36130
36131 Revert:
36132 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36133
36134 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36135 building libc.a.
36136 (hidden_proto): Likewise.
36137 (hidden_tls_proto): Likewise.
36138 (__hidden_proto): Likewise.
36139
36140 [BZ #21973]
36141 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36142 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36143 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36144 Likewise.
36145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36146 Likewise.
36147 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36148 Likewise.
36149 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36150 Likewise.
36151 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36152 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36153 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36154 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36155 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36156 GLIBC_2.0 sqrtl symbol.
36157
36158 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36159 [__USE_MISC] (_LIB_VERSION): Likewise.
36160 [__USE_MISC] (struct exception): Likewise.
36161 [__USE_MISC] (matherr): Likewise.
36162 [__USE_MISC] (DOMAIN): Likewise.
36163 [__USE_MISC] (SING): Likewise.
36164 [__USE_MISC] (OVERFLOW): Likewise.
36165 [__USE_MISC] (UNDERFLOW): Likewise.
36166 [__USE_MISC] (TLOSS): Likewise.
36167 [__USE_MISC] (PLOSS): Likewise.
36168 [__USE_MISC] (HUGE): Likewise.
36169 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36170 * math/math-svid-compat.h: New file.
36171 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36172 and matherrl.
36173 * include/math.h [!_ISOMAC] (__matherr): Remove.
36174 * manual/arith.texi (FP Exceptions): Do not document matherr.
36175 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36176 (tests-internal): New variable.
36177 (install-lib): Do not add libieee.a.
36178 (non-lib.a): Likewise.
36179 (extra-objs): Do not add libieee.a and ieee-math.o.
36180 (CPPFLAGS-s_lib_version.c): Remove variable.
36181 ($(objpfx)libieee.a): Remove rule.
36182 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36183 * math/ieee-math.c: Remove.
36184 * math/libm-test-support.c (matherr): Remove.
36185 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36186 and license notices. Include <math-svid-compat.h> and
36187 <shlib-compat.h>.
36188 (matherr): Undefine as macro. Use compat_symbol_reference.
36189 (_LIB_VERSION): Likewise.
36190 * math/test-matherr-2.c: New file.
36191 * math/test-matherr-3.c: Likewise.
36192 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36193 declaration.
36194 (__kernel_standard_f): Likewise.
36195 (__kernel_standard_l): Likewise.
36196 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36197 <math_private.h>. Include <math-svid-compat.h>.
36198 (_LIB_VERSION): Undefine as macro.
36199 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36200 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36201 [LIBM_SVID_COMPAT], use compat_symbol.
36202 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36203 <math_private.h>. Include <math-svid-compat.h>.
36204 (matherr): Undefine as macro.
36205 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36206 compat_symbol.
36207 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36208 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36209 compat_symbol_reference.
36210 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36211 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36212 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36213 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36214 (MATHERR_D): Remove declaration.
36215 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36216 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36217 [LIBM_BUILD] (pmatherrf): Likewise.
36218 [LIBM_BUILD] (pmatherr): Likewise.
36219 [LIBM_BUILD] (pmatherrl): Likewise.
36220 (DOMAIN): Likewise.
36221 (SING): Likewise.
36222 (OVERFLOW): Likewise.
36223 (UNDERFLOW): Likewise.
36224 (TLOSS): Likewise.
36225 (PLOSS): Likewise.
36226 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36227 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36228 compat_symbol.
36229 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36230 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36231 compat_symbol.
36232 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36233 * math/w_acos_compat.c: Likewise.
36234 * math/w_acosf_compat.c: Likewise.
36235 * math/w_acosh_compat.c: Likewise.
36236 * math/w_acoshf_compat.c: Likewise.
36237 * math/w_acoshl_compat.c: Likewise.
36238 * math/w_acosl_compat.c: Likewise.
36239 * math/w_asin_compat.c: Likewise.
36240 * math/w_asinf_compat.c: Likewise.
36241 * math/w_asinl_compat.c: Likewise.
36242 * math/w_atan2_compat.c: Likewise.
36243 * math/w_atan2f_compat.c: Likewise.
36244 * math/w_atan2l_compat.c: Likewise.
36245 * math/w_atanh_compat.c: Likewise.
36246 * math/w_atanhf_compat.c: Likewise.
36247 * math/w_atanhl_compat.c: Likewise.
36248 * math/w_cosh_compat.c: Likewise.
36249 * math/w_coshf_compat.c: Likewise.
36250 * math/w_coshl_compat.c: Likewise.
36251 * math/w_exp10_compat.c: Likewise.
36252 * math/w_exp10f_compat.c: Likewise.
36253 * math/w_exp10l_compat.c: Likewise.
36254 * math/w_exp2_compat.c: Likewise.
36255 * math/w_exp2f_compat.c: Likewise.
36256 * math/w_exp2l_compat.c: Likewise.
36257 * math/w_fmod_compat.c: Likewise.
36258 * math/w_fmodf_compat.c: Likewise.
36259 * math/w_fmodl_compat.c: Likewise.
36260 * math/w_hypot_compat.c: Likewise.
36261 * math/w_hypotf_compat.c: Likewise.
36262 * math/w_hypotl_compat.c: Likewise.
36263 * math/w_j0_compat.c: Likewise.
36264 * math/w_j0f_compat.c: Likewise.
36265 * math/w_j0l_compat.c: Likewise.
36266 * math/w_j1_compat.c: Likewise.
36267 * math/w_j1f_compat.c: Likewise.
36268 * math/w_j1l_compat.c: Likewise.
36269 * math/w_jn_compat.c: Likewise.
36270 * math/w_jnf_compat.c: Likewise.
36271 * math/w_jnl_compat.c: Likewise.
36272 * math/w_lgamma_main.c: Likewise.
36273 * math/w_lgamma_r_compat.c: Likewise.
36274 * math/w_lgammaf_main.c: Likewise.
36275 * math/w_lgammaf_r_compat.c: Likewise.
36276 * math/w_lgammal_main.c: Likewise.
36277 * math/w_lgammal_r_compat.c: Likewise.
36278 * math/w_log10_compat.c: Likewise.
36279 * math/w_log10f_compat.c: Likewise.
36280 * math/w_log10l_compat.c: Likewise.
36281 * math/w_log2_compat.c: Likewise.
36282 * math/w_log2f_compat.c: Likewise.
36283 * math/w_log2l_compat.c: Likewise.
36284 * math/w_log_compat.c: Likewise.
36285 * math/w_logf_compat.c: Likewise.
36286 * math/w_logl_compat.c: Likewise.
36287 * math/w_pow_compat.c: Likewise.
36288 * math/w_powf_compat.c: Likewise.
36289 * math/w_powl_compat.c: Likewise.
36290 * math/w_remainder_compat.c: Likewise.
36291 * math/w_remainderf_compat.c: Likewise.
36292 * math/w_remainderl_compat.c: Likewise.
36293 * math/w_scalb_compat.c: Likewise.
36294 * math/w_scalbf_compat.c: Likewise.
36295 * math/w_scalbl_compat.c: Likewise.
36296 * math/w_sinh_compat.c: Likewise.
36297 * math/w_sinhf_compat.c: Likewise.
36298 * math/w_sinhl_compat.c: Likewise.
36299 * math/w_sqrt_compat.c: Likewise.
36300 * math/w_sqrtf_compat.c: Likewise.
36301 * math/w_sqrtl_compat.c: Likewise.
36302 * math/w_tgamma_compat.c: Likewise.
36303 * math/w_tgammaf_compat.c: Likewise.
36304 * math/w_tgammal_compat.c: Likewise.
36305 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36306 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36307 * sysdeps/ieee754/k_standard.c: Likewise.
36308 * sysdeps/ieee754/k_standardf.c: Likewise.
36309 * sysdeps/ieee754/k_standardl.c: Likewise.
36310 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36311 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36312 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36313 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36314 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36315 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36316 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36317 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36318 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36320 Likewise.
36321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36322 Likewise.
36323 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36324 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36325 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36326 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36327
36328 2017-08-21 Florian Weimer <fweimer@redhat.com>
36329
36330 [BZ #21864]
36331 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36332 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36333 Move before inclusion of ../Rules.
36334
36335 2017-08-21 Florian Weimer <fweimer@redhat.com>
36336
36337 [BZ #21972]
36338 * assert/assert.h (assert): Use static_cast (bool) for C++.
36339 Use the ternary operator in the warning branch for GNU C.
36340 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36341 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36342 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36343 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36344 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36345
36346 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36347
36348 [BZ #18822]
36349 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36350 (__syscall_clock_gettime): Add attribute_hidden.
36351 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36352 (__start_context): Likewise.
36353
36354 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36355
36356 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36357 building libc.a.
36358 (hidden_proto): Likewise.
36359 (hidden_tls_proto): Likewise.
36360 (__hidden_proto): Likewise.
36361
36362 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36363
36364 * include/libc-symbols.h (attribute_hidden): Enable hidden
36365 visibility in libc.a compiled with PIE.
36366
36367 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36368
36369 [BZ #18822]
36370 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36371 Add attribute_hidden.
36372
36373 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36374
36375 [BZ #21864]
36376 * Makerules (all-nonlib): Add $(others-extras).
36377 * catgets/Makefile (others-extras): New.
36378 * elf/Makefile (others-extras): Likewise.
36379 * nss/Makefile (others-extras): Likewise.
36380
36381 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36382
36383 [BZ #18822]
36384 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36385 * elf/dl-open.c: Include <libc-internal.h>.
36386 (__libc_multiple_libcs): Removed.
36387 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36388 <hp-timing.h>.
36389 * include/libc-internal.h (__libc_multiple_libcs): New.
36390 * misc/sbrk.c: Include <libc-internal.h>.
36391 (__libc_multiple_libcs): Removed.
36392
36393 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36394
36395 [BZ #18822]
36396 * grp/initgroups.c (__nss_group_database): Removed.
36397 (__nss_initgroups_database): Likewise.
36398 * nscd/gai.c (__nss_hosts_database): Likewise.
36399 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36400 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36401 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36402 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36403 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36404 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36405 attribute_hidden.
36406 * nss/nsswitch.c (__nss_database_custom): Define only if
36407 USE_NSCD is defined.
36408 (__nss_configure_lookup): Use __nss_database_custom only if
36409 USE_NSCD is defined.
36410 * nss/nsswitch.h (__nss_database_custom): Declare only if
36411 USE_NSCD is defined. Add attribute_hidden.
36412 (__nss_setent): Add attribute_hidden.
36413 (__nss_endent): Likewise.
36414 (__nss_getent_r): Likewise.
36415 (__nss_getent): Likewise.
36416 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36417
36418 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36419
36420 [BZ #18822]
36421 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36422 libc_hidden_proto and libc_hidden_def.
36423
36424 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36425
36426 [BZ #18822]
36427 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36428 Add libc_hidden_proto.
36429 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36430 Add libc_hidden_def.
36431
36432 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36433
36434 [BZ #21974]
36435 * gmon/Makefile (routines): Remove bb_init_func and
36436 bb_exit_func.
36437 (elide-routines.os): Removed.
36438 * gmon/bb_exit_func.c: Likewise.
36439 * gmon/bb_init_func.c: Likewise.
36440 * include/sys/gmon.h (__bb): Likewise.
36441 (__bb_init_func): Likewise.
36442 (__bb_exit_func): Likewise.
36443 * sysdeps/alpha/bb_init_func.S: Likewise.
36444
36445 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36446
36447 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36448 * include/setjmp.h (____longjmp_chk): Here. Add
36449 attribute_hidden.
36450
36451 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36452
36453 [BZ #18822]
36454 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36455 attribute_hidden.
36456 (__strspn_sse2): Likewise.
36457
36458 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36459
36460 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36461 (close_not_cancel_no_status): Likewise.
36462 (__close_nocancel): New macro.
36463 (__close_nocancel_nostatus): Likewise.
36464 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36465 macro.
36466 (close_not_cancel): Likewise.
36467 (close_not_cancel_no_status): Likewise.
36468 (__close_nocancel): New prototype.
36469 (__close_nocancel_nostatus): New function.
36470 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36471 * catgets/open_catalog.c (__open_catalog): Replace
36472 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36473 * gmon/gmon.c (write_gmon): Likewise.
36474 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36475 * intl/loadmsgcat.c (close): Likewise.
36476 * io/ftw.c (open_dir_stream): Likewise.
36477 (ftw_startup): Likewise.
36478 * libio/fileops.c (_IO_file_open): Likewise.
36479 (_IO_file_close_mmap): Likewise.
36480 (_IO_file_close): Likewise.
36481 * libio/iopopen.c (_IO_dup2): Likewise.
36482 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36483 * locale/loadlocale.c (_nl_load_locale): Likewise.
36484 * login/utmp_file.c (pututline_file): Likewise.
36485 (endutent_file): Likewise.
36486 * misc/daemon.c (daemon): Likewise.
36487 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36488 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36489 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36490 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36491 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36492 * nscd/nscd_helper.c (open_socket): Likewise.
36493 (__nscd_open_socket): Likewise.
36494 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36495 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36496 (__nscd_innetgr): Likewise.
36497 * nss/nss_db/db-open.c (internal_setent): Likewise.
36498 * resolv/res-close.c (__res_iclose): Likewise.
36499 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36500 * sysdeps/posix/closedir.c (__closedir): Likewise.
36501 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36502 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36503 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36504 (opendir_tail): Likewise.
36505 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36506 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36507 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36508 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36509 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36510 (gethostid): Likewise.
36511 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36512 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36513 Likewise.
36514 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36515 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36516 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36517 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36518 Likewise.
36519 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36520 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36521 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36522 Likewise.
36523 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36524 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36525 Likewise.
36526 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36527 Likewise.
36528 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36529 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36530 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36531 __close_nocancel.
36532
36533 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36534 (openat_not_cancel_3): Likewise.
36535 (openat64_not_cancel_3): Likewise).
36536 (openat_not_cancel_3): Likewise).
36537 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36538 macro.
36539 (openat_not_cancel_3): Likewise.
36540 (openat64_not_cancel): Likewise.
36541 (openat64_not_cancel_3): Likewise.
36542 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36543 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36544 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36545 __open{64}_nocancel.
36546 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36547 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36548 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36549
36550 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36551
36552 [BZ #18822]
36553 * include/argz.h (__argz_create_sep): New function prototype.
36554 (__argz_append): Likewise.
36555 (__argz_add): Likewise.
36556 (__argz_add_sep): Likewise.
36557 (__argz_delete): Likewise.
36558 (__argz_insert): Likewise.
36559 (__argz_replace): Likewise.
36560 * string/argz.h (__argz_create_sep): Removed.
36561 (__argz_append): Likewise.
36562 (__argz_add): Likewise.
36563 (__argz_add_sep): Likewise.
36564 (__argz_delete): Likewise.
36565 (__argz_insert): Likewise.
36566 (__argz_replace): Likewise.
36567
36568 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36569
36570 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36571 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36572 (GNU_PROPERTY_STACK_SIZE): Likewie.
36573 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36574 (GNU_PROPERTY_LOPROC): Likewise.
36575 (GNU_PROPERTY_HIPROC): Likewise.
36576 (GNU_PROPERTY_LOUSER): Likewise.
36577 (GNU_PROPERTY_HIUSER): Likewise.
36578 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36579 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36580 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36581 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36582 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36583 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36584 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36585 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36586 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36587 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36588 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36589 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36590 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36591 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36592 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36593 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36594 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36595 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36596 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36597 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36598 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36599 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36600 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36601
36602 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36603
36604 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36605 in C++ mode.
36606
36607 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36608
36609 [BZ #21930]
36610 * math/math.h (isinf): Check if in C or C++ mode before using
36611 __builtin_types_compatible_p, since this is a C mode feature.
36612
36613 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36614
36615 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36616 (__write_nocancel): New macro.
36617 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36618 Rewrite as a function prototype.
36619 (write_not_cancel): Remove macro.
36620 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36621 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36622 (write_gmon): Likewise.
36623 * libio/fileops.c (_IO_new_file_write): Likewise.
36624 * login/utmp_file.c (pututline_file): Likewise.
36625 (updwtmp_file): Likewise.
36626 * stdio-common/psiginfo.c (psiginfo): Likewise.
36627 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36628 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36629 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36630 Likewise.
36631 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36632 Likewise.
36633
36634 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36635 (__read_nocancel): New macro.
36636 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36637 __read_nocancel.
36638 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36639 macro.
36640 (__read_nocancel): New prototype.
36641 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36642 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36643 with __read_nocancel.
36644 * intl/loadmsgcat.c (read): Likewise.
36645 * libio/fileops.c (_IO_file_read): Likewise.
36646 * locale/loadlocale.c (_nl_load_locale): Likewise.
36647 * login/utmp_file.c (getutent_r_file): Likewise.
36648 (internal_getut_r): Likewise.
36649 (getutline_r_file): Likewise.
36650 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36651 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36652 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36653 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36654 Likewise.
36655 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36656 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36657 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36658 Likewise.
36659 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36660 Likewise.
36661 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36662 Likewise.
36663 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36664 Likewise.
36665 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36666
36667 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36668
36669 [BZ #21966]
36670 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36671 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36672 usable.
36673
36674 2017-08-17 DJ Delorie <dj@redhat.com>
36675
36676 * bug17079.c: Update to new test harness.
36677 * test-digits-dots.c: Likewise.
36678 * test-netdb.c: Likewise.
36679 * tst-field.c: Likewise.
36680 * tst-nss-getpwent.c: Likewise.
36681 * tst-nss-static.c: Likewise.
36682 * tst-nss-test1.c: Likewise.
36683 * tst-nss-test2.c: Likewise.
36684 * tst-nss-test3.c: Likewise.
36685 * tst-nss-test4.c: Likewise.
36686 * tst-nss-test5.c: Likewise.
36687
36688 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36689
36690 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36691 (open_not_cancel_2): Likewise.
36692 (open_nocancel): New macro.
36693 (open64_nocancel): Likewise.
36694 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36695 (open_not_cancel_2): Likewise.
36696 (__open_nocancel): New prototype.
36697 (__open64_nocancel): Likewise.
36698 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36699 __open_nocancel.
36700 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36701 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36702 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36703 with __open_nocancel.
36704 * csu/check_fds.c (check_one_fd): Likewise.
36705 * gmon/gmon.c (write_gmon): Likewise.
36706 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36707 * intl/loadmsgcat.c (open): Likewise.
36708 * libio/fileops.c (_IO_file_open): Likewise.
36709 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36710 * locale/loadlocale.c (_nl_load_locale): Likewise.
36711 * login/utmp_file.c (setutent_file): Likewise.
36712 * misc/daemon.c (daemon): Likewise.
36713 * nss/nss_db/db-open.c (internal_setent): Likewise.
36714 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36715 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36716 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36717 (__opendir): Likewise.
36718 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36719 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36720 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36721 (gethostid): Likewise.
36722 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36723 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36724 Likewise.
36725 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36726 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36727 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36728 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36729 Likewise.
36730 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36731 Likewise.
36732 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36733 Likewise.
36734 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36735 Likewise.
36736 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36737 Likewise.
36738 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36739 Likewise.
36740 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36741 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36742
36743 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36744
36745 * benchtests/bench-skeleton.c (main): Add support for
36746 latency benchmarking.
36747 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36748
36749 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36750
36751 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36752 the startup object.
36753
36754 2017-08-17 Florian Weimer <fweimer@redhat.com>
36755
36756 * include/sys/socket.h (__opensock): Remove internal_function.
36757 * socket/opensock.c (__opensock): Likewise.
36758 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36759
36760 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36761
36762 [BZ #21944]
36763 * signal/bits/types/__sigval_t.h: New file.
36764 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36765 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36766 and define sigval_t using __sigval_t.
36767 * include/bits/types/__sigval_t.h: New file.
36768 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36769 instead of <bits/types/__sigval_t.h>.
36770 (struct sigevent): Use __sigval_t instead of sigval_t.
36771 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36772 instead of <bits/types/__sigval_t.h>.
36773 (siginfo_t): Use __sigval_t instead of sigval_t.
36774 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36775 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36776 (struct sigevent): Use __sigval_t instead of sigval_t.
36777 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36778 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36779 (siginfo_t): Use __sigval_t instead of sigval_t.
36780 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36781
36782 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36783
36784 * NEWS: Remove "[Add new features here]" for 2.27.
36785
36786 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36787
36788 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36789 libc.so.
36790
36791 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36792
36793 * NEWS: Mention x86-64 FMA optimization.
36794
36795 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36796
36797 [BZ #21912]
36798 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36799 Add e_expf-fma.
36800 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36801 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36802 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36803
36804 2017-08-16 Andreas Schwab <schwab@suse.de>
36805
36806 [BZ #16750]
36807 CVE-2009-5064
36808 * elf/ldd.bash.in: Never run file directly.
36809
36810 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36811
36812 [BZ #21955]
36813 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36814 (L(SP_INF_0)): Likewise.
36815
36816 2017-08-15 Florian Weimer <fweimer@redhat.com>
36817
36818 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36819 run-built-tests.
36820
36821 2017-08-15 Florian Weimer <fweimer@redhat.com>
36822
36823 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36824 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36825 BROKEN_THREAD_SIGNALS code.
36826 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36827 request_list): Remove caller_pid member used for
36828 BROKEN_THREAD_SIGNALS.
36829 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36830 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36831 Remove BROKEN_THREAD_SIGNALS support.
36832 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36833 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36834
36835 2017-08-15 Florian Weimer <fweimer@redhat.com>
36836
36837 * gmon/Makefile (tests): Add tst-gmon.
36838 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36839 Set.
36840 (tests-special): Add tst-gmon-prof.out.
36841 (tst-gmon.out): Depend on clean-tst-gmon-data.
36842 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36843 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36844 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36845 startup object.
36846 * aclocal.m4 (GPROF): Set and substitute.
36847 * config.amke.in (GPROF): Set.
36848 * configure: Regenerate.
36849
36850 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36851
36852 * elf/elf.h A (NT_PPC_TAR): New macro.
36853 (NT_PPC_PPR): Likewise.
36854 (NT_PPC_DSCR): Likewise.
36855 (NT_PPC_EBB): Likewise.
36856 (NT_PPC_PMU): Likewise.
36857 (NT_PPC_TM_CGPR): Likewise.
36858 (NT_PPC_TM_CFPR): Likewise.
36859 (NT_PPC_TM_CVMX): Likewise.
36860 (NT_PPC_TM_CVSX): Likewise.
36861 (NT_PPC_TM_SPR): Likewise.
36862 (NT_PPC_TM_CTAR): Likewise.
36863 (NT_PPC_TM_CPPR): Likewise.
36864 (NT_PPC_TM_CDSCR): Likewise.
36865
36866 2017-08-15 Florian Weimer <fweimer@redhat.com>
36867
36868 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36869 regparm (2) instead of internal_function.
36870 (_MCOUNT_DECL): Adjust.
36871
36872 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36873
36874 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36875 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36876
36877 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36878
36879 * conform/data/sys/wait.h-data (si_value): Do not expect for
36880 XPG42.
36881
36882 2017-08-14 Florian Weimer <fweimer@redhat.com>
36883
36884 [BZ #21962]
36885 NSS: Create stubs for accidentally exported lookup functions.
36886 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36887 Remove declaration.
36888 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36889 (ether_hostton): Call __nss_ethers_lookup2 instead.
36890 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36891 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36892 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36893 (setup): Call __nss_netgroup_lookup2 instead.
36894 * nss/Makefile (routines): Add compat-lookup.
36895 * nss/Versions (GLIBC_2.27): Add symbol version.
36896 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36897 (DB_COMPAT_FCT): Remove.
36898 * nss/compat-lookup.c: New file.
36899 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36900 from databases.def.
36901 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36902 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36903 (netname2user): Call __nss_publickey_lookup2 instead.
36904 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36905 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36906 instead.
36907
36908 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36909 Sergei Trofimovich <slyfox@inbox.ru>
36910
36911 [BZ #21908]
36912 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36913 Rename to MMAP2_PAGE_UNIT.
36914 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36915 __OFF_T_MATCHES_OFF64_T is not defined.
36916 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36917 uint64_t.
36918 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36919 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36920
36921 2017-08-14 Florian Weimer <fweimer@redhat.com>
36922
36923 i386: Do not set internal_function.
36924 * config.h.in (USE_REGPARMS, internal_function): Remove.
36925 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36926 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36927
36928 2017-08-14 Florian Weimer <fweimer@redhat.com>
36929
36930 * elf/dl-init.c (_dl_init): Remove internal_function.
36931 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36932 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36933
36934 2017-08-14 Florian Weimer <fweimer@redhat.com>
36935
36936 * elf/rtld.c (_dl_start): Remove internal_function.
36937 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36938 _dl_start.
36939
36940 2017-08-14 Florian Weimer <fweimer@redhat.com>
36941
36942 * elf/dl-fini.c (_dl_fini): Remove internal_function
36943 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36944
36945 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36946
36947 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
36948 (bit_cpu_SHSTK): Likewise.
36949 (index_cpu_IBT): Likewise.
36950 (index_cpu_SHSTK): Likewise.
36951 (reg_IBT): Likewise.
36952 (reg_SHSTK): Likewise.
36953 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36954 Handle index_cpu_IBT and index_cpu_SHSTK.
36955
36956 2017-08-14 Mike FABIAN <mfabian@redhat.com>
36957
36958 [BZ #19982]
36959 * po/fr.po: Fix spelling mistake.
36960
36961 2017-08-13 Florian Weimer <fweimer@redhat.com>
36962
36963 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36964 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36965 (_dl_catch_error, _dl_receive_error): Likewise.
36966 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36967 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36968 (_dl_deallocate_tls): Likewise.
36969 * include/dlfcn.h (_dl_addr): Likewise.
36970 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36971 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36972 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36973 Likewise.
36974
36975 2017-08-13 Florian Weimer <fweimer@redhat.com>
36976
36977 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36978 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36979 internal_function.
36980 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36981
36982 2017-08-13 Florian Weimer <fweimer@redhat.com>
36983
36984 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36985 internal_function.
36986 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36987 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36988 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36989 internal_function from _dl_make_stack_executable_hook member.
36990 (_dl_make_stack_executable): Remove internal_function.
36991 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36992 Likewise.
36993 * sysdeps/unix/sysv/linux/dl-execstack.c
36994 (_dl_make_stack_executable): Likewise.
36995
36996 2017-08-13 Florian Weimer <fweimer@redhat.com>
36997
36998 * sysdeps/unix/sysv/linux/netlinkaccess.h
36999 (__netlink_assert_response): Remove internal_function.
37000 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37001 (__netlink_assert_response): Likewise.
37002
37003 2017-08-13 Florian Weimer <fweimer@redhat.com>
37004
37005 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37006 internal_function.
37007 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37008
37009 2017-08-13 Florian Weimer <fweimer@redhat.com>
37010
37011 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37012 internal_function.
37013 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37014 * inet/netgroup.h (__internal_setnetgrent)
37015 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37016 * inet/getnetgrent_r.c (__internal_setnetgrent)
37017 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37018 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37019 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37020 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37021 * nss/nsswitch.h (db_lookup_function): Likewise.
37022
37023 2017-08-13 Florian Weimer <fweimer@redhat.com>
37024
37025 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37026 Remove internal_function.
37027 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37028 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37029 message argument on the stack.
37030 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37031 Likeweise.
37032
37033 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37034
37035 Adapt test case data to the changes in the thousands
37036 separators.
37037
37038 [BZ #20756]
37039 * localedata/tst-langinfo.sh: Adapt test case data.
37040 * stdlib/tst-strfmon_l.c: Likewise.
37041 * stdlib/tst-strtod4.c: Likewise.
37042 * stdlib/tst-strtod5i.c: Likewise.
37043
37044 2017-08-11 Florian Weimer <fweimer@redhat.com>
37045
37046 [BZ #21242]
37047 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37048 Suppress pedantic warning resulting from statement expression.
37049 (__ASSERT_FUNCTION): Add missing __extension__.
37050
37051 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37052
37053 * benchtests/bench-memmove-large.c: Print output in JSON
37054 format.
37055 * benchtests/bench-memmove.c: Likewise.
37056
37057 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37058 * benchtests/bench-memchr.c (do_one_test): Likewise.
37059 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37060 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37061 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37062 * benchtests/bench-memmove.c (do_one_test): Likewise.
37063 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37064 * benchtests/bench-memset.c (do_one_test): Likewise.
37065 * benchtests/bench-string.h (test_init): Remove memsets.
37066
37067 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37068
37069 * manual/lang.texi
37070 (Computing the Width of an Integer Data Type): Rename section to
37071 "Width of an Integer Type". Remove inaccurate statement regarding
37072 lack of C language facilities for determining width of integer
37073 types, and reorder content to improve flow and context of
37074 discussion.
37075
37076 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37077
37078 * lang.texi (va_copy): Change standard from ISO to C99.
37079 (__va_copy): Add standard and header annotation.
37080 Update description for clarity of origins and current use.
37081
37082 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37083
37084 [BZ #21941]
37085 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37086 xssqrtqp requires operands to be in Vector Registers
37087 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37088 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37089 (__ieee754_sqrtf128): Likewise.
37090
37091 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37092
37093 * sysdeps/aarch64/memcmp.S (memcmp):
37094 Rewrite of optimized memcmp.
37095
37096 2017-08-10 Florian Weimer <fweimer@redhat.com>
37097
37098 Introduce ld.so exceptions.
37099 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37100 (_dl_exception_create, _dl_exception_create_format)
37101 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37102 (_dl_catch_exception): Declare.
37103 (_dl_catch_error): Update comment.
37104 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37105 errstring, malloced members with exception member.
37106 (_dl_out_of_memory): Remove.
37107 (fatal_error): New function, extracted from _dl_signal_error.
37108 (_dl_signal_exception, _dl_signal_cexception): New functions.
37109 (_dl_signal_error): Call _dl_exception_create to allocate an
37110 exception object.
37111 (_dl_catch_exception): New function, based on _dl_catch_error.
37112 (_dl_catch_error): Implement using _dl_catch_exception.
37113 * elf/dl-exception.c: New file.
37114 * elf/Makefile (dl-routines): Add dl-exception.
37115 (elide-routines.os): Likewise.
37116 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37117 _dl_exception_create_format, _dl_exception_free.
37118 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37119 _dl_signal_exception.
37120 * elf/dl-lookup.c (make_string): Remove.
37121 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37122 _dl_signal_cexception, _dl_exception_free.
37123 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37124 _dl_signal_exception.
37125 * elf/dl-sym.c (do_sym): Likewise.
37126 * elf/dl-version.c (make_string): Remove.
37127 (match_symbol): Use _dl_exception_create_format,
37128 _dl_signal_cexception, _dl_exception_free.
37129 (_dl_check_map_versions): Likewise.
37130 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37131 _dl_catch_exception.
37132 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37133 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37134 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37135 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37136 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37137 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37138 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37139 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37140 Likewise.
37141 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37143 (ld.so): Likewise.
37144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37145 (ld.so): Likewise.
37146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37147 Likewise.
37148 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37149 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37150 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37151 Likewise.
37152 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37153 Likewise.
37154 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37155
37156 2017-08-10 Florian Weimer <fweimer@redhat.com>
37157
37158 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37159 attribute_hidden, internal_function.
37160 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37161 internal_function.
37162
37163 2017-08-10 Florian Weimer <fweimer@redhat.com>
37164
37165 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37166 function which calls __builtin_unreachable.
37167
37168 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37169
37170 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37171 Indian monetary formatting
37172 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37173 test cases.
37174
37175 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37176
37177 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37178 Fix typo in comment.
37179
37180 [BZ #21928]
37181 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37182 PTRACE_SEIZE_DEVEL): Remove.
37183 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37184 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37185 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37186 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37187 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37188
37189 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37190
37191 * posix/bits/types.h (__qaddr_t): Remove.
37192
37193 [BZ #21457]
37194 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37195 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37196 __glibc_reserved1.
37197 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37198 (ucontext_t): Use __ctx with uc_flags.
37199 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37200 (__ctxt): Likewise.
37201 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37202 __glibc_reserved1.
37203 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37204 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37205 __glibc_reserved1.
37206 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37207 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37208 __glibc_reserved1.
37209 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37210 macro.
37211 (ucontext_t): Use __ctx with uc_flags.
37212 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37213 (ucontext_t): Use __ctx with uc_flags.
37214 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37215 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37216 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37217 (ucontext_t): Use __ctx with uc_flags.
37218 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37219 undefine further down.
37220 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37221 __glibc_reserved1.
37222 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37223 undefine further down.
37224 (ucontext_t): Use __ctx with uc_flags.
37225 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37226 undefine further down.
37227 (ucontext_t): Use __ctx with uc_flags.
37228 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37229 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37230 Rename uc_pad to __glibc_reserved1.
37231 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37232 undefine further down.
37233 (ucontext_t): Use __ctx with uc_flags.
37234 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37235 further down.
37236 (ucontext_t): Use __ctx with uc_flags.
37237 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37238 __ctx with uc_flags.
37239 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37240 (ucontext_t): Use __ctx with uc_flags.
37241 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37242 __ctx with uc_flags.
37243
37244 2017-08-09 Florian Weimer <fweimer@redhat.com>
37245
37246 [BZ #21932]
37247 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37248 before early return.
37249
37250 2017-08-09 Andreas Schwab <schwab@suse.de>
37251
37252 [BZ #21041]
37253 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37254 renamed alias.
37255
37256 [BZ #21041]
37257 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37258 tst-compat-forwarder.
37259 (modules-names): Add tst-compat-forwarder-mod.
37260 ($(objpfx)tst-compat-forwarder): Depend on
37261 $(objpfx)tst-compat-forwarder-mod.so.
37262 * nptl/tst-compat-forwarder.c: New file.
37263 * nptl/tst-compat-forwarder-mod.c: New file.
37264
37265 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37266
37267 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37268 comments.
37269
37270 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37271 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37272 memcpy_falkor.
37273 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37274 Bump.
37275 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37276 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37277 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37278 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37279 Add falkor.
37280 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37281 New macro.
37282
37283 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37284
37285 [BZ #759]
37286 * manual/setjmp.texi (getcontex): Document uc_stack value
37287 compatibility differences.
37288
37289 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37290
37291 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37292 (old_malloc_hook): Likewise.
37293 (old_memalign_hook): Likewise.
37294 (old_realloc_hook): Likewise.
37295 (struct hdr): Likewise.
37296 (flood): Likewise.
37297 (freehook): Likewise.
37298 (mallochook): Likewise.
37299 (memalignhook): Likewise.
37300 (reallochook): Likewise.
37301 (mprobe): Likewise.
37302 * malloc/mtrace.c (mallwatch): Likewise.
37303 (tr_old_free_hook): Likewise.
37304 (tr_old_malloc_hook): Likewise.
37305 (tr_old_realloc_hook): Likewise.
37306 (tr_old_memalign_hook): Likewise.
37307 (tr_where): Likewise.
37308 (lock_and_info): Likewise.
37309 (tr_freehook): Likewise.
37310 (tr_mallochook): Likewise.
37311 (tr_reallochook): Likewise.
37312 (tr_memalignhook): Likewise.
37313 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37314 * misc/mmap.c (__mmap): Likewise.
37315 * misc/mmap64.c (__mmap64): Likewise.
37316 * misc/mprotect.c (__mprotect): Likewise.
37317 * misc/msync.c (msync): Likewise.
37318 * misc/munmap.c (__munmap): Likewise.
37319 * posix/posix_madvise.c (posix_madvise): Likewise.
37320 * socket/send.c (__send): Likewise.
37321 * socket/sendto.c (__sendto): Likewise.
37322 * socket/setsockopt.c (__setsockopt): Likewise.
37323 * string/memcmp.c (__ptr_t): Remove macro.
37324 (MEMCMP): Use void * instead of ptr_t.
37325 * string/memrchr.c (__ptr_t): Remove macro.
37326 (__memrchr): Use void * instead of ptr_t.
37327 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37328 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37329 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37330 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37331 * sysdeps/mach/msync.c (msync): Likewise.
37332 * sysdeps/mach/munmap.c (__munmap): Likewise.
37333 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37334 Likewise.
37335 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37336 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37337 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37338 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37339 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37340 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37341 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37342 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37343 Likewise.
37344 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37345 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37346 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37347 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37348 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37349 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37350 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37351 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37352 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37353 Likewise.
37354 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37355 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37356 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37357 (MEMCMP): Use void * instead of ptr_t.
37358 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37359 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37360
37361 2017-08-08 Florian Weimer <fweimer@redhat.com>
37362
37363 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37364 return statement.
37365
37366 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37367
37368 [BZ #21913]
37369 * csu/libc-tls.c: Include <startup.h> first.
37370 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37371 * elf/dl-tunables.c: Include <startup.h> first.
37372 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37373 * sysdeps/generic/startup.h: New file.
37374 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37375 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37376 (I386_USE_SYSENTER): New. Defined to 0.
37377
37378 2017-08-08 Andreas Schwab <schwab@suse.de>
37379
37380 [BZ #21041]
37381 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37382 * nptl/pt-system.c (system): Likewise.
37383
37384 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37385
37386 [BZ #21780]
37387 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37388 EOPNOTSUPP.
37389 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37390 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37391 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37392 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37393 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37394 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37395 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37396
37397 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37398
37399 [BZ #21899]
37400 * bits/sigaction.h (struct sigaction): Define sa_handler and
37401 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37402 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37403 [__USE_XOPEN_EXTENDED].
37404 (SA_RESTART): Likewise.
37405 (SA_NODEFER): Likewise.
37406 (SA_RESETHAND): Likewise.
37407 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37408 (struct sigaction): Define sa_handler and sa_sigaction using union
37409 also for [__USE_XOPEN_EXTENDED].
37410 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37411 [__USE_XOPEN_EXTENDED].
37412 (SA_RESTART): Likewise.
37413 (SA_NODEFER): Likewise.
37414 (SA_RESETHAND): Likewise.
37415 * sysdeps/unix/sysv/linux/bits/sigaction.h
37416 (struct sigaction): Define sa_handler and sa_sigaction using union
37417 also for [__USE_XOPEN_EXTENDED].
37418 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37419 [__USE_XOPEN_EXTENDED].
37420 (SA_RESTART): Likewise.
37421 (SA_NODEFER): Likewise.
37422 (SA_RESETHAND): Likewise.
37423 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37424 (struct sigaction): Define sa_handler and sa_sigaction using union
37425 also for [__USE_XOPEN_EXTENDED].
37426 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37427 [__USE_XOPEN_EXTENDED].
37428 (SA_RESTART): Likewise.
37429 (SA_NODEFER): Likewise.
37430 (SA_RESETHAND): Likewise.
37431 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37432 (struct sigaction): Define sa_handler and sa_sigaction using union
37433 also for [__USE_XOPEN_EXTENDED].
37434 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37435 [__USE_XOPEN_EXTENDED].
37436 (SA_RESTART): Likewise.
37437 (SA_NODEFER): Likewise.
37438 (SA_RESETHAND): Likewise.
37439 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37440 (struct sigaction): Define sa_handler and sa_sigaction using union
37441 also for [__USE_XOPEN_EXTENDED].
37442 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37443 [__USE_XOPEN_EXTENDED].
37444 (SA_RESTART): Likewise.
37445 (SA_NODEFER): Likewise.
37446 (SA_RESETHAND): Likewise.
37447 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37448 (struct sigaction): Define sa_handler and sa_sigaction using union
37449 also for [__USE_XOPEN_EXTENDED].
37450 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37451 [__USE_XOPEN_EXTENDED].
37452 (SA_RESTART): Likewise.
37453 (SA_NODEFER): Likewise.
37454 (SA_RESETHAND): Likewise.
37455 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37456 (struct sigaction): Define sa_handler and sa_sigaction using union
37457 also for [__USE_XOPEN_EXTENDED].
37458 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37459 [__USE_XOPEN_EXTENDED].
37460 (SA_RESTART): Likewise.
37461 (SA_NODEFER): Likewise. Define directly rather than as alias.
37462 (SA_RESETHAND): Likewise.
37463 (SA_INTERRUPT): Define only for [__USE_MISC].
37464 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37465 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37466 [__USE_MISC].
37467 (SA_STACK): Define only for [__USE_MISC].
37468 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37469 (struct sigaction): Define sa_handler and sa_sigaction using union
37470 also for [__USE_XOPEN_EXTENDED].
37471 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37472 [__USE_XOPEN_EXTENDED].
37473 (SA_RESTART): Likewise.
37474 (SA_NODEFER): Likewise.
37475 (SA_RESETHAND): Likewise.
37476 (SA_NOPTRACE): Define only for [__USE_MISC].
37477
37478 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37479 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37480 (struct catalog_info): Likewise.
37481 * inet/htontest.c (lo): Likewise.
37482 (foo): Likewise.
37483 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37484 * inet/inet_net.c (inet_network): Likewise.
37485 * inet/inet_netof.c (inet_netof): Likewise.
37486 * inet/rcmd.c (__ivaliduser): Likewise.
37487 (iruserok): Likewise.
37488 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37489 * locale/programs/locale-spec.c (locale_special): Likewise.
37490 * nis/nis_findserv.c (struct findserv_req): Likewise.
37491 (__nis_findfastest_with_timeout): Likewise.
37492 * nss/test-netdb.c (test_network): Likewise.
37493 * resolv/inet_neta.c (inet_neta): Likewise.
37494 * resolv/ns_date.c (ns_datetosecs): Likewise.
37495 (SECS_PER_DAY): Likewise.
37496 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37497 Likewise.
37498 * resolv/res_comp.c (__putlong): Likewise.
37499 (__putshort): Likewise.
37500 (_getlong): Likewise.
37501 (_getshort): Likewise.
37502 * resolv/res_debug.c (p_time): Likewise.
37503 (precsize_ntoa): Likewise.
37504 (precsize_aton): Likewise.
37505 (latlon2ul): Likewise.
37506 (loc_aton): Likewise.
37507 (loc_ntoa): Likewise.
37508 * resolv/res_hconf.c (struct netaddr): Likewise.
37509 (_res_hconf_reorder_addrs): Likewise.
37510 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37511 (clnttcp_control): Likewise.
37512 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37513 (clntudp_control): Likewise.
37514 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37515 (clntunix_control): Likewise.
37516 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37517 * sunrpc/rpc/auth.h (union des_block): Likewise.
37518 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37519 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37520 (xdrrec_create): Likewise.
37521 (xdrrec_endofrecord): Likewise.
37522 (flush_out): Likewise.
37523 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37524 (xdrstdio_putlong): Likewise.
37525 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37526 Likewise.
37527
37528 * misc/sys/cdefs.h (__long_double_t): Remove.
37529 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37530 instead of __long_double_t,
37531 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37532
37533 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37534
37535 * benchtests/scripts/compare_strings.py: Avoid display error when
37536 running on a text terminal.
37537
37538 * benchtests/scripts/compare_strings.py (main): Add an
37539 optional -base option.
37540 (process_results): New argument base_func.
37541
37542 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37543 hardcoding memcpy.
37544 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37545 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37546
37547 2017-08-07 Andreas Schwab <schwab@suse.de>
37548
37549 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37550 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37551 * intl/Makefile ($(objpfx)tst-gettext.out)
37552 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37553 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37554 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37555 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37556 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37557 * posix/Makefile ($(objpfx)globtest.out)
37558 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37559 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37560 ($(objpfx)tst-printf.out): Likewise.
37561 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37562 ($(objpfx)tst-setcontext3.out): Likewise.
37563
37564 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37565
37566 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37567 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37568 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37569 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37570 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37571 and mptan-fma.
37572 (CFLAGS-doasin-fma.c): New.
37573 (CFLAGS-dosincos-fma.c): Likewise.
37574 (CFLAGS-e_asin-fma.c): Likewise.
37575 (CFLAGS-e_atan2-fma.c): Likewise.
37576 (CFLAGS-e_exp-fma.c): Likewise.
37577 (CFLAGS-e_log-fma.c): Likewise.
37578 (CFLAGS-e_pow-fma.c): Likewise.
37579 (CFLAGS-halfulp-fma.c): Likewise.
37580 (CFLAGS-mpa-fma.c): Likewise.
37581 (CFLAGS-mpatan-fma.c): Likewise.
37582 (CFLAGS-mpatan2-fma.c): Likewise.
37583 (CFLAGS-mpexp-fma.c): Likewise.
37584 (CFLAGS-mplog-fma.c): Likewise.
37585 (CFLAGS-mpsqrt-fma.c): Likewise.
37586 (CFLAGS-mptan-fma.c): Likewise.
37587 (CFLAGS-s_atan-fma.c): Likewise.
37588 (CFLAGS-sincos32-fma.c): Likewise.
37589 (CFLAGS-slowexp-fma.c): Likewise.
37590 (CFLAGS-slowpow-fma.c): Likewise.
37591 (CFLAGS-s_sin-fma.c): Likewise.
37592 (CFLAGS-s_tan-fma.c): Likewise.
37593 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37594 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37595 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37596 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37597 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37598 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37599 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37600 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37601 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37602 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37603 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37604 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37605 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37606 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37607 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37608 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37609 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37610 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37611 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37612 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37613 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37614 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37615 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37616 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37617 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37618 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37619 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37620 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37621 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37622 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37623 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37624
37625 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37626
37627 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37628 (min_of_type_f): New macro.
37629 (min_of_type_): Likewise.
37630 (min_of_type_l): Likewise.
37631 (min_of_type_f128): Likewise.
37632 (min_of_type): Define using __MATH_TG and taking an expression
37633 argument.
37634 (math_check_force_underflow): Pass expression instead of type to
37635 min_of_type.
37636 (math_check_force_underflow_nonneg): Likewise.
37637
37638 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37639
37640 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37641 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37642 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37643
37644 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37645
37646 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37647 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37648 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37649 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37650 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37651 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37652 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37653 memmove_chk-nonshared and memset_chk-nonshared
37654 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37655 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37656 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37657 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37658 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37659 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37660 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37661 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37662 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37663 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37664 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37665 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37666 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37667 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37668 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37669 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37670 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37671 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37672 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37673 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37674 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37675 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37676 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37677 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37678 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37679 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37680 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37681 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37682 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37683 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37684 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37685 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37686 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37687 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37688 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37689 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37690 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37691 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37692 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37693 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37694 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37695 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37696 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37697 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37698 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37699 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37700 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37701 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37702 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37703 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37704 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37705 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37706 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37707 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37708 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37709 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37710 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37711 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37712 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37713 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37714 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37715 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37716 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37717 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37718 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37719 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37720 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37721 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37722 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37723 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37724 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37725 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37726 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37727 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37728 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37729 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37730 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37731 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37732 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37733 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37734 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37735 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37736 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37737 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37738 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37739 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37740 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37741 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37742 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37743 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37744 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37745 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37746 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37747 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37748 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37749 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37750 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37751 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37752 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37753 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37754 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37755 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37756 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37757 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37758 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37759 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37760 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37761 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37762
37763 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37764
37765 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37766 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37767 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37768 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37769 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37770 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37771 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37772 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37773 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37774 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37775 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37776 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37777 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37778 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37779 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37780 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37781 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37782 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37783 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37784 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37785 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37786 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37787 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37788 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37789 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37790 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37791 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37792 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37793 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37794 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37795 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37796 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37797 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37798 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37799 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37800 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37801 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37802 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37803 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37804 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37805 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37806 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37807 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37808 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37809 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37810 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37811 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37812 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37813 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37814 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37815 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37816 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37817 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37818 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37819 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37820 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37821 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37822 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37823 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37824 ...
37825 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37826 Don't include <sysdep.h> nor <init-arch.h>.
37827 (_ZGVbN2v_cos): Removed.
37828 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37829 ...
37830 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37831 Don't include <sysdep.h> nor <init-arch.h>.
37832 (_ZGVdN4v_cos): Removed.
37833 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37834 ...
37835 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37836 Don't include <sysdep.h> nor <init-arch.h>.
37837 (_ZGVeN8v_cos): Removed.
37838 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37839 ...
37840 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37841 Don't include <sysdep.h> nor <init-arch.h>.
37842 (_ZGVbN2v_exp): Removed.
37843 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37844 ...
37845 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37846 Don't include <sysdep.h> nor <init-arch.h>.
37847 (_ZGVdN4v_exp): Removed.
37848 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37849 ...
37850 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37851 Don't include <sysdep.h> nor <init-arch.h>.
37852 (_ZGVeN8v_exp): Removed.
37853 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37854 ...
37855 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37856 Don't include <sysdep.h> nor <init-arch.h>.
37857 (_ZGVbN2v_log): Removed.
37858 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37859 ...
37860 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37861 Don't include <sysdep.h> nor <init-arch.h>.
37862 (_ZGVdN4v_log): Removed.
37863 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37864 ...
37865 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37866 Don't include <sysdep.h> nor <init-arch.h>.
37867 (_ZGVeN8v_log): Removed.
37868 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37869 ...
37870 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37871 Don't include <sysdep.h> nor <init-arch.h>.
37872 (_ZGVbN2vv_pow): Removed.
37873 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37874 ...
37875 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37876 Don't include <sysdep.h> nor <init-arch.h>.
37877 (_ZGVdN4vv_pow): Removed.
37878 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37879 ...
37880 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37881 Don't include <sysdep.h> nor <init-arch.h>.
37882 (_ZGVeN8vv_pow): Removed.
37883 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37884 ...
37885 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37886 Don't include <sysdep.h> nor <init-arch.h>.
37887 (_ZGVbN2v_sin): Removed.
37888 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37889 ...
37890 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37891 Don't include <sysdep.h> nor <init-arch.h>.
37892 (_ZGVbN4v_sin): Removed.
37893 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37894 ...
37895 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37896 Don't include <sysdep.h> nor <init-arch.h>.
37897 (_ZGVbN8v_sin): Removed.
37898 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37899 ...
37900 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37901 Don't include <sysdep.h> nor <init-arch.h>.
37902 (_ZGVbN2vvv_sincos): Removed.
37903 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37904 ...
37905 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37906 Don't include <sysdep.h> nor <init-arch.h>.
37907 (_ZGVdN4vvv_sincos): Removed.
37908 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37909 ...
37910 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37911 Don't include <sysdep.h> nor <init-arch.h>.
37912 (_ZGVeN8vvv_sincos): Removed.
37913 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37914 ...
37915 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37916 Don't include <sysdep.h> nor <init-arch.h>.
37917 (_ZGVeN16v_cosf): Removed.
37918 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37919 ...
37920 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37921 Don't include <sysdep.h> nor <init-arch.h>.
37922 (_ZGVbN4v_cosf): Removed.
37923 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37924 ...
37925 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37926 Don't include <sysdep.h> nor <init-arch.h>.
37927 (_ZGVdN8v_cosf): Removed.
37928 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37929 ...
37930 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37931 Don't include <sysdep.h> nor <init-arch.h>.
37932 (_ZGVeN16v_expf): Removed.
37933 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37934 ...
37935 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37936 Don't include <sysdep.h> nor <init-arch.h>.
37937 (_ZGVbN4v_expf): Removed.
37938 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37939 ...
37940 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37941 Don't include <sysdep.h> nor <init-arch.h>.
37942 (_ZGVdN8v_expf): Removed.
37943 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37944 ...
37945 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37946 Don't include <sysdep.h> nor <init-arch.h>.
37947 (_ZGVeN16v_logf): Removed.
37948 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37949 ...
37950 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37951 Don't include <sysdep.h> nor <init-arch.h>.
37952 (_ZGVbN4v_logf): Removed.
37953 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37954 ...
37955 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37956 Don't include <sysdep.h> nor <init-arch.h>.
37957 (_ZGVdN8v_logf): Removed.
37958 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37959 ...
37960 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37961 Don't include <sysdep.h> nor <init-arch.h>.
37962 (_ZGVeN16vv_powf): Removed.
37963 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37964 ...
37965 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37966 Don't include <sysdep.h> nor <init-arch.h>.
37967 (_ZGVbN4vv_powf): Removed.
37968 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37969 ...
37970 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37971 Don't include <sysdep.h> nor <init-arch.h>.
37972 (_ZGVdN8vv_powf): Removed.
37973 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37974 ...
37975 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37976 Don't include <sysdep.h> nor <init-arch.h>.
37977 (_ZGVeN16vvv_sincosf): Removed.
37978 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37979 ...
37980 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37981 Don't include <sysdep.h> nor <init-arch.h>.
37982 (_ZGVbN4vvv_sincosf): Removed.
37983 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37984 ...
37985 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37986 Don't include <sysdep.h> nor <init-arch.h>.
37987 (_ZGVdN8vvv_sincosf): Removed.
37988 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37989 ...
37990 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37991 Don't include <sysdep.h> nor <init-arch.h>.
37992 (_ZGVeN16v_sinf): Removed.
37993 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37994 ...
37995 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37996 Don't include <sysdep.h> nor <init-arch.h>.
37997 (_ZGVbN4v_sinf): Removed.
37998 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37999 ...
38000 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38001 Don't include <sysdep.h> nor <init-arch.h>.
38002 (_ZGVdN8v_sinf): Removed.
38003
38004 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38005
38006 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38007 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38008 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38009 s_rint-sse4_1 and s_rintf-sse4_1.
38010 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38011 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38012 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38013 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38014 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38015 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38016 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38017 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38018 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38019 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38020 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38021 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38022 (__ceil): Removed.
38023 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38024 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38025 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38026 (__ceilf): Removed.
38027 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38028 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38029 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38030 (__floor): Removed.
38031 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38032 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38033 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38034 (__floorf): Removed.
38035 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38036 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38037 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38038 (__nearbyint): Removed.
38039 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38040 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38041 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38042 (__nearbyintf): Removed.
38043 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38044 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38045 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38046 (__rint): Removed.
38047 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38048 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38049 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38050 (__rintf): Removed.
38051
38052 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38053
38054 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38055 SHARED. Avoid dynamic relocation against main in static PIE.
38056
38057 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38058
38059 [BZ #21815]
38060 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38061 (LDFLAGS-tst-prelink): Likewise.
38062
38063 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38064
38065 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38066 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38067 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38068 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38069 (INTERNAL_SYSCALL_NCS): Likewise.
38070 (LOADARGS_1): Likewise.
38071 (LOADARGS_5): Likewise.
38072 (RESTOREARGS_1): Likewise.
38073 (RESTOREARGS_5): Likewise.
38074
38075 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38076
38077 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38078 (MEMPCPY_SYMBOL): Likewise.
38079 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38080 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38081 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38082 in libc.a.
38083 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38084 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38085 Likewise.
38086 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38087 (__hidden_ver1): Don't use in libc.a.
38088 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38089 (__mempcpy): Don't create a weak alias in libc.a.
38090 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38091 libc.a.
38092 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38093 (__hidden_ver1): Don't use in libc.a.
38094
38095 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38096
38097 * config.make.in (have-insert): New.
38098 * configure.ac (libc_cv_insert): New. Set to yes if linker
38099 supports INSERT in linker script.
38100 (AC_SUBST(libc_cv_insert): New.
38101 * configure: Regenerated.
38102 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38103 if $(have-insert) == yes.
38104
38105 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38106
38107 * elf/Makefile (tests): Add vismain only if
38108 $(have-protected-data) == yes.
38109 (tests-pie): Likewise.
38110
38111 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38112
38113 [BZ #21871]
38114 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38115 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38116
38117 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38118
38119 [BZ #21790]
38120 * sysdeps/i386/i586/memset.S
38121 (__memset_zero_constant_len_parameter): Removed.
38122 * sysdeps/i386/i686/memset.S
38123 (__memset_zero_constant_len_parameter): Likewise.
38124 * sysdeps/i386/i686/multiarch/memset_chk.S
38125 (__memset_zero_constant_len_parameter): Likewise.
38126 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38127 Likewise.
38128
38129 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38130
38131 * stdlib/getentropy.c (getentropy): Change return type to int.
38132
38133 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38134
38135 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38136
38137 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38138
38139 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38140 u_intN_t.
38141 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38142 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38143 Likewise.
38144 (ieee_float_shape_type): Likewise.
38145 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38146 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38147 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38148 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38149 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38150 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38151 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38152 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38153 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38154 Likewise.
38155 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38156 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38157 (__ieee754_yn): Likewise.
38158 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38159 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38160 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38161 Likewise.
38162 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38163 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38164 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38165 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38166 (__erfc): Likewise.
38167 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38168 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38169 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38170 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38171 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38172 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38173 Likewise.
38174 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38175 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38176 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38177 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38178 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38179 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38180 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38181 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38182 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38183 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38184 (__issignaling): Likewise.
38185 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38186 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38187 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38188 Likewise.
38189 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38190 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38191 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38192 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38193 Likewise.
38194 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38195 Likewise.
38196 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38197 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38198 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38199 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38200 (__erfcf): Likewise.
38201 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38202 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38203 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38204 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38205 Likewise.
38206 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38207 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38208 Likewise.
38209 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38210 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38211 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38212 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38213 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38214 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38215 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38216 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38217 Likewise.
38218 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38219 Likewise.
38220 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38221 Likewise.
38222 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38223 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38224 Likewise.
38225 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38226 Likewise.
38227 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38228 (__ieee754_ynl): Likewise.
38229 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38230 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38231 Likewise.
38232 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38233 Likewise.
38234 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38235 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38236 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38237 Likewise.
38238 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38239 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38240 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38241 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38242 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38243 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38244 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38245 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38246 Likewise.
38247 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38248 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38249 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38250 Likewise.
38251 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38252 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38253 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38254 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38255 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38256 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38257 Likewise.
38258 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38259 Likewise.
38260 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38261 Likewise.
38262 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38263 Likewise.
38264 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38265 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38266 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38267 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38268 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38269 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38270 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38271 Likewise.
38272 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38273 Likewise.
38274 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38275 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38276 Likewise.
38277 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38278 (__ieee754_remainderl): Likewise.
38279 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38280 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38281 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38282 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38283 Likewise.
38284 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38285 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38286 Likewise.
38287 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38288 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38289 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38290 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38291 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38292 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38293 Likewise.
38294 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38295 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38296 (__ieee754_y0l): Likewise.
38297 (pzero): Likewise.
38298 (qzero): Likewise.
38299 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38300 (__ieee754_y1l): Likewise.
38301 (pone): Likewise.
38302 (qone): Likewise.
38303 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38304 (__ieee754_ynl): Likewise.
38305 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38306 (__ieee754_lgammal_r): Likewise.
38307 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38308 Likewise.
38309 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38310 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38311 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38312 (__erfcl): Likewise.
38313 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38314 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38315 Likewise.
38316 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38317 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38318 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38319 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38320 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38321 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38322 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38323 Likewise.
38324 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38325 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38326 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38327 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38328 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38329 Likewise.
38330 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38331 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38332 Likewise.
38333 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38334 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38335 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38336 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38337 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38338
38339 2017-08-03 Florian Weimer <fweimer@redhat.com>
38340
38341 [BZ #21885]
38342 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38343 on memory allocation failure.
38344
38345 2017-08-03 Alan Modra <amodra@gmail.com>
38346
38347 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38348 tst-tlsopt-powerpc.c with function name change and no test harness.
38349 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38350 Call tls_get_addr_opt_test.
38351 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38352 (modules-names): Add mod-tlsopt-powerpc.
38353 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38354 (tst-tlsopt-powerpc): Depend on .so.
38355 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38356 define. Expand use in TLS_GD and TLS_LD.
38357
38358 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38359
38360 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38361 function.
38362 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38363
38364 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38365
38366 [BZ #21686]
38367 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38368 comparing size with that of double.
38369 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38370 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38371 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38372 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38373 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38374 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38375 unsigned __int128 types.
38376
38377 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38378
38379 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38380 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38381 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38382 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38383 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38384
38385 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38386
38387 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38388
38389 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38390
38391 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38392 of SHARED.
38393 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38394 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38395 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38396 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38397 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38398 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38399 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38400
38401 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38402
38403 [BZ #21685]
38404 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38405 bit-field expressions passed to sizeof or typeof.
38406 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38407 (__TGMATH_F128): Likewise.
38408 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38409 (__TGMATH_CF128): Likewise.
38410 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38411 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38412 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38413 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38414 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38415 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38416 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38417 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38418 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38419 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38420 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38421 (__TGMATH_UNARY_IMAG): Likewise.
38422 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38423 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38424 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38425 type.
38426 (define_vars_for_type): Handle bit_field type specially.
38427 (Tests.__init__): Declare structure with bit-field element.
38428
38429 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38430
38431 [BZ #21791]
38432 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38433 (MEMCPY_CHK): Define only if SHARED is defined.
38434 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38435 Likewise.
38436 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38437 Likewise.
38438
38439 See ChangeLog.18 for earlier changes.